sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: terminal
Issue: Pause command in a batch file is sometimes skipped if it is preceded by a choice command
Labels: Area-Input,Issue-Bug,Area-TerminalControl,Product-Terminal,Priority-3

### Windows Terminal version (or Windows build number)

1.8.1032.0

### Other Software

_No response_

### Steps to reproduce

Execute this batch file repeatedly in the terminal:
``` bat
@echo off & setlocal

choice /m "The illusion of choice"

pause
```

### Expected Behavior

After pressing y or n to answer the choice, execution should be paused until another key is pressed

### Actual Behavior

Sometimes the pause command is skipped. "Press any key to continue . . ." is printed, but execution of the batch file is immediately continued, which in this case means it ends because EOL is reached.

This gif shows the behavior. Notice how the first run of the batch pauses until the up arrow key is pressed, but on the second run the pause is skipped and the batch file terminates as soon as y is pressed to answer the choice:
![SkipPause](https://user-images.githubusercontent.com/31589520/116212464-23cab000-a745-11eb-8b26-31667652dbda.gif)
Repository: vscode
Issue: Workspace Trust - Workspace file save location very slow to be added to workspace trust
Labels: bug,workspace-trust

Testing #122233

When I followed the test plan's instruction for saving the workspace file, I got a notification about file create provider that sat there for maybe a minute or two. I had the workspace trust manager open at the same time, and it took over a minute before the new folder to show up in the trust manager.
Repository: go
Issue: x/website: https://golang.org/dl/?mode=json&include=all to https://golang.org/dl/releases.json
Labels: NeedsInvestigation,website

The releases json file is used by a bunch of tools like [rules_go](https://github.pie.apple.com/bazel-mirror/rules_go/blob/da0f36c7a249be313dbb2e000f529f11921f4846/go/private/sdk.bzl#L70-L74) to get a list of go releases.

The current URL works fine for many cases, but trips up mirror sites, for example if you use Artifactory to cache the URL it won't refresh the cache as it doesn't understand the URL format.

Given the comments in the original issue (https://github.com/golang/go/issues/23746#issuecomment-364175718):

>@bradfitz - sounds great, I'll get around to this during the weekend. Any thoughts on the releases.json URL? Could probably just be /releases

>I don't care much. We use ?mode=json for build.golang.org/?mode=json though.

Would it be acceptable to provide this at an alternate URL like the originally proposed https://golang.org/dl/releases.json? Probably makes sense to mirror both the `include=all` and the normal releases (see https://github.com/golang/go/issues/29380).

This would also make things like `curl -O` work more nicely (as the downloaded name would be `releases-all.json` rather than `?mode=json&include=all`.

Proposal:

| Existing                                     | Mirror                                  |
| ---                                          | ---                                     |
| https://golang.org/dl/?mode=json             | https://golang.org/dl/releases.json     |
| https://golang.org/dl/?mode=json&include=all | https://golang.org/dl/releases-all.json |
Repository: vscode
Issue: Workspace Trust - Installing extension in untrusted workspace should make it clearer that the extension is disabled
Labels: bug,workspace-trust

Testing #122228

1. Have an untrusted workspace
2. Install eslint extension
3. Dialog shows up, click on install

The extensions view shows ESlint as installed and enabled. Picture
Only if I click on show me installed extensions it appears as disabled.

I see two issues here:
1. We need to render extension as disabled even in the marketplace search view @sandy081 
2. Maybe rename "Install" button to be "Install Disabled"

Without the above two this experience is very confusing.

![Screenshot 2021-04-27 at 12 16 51](https://user-images.githubusercontent.com/1926584/116225733-79f22000-a752-11eb-8e27-9b1240a0b2be.png)
Repository: pytorch
Issue: about torch install
Labels: triaged

Hello, I installed version 1.5, but an error will be reported when running, please help me.
![image](https://user-images.githubusercontent.com/43515926/116229377-fef82c00-a788-11eb-9541-d6e6ce8fb342.png)
Repository: youtube-dl
Issue: TokenTube.net
Labels: site-support-request


## Checklist

- [X] I'm reporting a new site support request
- [X] I've verified that I'm running youtube-dl version **2021.04.26**
- [X] I've checked that all provided URLs are alive and playable in a browser
- [X] I've checked that none of provided URLs violate any copyrights
- [X] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://tokentube.net/v/1027699294/Talvisodan-ja-jatkosodan-salattu-historia
- Live video: https://tokentube.net/l/1721467775/Poikkeusolot-p%C3%A4%C3%A4ttyv%C3%A4t-27-4-2021
- Image: https://tokentube.net/i/1283828589/SENSUROINTI-ON-TY%C3%96KALU
- Audio: https://tokentube.net/a/3171873082/AUDIO--25-4-2021-Yazkan-vieraana-el%C3%A4inkommunikoija-Maiccu-Kostiainen


## Description

No need to have credentials.

This is a recent website for alternative viewpoints mostly in Finnish language.
Repository: vscode
Issue: Select cell selecting its menu
Labels: bug,notebook-celltoolbar

Testing #122254

* open a GHI issue notebook
* select the first code cell
* open the cell overflow menu of the second cell
* :bug: the first cell is still selected
Repository: vscode
Issue: Show Line Numbers should be in View menu
Labels: under-discussion,notebook-cell-editor

Testing #122254

<img width="501" alt="Screenshot 2021-04-27 at 14 26 55" src="https://user-images.githubusercontent.com/1794099/116240932-b0389b00-a764-11eb-839e-9071bd04a154.png">

IMO we are quite verbose in placing the "Show Notebook/Cell Line Number". I suggest to remove the "global" toggle command from the editor menu and move it into the global "View"-menu. Then it would be in the same place as "render whitespace" and "render control characters" etc. Tho, it leaves the question why are we having this for notebooks but not for text editors
Repository: godot
Issue: `CSGPolygon` in path mode scales do not work correctly
Labels: bug,topic:core,topic:3d

**Godot version:**
3.3

**OS/device including version:**
Windows 10 (19042.928)

**Issue description:**
The question is how to scale a path based `CSGPolygon`. We tried both scaling the path and `CSGPolygon` and neither resulted in stable scales. I kind of expected that, but the question still is how to scale it properly. But, the scale changes randomly when switching scenes.

https://user-images.githubusercontent.com/14185889/116242227-022df080-a766-11eb-93af-0afe1c93c6aa.mp4



**Steps to reproduce:**
1. Open the project
2. Scale the Path node up
3. Create a new scene
4. Switch back
5. Scale path node down

**Minimal reproduction project:**
[CSG Path.zip](https://github.com/godotengine/godot/files/6384446/CSG.Path.zip)
Repository: opencv
Issue: Opencv demosaicing function differ for cpu and gpu implementations
Labels: category: imgproc,category: gpu/cuda (contrib)

The **cv::demosaicing()** method and **cv::cuda::demosaicing()** methods return different results especially for BayerBG input. 
The end result upon pixel to pixel comparison differ by order of pow(10,9) along each channel.

Interestingly the difference along the channels reduce to the order of pow(10,5) when the channel are flipped for one of the results and compared.
The issue existed in older _3.4.8_ and _3.4.14_ as well.
Repository: youtube-dl
Issue: Tell whether youtube-dl is applicable for self-upgrading
Labels: request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.04.26. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar feature requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [X] I'm reporting a feature request
- [X] I've verified that I'm running youtube-dl version **2021.04.26**
- [ ] I've searched the bugtracker for similar feature requests including closed ones - I did my best, but there are lots of issues containing the word "upgrade"


## Description
I was asked in https://github.com/r-darwish/topgrade/issues/174 to upgrade youtube-dl. While youtube-dl will not upgrade itself if installed by a package manager, I do not wish to show such message to a user that installed it via a package manager. It will be useful to have a flag (or show this information in `--version`) to show whether this installation of youtube-dl can be self-upgraded.
<!--
Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->

WRITE DESCRIPTION HERE
Repository: go
Issue: x/mobile: building for iOS Simulator, but linking in object file built for iOS, for architecture arm64.
Labels: NeedsInvestigation,mobile

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.16.2 darwin/amd64
</pre>

### Does this issue reproduce with the latest release?

yes

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN="/Users/x/go/bin"
GOCACHE="/Users/x/Library/Caches/go-build"
GOENV="/Users/x/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/x/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/x/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.2"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/x/gcloud/src/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/z7/33jzmkp96sqdpll82cb2ddph0000gn/T/go-build452940234=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?

gomobile bind -target=ios golang.org/x/mobile/example/bind/hello

### What did you expect to see?

Framework binaries with multiple platforms are not supported anymore. 

gomobile bind should generate a universal xcframework

### What did you see instead?

<pre>
In /Users/x/gcloud/src/example/bind/ios/Hello.framework/Hello(000005.o), building for iOS Simulator, but linking in object file (/Users/x/gcloud/src/example/bind/ios/Hello.framework/Hello(000005.o)) built for iOS, for architecture arm64.
</pre>

We are supposed to use an xcframework instead

<pre>
file Hello.framework/Versions/A/Hello
Hello.framework/Versions/A/Hello: Mach-O universal binary with 2 architectures: [x86_64:current ar archive random library] [arm64]
Hello.framework/Versions/A/Hello (for architecture x86_64):	current ar archive random library
Hello.framework/Versions/A/Hello (for architecture arm64):	current ar archive random library
</pre>
Repository: flutter
Issue: Add the ability to edit margin on a PaginatedDataTable
Labels: c: new feature,framework,f: material design,c: proposal,team-design,triaged-design

## Use case

PaginatedDataTable is rendered inside of a Card widget. The Card widget has some default margin attached to it which can be edited, however PaginatedDataTable does not allow this.

## Proposal

Add an argument for margin to PaginatedDataTable.
Repository: pytorch
Issue: Attempting to concatenate scalar tensors throws a runtime error
Labels: triaged,module: numpy

## 🐛 Bug

Subclassing `torch.Tensor` results in unexpected behavior and crashes without warning when attempting to use `torch.cat` on the tensor object.

## To Reproduce

Run the code below:

```
import torch

class TestTensor(torch.Tensor):
    @staticmethod
    def __new__(
        cls,
        x,
        *args,
        **kwargs,
    ) -> torch.Tensor:
        return super().__new__(cls, x, *args, **kwargs)

test_tensors = [torch.nn.Parameter(TestTensor(torch.randn(1,3,4,4)))] * 2
test_list = [x.mean() for x in test_tensors]

# This line crashes the Colab Instance without any error messages or warnings.
# Displays zero dim RuntimeError on Windows
out = test_tensors[torch.argmax(torch.cat(test_list))]
```

```
# This line gives the proper error message on windows, but not on Google Colab
# On Colab, it appears to work with no crashes or warnings.
# Displays zero dim RuntimeError on Windows
t = torch.cat([torch.tensor([5.1]), torch.tensor([0.1])])
```

## Expected behavior

I am not entirely sure what the expected behavior should be, but crashing without warning is probably not it. The behavior on Colab is also different than on Windows, which makes it more confusing.

This error message should probably be displayed instead of crashing without any warning:

```
RuntimeError: zero-dimensional tensor (at position 0) cannot be concatenated
```

Or something else should be happening.


## Environment

PyTorch version: 1.8.1+cu101
Is debug build: False
CUDA used to build PyTorch: 10.1
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.5 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
CMake version: version 3.12.0

Python version: 3.7 (64-bit runtime)
Is CUDA available: False
CUDA runtime version: 11.0.221
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.0.4
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.0.4
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.0.4
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.0.4
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.0.4
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.0.4
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.0.4
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.19.5
[pip3] torch==1.8.1+cu101
[pip3] torchsummary==1.5.1
[pip3] torchtext==0.9.1
[pip3] torchvision==0.9.1+cu101
[conda] Could not collect

## Additional context

This was a really confusing issue to deal with in my own code.


cc @mruberry @rgommers @heitorschueroff
Repository: rust
Issue: Too strict inferencing conflicting implementations with generic associate types
Labels: A-associated-items,C-bug,T-types,A-coherence

I tried this code:

```rust
trait MyTrait {
    type Value;
}
struct S<T: MyTrait>(T::Value);
// Form 1
impl<T: MyTrait<Value = i32>> From<T::Value> for S<T> {
    fn from(x: T::Value) -> Self {
        Self(x)
    }
}
// Form 2
impl<T: MyTrait<Value = i32>> From<i32> for S<T>
{
    fn from(x: i32) -> Self {
        Self(x)
    }
}
```

I expected to see this happen: 
**Both** form 1 or form 2 compiles. Because form 1 and form 2 are basically the same.

Instead, this happened: 
**Only** form 2 compiles. The compiler fails to infer that `T::Value` is the same as `i32` where `T: MyTrait<Value = i32>>`.
```log
error[E0119]: conflicting implementations of trait `std::convert::From<S<_>>` for type `S<_>`
 --> src/main.rs:5:1
  |
5 | impl<T: MyTrait<Value = i32>> From<T::Value> for S<T> {
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: conflicting implementation in crate `core`:
          - impl<T> From<T> for T;

```
### Meta
`rustc --version --verbose`:
```
rustc 1.53.0-nightly (5a4ab2645 2021-04-18)
binary: rustc
commit-hash: 5a4ab26459a1ccf17ef5bb4c841d3ae5517b2890
commit-date: 2021-04-18
host: x86_64-unknown-linux-gnu
release: 1.53.0-nightly
LLVM version: 12.0.0
```
Repository: node
Issue: Pause on uncaught exceptions stops at wrong position with ES modules
Labels: inspector,esm

<!--
Thank you for reporting an issue.

This issue tracker is for bugs and issues found within Node.js core.
If you require more general support please file an issue on our help
repo. https://github.com/nodejs/help


Please fill in as much of the template below as you're able.

Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or output of `"$([Environment]::OSVersion | ForEach-Object VersionString) $(if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" })"` in PowerShell console (Windows)
Subsystem: if known, please specify affected core module name
-->

* **Version**: 16.0.0
* **Platform**: Win 10 x64
* **Subsystem**: inspector

### What steps will reproduce the bug?

[Here's a repo](https://github.com/connor4312/node-38439) with an easy reproduction:

1. Open the repo in VS Code (or you can use another tool/any debugger)
2. In the debug view (play button on the left hand side):
    - Check the `[x] Uncaught Exceptions` box in the breakpoints view.
    - Select "No Bug" and hit the play button. This runs `no-bug/index.js`.
3. The debugger pauses at the location of the `throw`
4. Now select "Repro Bug", and hit the play button. This runs `bug/index.js`: the same code in an ES module.
5. The debugger pauses inside internal Node.js module code:

![](https://memes.peet.io/img/21-04-ecbbe8a0-6b4b-4351-af85-ac411674bf0f.png)

Under the hood this is just calling `Debugger.setPauseOnExceptions({ state: 'uncaught' })`, so it should be reproducable with any tool. In both cases this leads to a `Debugger.pause`, with the latter in the wrong location.

I'm guessing there's some inspector ✨magic that happens with commonjs that isn't happening for ES modules.

### How often does it reproduce? Is there a required condition?

100%

### What is the expected behavior?

In both cases, the debugger should pause on the `throw`

### What do you see instead?

In ES modules, it pauses in module_job.js.

### Additional information

This was originally reported in https://github.com/microsoft/vscode/issues/122246
Repository: PowerToys
Issue: New feature: use key to constrain mouse movement only in one axis (horizontally or vertically)
Labels: Idea-New PowerToy

### Provide a description of the new feature / enhancement

**What is the expected behaviour of the proposed feature?**
While pressing a predefined key (the pad arrows for example) as well as clicking the left button of the mouse, the mouse arrow movement gets constrained into only one axis. Horizontally  when pressing right key for example and vertically when pressing the up key.

**What is the scenario this would be used?**
![image](https://user-images.githubusercontent.com/79017894/116276197-94dd8800-a784-11eb-9426-86a8364b4de1.png)
Highlighting a screen capture.
Using paint.
Any other situation where you want to make a straight movement of the mouse cursor.
Repository: neovim
Issue: rpcrequest blocks nvim_echo
Labels: bug,channels-rpc

<!-- Before reporting: search existing issues and check the FAQ. -->

- `nvim --version`: v0.5.0-dev+1268-g02909d150
- `vim -u DEFAULTS` (version: ) behaves differently? N/A
- Operating system/version: CentOS 7
- Terminal name/version: xfce4-terminal 0.8.7.4
- `$TERM`: tmux-256color

### Steps to reproduce using `nvim -u NORC`

These steps can be done in a REPL for a language of your choosing:
1. Open Neovim and identify the unix domain socket (`v:servername`)
2. From the REPL, open a new connection to the socket.
3. Find the channel for the connection. If it's not obvious from `nvim_list_chans` on its own, from the REPL call `nvim_set_client_info` to set a unique name, and then in Neovim look for the channel with a client with that name.
4. From Neovim, `:call rpcrequest(<channel>, "blockme")`
5. From the REPL, read the message from the unix domain socket to identify the message id for the request.
6. Send an `nvim_echo` command.
7. Confirm that Neovim successfully received it by reading the response from the socket.
8. Observe that no output appeared on screen.
9. Send a response with the same message id.
10. Observe that Neovim now unlocks and the message is echoed.

### Actual behaviour
No output appeared until after `rpcrequest` returned.

### Expected behaviour
Output should appear immediately after being echoed.

Note: `nvim_eval` with `input("prompt")` successfully displays the prompt during an `rpcrequest`.
Repository: pytorch
Issue: `typing.List` need to be on the same line as the variable declaration?
Labels: oncall: jit

## 🐛 Bug

`typing.List` need to be on the same line as the variable declaration?

## To Reproduce

```
# this works
values: typing.List[torch.Tensor] = ....

# this doesn't work
values: typing.List[
  torch.Tensor
] = ....
```
cc: @nikithamalgifb 

cc @gmagogsfm
Repository: youtube-dl
Issue: Is it possible to get the playlist indexes in reverse?
Labels: question

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## 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

<!--
Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient.
-->

I'm trying to keep a vimeo playlist locally backed up as it uploads, and I would like to use the playlist_index property in my output to name and order them.

However, due to the way the author uploads the videos (or maybe its a general thing with vimeo), the newest videos get the first playlist_index, and the oldest's index keeps increasing. Is it possible to make youtube-dl export a reverse ordering?
Repository: flutter
Issue: Documentation: Include import statement in every class definition document 
Labels: framework,d: api docs,a: quality,P3,team-framework,triaged-framework

Part of the documentation in most of the language websites that I have seen in the past
have included an "import" (flutter term) statement to enable the user to include the class in their application.  

This seems to be an important piece of information, just as much as methods and properties.

Now I have a new class in my application and I do not know how to import it into my
application.  I am sure there is a way to find out where it is located, but a simple one 
line statement in the class documentation would make it so much simpler.