sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: `Request for nonexistent InputMap action` then getting custom Input action from a plugin
Labels: discussion,topic:editor,documentation,topic:plugin

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
since `3.2.4rc4`
(`3.2.4rc3` and `3.2.3` work without errors)

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Linux

**Issue description:**
<!-- What happened, and what was expected. -->
```gdscript
tool
extends EditorPlugin

func _input(event):
	if event is InputEventMouseButton:
		print(Input.is_action_just_pressed("click"))
```
When activating this plugin and clicking  anywhere (the 'click' action is on Mouse Left click), I get the error:
```
Request for nonexistent InputMap action 'click'.
```

**Steps to reproduce:**
1. Create a project
2. Add new `Input Map` action, name it "click" and bind Mouse Left button on it.
3. Create a plugin with the code above.
4. Ensure the plugin is enabled (reactivate if needed)
5. Click somewhere
As you can see the error is printed in `Output`


**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
Repository: rust
Issue: rustc book should document the ABIs rustc supports
Labels: T-lang,T-compiler,C-bug

I am learning Rust. While reading the Rust reference, I learned about the interesting "ABI" feature, where `extern "anystring"` before a function or `{ }` bare block containing functions will declare functions using a special ABI other than "Rust". However I found a problem, which is that there was no list of ABI strings. The reference has a partial list of ABIs but it is incomplete and does not clarify on what platforms those ABI strings are supported.

