sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: AnimationPlayer: "Editing imported animation" warning when "Save to File" is enabled
Labels: bug,confirmed,topic:import,topic:animation

### Godot version

4.0.dev (e1788b1)

### System information

Linux, AMD Ryzen 9 5900HX, RTX 3080

### Issue description

I'm porting my game to 4.0 and I have a GLTF model for the player with a bunch of animations.

I need to customize these animations in order to add custom tracks but even with the correct settings the editor still warns about the imported scene not being customizable. 

It seems that the warning can be ignored since the animations point to the animation files and that adding custom tracks is possible and are kept between reimports.

### Steps to reproduce

I tested with a GLTF model, I don't know if this affects other file formats as well.

1. Select the model in the file system
2. Go to the import tab and go to the advanced import options
3. For each animation, enable "Save to File" and "Keep Custom Tracks" and set the path where to save it.
4. Hit reimport
5. Create an inherited scene from the model and open it
6. Select the AnimationPlayer
7. Animation Player has the "Imported Scene" warning telling to do what was already done in order to edit the animations

### Minimal reproduction project

For testing I got a model + animation from Mixamo, converted it to GLTF using fbx2gltf and imported it in Godot.

We can see that the animation is actually saved to disk but it can't be customized using the AnimationEditor.

[CustomAnimImportBug.zip](https://github.com/godotengine/godot/files/10152241/CustomAnimImportBug.zip)
Repository: excalidraw
Issue: Show a message about potential reason for filesystem permission error
Labels: good first issue,UX/UI

When permission error is detected on filesystem save/open, we sohuld display a modal with steps people can do to check whether their browser filesystem access is disabled.

The error on Chrome looks like:

```
DOMException: The request is not allowed by the user agent or the platform in the current context.
```

The steps to check on Chrome are these: https://github.com/excalidraw/excalidraw/issues/5773#issuecomment-1299947849

We should check whether other browsers have similar mechanisms and what their error messages look like.

And we should also mention what it means if the filesystem setting is grayed out, so they know it's likely due to their system administrator (e.g. the company).

https://github.com/excalidraw/excalidraw/issues/5811
https://github.com/excalidraw/excalidraw/issues/5773
Repository: rust
Issue: In linux(debian 11.2, Alma 8.5) TcpStream after write_all cache to much memory
Labels: O-linux,C-bug,E-needs-mcve,T-libs,A-io

In Rust 1.65.0 and x86_64-unknown-linux-gnu build, debian 11.2

```rust
use std::{time::Duration, io::Write};
use std::net::TcpStream;

fn main() {
    // now memory is 5m
    std::thread::sleep(Duration::new(5, 0));
    {
        for i in 1..10 {
            // any redis clint
            let mut tcp = TcpStream::connect("127.0.0.1:6379").unwrap();
            let data: Vec<u8> = vec![49; 26748528];
            let _ = tcp.write_all(&data);
            std::thread::sleep(Duration::new(5, 0));
        }
    }
    // now memory is 27m
    std::thread::sleep(Duration::new(500, 0));
}
```
I expected to see this happen: every once run
When I run multi thread, It will increase too much memory. just like 
```rust
use std::thread;
use std::{time::Duration, io::Write};
use std::net::TcpStream;

fn main() {
    // now memory is 5m
    std::thread::sleep(Duration::new(5, 0));
    for thread_id in 1 .. 10 {
        thread::spawn(move || {
            {
                for i in 1..10 {
                    // any redis clint
                    let mut tcp = TcpStream::connect("127.0.0.1:6379").unwrap();
                    let data: Vec<u8> = vec![i + 49; 26748528];
                    let _ = tcp.write_all(&data);
                    std::thread::sleep(Duration::new(5, 0));
                }
                
                println!("end thread {}", thread_id);
            }
        });
    }
    println!("end this block");
    // now memory is 237m
    std::thread::sleep(Duration::new(500, 0));
}
```
So my project offten out of memory by this reason. Why This cache so much memory?
In windows or macos, this memory is reduce when thread close.
Repository: rust
Issue: Mention that examples can only import things from lib.rs and not main.rs
Labels: A-diagnostics,T-compiler

Given the following code for a package called `mypackage`: 

in the `src/main.rs`:
```rust
fn main() {
    println!("Hello, world!");
}

pub fn test_stuff() -> u32 {
    42
}
```
in an example at `examples/example1.rs`:
```rust
extern crate mypackage;
use mypackage::test::test_stuff();

fn main(){
    println!("Hello World!");
}
```
in another example at `examples/example2.rs`:
```rust
use mypackage::test::test_stuff();

fn main(){
    println!("Hello World!");
}
```


The current output is (I used `--keep-going` just to get everything in one command):

```
$ cargo build -Z unstable-options  --keep-going --examples
   Compiling mypackage v0.1.0 (/home/caspar/.local/share/temp/2022-12-05-11-14)
error[E0463]: can't find crate for `mypackage`
 --> examples/example1.rs:1:1
  |
1 | extern crate mypackage;
  | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

For more information about this error, try `rustc --explain E0463`.
error: could not compile `mypackage` due to previous error
warning: build failed, waiting for other jobs to finish...
error[E0432]: unresolved import `mypackage`
 --> examples/example2.rs:1:5
  |
1 | use mypackage::test;
  |     ^^^^^^^^^ use of undeclared crate or module `mypackage`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `mypackage` due to previous error
```

Ideally the output should mention that a lib.rs is required and that it can only find a main.rs.

I'd suggest the note to be this:
```
Note: The package mypackage does not contain a lib.rs file to be imported. Package imports only use the items exposed by the lib.rs and ignore the main.rs file.
```
Repository: next.js
Issue: [NEXT-1259] notFound() returns a 200 when using the edge runtime
Labels: Runtime,linear: next

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

   Operating System:
      Platform: darwin
      Arch: x64
      Version: Darwin Kernel Version 22.1.0: Sun Oct  9 20:14:54 PDT 2022; root:xnu-8792.41.9~2/RELEASE_X86_64
    Binaries:
      Node: 18.12.1
      npm: 8.19.2
      Yarn: 3.3.0
      pnpm: N/A
    Relevant packages:
      next: 13.0.7-canary.1
      eslint-config-next: 13.0.6
      react: 18.2.0
      react-dom: 18.2.0

### Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true), Middleware / Edge (API routes, runtime)

### Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster

https://github.com/vperrin/notfounderror

### To Reproduce

start the server and go to localhost:3000/

### Describe the Bug

When using the nodejs runtime, the notFound() function on the homepage makes the homepage return a 404 error.
When switching to the edge runtime, the same page with the notFound() function returns a 200 instead of a 404

### Expected Behavior

a 404 should be returned instead of a 200

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_

<sub>[NEXT-1259](https://linear.app/vercel/issue/NEXT-1259/notfound-returns-a-200-when-using-the-edge-runtime)</sub>
Repository: PowerToys
Issue: PowerToys Run: Search results disappear after every new character
Labels: Issue-Bug,Product-PowerToys Run,Needs-Triage,Needs-Team-Response

### Microsoft PowerToys version

0.64.1

### Installation method

Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

Type into the global search using any plugins (be it Folder, Calculator or Everything), without a direct activation command.
For both delays, I am using 0ms and 1ms (since the latter being 0ms leads to no results being shown) to receive immediate results after input. Longer delays don't change the outcome.

![205542948-8248dffb-5464-484f-9dae-ac062211f65f](https://user-images.githubusercontent.com/115735903/205616982-9ef63599-fe0d-4137-bc22-170131d3bf21.gif)


### ✔️ Expected Behavior

When results are found, the results list should remain visible, even when new characters are added into the search box. as soon as new results are available, they should replace the old ones in-place without the list disappearing and reappearing.

### ❌ Actual Behavior

When typing into the search bar, the results list appears, then disappears and reappears with each new character typed. Typing fast leads to the results list flashing intensively, which is really distracting.

### Other Software

_No response_
Repository: pytorch
Issue: Option to let DistributedDataParallel know in advance unused parameters at each forward pass
Labels: oncall: distributed,enhancement

### 🚀 The feature, motivation and pitch

**Motivation:** In models with stochastic depth and the like, at each forward pass some layers (or parts of them) are skipped and thus one needs to set `find_unused_parameters=True`, which makes training much slower in general. Yet, one can implement these models in such a way that the unused parameters at each step are known **in advance** (e.g., the layer sampling is done before the model forward pass and not on-the-fly). It would then be great if we could feed this information to the DDP model so that it doesn't need to find the unused parameters.

The usage could be something like the following:

```python
model = DistributedDataParallel(model, find_unused_parameters=False)
for x in dataloader:
  # random_layer_sampling should return the same layers across GPUs
  layers_to_skip = random_layer_sampling(model)
  p = get_parameters(layers_to_skip)
  output = model(x, unused_parameters=p)
  ...
```

### Alternatives

Currently there is no option other than setting `find_unused_parameters=True`.

### Additional context

_No response_

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu
Repository: create-react-app
Issue: react-script stuck on "starting the development server..." message
Labels: needs triage,issue: bug report

### Describe the bug
When I try to start to react dev server locally with yarn start command it stucks on "starting the development server..." message. Sometimes it continues for hours without results error or success.

The project's react-script version was 4.0.0, updated it to 5.0.0, also removed node_modules, yarn.lock, and clear cache but none of them worked.

I faced the same thing many times but sometimes later or days it worked but I do not know how.

### Did you try recovering your dependencies?
Yes I did
yarn -- version 1.22.19

### Which terms did you search for in User Guide?
npm start

### Environment
  current version of create-react-app: 5.0.1
  running from /Users/zuratsintsadze/.npm/_npx/10788/lib/node_modules/create-react-app

  System:
    OS: macOS 13.0.1
    CPU: (10) x64 Apple M1 Max
  Binaries:
    Node: 14.20.0 - ~/.nvm/versions/node/v14.20.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v14.20.0/bin/yarn
    npm: 6.14.17 - ~/.nvm/versions/node/v14.20.0/bin/npm
  Browsers:
    Chrome: 108.0.5359.94
    Edge: Not Found
    Firefox: 104.0.1
    Safari: 16.1
  npmPackages:
    react: ^16.13.1 => 16.14.0
    react-dom: ^16.13.1 => 16.14.0
    react-scripts: 5.0.0 => 5.0.0 (4.0.3)
  npmGlobalPackages:
    create-react-app: Not Found

### Steps to reproduce
The reason causing it is graphql queries.ts and mutations.ts files. Each file's line size is about 30000. When I copy new queries or(and) mutation from back-end happens what is described above.


### Actual behavior
There is one strange behavior. When I removed `eslint` from devDependecies project finished building with `eslint` error. 
Then I close the error window and the site is testable, but every compilation shows the same error

<img width="1220" alt="Screenshot 2022-12-05 at 15 22 27" src="https://user-images.githubusercontent.com/105875344/205902284-3a65e8ec-0b68-439f-92fd-1df07317e0a2.png">

### Reproducible demo
I can not add a project for sensitive code info
Repository: flutter
Issue: Non-asset, ignored folders with asset filenames are included in the build.
Labels: tool,platform-windows,a: assets,P2,team-tool,triaged-tool

## description

While backing up some build results in an git-ignored project folder, i encountered an annoying bug with regard to assets. The mentioned folder was included in the next `flutter build windows` output in the `flutter_assets` folder, despite *not* being specified in the `pubspec.yaml` as assets folder. I could also reproduce this in a newly created project.

## steps to reproduce

1. `flutter create test_assets`
2. Create a folder `test_dir`, create a file `CHANGELOG.md`
3. pubspec.yaml

```
name: test_assets 
description: A new Flutter project.  

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.0+1

environment:
  sdk: '>=2.18.2 <3.0.0'

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^1.0.2

dev_dependencies:
  flutter_test:
    sdk: flutter

  flutter_lints: ^2.0.0

flutter:

  uses-material-design: true
  assets:    
    - assets/
    - CHANGELOG.md

```

4. `flutter build windows`
5. copy `build/windows/runner/Release` to `test_dir`
6. `flutter build windows`
7. now you can find a file `...\test_assets\build\windows\runner\Release\data\flutter_assets\test_dir\Release\data\flutter_assets\CHANGELOG.md` in the build results.

This would increases the app size with every build, despite the `test_dir`folder not being specified as assets folder.

## expected result

7. the `test_dir` folder is not included in the `flutter_assets`.

## remarks

It looks like the cause for this is, that there is a `CHANGELOG.md` file found in the `test_dir` folder, and this filename is specified in the assets in the pubspec.yaml. But the intention is the inclusion of the top level `test_assets/CHANGELOG.md` file. Replacing the assets paragraph in the pubspec.yaml with relative paths does not fix the problem, unfortunally:
```
  assets:    
    - ./assets/
    - ./CHANGELOG.md
```

## environment

Target Platform: windows
Flutter version: 3.3.5

`flutter doctor` output:

```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.5, on Microsoft Windows [Version 10.0.19045.2251], locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.5)
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.73.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!
```
Repository: flutter
Issue: [go_router] 5.2.1  goRouterState.path & goRouterState.name giving null value in route builders if sub routes in ShellRoute and control not going on defined route builder
Labels: package,has reproducible steps,P2,p: go_router,found in release: 3.3,found in release: 3.7,team-go_router,triaged-go_router

```
final GlobalKey<NavigatorState> _rootNavigatorKey =
    GlobalKey<NavigatorState>(debugLabel: 'root');
final GlobalKey<NavigatorState> _shellNavigatorKey =
    GlobalKey<NavigatorState>(debugLabel: 'shell');

void main() {
  usePathUrlStrategy();

  runApp(ShellRouteExampleApp());
}

/// An example demonstrating how to use [ShellRoute]
class ShellRouteExampleApp extends StatelessWidget {
  /// Creates a [ShellRouteExampleApp]
  ShellRouteExampleApp({Key? key}) : super(key: key);

  final GoRouter _router = GoRouter(
    navigatorKey: _rootNavigatorKey,
    initialLocation: '/a',
    routes: <RouteBase>[
      GoRoute(
          path: '/new',
          builder: (a, b) => Text('new'),
          parentNavigatorKey: _rootNavigatorKey),

      /// Application shell
      ShellRoute(
        navigatorKey: _shellNavigatorKey,
        pageBuilder:
            (BuildContext context, GoRouterState goRouterState, Widget child) {
              print(
                  "State name in Builder of shell builder:-${goRouterState.name}");
              print(
                  "State location  in Builder of shell builder:-${goRouterState.location}");
              print(
                  "State  path in Builder of shell builder:-  ${goRouterState.path} ");
          return MaterialPage(
              child: ScaffoldWithNavBar(child: child), maintainState: true);
        },
        routes: <RouteBase>[
          /// The first screen to display in the bottom navigation bar.
          GoRoute(
            name: 'a',
            path: '/a',
            builder: (BuildContext, goRouterState) {
              print(
                  "State name in Builder of route:-${goRouterState.name}");
              print(
                  "State location  in Builder of route:-${goRouterState.location}");
              print(
                  "State  path in Builder of route:-  ${goRouterState.path}");
              return Text("a");
            })])
)
]
)
}

```
```
CONSOLE OUTPUT :-
State name in Builder of shell builder:-null
State location  in Builder of shell builder:-/a
State  path in Builder of shell builder:-   
```

```
SUMMARY :-
-> IN OUTPUT ONLY SHELL BUILDER GIVES THE OUTPUT.
-> ROUTE BUILDER DEFINED FOR PATH /a ID NOT GETTING CALLED NOR EXECUTED ON CALLING THAT PARTICULAR PATH.
-> ALSO STATE NAME AND PATH IS NULL AND BLANK SPACE RESPECTIVELY.
```
Repository: TypeScript
Issue: Interface 'MyInterface<T>' incorrectly extends interface - for named tuple type that has '...rest' param
Labels: Bug,Help Wanted

# Bug Report

Error happens only when:
- MyInterface extends type alias which represents named array tuple
- MyInterface is generic
- MyType is NAMED tuple
- MyType has `...rest`

### 🔎 Search Terms

type alias, named tuple, interface

### 🕗 Version & Regression Information

Typescript v4.9.3

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
[Playground link with relevant code](https://www.typescriptlang.org/dev/bug-workbench/?ts=4.9.3#code/C4TwDgpgBAsiAq5oF4oG0CwAoKUB2AhgLYQCMAXAM7ABOAlngOYA02uhJATOfgK5EAjCDVY4oAOkk0I1cgTwg0AXWwqs2BsGEAzAgGNocAJJ4tNXQYA88AHxQIADy14AJpVgIkUAN7YAvthAA)

### 💻 Code

The following code throws that error:
```ts
type MyType = [
  name1:string,
  name2: number,
  ...rest:any[]
]

interface MyInterface<T> extends MyType {
}

// "Interface 'MyInterface<T>' incorrectly extends interface '[name1: string, name2: number, ...rest: any[]]'.
```

All of the following below works fine:
```ts
type MyType = [
  name1:string,
  name2: number,
  ...rest:any[]
]

interface MyInterface extends MyType { //MyInterface is not generic => works
}

// ----------- OR -------------

type MyType = [ // MyType does not have ...rest => works fine
  name1:string,
  name2: number
]

interface MyInterface<T> extends MyType {
}

// ------------ OR ------------
type MyType = [ // MyType typle elements are not named => works fine
  string,
  number,
  ...any[]
]

interface MyInterface<T> extends MyType {
}
```

### 🙁 Actual behavior

TSC throws error:
```
Interface 'MyInterface<T>' incorrectly extends interface '[name1: string, name2: number, ...rest: any[]]'.
```

### 🙂 Expected behavior

Successfull compilation
Repository: godot
Issue: Error when an imported resource references a non-importable dependency (in example a script)
Labels: bug,topic:editor,topic:import

### Godot version

v4.0.beta.custom_build [2f573f211]

### System information

Linux Fedora37 x86_64

### Issue description

When using a GdScript defined EditorImportPlugin to create a GdScript defined Resource the editor prompts this error:
`editor/editor_file_system.cpp:1874 - BUG: File queued for import, but can't be imported, importer for type '' not found.`

This is caused because Godot detects the GdScript resource as a dependency, and tries to "reimport" it, as it does with all other dependencies.

### Steps to reproduce

1. Create a Resource:
```gdscript
extends Resource
class_name MyResource
@export var something:int = 0
```
2. Create a ImportPlugin
```gdscript
@tool
EditorImportPlugin

func _get_importer_name() -> String:
	return "example::my_import_plugin"

func _get_visible_name() -> String:
	return "MyResource Import Plugin"

func _get_preset_count() -> int:
	return 1

func _get_priority() -> float:
	return 1.0

func _get_preset_name(preset_index: int) -> String:
	return "Default"

func _get_import_options(path: String, preset_index: int) -> Array:
	var options:Array[Dictionary] = []
	return options

func _get_option_visibility(path: String, option_name: StringName, options: Dictionary) -> bool:
	return true

func _get_import_order() -> int:
	return 0

var RECOGNIZED_EXTENSIONS: PackedStringArray = ["txt"]
func _get_recognized_extensions() -> PackedStringArray:
	return RECOGNIZED_EXTENSIONS

func _get_resource_type() -> String:
	return "Resource"

func _get_save_extension() -> String:
	return "res"

const COMPOSED_STACK_KEY = &"$"
func _import(source_file: String, save_path: String, options: Dictionary, platform_variants: Array, gen_files: Array) -> int:
	var file = FileAccess.open(source_file, FileAccess.READ)
	if !is_instance_valid(file):
		return FAILED
	var res = MyResource.new()
	
	res.something = file.get_line().to_int()

	var filename = save_path + "." + _get_save_extension()
	print("Request to save file ", filename)
	return ResourceSaver.save(res, filename)
```
3. Register the import plugin
```gdscript
@tool
extends EditorPlugin

var import_plugin
func _enter_tree() -> void:
	import_plugin = load("MyImportPlugin.gd").new()
	add_import_plugin(import_plugin)
	pass


func _exit_tree() -> void:
	if is_instance_valid(import_plugin):
		remove_import_plugin(import_plugin)
		import_plugin.free()
		import_plugin = null
	pass
```
4. Activate the plugin from ProjectSettings window
5. Create a "file.txt" and write a number on it
6. Focus on Godot editor to trigger the reinpoit

### Minimal reproduction project

Will upload latter today
Repository: rust
Issue: Rust suggests to add the parameter in the wrong position if a parameter is missing from a function which contains a closure
Labels: A-diagnostics,T-compiler

```rust
fn main() {
    let v = vec![1, 2, 3];
    v.iter().fold(|blah| {
          
    });    
}
```

The current output is:

```
error[[E0061]](https://doc.rust-lang.org/stable/error-index.html#E0061): this function takes 2 arguments but 1 argument was supplied
 --> src/main.rs:3:14
  |
3 |       v.iter().fold(|blah| {
  |  ______________^^^^-
4 | |           
5 | |     });
  | |______- an argument is missing
  |
note: associated function defined here
help: provide the argument
  |
3 ~     v.iter().fold(|blah| {
4 +           
5 ~     }, /* value */);
  |
```

Ideally the output should: suggest to add the parameter as the first parameter instead of adding it after the closure

[Playground link](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=ef3b280336389082eb4dc5e344ee27b2)