sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: x/tools/gopls: 'rename' in noncanonical std module causes breakage
Labels: gopls,Tools

@dr2chase reports that, while working with two clones of the goroot repo, initiating a rename in a clone that does not hold the std module used by the go command on gopls's PATH causes gopls to fail to accurately discover the set of references that need updating, and thus render the package non-compiling. It does print a bunch of warnings (to a log that the user can't see).

```
$ goroot1=$HOME/goroot
$ goroot2=$HOME/goroot2
$ cd $goroot1
$ git log -1 | grep ^commit
commit 9411075748e305d0b31372cab48bc4ca2dd745fb
$ gopls version | head -n 1
golang.org/x/tools/gopls v0.11.0
$ $goroot1/bin/go version
go version devel go1.21-9411075748 Mon Jan 23 18:00:36 2023 +0000 darwin/arm64

$ PATH=$goroot1/bin:$PATH gopls references $goroot1/src/fmt/scan.go:#5137  # fmt.Scanln
goroot1/src/encoding/gob/example_encdec_test.go:35:16-23
goroot1/src/fmt/example_test.go:52:17-24
goroot1/src/fmt/scan.go:106:9-16
goroot1/src/fmt/scan.go:70:9-16
goroot1/src/fmt/scan_test.go:543:21-28
goroot1/src/fmt/scan_test.go:762:12-19
goroot1/src/fmt/scan_test.go:789:12-19
goroot1/src/fmt/scan_test.go:800:11-18
```
Now let's change the go command (and thus its notion of the std module) to goroot2 but continue to work on files in goroot1. Observe that only intra-package references are reported, along with a slew of warnings. Nonetheless it's a success:
```
$ PATH=$goroot2/bin:$PATH gopls references $goroot1/src/fmt/scan.go:#5137
2023/01/23 13:20:32 Error:2023/01/23 13:20:32 tidy: diagnosing file:///Users/adonovan/w/goroot/src/cmd/go.mod: err: exit status 1: stderr: cmd/addr2line: ambiguous import: found package cmd/addr2line in multiple modules:
        cmd (/Users/adonovan/w/goroot/src/cmd/addr2line)
         (/Users/adonovan/w/goroot2/src/cmd/addr2line)
cmd/api: ambiguous import: found package cmd/api in multiple modules:
...ad nauseam...
$goroot1/src/fmt/scan.go:106:9-16
$goroot1/src/fmt/scan.go:70:9-16
$ echo $?
0
```

Now we attempt the same thing with a rename (fmt.Scanln -> fmt.SCANLN). Operations on files of the std module associated with the go command on the PATH work just fine:
```
$ PATH=$goroot1/bin:$PATH gopls rename -w $goroot1/src/fmt/scan.go:#5137 SCANLN
/Users/adonovan/w/goroot/src/encoding/gob/example_encdec_test.go
/Users/adonovan/w/goroot/src/fmt/example_test.go
/Users/adonovan/w/goroot/src/fmt/scan.go
/Users/adonovan/w/goroot/src/fmt/scan_test.go
$ echo $?
0
```

But when we rename files in a copy of the std module different from that used by the go command on the path, only intra-package references are renamed:
```
$ PATH=$goroot2/bin:$PATH gopls rename -w $goroot1/src/fmt/scan.go:#5137 SCANNL
... lots of warnings ...
/Users/adonovan/w/goroot/src/fmt/scan.go
$ echo $?
0
```
Thus leaving the rest of that std module in a broken state. Still the operation is a success.

gopls should try harder to avoid beginning a rename that might mess things up, possibly by promoting those warnings into errors.
Repository: flutter
Issue: [plugins] ☂️ Swift migration for 1P plugins
Labels: platform-ios,package,P3,team-ios,triaged-ios

# Motivation 

Here is just a few benefits of doing so: 

- Null safety baked into the language
- Many new features in Swift like tuples and structs
- More and more system APIs only support Swift
- More and more iOS developers/contributors only know Swift (or prefer Swift)

