sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Edit a script in the editor not emit signal "changed" 
Labels: bug,topic:core,topic:editor

**Godot version:**
Godot Engine v3.2.4.beta4.official

**OS/device including version:**
Windows 10/ MacOS


**Issue description:**
I want to detect a script is changed via editor to handle a custom save action to save only changed scripts.
I working on a unit test api and it needs to save all changed resources before run.

For now i use a workaround to save all opend files over the menu action.
```gdscript
	var script_editor :ScriptEditor = _editor_interface.get_script_editor()
	script_editor._menu_option(EDITOR_ACTIONS.FILE_SAVE_ALL)
```
And I want to print out which file is saved, i do this for now by:
```gdscript
	var script_editor :ScriptEditor = _editor_interface.get_script_editor()
	for open_script in script_editor.get_open_scripts():
		prints("Save %s" % open_script.resource_path)
```
But it contains all opened files.
So i try to register for "changed" signal to collect a set of changed files form the editor.
```gdscript
func register_for_script_changes():
	var script_editor :ScriptEditor = get_editor_interface().get_script_editor()
	script_editor.connect("editor_script_changed", self, "_editor_script_changed")

func _editor_script_changed(script :Script):
	prints("editor script changed to: %s" % script.resource_path)
	
	if not script.is_connected("changed", self, "_changed"):
		script.connect("changed", self, "_changed", [script])
		script.connect("script_changed", self, "_script_changed", [script])		

func _changed(script) :
	prints("_changed", script)

func _script_changed(script) :
	prints("_script_changed", script)
```
But no signal `changed` or `script_changed` is emited



**Steps to reproduce:**
- open the attached example project
- open the example files to have one or more opend in the editor
- edit a file
No "changed" signal is emited 


