sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: create-react-app
Issue: WebSocket connection to 'ws://localhost:3000/ws' failed:
Labels: needs triage,issue: bug report

Basic React App doesn't work because the websocket connection appears to be hardcoded to port 3000.
Part of this appears to be related to running in a container, but I've discovered additional issues even when running local.

Example project here - https://github.com/Fosol/bug-hot-reload

npm: 7.24.0
yarn: 1.22.5
node: v16.10.0
react-scripts: 5.0.0

I have cleared node_modules and performed all the mentioned steps.

Error message here.

```
WebSocket connection to 'ws://localhost:3000/ws' failed:
```

If I use port `3000` the error disappears, but nothing works.

### Environment

  System:
    OS: Windows 10 10.0.19044
    CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor
  Binaries:
    Node: 16.10.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 7.24.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 96.0.4664.110
    Edge: Spartan (44.19041.1266.0), Chromium (96.0.1054.57)
    Internet Explorer: 11.0.19041.1202
  npmPackages:
    react: 17.0.2 => 17.0.2
    react-dom: 17.0.2 => 17.0.2
    react-scripts: 5.0.0 => 5.0.0
  npmGlobalPackages:
    create-react-app: Not Found

### Steps to reproduce

1. Clone repo - https://github.com/Fosol/bug-hot-reload
2. Run command `docker-compose up -d`
3. Open browser [http://localhost:5000](http://localhost:5000)

### Expected behavior

Application should work and hot reload should work.

### Actual behavior

Application doesn't work and hot reload doesn't work.  Additionally, it requires rebuilding the image to get any changes.  A refresh doesn't work.

### Reproducible demo

Repo here - https://github.com/Fosol/bug-hot-reload
Repository: PowerToys
Issue: Macros/Snippets in PowerToys Run (with ability to execute)
Labels: Idea-Enhancement,Help Wanted,Product-PowerToys Run

### Description of the new feature / enhancement

Add snippet support to PowerToys Run analogous to the [Snippets and Text Expansion feature of Alfred for macOS](https://www.alfredapp.com/help/features/snippets/), e.g. 

`sn <label>`

Would insert user-defined text identified by <label> at the cursor's position. 

### Scenario when this would be used?

This would be used to insert repetitive text anywhere a user does so, for instance:

- Entering an email address in a login form could be reduced from typing the entire email to `<PowerToys Run Shortcut> sn e <enter>`
- Inserting a template for a task
- Inserting a template for a tweet
- etc

The possibilities are limitless 🚀 

### Supporting information

I think the best supporting information is provided by [AlfredApp's help page](https://www.alfredapp.com/help/features/snippets/) on the feature.

**crutkas:** this should be larger and include concepts like search engine launch.  I think we should have some easy pre-defined things like "{browser} https://stackoverflow.com/search?q={0}" so `so foo` would just properly launch
Repository: go
Issue: net/http/pprof: TestDeltaProfile failures missing mutexHog2 on ARM architectures
Labels: NeedsDecision,arch-arm64,arch-arm

```
--- FAIL: TestDeltaProfile (53.30s)
    pprof_test.go:206: want mutexHog2 but no mutexHog1 in the profile, and non-zero p.DurationNanos, got PeriodType: contentions count
        Period: 1
        Time: 2021-12-16 19:51:59.42219359 +1100 AEDT
        Duration: 32.041535781s
        Samples:
        contentions/count delay/nanoseconds
        Locations
        Mappings
        1: 0x0/0x0/0x0   [FN]
    pprof_test.go:214: want both mutexHog1 and mutexHog2 in the profile, got PeriodType: contentions count
        Period: 1
        Time: 2021-12-16 19:51:59.43107526 +1100 AEDT
        Samples:
        contentions/count delay/nanoseconds
                  9   17621016: 1 2 3 
                  1     149081: 1 4 3 
        Locations
             1: 0x851d3 M=1 sync.(*Mutex).Unlock /home/gopher/build/go/src/sync/mutex.go:214 s=0
             2: 0x2d249f M=1 net/http/pprof.mutexHog1 /home/gopher/build/go/src/net/http/pprof/pprof_test.go:107 s=0
             3: 0x2d2937 M=1 net/http/pprof.mutexHog.func1 /home/gopher/build/go/src/net/http/pprof/pprof_test.go:148 s=0
             4: 0x2d24ab M=1 net/http/pprof.mutexHog1 /home/gopher/build/go/src/net/http/pprof/pprof_test.go:108 s=0
        Mappings
        1: 0x0/0x0/0x0   [FN]
FAIL
FAIL	net/http/pprof	57.491s
```

`greplogs --dashboard -md -l -e 'FAIL: TestDeltaProfile ' --since=2021-01-01`

[2021-12-16T00:34:10-7f23145/openbsd-arm-jsing](https://build.golang.org/log/3dc87c9fe6e5f594cf4ab68acd69394507c437e2)
[2021-11-25T00:02:52-b2a5a37/openbsd-arm-jsing](https://build.golang.org/log/b34de17d2240e537661f2e775934483480e6fdd4)
[2021-06-04T17:33:24-831f937/openbsd-arm-jsing](https://build.golang.org/log/9239fcacfff3a9b462fee2d7fefe2cfd190d1b97)

(Forked from #38544, which was mitigated in [CL 229498](https://golang.org/cl/229498).)

CC @4a6f656c @hyangah
Repository: go
Issue: x/playground: Add keyboard shortcut in tooltip for the "Format" button
Labels: NeedsInvestigation,FeatureRequest


### What is the URL of the page with the issue?
 
https://go.dev/play/

 
### Screenshot
 
![image](https://user-images.githubusercontent.com/13508141/146400198-5f2552fc-b08d-46f9-8f37-6e9251945b0d.png)
 
 
### What did you do?
 
Hover the "Format" button with the mouse 
 
 
### What did you expect to see?
 
 The **[ctrl-enter]** keyboard shortcut for Format.
 
Similar to the existing shortcut hint in the Run button tooltip:
![image](https://user-images.githubusercontent.com/13508141/146400159-183d2efc-9744-48c8-b773-eb8800646f15.png) 

### What did you see instead?

Just the caption "Format this code"
Repository: go
Issue: x/playground: Keyboard shortcut for "Share"
Labels: NeedsInvestigation

### What is the URL of the page with the issue?
 
 https://go.dev/play/

 
### Screenshot
 
![image](https://user-images.githubusercontent.com/13508141/146400920-03ed1300-f58a-4d50-a102-0f458d7802c6.png)

 
### What did you do?
 
Hover over the "Share" button with the mouse 
 
### What did you expect to see?
 
The keyboard shortcut for "Share"   (which would be immediately followed by Ctrl-C, Alt-Tab, Ctrl-V, etc.)
 
I acknowledge that this shortcut may not exist yet, and would need to be created.

### What did you see instead?

Just the caption "Share this code"
Repository: flutter
Issue: IME lifecycle not working well in TextField
Labels: a: text input,platform-android,engine,P2,team-android,triaged-android

Hello! I am facing an issue when running my Android keyboard service in my Flutter app (or any Flutter apps), I found several issues opened on TextField but none matched my exact situation so I will try to detail it here:

## Steps to Reproduce
Android version: 9
Debugging an Android IME in any Flutter app, typing words and spaces in a `TextField`

**Expected results:**
The IME should follow a normal lifecycle

**Actual results:**
The IME `onStartInput` is called whenever a space is sent. 

I can try to provide more details if needed! Thanks!!
Repository: pytorch
Issue: Tensor transfer between gpus doesnt work
Labels: needs reproduction,module: cuda,triaged,Stale

### 🐛 Describe the bug

When transferring a tensor from a gpu to another, weights aren't right on the second gpu whereas it works from cpu to gpu and from gpu to cpu.

```python3
a = torch.Tensor([0.6,0.6])
b = a.to("cuda:0")
print(b.to("cuda:1"))
```
Output:
```python3
tensor([0., 0.], device='cuda:1')
```

Expected output
```python3
tensor([0.6, 0.6], device='cuda:1')
```

### Versions

Collecting environment information...
PyTorch version: 1.10.1+cu113
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.3 LTS (x86_64)
GCC version: (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Clang version: Could not collect
CMake version: version 3.16.3
Libc version: glibc-2.31

Python version: 3.8.10 (default, Nov 26 2021, 20:14:08)  [GCC 9.3.0] (64-bit runtime)
Python platform: Linux-5.4.0-89-generic-x86_64-with-glibc2.29
Is CUDA available: True
CUDA runtime version: Could not collect
GPU models and configuration: 
GPU 0: NVIDIA RTX A5000
GPU 1: NVIDIA RTX A5000
GPU 2: NVIDIA RTX A5000
GPU 3: NVIDIA RTX A5000

Nvidia driver version: 495.44
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.3.1
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.3.1
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.3.1
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.3.1
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.3.1
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.3.1
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.3.1
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.17.4
[pip3] torch==1.10.1+cu113
[pip3] torchaudio==0.10.1+cu113
[pip3] torchfile==0.1.0
[pip3] torchvision==0.11.2+cu113
[pip3] torchviz==0.0.2
[conda] Could not collect


cc @ngimel
Repository: vscode
Issue: Swedish keyboard layout is identified as German and this breaks Cmd+Z to undo
Labels: bug,keyboard-layout,web

(extracted from https://github.com/github/feedback/discussions/7683#discussioncomment-1787145)
* on macOS switch keyboard layout to Swedish
* open `vscode.dev` in Chrome
* start typing (the guessed keyboard layout will become `German` in the status bar)
* try to use cmd+z
* observe how the automatic guessing of keyboard layout interferes with `cmd+z`.
* I speculate this is caused because on the German keyboard layout Z and Y are swapped, which changes our default keyboard shortcut for `undo` to be bound to `cmd+[KeyY]`. (notice the ⌘Y / meta+[KeyZ] confusion printed below):

```
[2021-12-10 12:11:50.275] [window] [info] [KeybindingService]: / Received  keydown event - modifiers: [meta], code: MetaLeft, keyCode: 91, key: Meta
[2021-12-10 12:11:50.300] [window] [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: MetaLeft, keyCode: 57 ('Meta')
[2021-12-10 12:11:50.324] [window] [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
[2021-12-10 12:11:50.667] [window] [info] [KeybindingService]: / Received  keydown event - modifiers: [meta], code: KeyZ, keyCode: 90, key: z
[2021-12-10 12:11:50.690] [window] [info] [KeybindingService]: | Converted keydown event - modifiers: [meta], code: KeyZ, keyCode: 56 ('Z')
[2021-12-10 12:11:50.712] [window] [info] [KeybindingService]: | Resolving meta+[KeyZ]
[2021-12-10 12:11:50.735] [window] [info] [KeybindingService]: \ No keybinding entries.
[2021-12-10 12:11:50.758] [window] [trace] KeybindingService#dispatch ⌘Y undefined
[2021-12-10 12:11:51.164] [window] [info] [KeybindingService]: + Storing single modifier for possible chord meta.
[2021-12-10 12:11:51.465] [window] [info] [KeybindingService]: + Clearing single modifier due to 300ms elapsed.
```
Repository: terminal
Issue: [Command Palette] : Keyboard focus is moving on to some hidden item, while navigating via tab key inside Command palette window.
Labels: Issue-Bug,Area-Accessibility,Product-Terminal,Priority-3,HCL-E+D,A11yWCAG,HCL-WindowsTerminal,A11yCO,A11ySev3

### Windows Terminal version

1.12.3472.0

### Windows build number

22509.1011

### Other Software

**Test Environment:** 
OS: Windows 11 Version Dev (OS Build 22509.1011)
App: Windows Terminal Preview

### Steps to reproduce

**Repro steps :** 
1.Open Windows Terminal.
2.Open the 'Command Palette' using 'Ctrl + Shift + P' keys.
3.navigate in the page via tab key & observe the issue.

**User Experience**
Users who rely on keyboard will get impacted here & may feel difficulty in tracking the focused element, if focus moves on to hidden element on navigating in 'Command palette' window.

**Guideline reference**
https://www.w3.org/TR/WCAG21/#focus-order

**Attachment :** 

[Focus is moving on to hidden element in command palette window.zip](https://github.com/microsoft/terminal/files/7729273/Focus.is.moving.on.to.hidden.element.in.command.palette.window.zip)


### Expected Behavior

Keyboard focus should not move on to some hidden item, while navigating via tab key inside Command palette window.
**Expected focus order :** after 'Type a command name' edit, focus should move on to 'First command' & then after pressing tab key focus should land on 'Type a command name' edit', .......

### Actual Behavior

**Actual focus order is :** First focus is landing on 'Type a command name' edit & then after moving on to 'First command' & then on pressing tab key focus is moving on to hidden element'.
-->When 'Settings' tab is open, when focus is on 'Hidden element' - On pressing enter, focus is landing on 'Close/open' navigation button.
-->When 'Windows power shell' is open, when focus is on 'Hidden element'- on pressing enter, focus is landing on 'Power shell'.
Repository: go
Issue: cmd/go: uses of os/exec can trigger fuzz failures when stopping via ^C
Labels: NeedsInvestigation,fuzz

```
$ go version
go version devel go1.18-9d0ca262bb Wed Dec 15 00:33:55 2021 +0000 linux/amd64
$ cat fuzz_test.go 
package main

import (
	"os/exec"
	"testing"
)

func FuzzFoo(f *testing.F) {
	f.Fuzz(func(t *testing.T, n uint64) {
		if _, err := exec.Command("sleep", "30").CombinedOutput(); err != nil {
			t.Fatal(err)
		}
	})
}
$ go test -fuzz=.
warning: starting with empty corpus
fuzz: elapsed: 0s, execs: 0 (0/sec), new interesting: 0 (total: 0)
^Cfuzz: elapsed: 1s, execs: 1 (1/sec), new interesting: 0 (total: 0)
--- FAIL: FuzzFoo (1.21s)
    --- FAIL: FuzzFoo (1.07s)
        fuzz_test.go:11: signal: interrupt
    
    Failing input written to testdata/fuzz/FuzzFoo/3fe7fc020b056d7f28108224509370cb47eb5c199b3fcfd6fea2d67aaa6db9f2
    To re-run:
    go test -run=FuzzFoo/3fe7fc020b056d7f28108224509370cb47eb5c199b3fcfd6fea2d67aaa6db9f2
FAIL
exit status 1
FAIL	test	1.213s
```

In this case, I hit `^C` a.k.a. SIGINT after about one second. I can reproduce this kind of error about 20% of the time; I was able to reproduce with this minimal fuzz func on the fourth try, for instance.

This is a minimal reproducer, using /bin/sleep for the sake of simplicity. My real fuzz func calls a reasonable program that exits within milliseconds. But if I stop the fuzzer just at the right moment with `^C`, I might get a failure that's not really a relevant failure. The code is here: https://github.com/mvdan/sh/blob/4a4c1600341f6413719f5e8a50105b8d13a96d6d/syntax/fuzz_test.go#L82-L94

I don't think my code is to blame here. I could possibly expand my `err != nil` check to ignore `signal: interrupt` errors, but that doesn't seem right either - any use of `os/exec` would need to also be adapted to handle such a case.

I think the solution should come from cmd/go's fuzzing - if the user hits `^C`, any fuzz failures that happen afterwards should be ignored entirely.

cc @katiehockman
Repository: pytorch
Issue: [feature request] Support python decorators in TorchScript
Labels: oncall: jit

### 🚀 The feature, motivation and pitch

Motivating example:
- adding function tracing as decorator or post-factum (i.e. f = addLoggingAspect(f)), this will allow to de-pollute the code of logging calls everywhere even in very short functions
- maybe provide torch's version of functools.wrap that's understood by TorchScript
- maybe provide jit logging decorator

Original discussion: https://github.com/pytorch/vision/issues/4957#issuecomment-977311095, https://github.com/pytorch/vision/pull/4976#issuecomment-991647652

### Alternatives

_No response_

### Additional context

_No response_
Repository: pytorch
Issue: [c10d] have a way to determine two ranks on the same hosts or not
Labels: oncall: distributed,module: c10d

### 🚀 The feature, motivation and pitch

We need to have a way to determine if two ranks on the same hosts or not (on the process group level), as if two hosts in the same pg, although they have different rank, but they might have same default device ids.

This is pretty useful in the case that users are using nccl pgs, user need to set the device before using the collective, if we can determine if process group level that there's overlap in "{host_id}{default device id}", we can error out to the user and suggesting set the device ids properly.

### Alternatives

_No response_

### Additional context

_No response_

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang
Repository: flutter
Issue: Use local webservers for flutter/packages integration tests
Labels: team,package,team-ecosystem,P2,triaged-ecosystem

We have integration tests for at least webview_flutter and video_player that are currently hitting external URLs, which is random test failure waiting to happen (this has already been a problem at least once). ~In the long term we probably need to have the tests run their own local server for some use cases, but for most of them just having a static site~ We should use local web servers so that:
- we can change in-repo,
- we know won't suddenly change out from under us (e.g., removal of a video we are pointing at), and
- won't have unexpected behaviors (like when a Google page we were pointing to started redirecting our tests to a "suspicious activity" page when run from CI)

would solve a lot of potential problems. ~We should be able to do that via GitHub pages running on flutter/plugins~.
Repository: flutter
Issue: How to know whether the screen is in standard or zoomed mode on iOS?
Labels: platform-ios,framework,d: api docs,P3,team-ios,triaged-ios

On iOS, it is possible to put the screen into a zoomed mode. In this mode, all UI elements get scaled up. Also, the Flutter view scales accordingly. 

I wonder whether it is possible to get the current zoom mode (standard or zoomed) of the device in Flutter?
`MediaQuery.of(context).devicePixelRatio` always returns `2.0` on my iOS device, unfortunately.

Knowing the zoom mode would be great for stopping some UI elements from getting too big.
For example, the back button on iOS always keeps the same gap between the arrow and the text. However, without knowledge of the zoom mode in Flutter, it is impossible to reimplement this.


![standard](https://user-images.githubusercontent.com/26022902/146435234-be3173e2-9486-417c-9f02-d39740317715.PNG)
![zoomed](https://user-images.githubusercontent.com/26022902/146435239-1e5ed534-6056-42f5-b4f1-b5a2a444050a.PNG)
Repository: storybook
Issue: Storybook + Next + Netlify
Labels: bug,nextjs,needs triage

<!-- Issuehunt Badges -->
[<img alt="Issuehunt badges" src="https://img.shields.io/badge/IssueHunt-%240%20Funded-%2300A156.svg" />](https://issuehunt.io/r/storybookjs/storybook/issues/17031)
<!-- /Issuehunt Badges -->


**Describe the bug**
I am getting an error when trying a storybook build using the Netlify next plugin

**To Reproduce**
Install a next app, then add storybook. 
Npm install `@netlify/plugin-nextjs`
After it's installed, set up a new site for storybook in Netlify:

build: `next build-storybook` 

output: `storybook-static`

On a CI run you will get this error:

```
2:33:01 PM:   Error: The directory "storybook-static" does not contain a Next.js production build. Perhaps the build command was not run, or you specified the wrong publish directory.
```

**System**
Please paste the results of `npx sb@next info` here.


<!-- Issuehunt content -->

---

<details>
<summary>
<b>IssueHunt Summary</b>
</summary>


### Backers (Total: $0.00)



#### [Become a backer now!](https://issuehunt.io/r/storybookjs/storybook/issues/17031)
#### [Or submit a pull request to get the deposits!](https://issuehunt.io/r/storybookjs/storybook/issues/17031)
### Tips

- Checkout the [Issuehunt explorer](https://issuehunt.io/r/storybookjs/storybook/) to discover more funded issues.
- Need some help from other developers? [Add your repositories](https://issuehunt.io/r/new) on IssueHunt to raise funds.
</details>
<!-- /Issuehunt content-->
Repository: flutter
Issue: [camera] Use background method channel on iOS
Labels: team,platform-ios,p: camera,package,P3,team-ios,triaged-ios

Camera plugin maintains a dispatch_queue to manually dispatched all the method channel calls to the background thread: 
https://github.com/flutter/plugins/blob/master/packages/camera/camera/ios/Classes/CameraPlugin.m#L1354-L1366
This introduce additional thread hops. It is also error-prone. See: https://github.com/flutter/flutter/issues/59124 and description in https://github.com/flutter/plugins/pull/4619

We should migrate this plugin to use the background method channel introduced in https://github.com/flutter/engine/pull/29665, which was unfortunately reverted in https://github.com/flutter/engine/pull/30289

Once a similar solution lands in engine, the camera plugin should utilize it so it doesn't need to maintain its own queue. 

blocked by https://github.com/flutter/flutter/issues/95426

CC @gaaclarke @hellohuanlin
Repository: vscode
Issue: Extending Unicode highlight to language mixture highlight
Labels: feature-request,unicode-highlight

<!-- ⚠️⚠️ 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. -->
Unicode highlight feature is great if one uses only ASCII characters. I'd like to suggest a more general and natural feature: highlight any mixture of languages in strings. 

Cyrillic letter 'о' is wrong in word 'w**о**rk' as well as ASCII character 'o' in word 'м**o**локо'.

So it would be great to have highlighting of any characters that are of different language in any characters sequence without separators and special symbols.
Repository: godot
Issue: Exported enum - inspector selection breaks when enum is updated to contain additional values
Labels: topic:core,topic:gdscript,usability

### Godot version

3.4.stable

### System information

Windows 7 64 bit

### Issue description

Creating enums with auto-assigned integer values ends up as a bad experience when exporting them for editing in the inspector, and you need to later update them. I could have 100s of instances of an object I made but I need to add a new enum value, and this ends up breaking all of my object instances because the actual assigned values of the enums changed.

If I'm using this syntax, that means I don't want to be concerned with the actual value of the enum, I only care that the enum name matches before the interpreter comes in to replace with an integer value.
```
enum SOME_ENUM {
    APPLE,
    PEAR,
    PEACH
}
```

But since the inspector seems to care about the integer value, not the enum name, you can end up with a mismatch of state if you add new values to the enum.

### Steps to reproduce

```
enum SOME_ENUM {
    APPLE,
    PEAR,
    PEACH
}

export(SOME_ENUM) var enum_selection
```

In the inspector, select PEACH for "Enum Selection".

Update SOME_ENUM to contain a value that comes before PEACH, such as:

```
enum SOME_ENUM {
    APPLE,
    GRAPE,
    PEAR,
    PEACH
}
```

Now "Enum Selection" will say "PEAR" instead of "PEACH".

I'm assuming this is because Godot stores the integer value for the enum, since the integer values are auto assigned in this case, the values increment.

### Minimal reproduction project

_No response_