For more details, please refer to [Swift migration design doc](https://docs.google.com/document/d/1XsaulkJA6_ZSpM7chkQLhQY25sQqhEMiqHMYzw8H85o/edit?resourcekey=0-_cUjF1c0iBvRLKfV-3gK5A)

# Instruction

1. IMPORTANT: Read the [Swift migration section](https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#swift-migration-for-1p-plugins) of the wiki

2. Pick a plugin that you are interested in: 

- [x] [quick_actions](https://github.com/flutter/flutter/issues/108750)
- [x] [ios_platform_images](https://github.com/flutter/flutter/issues/119101)
- [x] [url_launcher](https://github.com/flutter/flutter/issues/119102)
- [x] file_selector
- [ ] [google_sign_in](https://github.com/flutter/flutter/issues/119103) 
- [ ] [local_auth](https://github.com/flutter/flutter/issues/119104)
- [ ] [video_player](https://github.com/flutter/flutter/issues/119105)
- [ ] [in_app_purchase](https://github.com/flutter/flutter/issues/119106)
- [ ] [image_picker](https://github.com/flutter/flutter/issues/119107)
- [ ] [google_maps_flutter](https://github.com/flutter/flutter/issues/119108)
- [ ] [camera](https://github.com/flutter/flutter/issues/119109)
- [ ] [webview_flutter](https://github.com/flutter/flutter/issues/119110)

Note: 
- The above list is ordered by plugin size. 
- `path_provider` and `shared_preferences` is already done by reusing existing macOS implementation
Repository: vscode
Issue: "Change All Occurrences" cursors get out of sync if one is moved with mouse
Labels: bug,editor-multicursor

Type: <b>Bug</b>

1. highlight a word that occurs more than once
2. right click and choose "Change All Occurrences"
3. use mouse to move cursor to middle of the originally highlit word
4. backspace
5. note that subsequent occurrence(s) (still fully selected) are deleted, while the originally highlit word has only one character removed... cursors are out of sync.

Note that using the arrow keys to move the cursor works fine.

VS Code version: Code 1.74.3 (97dec172d3256f8ca4bfb2143f3f76b503ca0534, 2023-01-09T16:57:40.428Z)
OS version: Linux x64 5.4.0-137-generic
Modes:
Sandboxed: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|AMD FX(tm)-6300 Six-Core Processor (6 x 2283)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: disabled_software<br>video_encode: disabled_software<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|0, 1, 1|
|Memory (System)|15.66GB (2.69GB free)|
|Process Argv|--crash-reporter-id 7cb55e1b-6123-47df-b07a-27b702a85622|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|mate|
|XDG_CURRENT_DESKTOP|MATE|
|XDG_SESSION_DESKTOP|mate|
|XDG_SESSION_TYPE|x11|
</details><details><summary>Extensions (5)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-emacs|hir|0.1.1
cpptools|ms-|1.13.9
cargo|pan|0.2.3
rust-analyzer|rus|0.3.1377
debug|web|0.26.1


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vscaat:30438848
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
vsccc:30610678
pyindex848cf:30577861
nodejswelcome1cf:30587006
3biah626:30602489
89544117:30613380
fim-prod:30623723

```

</details>

<!-- generated by issue reporter -->
Repository: PowerToys
Issue: Additional method of moving window to zone in FancyZones
Labels: Needs-Triage

### Description of the new feature / enhancement

I would love to see a user configurable hotkey that when pressed displays the available zones, at which point the user can then type in the desired zone number & press Enter to select a specific zone.  IE: I press Win+W to display the zones in the current template, then type 12 and press enter to select zone 12, and my active window gets moved to that zone.

As a corollary to this, having different zone numbers applied to each monitor would be good as well.  (IE: Using the sample 3 vertical zones template, you would have zones 1-3 on monitor 1, and zones 4-6 on monitor 2).

### Scenario when this would be used?

There are many times where I want to quickly move a window to a specific location on the screen using my keyboard, and having to use the Win+arrow keys to move the window from zone 1 to 2 to 3 to 4 to 5, etcetera is annoying.

### Supporting information

This is something I currently do using an old (and now abandoned) shareware tool called [GridMove](https://www.dcmembers.com/jgpaiva/).
The "zones" layout I use with that has 41 distinct zones per monitor, and I use it with a triple monitor setup (meaning I have 123 total zones that I routinely use).  (See [here](https://www.donationcoder.com/forum/index.php?topic=9387.msg152529#msg152529) for my Gridmove template if that would be helpful).
Repository: godot
Issue: RichTextLabel word breaking rules are wrong when a hyphen is used to create composed words in [fill] alignment
Labels: bug,topic:gui

### Godot version

4.0 beta 14

### System information

Linux 64 bits (Manjaro)

### Issue description

When using a `[fill][/fill]` tags in RichTextLabel, if a word is composed using an hyphen (-), the second part of the word is separated with a space where it should stick to the first part.
![Hyphen Bug](https://user-images.githubusercontent.com/102065761/214120000-6723a677-48ef-45c9-a94a-188ed58c805c.png)
In my screenshot, both red-circled words should be "one word without space". Screenshot language is French, but the same happens in any language.

The solution would be to consider both parts of the composed word to be "linked" and the whole thing should be considered as a single word. But in the case of breaking the word (if the RichTextLabel is not wide enough), the second part should indeed be put on the next line.

### Steps to reproduce

- Add a RichTextLabel in the scene.
- Provide a long enough text with some composed words (using hyphens) between `[fill][/fill]` bbcode tags.

### Minimal reproduction project

N/A
Repository: pytorch
Issue: Enable OnDemand for Open Source CI 
Labels: triaged

### 🚀 The feature, motivation and pitch

### A Common Scenario
You submit PR to PyTorch and and a test fails on a CI machine that is significantly different from your local coding environment. 

Instead of using `with-ssh` you can quickly fire up a github codespaces or other OnDemand instance that has your code checked out and you are free to debug without the time limit.

### Alternatives

An alternative solution is to tag the failing pull request with the label `with-ssh`. This will allow a user to ssh into the CI machine and gives the user 2 hours (I think more time can be requested) to try and debug the error.  This is far better than nothing but for non vim users and general UX it can be hard to complete the required debug work.

### Additional context

Besides debugging purposes this could also be very helpful for first time contributors. Having a ready made environment that has been streamlined for PyTorch development.
Repository: stable-diffusion-webui
Issue: [Feature Request]: CPU training for embedding. 
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

The ability to train embeddings on cpu

### Proposed workflow

The option under training to use CPU just as you can in dreambooth 


### Additional information

Yes it takes ages to train dreambooth on CPU so I'm sure training embeddings would as well. 

But for those of us with 4GB of VRAM it enables us to do it even if we have to leave it running for 12 hours.

So from my perspective  CPU training would be a great addition.
Repository: vscode
Issue: Source control buttons should not shift after calculating errors/problems
Labels: ux,scm,under-discussion

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.74.3
- OS Version: Windows 10 and macOS Ventura

**Problem:**
When clicking a file in the source control, the buttons to stage, revert, etc., will shift after vscode calculates problems in the file. This has lead to misclicking buttons that were not intended to be clicked.

**Steps to Reproduce:**
1. The best way I can explain this is to see the following clip:

![CleanShot 2023-01-23 at 15 59 58](https://user-images.githubusercontent.com/2053960/214149168-feeffbbb-24c0-4527-8146-2d507bc44dfd.gif)
Repository: terminal
Issue: Quake window hotkey is not handled correctly when pressed twice quickly
Labels: Issue-Bug,Product-Terminal,Area-Windowing

### Windows Terminal version

1.16.3463.0

### Windows build number

10.0.19043.2364

### Other Software

_No response_

### Steps to reproduce

There's a bug where pressing the quake hotkey too quickly bugs out. If the window is open and you press the hotkey twice it will close > open > close instead of just close > open. This doesn't if you wait long enough for the second press. It also doesn't happen if you hit it twice really fast. But there's a pretty big range between about 100 and 300 ms where this bug occurs.

* Open the quake window
* Press the quake hotkey
* Press the quake hotkey again after 100-300 ms

### Expected Behavior

After pressing the hotkey twice the quake window should be open.

### Actual Behavior

The quake window is not open.
Repository: pytorch
Issue: Profiler documentation doesn't mention some exports are mutually exclusive
Labels: oncall: profiler

### 📚 The doc issue

The [profiler documentation](https://pytorch.org/docs/stable/profiler.html) and the tutorials on it don't mention that the tensorboard and chrome trace exports are mutually exclusive. I had setup an initial run to dump out all the supported formats of profiling information as I was unsure which tool would prove most useful, and when exporting a chrome trace after using the tensorboard output hook I get a stack trace like:

```
File "/path/to/venv/lib/python3.8/site-packages/torch/profiler/profiler.py", line 136, in export_chrome_trace
    return self.profiler.export_chrome_trace(path)
  File "/path/to/venv/lib/python3.8/site-packages/torch/autograd/profiler.py", line 278, in export_chrome_trace
    self.kineto_results.save(path)  # type: ignore[union-attr]
RuntimeError: Trace is already saved.
```

This is presumably related to [this line](https://github.com/pytorch/pytorch/blob/master/torch/csrc/profiler/kineto_shim.h#L112) which notes "Kineto's save is destructive" but as far as I can tell this fact isn't documented anywhere, and it probably should be.

### Suggest a potential alternative/fix

Add a note to the profiler docs page saying which export methods are mutually exclusive, and update the tutorials to note that.

cc @robieta @chaekit @aaronenyeshi @ngimel @nbcsm @guotuofeng @guyang3532 @gaoteng-git @tiffzhaofb
Repository: PowerToys
Issue: Shift + What's using this file? = run What's using this file? as admin.
Labels: Needs-Triage

### Description of the new feature / enhancement

Hey,
can you add a feature to run What's using this file? by default
I thought of a solution but I am bad at coding :( I am learning right now so I can productive to the community.
Shift + click on What's using this file? => run What's using this file? as admin.

### Scenario when this would be used?

When wanting to see admin tasks, end tasks with admin permissions.

### Supporting information

_No response_
Repository: PowerToys
Issue: change focus on zones
Labels: Needs-Triage

### Description of the new feature / enhancement

series of hotkeys would change focus on zones. ctrl+shift+> would focus on the next zone landing on the topmost page. 

right now there is no way. the only way to toggle through zones is if im working in zone 1, i have to use my mouse to click on zone 2, then continue.
 

### Scenario when this would be used?

right now there is no way. the only way to toggle through zones is if im working in zone 1, i have to use my mouse to click on zone 2, then continue.

It would add efficiency if i would be working on excel in zone 1, and need to research from my browser in zone 2, to be able to just ctrl+shift+> to go back ad fourth between zones. 

right now as a work around, i have to keep everything in 1 zone if i want to efficiently do this.  

### Supporting information

_No response_
Repository: flutter
Issue: Create a single point of access to github tokens across Cocoon instances
Labels: team-infra,P2,triaged-infra

We should create a way to lock token access across instances to we are using the same token when making requests to github across instances if possible. This should cut down or eliminate the number of times we see 403 errors.

The idea is for global token access to mint and read tokens.
Repository: vscode
Issue: Prompted for `Git For Windows`, after remoted to a Linux shell without git installed via code tunnel.
Labels: bug,git

<!-- Please search existing issues to avoid creating duplicates, and review our troubleshooting tips: https://code.visualstudio.com/docs/remote/troubleshooting -->
<!-- Please attach logs to help us diagnose your issue. Learn more here: https://code.visualstudio.com/docs/remote/troubleshooting#_reporting-issues and here: https://code.visualstudio.com/docs/remote/vscode-server#_where-can-i-provide-feedback-or-report-an-issue -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

```
Version: 1.74.3 (user setup)
Commit: 97dec172d3256f8ca4bfb2143f3f76b503ca0534
Date: 2023-01-09T16:59:02.252Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.19045
Sandboxed: No
```

<!-- If your bug is related to Remote-SSH, please use the SSH-specific reporter: https://github.com/microsoft/vscode-remote-release/issues/new?assignees=eleanorjboyd&labels=ssh&template=a_remote_ssh_bug_form.yml&title=%5BRemote-SSH+Bug%5D%3A+ -->

- Logs:

Steps to Reproduce:

1. Run `code tunnel` on a remote Linux machine without git installed
2. Connect to this machine via tunnel

![image](https://user-images.githubusercontent.com/7172560/212237486-54d25a0e-1410-452f-b672-203b632e145e.png)
Repository: vscode
Issue: Variables `relativeFile` and `relativeFileDirname` use backslashes in WSL when used in keyboard shortcuts
Labels: bug,terminal,WSL,confirmed,variable-resolving

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Not really, I can't access WSL without the `ms-vscode-remote.remote-wsl` extension.

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.74.3
- OS Version: Windows_NT x64 10.0.19045

Steps to Reproduce:

I have this keyboard shortcut, which comes in handy whenever I want to run a command in the terminal against the current file:

```json
{
  "key": "ctrl+shift+p",
  "command": "workbench.action.terminal.sendSequence",
  "args": { "text": "${relativeFile}" },
  "when": "terminalFocus"
}
```

When triggering this shortcut in a WSL workspace, it sends the file path with backslashes instead of forward slashes, which negates its usefulness. This happens for both `relativeFile` and `relativeFileDirname`, but not for `file` or `fileDirname`.

Here's output for each variable when used with the `workbench.action.terminal.sendSequence` in a keyboard shortcut:

- `file`: `/home/jamin/projects/environment/config/code/settings/settings.json`
- `fileDirname`: `/home/jamin/projects/environment/config/code/settings`
- `relativeFile`: `config\code\settings\settings.json`
- `relativeFileDirname`: `config\code\settings`


When using `relativeFile` or `relativeFileDirname` within a task like this:

```json
{
  "label": "print relativeFile",
  "type": "shell",
  "command": "echo ${relativeFile}"
}
```

The path is printed with forward slashes as expected:

![image](https://user-images.githubusercontent.com/6618434/214192889-4b5c0c09-b545-4807-a450-b07483c7c984.png)
Repository: PowerToys
Issue: Simple shortcuts as two clicks
Labels: Needs-Triage

### Description of the new feature / enhancement

1-It would be nice and easy to just press ALT and twice a letter and get the required character.
2- Extend the list of character or symbol options (ASCII)
3- Add the character to identify the Bitcoin (₿) cryptocurrency
4-Characters most used in Latin Americans: ALT+164 =ñ, ALT+165=Ñ, ALT+168=¿

### Scenario when this would be used?

Power Toys Settings/keyboard manager
![Slide1](https://user-images.githubusercontent.com/123427267/214194426-8b7ca88d-0583-4a7b-92df-f6af99de3f7e.JPG)


### Supporting information

https://fontmeme.com/fuentes/fuente-bitcoin/
https://guiasistem.com/como-escribir-el-signo-de-bitcoin-%E2%82%BF/#Atajos_de_Bitcoin_para_ordenadores_Windows