**Minimal reproduction project:**
[plugin-edit-script.zip](https://github.com/godotengine/godot/files/6254343/plugin-edit-script.zip)
Repository: node
Issue: fs: add support for async iterators to `fs.writeFile`
Labels: question,fs

<!--
Thank you for suggesting an idea to make Node.js better.

Please fill in as much of the template below as you're able.
-->

> After this lands, does it make sense to add this to the regular fs version as well (not just fs/promises)?
https://github.com/nodejs/node/pull/37490#issuecomment-797787975

I'm curious too, so I made it an issue.
If necessary, I would like to handle it.
Repository: pytorch
Issue: endpoint=False for torch.linspace and torch.logspace
Labels: triaged,enhancement,module: numpy,module: tensor creation

## 🚀 Feature

endpoint=False for torch.linspace and torch.logspace

## Motivation

numpy supports optional endpoint=False. torch should also support this option.

## Pitch

This makes it easier to port numpy code to torch.

## Alternatives

Kludge the option yourself.

cc @mruberry @rgommers @heitorschueroff @gchanan
Repository: yt-dlp
Issue: [Feature Request] Merge fragments while the download is ongoing for aria2c
Labels: enhancement,core:downloader

Can yt-dlp download part file with aria2c as external downloader for DASH(mpd) and HLS(m3u8)? 

I want to know if it possible to download a part file with **aria2c** so that I can watch the downloading video file like the ```--hls-use-mpegts``` feature.
Repository: vscode
Issue: Inconsistent tildification in recently opened
Labels: bug,label-provider

![image](https://user-images.githubusercontent.com/323878/113515241-295b1e80-9528-11eb-8974-6fd542bf3b02.png)

I think these should all have tilde
Repository: flutter
Issue: [proposal] provide a way to set padding between ToggleButtons's children
Labels: c: new feature,framework,f: material design,c: proposal,team-design,triaged-design



## Use case

There can be a possibility that we want space in between of toggle buttons.
Example,

![toggle button](https://user-images.githubusercontent.com/77614066/113515568-e6826080-9592-11eb-9030-cd44f5780abe.png)

**This can be a use-case where we want to separate it like this.**


## Proposal
We can have some property in the ToggleButtons class itself. 
(flutter/packages/flutter/lib/src/material/toggle_buttons.dart)
Repository: pytorch
Issue: Feature Request: Add a rounding mode to round
Labels: triaged,module: numpy,function request

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->
Round may sometime ceil or floor if the tensor value is xxx.5, while the expected behavior of round for these values is to always ceil.

## To Reproduce

Steps to reproduce the behavior:

1. Declare a tensor with value 6.5 and 3.5
2. Apply torch.round to both
3. Observe results

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
```
Python 3.9.2 (default, Mar 28 2021, 10:41:45) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch.__version__)
1.8.1+cu102
>>> torch.round(torch.tensor([6.5]))
tensor([6.])
>>> torch.round(torch.tensor([3.5]))
tensor([4.])
```

## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->
Round should always ceil if there is a value at xxx.5.

## Environment

```
Collecting environment information...
PyTorch version: 1.8.1+cu102
Is debug build: False
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.2 LTS (x86_64)
GCC version: (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Clang version: Could not collect
CMake version: Could not collect

Python version: 3.9 (64-bit runtime)
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.20.1
[pip3] torch==1.8.1
[pip3] torchvision==0.9.1
[conda] Could not collect
```

## Additional context

Tested on WSL2.


cc @mruberry @rgommers @heitorschueroff
Repository: excalidraw
Issue: Styling issue when using the background picker in mobile mode
Labels: bug,package:excalidraw

This gif recorded from the codesandbox demo demonstrates the issue. On the website, the problem is prevented by the language picker.

<img src="https://user-images.githubusercontent.com/17577332/113519528-1890c400-958d-11eb-9d41-9bf71e0a9915.gif" height="400">
Repository: flutter
Issue: [tool_crash] HttpException
Labels: c: crash,tool,P2,team-tool,triaged-tool

## Command
```
flutter drive
```

## Steps to Reproduce
1. Create emulator with API Level 16 (same behavior on 17 and 18 too)
2. Run application which has a plugin as dependency (`adhara_socket_io` in my case)
3. Hot restart fails to connect to service protocol (`Error connecting to the service protocol: failed to connect to http://127.0.0.1:58740/`)
4. `flutter clean` and `flutter run` with disabled service auth code fails to connect to service protocol (`Error connecting to the service protocol: failed to connect to http://127.0.0.1:58740/`)
5. flutter drive failed with logs as below

## Logs
HttpException
```
Oops; flutter has exited unexpectedly: "HttpException: Connection closed before full header was received, uri = http://127.0.0.1:58845/ws".
```
```
[✓] Flutter (Channel stable, 2.0.3, on macOS 11.2.3 20D91 darwin-x64, locale en-US)
    • Flutter version 2.0.3 at /Users/rohit/Applications/flutter
    • Framework revision 4d7946a68d (2 weeks ago), 2021-03-18 17:24:33 -0700
    • Engine revision 3459eb2436
    • Dart version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/rohit/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/rohit/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] Connected device (3 available)
    • emulator-5554 (mobile) • emulator-5554 • android-x86    • Android 4.1.2 (API 16) (emulator)
    • macOS (desktop)        • macos         • darwin-x64     • macOS 11.2.3 20D91 darwin-x64
    • Chrome (web)           • chrome        • web-javascript • Google Chrome 89.0.4389.114
    ! Error: Rohit’s iPhone is not connected. Xcode will continue when Rohit’s iPhone is connected. (code -13)

• No issues found!

```

## Flutter Application Metadata
**Type**: app
**Version**: 1.0.0
**Material**: true
**Android X**: false
**Module**: false
**Plugin**: false
**Android package**: null
**iOS bundle identifier**: null
**Creation channel**: stable
**Creation framework version**: 9b2d32b605630f28625709ebd9d78ab3016b2bf6
### Plugins
flutter_socket_io
Repository: rust
Issue: rustdoc: Suggest a correct disambiguator if the link is otherwise correct
Labels: T-rustdoc,E-hard,A-diagnostics,A-intra-doc-links

Given the following code:
```rust
//! [nod@x]
//! [f@foo]
mod x {}

fn foo() {}
macro_rules! foo {
  () => {}
}
```

The current output is:

```
warning: unknown disambiguator `nod`
 --> unknown-disambiguator.rs:1:6
  |
1 | //! [nod@x]
  |      ^^^
  |
  = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default

warning: unknown disambiguator `f`
 --> unknown-disambiguator.rs:2:6
  |
2 | //! [f@foo]
  |      ^
```

<!-- The following is not always necessary. -->
Ideally the output should look like:

```
warning: unknown disambiguator `nod`
 --> unknown-disambiguator.rs:1:6
  |
1 | //! [nod@x]
  |      ^^^
  |
  = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
  = help: remove the disambiguator: `[x]`

warning: unknown disambiguator `f`
 --> unknown-disambiguator.rs:2:6
  |
2 | //! [f@foo]
  |      ^
  = help: link to the function: `[foo()]`
  = help: link to the macro: `[foo!()]`
```

This will be tricky because right now resolving links is intermingled with emitting warnings, there's no way to say "will this link resolve".

cc @lopopolo, #83859
Repository: vscode
Issue: Enable Emmet abbreviations in `.js` files for CSS-in-JS (object syntax)
Labels: feature-request,emmet

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
According to the creator of Emmet this (see title) is already possible with Emmet itself but he's not sure how one would enable it in VS Code. See his post here: https://github.com/emmetio/emmet/issues/512#issuecomment-813089268.

How can I set [this](https://github.com/emmetio/emmet/blob/51757fc77ee2477c2e2cc6abeff44e64c8a85eec/src/config.ts#L257) to `true` in VS Code? As far as I can tell VS Code doesn't provide a way to set these "Stylesheet options" that you'll find in the `emmet/src/config.ts` file.

Here's what I'm trying to do: https://stackoverflow.com/questions/66945043/emmet-use-css-abbreviations-in-vs-code-for-css-in-js-object-syntax

If setting Emmet's `"stylesheet.json"` to `true` is not currently possible in VS Code is this a feature that could be added? I envision that it would be available in the list of Emmet options in the VS Code `settings.json`.

Thank you so much for taking a look! I've scoured the docs but please let me know if this is already possible and I just missed it somehow.
Repository: rust
Issue: Duplicate error when impl associated type is not well-formed
Labels: A-diagnostics,A-trait-system,A-associated-items,T-compiler,C-bug,D-verbose

The following code:

```rust
struct AssertCopy<T: Copy>(T);

trait Foo {
    type Assoc;
    fn my_method() -> Self::Assoc;
}

impl Foo for bool {
    type Assoc = AssertCopy<String>;
    fn my_method() -> Self::Assoc {
        panic!();
    }
}
```

produces the following two errors:

```
error[E0277]: the trait bound `String: Copy` is not satisfied
 --> src/lib.rs:9:5
  |
1 | struct AssertCopy<T: Copy>(T);
  |                      ---- required by this bound in `AssertCopy`
...
9 |     type Assoc = AssertCopy<String>;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `String`

error[E0277]: the trait bound `String: Copy` is not satisfied
  --> src/lib.rs:10:23
   |
1  | struct AssertCopy<T: Copy>(T);
   |                      ---- required by this bound in `AssertCopy`
...
10 |     fn my_method() -> Self::Assoc {
   |                       ^^^^^^^^^^^ the trait `Copy` is not implemented for `String`
```

Only the first error is useful - the second error occurs because we're trying to use the 'malformed' associated type. This can be especially bad when proc-macros are involved, since the span of the return type might not be meaningful. See https://github.com/rust-lang/rust/issues/83383

We should suppress the second error.
Repository: puppeteer
Issue: Switch profile on Chrome
Labels: feature,confirmed

**Tell us about your environment:**

* Puppeteer version: 8.0.0
* Platform / OS version: Windows 10
* URLs (if applicable):
* Node.js version: 14.15.1

**What steps will reproduce the problem?**

I just saw this issue that help me to select the default profile when I launch it with Puppeteer : https://github.com/puppeteer/puppeteer/issues/2099
But I still have an issue to switch profile.
As I read it, it select the Default directory when I send a path so it works with Default profile but if I send "Profile 1" to force it to switch. It doesn't work.

Any idea ?

**This is my code :** 
> 

    const browser = await puppeteer.launch({
            executablePath: "... .exe",
            headless: false,
            args: [
                '--user-data-dir=C:\\Users\\xxx\\AppData\\Local\\xxx\\xxx\\User Data\\Profile 1'
            ],
    });
Repository: TypeScript
Issue: Expect to use @throws in lib/*.d.ts to mark which methods may throw err 
Labels: Suggestion,Awaiting More Feedback,Domain: JSDoc

# Suggestion

<!--
  Please fill in each section completely. Thank you!
-->
Use `@throws` to mark the corresponding error on the method in the .d.ts file in the lib directory

## 🔍 Search Terms

`@throws` `jsdoc` `comments`

## ✅ Viability Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

Use `@throws` to mark the corresponding error on the method in the .d.ts file in the lib directory

## 📃 Motivating Example

```diff
/**
 * Converts a JavaScript Object Notation (JSON) string into an object.
 * @param text A valid JSON string.
 * @param reviver A function that transforms the results. This function is called for each member of the object.
+* @throws {SyntaxError} if the string to parse is not valid JSON. 
 * If a member contains nested objects, the nested objects are transformed before the parent object is.
 */
 parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
```

## 💻 Use Cases

want to be able to write code when you know that you need to beware of these unpredictable behavior
Repository: pytorch
Issue: [feature] `torch.polygamma` : Support Tensor for argument `n`
Labels: triaged,function request,module: special

We should be able to specify different `n` for each element of the input similar to `scipy.special.polygamma`.

https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.polygamma.html

cc @mruberry
Repository: create-react-app
Issue: In react build, avoiding file name clash in the generated assets
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

<!--
  Provide a clear and concise description of what the problem is.
  For example, "I'm always frustrated when..."
-->

When we build assets in reactjs using the. command `react build` the generated assets are like this: `2.ef2371b4.chunk.js`. Where `ef37..` is the hash of the file. Given that  `hash codes` can clash, there is a possibility for the browser to render the old assets for certain parts of the code when deploying release 2 from release 1.

### Describe the solution you'd like

<!--
  Provide a clear and concise description of what you want to happen.
-->

Can we expose configuration where the `hashcode` can be replaced with the `current time in millis`  -- a monotonically increasing number.  In this case there is no chance for the hash code to clash
Repository: rust
Issue: Private supertraits are not callable on concrete types
Labels: A-trait-system,A-visibility,T-lang,T-compiler,C-bug

```rust
pub mod foo {
    pub trait Foo: sealed::Bar {
        fn foo(&self) {}
    }
    mod sealed {
        pub trait Bar {
            fn bar(&self) {}
        }
    }
    impl Foo for u32 {}
    impl sealed::Bar for u32 {}
}


fn meow_dyn(f: &dyn foo::Foo) {
    f.foo();
    f.bar();
}

fn meow_static(f: impl foo::Foo) {
    f.foo();
    f.bar();
}

fn meow_u32(f: u32) {
    use foo::Foo;
    // use crate::foo::sealed::Bar;
    // ^ doesn't work because it is private
    f.foo();
    f.bar(); // Why does this error now?
}


fn main() {
    meow_static(42);
    meow_dyn(&42);
}
```
```
error[E0599]: no method named `bar` found for type `u32` in the current scope
  --> src/main.rs:30:7
   |
30 |     f.bar(); // Why does this error now?
   |       ^^^ method not found in `u32`
   |
   = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
   |
1  | use crate::foo::sealed::Bar;
   |
```
![playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=879393576cf236cd81613efe8be51363)

I am reporting this because I believe this is a bug.

Both `meow_dyn` and `meow_static` type check, but calling `.bar()` on a concrete type is currently not possible. Is there a reason for that?

I would expect any of those two cases:

1. `meow_u32` should actually type check, and `.bar()` should be callable if `Foo` is visible, because `Bar` is a supertrait.
2. `Bar` should not be usable in any other context, because the trait is private.

I could not find any information about this in the reference.
Repository: flutter
Issue: Emoji's bottom pixels are cut off on iOS in certain layouts
Labels: platform-ios,framework,engine,f: scrolling,a: typography,has reproducible steps,P2,found in release: 2.0,found in release: 2.1,team-ios,triaged-ios

I have a layout where each item in a SliverList have a leading widget (an avatar in my case) and a body section, and the body section has a header with a name, then a RichText message underneath that can include emojis. If an emoji is on the last line of that RichText, and we're on iOS, the bottom section of that emoji is cut off.

It also seems like the cutting off happens on a _second_ render, i.e. if I'm debugging and I hit save, the emoji is fully rendered, then scrolling on clicking a button cuts it off again. You can also see the flicker on the GIF below when I click on the button.

## Steps to Reproduce

I have reproduced the issue in a very minimal example repo: https://github.com/matehat/flutter-emoji-issue

![CleanShot 2021-04-05 at 08 33 49](https://user-images.githubusercontent.com/1283/113574589-6982d580-95ea-11eb-886d-96c4af539a4f.gif)


**Expected results:** Full emoji is rendered

**Actual results:** Emoji's bottom part is cut off.

<details>
  <summary>Logs</summary>

No particular logs is printed

```
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.4, on macOS 11.2.3 20D91 darwin-x64, locale fr-CA)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.55.0)
[✓] Connected device (2 available)
    ! Error: iPhone a Mate is not connected. Xcode will continue when iPhone a Mate is connected. (code -13)

• No issues found!
```

</details>
Repository: rust
Issue: Incorrect 'unused extern crate warning' with `extern crate alloc`
Labels: A-lints,T-compiler,C-bug,A-edition-2018

I tried this code:

```rust
#![no_std]
#![feature(vec_spare_capacity)]
extern crate alloc;
```

I expected to see this happen: No warning, because removing the extern crate gives an error:

```
error[E0635]: unknown feature `vec_spare_capacity`
 --> tmp.rs:2:12
  |
2 | #![feature(vec_spare_capacity)]
  |            ^^^^^^^^^^^^^^^^^^
```

Instead, this happened:
```
error: unused extern crate
 --> tmp.rs:2:1
  |
2 | extern crate alloc;
  | ^^^^^^^^^^^^^^^^^^^ help: remove it
  |
  = note: requested on the command line with `-D unused-extern-crates`
```

I think either the lint shouldn't fire or the compiler should somehow know the available feature gates ahead of time.

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.53.0-nightly (138fd56cf 2021-04-02)
binary: rustc
commit-hash: 138fd56cf9598b4bf016634c768dca128a83a5d7
commit-date: 2021-04-02
host: x86_64-unknown-linux-gnu
release: 1.53.0-nightly
LLVM version: 12.0.0
```

cc https://github.com/rust-lang/stdarch/pull/1108
Repository: PowerToys
Issue: 💻 Option to run ColorPickerUI (or other modules) via command line
Labels: Idea-Enhancement,Area-Runner,Product-Color Picker

Hi guys,

Firstly, I would like to start by saying great work developing this great suite of tools/toys. Have been hunting for a decent cross-app colour picker, with a decent UI for years and ColorPickerUI is the best I have come across by far!

The rest of the apps are definitely useful, not suggesting that for a second - however for me personally (given the other apps/utils/scripts I put together over the years), ColorPickerUI is the main/only one I use... I would like to hook into my existing tool/script-set and wondered if there was a way to do this please (e.g. command line to invoke ColorPickerUI, that works even if PowerToys isn't running)?

Again, like I say - not trying to take away from what you guys have built as it's great!.. Just trying to consolidate/integrate parts of PowerToys into my existing config.

Cheers,
Martin 👍