I created an [issue about this on the Reference repo](https://github.com/rust-lang/reference/issues/975) and after some discussion my opinion, as well as what I perceive to be the consensus in that issue thread, is that the most appropriate place to document the ABI strings would be the rustc book. (There are some ABIs [already documented in the reference](https://doc.rust-lang.org/stable/reference/items/external-blocks.html#abi) which *are* appropriate for callout in the reference— three ABIs "Rust" "C" "system" which all implementations are required to implement, and several defined ABIs that "system" is guaranteed to alias to— but other than those language-reference-required ABIs, which ABI strings are supported and what they do are implementation-defined. As rustc is an implementation [**the** implementation] this means that the complete list should be documented by rustc.)

However if I look in the [rustc book and search the book for the word "abi"](https://doc.rust-lang.org/stable/rustc/index.html?search=abi), I find no discussion of the ABI strings.

Apparently people who need this information currently are [consulting the Rust source directly](https://github.com/rust-lang/rust/blob/b593389edbaa9ea0c90f0ed419283842f534e50a/compiler/rustc_target/src/spec/abi.rs#L60-L92), but I feel strongly the source is not an adequate replacement for documentation as it is difficult to find, difficult to read, and contains no details about where the ABIs are available or what they do.

My **"expected behavior"** is that there should be a section defining the full list of rustc's supported ABI strings in the [rustc book](https://doc.rust-lang.org/stable/rustc), probably a top-level section or a subsection under section 6. For each ABI, this section should list:

* What does the ABI do?
* On what platforms and ISAs (x86_32 Windows, x86_64 Windows, Mac, etc) is the ABI available?
* Is the ABI legal on function items or only extern blocks? (For example it was explained to me in the Rust reference issue that ABI "rust-intrinsic" is only allowed on extern blocks.)
* Is support for the ABI stable or unstable? (The Rust reference does not document unstable language features because it is paired with [an entire separate book documenting the unstable features](https://doc.rust-lang.org/nightly/unstable-book/), but the rustc book does not have this kind of split and has nowhere else documentation for the unstable features could go.)
Repository: pytorch
Issue: enable parallel test execution for GPU tests
Labels: module: ci,module: tests,triaged

> * one pytest feature of interest for developers is running tests in parallel, but our tests are not safe to run in parallel: can we do something to improve that situation?

I just looked into `--run-parallel` the last few days.  I had started a draft PR to do the work of using it, but it quickly demonstrated that this feature wasn't ready.  But there are at least some good commits in there that get us closer if someone was curious #53426.

I did an initial perf study of just test_autograd.py.  It shows that adding parallelism for CPU tests is not helpful, probably because the CPU is itself the compute device so you're not really enabling better resource utilization.  GPU test performance, on the other hand, improved quite well.  But that would mean perhaps adding a GPU-specific `--run-parallel-gpu` option.  But this also implies a better separation of the CPU and GPU tests.

CPU | sec
-- | --
1 | (missing, sorry)
2 | 253
4 | 225
8 | 251
16 | 250
32 | 233
64 | 234

GPU | sec 
-- | --
1 | 2572
2 | 1385
4 | 745

_Originally posted by @jeffdaily in https://github.com/pytorch/pytorch/issues/52984#issuecomment-797019766_

cc @ezyang @seemethere @malfet @walterddr @lg20987 @pytorch/pytorch-dev-infra @mruberry @VitalyFedyunin
Repository: vscode
Issue: Please provide a function in API to get horizontal pixel coordinate of any character in any line.
Labels: feature-request

<!-- ⚠️⚠️ 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. -->
[NEW UPDATE]:
My VS Code extension "<a href='https://marketplace.visualstudio.com/items?itemName=leodevbro.blockman'>Blockman</a>" has already more than 100K installs.


This **feature request** (With VS Code extension API to be able to get horizontal pixel coordinate of any character in any line) **is still valid**, because there are some edge cases when Blockman cannot compute edges properly, for example when the font in not monospace, or when there are <a href="https://code.visualstudio.com/docs/typescript/typescript-editing#_inlay-hints">inlay hints</a>.
<br />
[THE FEATURE REQUEST]:
The problem is about non-monospace fonts (or using two monospace fonts which have different widths).
I don't have access to pixel locations of characters, so I can only just compute px location from width of general char frame and number of characters to that character. So the problem shows up if not all the characters have the same frame-width:
![blocks-problem-fonts](https://user-images.githubusercontent.com/54504880/111186736-bca9cf80-85cc-11eb-95f5-3f8ab1c656fe.png)

Please provide a function to be able to get pixel locations of any character in a line. I don't need vertical px locations, I need only horizontal px locations.

Like this:
![blocks-problem-fonts-know-px222](https://user-images.githubusercontent.com/54504880/111186970-fb3f8a00-85cc-11eb-8208-942e15b7d73b.png)
Repository: excalidraw
Issue: Feature: Support to disable scroll & zoom 
Labels: package:excalidraw

It would be a cool feature to support disabling scroll and zoom for some specific use cases. Specific use cases in mind are annotating over some images, charts, diagrams, etc. For these cases, we need to disable scroll and zoom to preserve the drawing layout relative to the item we are annotating.
Repository: TypeScript
Issue: Unused variable highlighting and Go To Definition mixes types and variables of the same name
Labels: Bug

TS 4.2.2 and 4.3.0-dev20210314
```ts
type baseline = any;
const baseline = null;

type foo = any;
const foo = null;
type ref = foo;

type bar = any;
const bar = null;
bar;
```
<img width="204" alt="Code_2021-03-15_18-11-34" src="https://user-images.githubusercontent.com/30108880/111193099-181e9200-85ba-11eb-81f0-58f3b090eaa2.png">


Expected const foo and type bar to be greyed out
Repository: vscode
Issue: Use a content hash for dirty write protection instead of checking only the size (risk of data loss)
Labels: feature-request,file-io,keep

I'm trying to understand this code and its extensive comment:

https://github.com/microsoft/vscode/blob/83b6cdc610703902055aa42984869ff46227126b/src/vs/platform/files/common/fileService.ts#L400-L418

Try the following:
1. Open an existing text file in VS Code.
2. Make an obvious change to it (e.g. insert a line of additional text)  but do not save the dirty file.
3. Open the same file in another editor (I used Notepad).
4. In that editor make a change that doesn't alter the file's length (e.g. replace a lowercase letter with an uppercase one). Save this change.
5. Back in VS Code, save the change you made in step 2.
6. :bug: No dirty write warning appears. Instead the change made in step 4 is lost.


Version: 1.55.0-insider (user setup)
Commit: 84fe402d655e029eb1a5c04e675bf64788fa7fcf
Date: 2021-03-15T05:14:29.836Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19042
Repository: TypeScript
Issue: Add a specific error message for disallowed imports in project references?
Labels: Suggestion,Needs Proposal

# Suggestion

## 🔍 Search Terms

project reference back import

## ✅ 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

After introducing project references to a monolith repo with many developers, I've sometimes seen confusion over people writing imports from projects in the incorrect direction: e.g. if project B has a tsconfig reference to project A, trying to import from B in A. ♻️ 

https://github.com/JoshuaKGoldberg/ts-repro-back-reference-import

Here's an example error message that says what's _technically_ wrong but doesn't give much context:

```
src/a/index.ts:1:19 - error TS6307: File '---/src/b/index.ts' is not listed within the file list of project '---/src/a/tsconfig.json'. Projects must list all files or use an 'include' pattern.

1 import { b } from "../b";
                    ~~~~~~
```

## 📃 Motivating Example

Adding a specific error for these incorrect direction ("back") imports might help folks new to project references understand what they're doing wrong:

```
src/a/index.ts:1:19 - error TS6307: File '---/src/b/index.ts' is not listed within the file list of project '---/src/a/tsconfig.json'. Projects must list all files or use an 'include' pattern.

  File "---/b/index.ts" is included in "---/b/tsconfig.json", but "---/a/tsconfig.json" does not list a reference to "---/b/tsconfig.json".

1 import { b } from "../b";
                    ~~~~~~
```


## 💻 Use Cases

https://github.com/JoshuaKGoldberg/ts-repro-back-reference-import
Repository: pytorch
Issue: Support scatter/gather for NCCL backend
Labels: triaged,module: c10d

## Support scatter() and gather() for NCCL Backend
Since we've landed prototype support for nccl send/recv into PyTorch 1.8, it would be good to consider supporting the gather() API and scatter() API using send/recv, since nccl does not support these natively. 

## Motivation
This will enable these APIs for NCCL backend and provide parity with the gloo backend.

## Pitch

Implement gather() by having each rank send() their tensor to the rank that tensors are being gathered on, and that rank can simply wait to recv() those tensors. And we can essentially do the opposite of this to implement scatter().
Repository: pytorch
Issue: [FR] Configurable gain value for kaiming_normal_ / kaiming_uniform_ in torch.nn.init
Labels: module: nn,triaged,enhancement,module: initialization

## 🚀 Feature
Support fully-configurable gain values within `kaiming_normal_` / `kaiming_uniform_`.

## Motivation
The current implementations of [`kaiming_normal_`](https://github.com/pytorch/pytorch/blob/65087dd1d4c1e503281cd676e5563e9e64b2a926/torch/nn/init.py#L385) and [`kaiming_uniform_`](https://github.com/pytorch/pytorch/blob/65087dd1d4c1e503281cd676e5563e9e64b2a926/torch/nn/init.py#L350) rely on `calculate_gain()` to obtain the gain value used in init. 

In some cases (e.g. https://github.com/pytorch/pytorch/pull/53694), values outside of the defaults in `calculate_gain()` may be desired. To sidestep debates over the correct defaults, the gain value should be fully configurable by the user.

## Pitch

Deprecate the old `nonlinearity` arg and replace it with a `gain` arg. Shown below for `kaiming_normal_`, but the same would apply to `kaiming_uniform_` as well.

Old:
```python
import torch

linear = torch.nn.Linear(10, 5)

# Default gain value for specified nonlinearity is always used.
torch.nn.init.kaiming_normal_(linear.weight, nonlinearity='relu')
```

New:
```python
import torch

linear = torch.nn.Linear(10, 5)

# Use default gain value for specified nonlinearity.
torch.nn.init.kaiming_normal_(linear.weight, gain=torch.nn.init.calculate_gain('relu'))

# Use non-default gain value.
torch.nn.init.kaiming_normal_(linear.weight, gain=0.5)
```

## Alternatives

Leave as-is, requiring one of two workarounds:
1. If the desired gain value is the default for some nonlinearity, the user can use it by specifying that nonlinearity (e.g. with `nonlinearity='linear'`) when calling the init function. This workaround does not apply if the desired gain value is different from the defaults for all nonlinearities.
2. Re-implement the `kaiming_normal_` or `kaiming_uniform_` function with a different gain value

## Additional context

The [`xavier_normal_`](https://github.com/pytorch/pytorch/blob/65087dd1d4c1e503281cd676e5563e9e64b2a926/torch/nn/init.py#L314) and [`xavier_uniform_`](https://github.com/pytorch/pytorch/blob/65087dd1d4c1e503281cd676e5563e9e64b2a926/torch/nn/init.py#L287) functions in `torch.nn.init` already allow for fully configurable gain values.

cc @albanD @mruberry @jbschlosser
Repository: godot
Issue: NoiseTexture has always the same value for top left corner
Labels: bug,topic:core,confirmed

**Godot version:**
v3.2.3.stable.official


**OS/device including version:**
Linux Ubuntu 20.10 - NVIDIA Corporation TU117M / GeForce GTX 1650/PCIe/SSE2

**Issue description:**
When creating a NoiseTexture without seamless, the top left of the texture is always the same value.


**Steps to reproduce:**
Create a TextureRect
Add a new NoiseTexture
(to test it is easier with the following settings but they are not mandatory)
Change the flags to remove FILTER
Use a low period (0.1)
Zoom on the top left pixel of the texture
Change the seed multiple times, the top left pixel stays the same


**Minimal reproduction project:**
[test.zip](https://github.com/godotengine/godot/files/6144632/test.zip)
Repository: flutter
Issue: [web] Customize path of index.html and/or web directory.
Labels: c: new feature,tool,platform-web,c: proposal,P3,team-web,triaged-web

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

I am running multiple flutter apps in the same repo by specifying the main.dart file
```
flutter build web -t lib/appOne/appOne.dart
flutter build web -t lib/appTwo/appTwo.dart
```
These apps share quite a bit of code, which is why I was doing it this way. So this works great. Now the issue is, I was using the flutter-web splashscreen trick of editing the HTML file so that the user does not have to wait for the app to load to see something. Now that I have multiple apps, it would be nice to specify the HTML file name on run or build. This way I can have separate splash screens per app.

I have not found too much information about what I am trying to do. I think for now I will create three separate html files and just copy them into index.html using a script before running or building.

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

## Proposal

Be able to specify an optional html file path when building or running a flutter-web app.
```
flutter build web -t lib/appOne/appOne.dart --htmlPath web/appOne.html
```

I have not yet dove into flutters source code to see how/if this could be possible yet but I will do so soon.

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: youtube-dl
Issue: How can i download thumbnails in png/jpg format? 
Labels: question




## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones


## Question

Hello, I try to download the **thumbnails** files in png/jpg format but they are always downloaded by default in webp format.
I'm inserting this code in cmd:

`youtube-dl --write-thumbnail [URL playlist]
`

The files are downloaded directly to the computer in **webp** format

I tried to add -f:

`youtube-dl -f --write-thumbnail [URL playlist]
`
But it still wouldn't let me choose the format I wanted.

I know there's an commend called:

`--write-all-thumbnails 
`
But I don't understand why you can't choose to download in jpg/png format
At the end of the day, it's the same quality.

**For example:**
https://i.ytimg.com/vi_webp/HOYDj769s6k/maxresdefault.webp

https://i.ytimg.com/vi/HOYDj769s6k/maxresdefault.jpg

**It's the same picture with a different extension.**

I've seen a [report ](https://github.com/ytdl-org/youtube-dl/pull/25717) on it before and it's closed, but I didn't understand the solution.

**Can someone explain to me where I'm wrong?**
Repository: TypeScript
Issue: Cannot construct optional tuple elements from spreading 0-1 length Array literals
Labels: Bug

[Playground Link](https://www.typescriptlang.org/play?ts=4.3.0-dev.20210315&ssl=4&ssc=32&pln=4&pc=1#code/CYUwxgNghgTiAEEQBd4CNYC54G0DOyMAlgHYDmANPCQK4C2aIMA-ALoDcAsAFCiSwIkqAGYB7UdjTikUEl24YY8ALy4ARGqoA6HTgCMrDj0Ur1m+Dq0AKMaPjNcB7DlYBKDkA)

TS 4.0.5, 4.2.2 and 4.3.0-dev20210314

```ts
declare let bar: [string, number?];
declare let foo: boolean;
bar = ["", ...[]];
bar = ["", ...[1]];
bar = ["", ...(foo ? [1]: [])];
```
```
Type '[string, ...never[]]' is not assignable to type '[string, (number | undefined)?]'.
  Target allows only 2 element(s) but source may have more.(2322)

Type '[string, ...number[]]' is not assignable to type '[string, (number | undefined)?]'.
  Target allows only 2 element(s) but source may have more.(2322)

Type '[string, ...number[]]' is not assignable to type '[string, (number | undefined)?]'.(2322)
```
Unexpected Errors
Expected `...[]` to have no effect when recipient is tuple
Expected `...[1]` to resolve into `number` when recipient is tuple
Expected `(foo ? [1]: [])` to resolve into a union of the above when recipient is tuple
Repository: electron
Issue: Screen readers do not recognize modal windows as dialogs
Labels: bug :beetle:,platform/all,a11y,10-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Electron Version

10.3.2

### What operating system are you using?

Other (specify below)

### Operating System Version

All

### What arch are you using?

Other (specify below)

### Last Known Working Electron version

None

### Expected Behavior

When a browser window is opened as a modal to the primary renderer window, I would expect screen readers, such as NVDA or Voiceover, to say something like "Title dialog First element button".

For example, if I click the All Categories... menu item in Microsoft Outlook, screen readers will announce "Color Categories dialog To assign... Important checkbox not checked ". Here, "Color Categories" is the title bar, "To assign..." is the first descriptive element, and "Important checkbox not checked" is the element that receives focus first.

Another example: if I select "Define New Bullet..." in Microsoft Word, screen readers will announce "Define New Bullet dialog Bullet character Preview OK button". Here, "Define New Bullet" is the title bar, "Bullet character" and "Preview" are top-level elements, and "OK" is the default dialog dismissal button.

### Actual Behavior

When a browser window is opened as a modal to the primary renderer window, a screen reader says something like "Title document" with no other context or indication of the window's content. First focused element is unknown (maybe the window itself?).

### Testcase Gist URL

_No response_

Occurs on all platforms and architectures. Yet another rehash of #19676 and #22973.
Repository: pytorch
Issue: Web support?
Labels: feature,triaged,module: language binding

## 🚀 Feature
Runtime for running Pytorch models on web

## Motivation
Websites are still cornerstones of the internet. Unlike mobile applications, websites do not need to be installed, there are no restrictions from gatekeepers such as google or apple and overall it would have a very positive effect on the spread of smart applications.

## Pitch
I would to have a pytorch alternative of Tensorflowjs

## Alternatives
Tensorflowjs

## Additional context
I think that it does not need to be written in javascript, maybe just runtime executed in the webassembly would be sufficient