sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: unreachable variable is marked unused incorrectly
Labels: A-diagnostics,T-compiler

Given the following code: [link](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=df9f3e9899dffdea28a8b4ad334046d2)

```rust
pub fn dummy() {
    let mut v = vec![];
    for i in 0..3 {
        unreachable!();
        v.push(i);
    }
}
```

The current output is:

```
warning: unreachable statement
 --> src/lib.rs:5:9
  |
4 |         unreachable!();
  |         -------------- any code following this expression is unreachable
5 |         v.push(i);
  |         ^^^^^^^^^^ unreachable statement
  |
  = note: `#[warn(unreachable_code)]` on by default

warning: unused variable: `v`
 --> src/lib.rs:2:13
  |
2 |     let mut v = vec![];
  |             ^ help: if this is intentional, prefix it with an underscore: `_v`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `i`
 --> src/lib.rs:3:9
  |
3 |     for i in 0..3 {
  |         ^ help: if this is intentional, prefix it with an underscore: `_i`

warning: variable does not need to be mutable
 --> src/lib.rs:2:9
  |
2 |     let mut v = vec![];
  |         ----^
  |         |
  |         help: remove this `mut`
  |
  = note: `#[warn(unused_mut)]` on by default
```

Ideally the output should look like:

```
warning: unreachable statement
 --> src/lib.rs:5:9
  |
4 |         unreachable!();
  |         -------------- any code following this expression is unreachable
5 |         v.push(i);
  |         ^^^^^^^^^^ unreachable statement
  |
  = note: `#[warn(unreachable_code)]` on by default
```

`v` and `i` are marked as unused, but are actually used in `v.push(i)`. `rustc` also suggests removing the `mut` before `v`, which will not compile if `v.push(i)` is reachable. This could be annoying when there are `todo!()`s in code.
Repository: pytorch
Issue: move bazel files out of pytorch repo root
Labels: triaged,module: bazel

https://github.com/pytorch/pytorch/commit/03847808a0f98faf91790802a9f5be49de82360b added a bunch of bazel files to pytorch repo root. Can we move these somewhere out of the way? As is, they make the "front page" of the repo really long and make it so you have to scroll to get to the readme
Repository: kubernetes
Issue: Copy files after a job completed
Labels: sig/node,kind/feature,sig/architecture,lifecycle/rotten,sig/usability,needs-triage

### What would you like to be added?

GIVEN a job that has been executed like:

`kubectl run job1 --image=busybox --restart=Never -- /bin/sh -c "echo test > /output.txt"`

WHEN copying the output after the job has been completed:

`kubectl cp job1:/output.txt output.txt`

THEN the file should be copied but the following error message is displayed instead:

`error: cannot exec into a container in a completed pod; current phase is Succeeded`

### Why is this needed?

The reason why you don't want to define a volume is that you just want to get the result of your job this one time, it is not something that is needed long-term.

This issue is almost 4 years old: https://github.com/kubernetes/kubectl/issues/454

Also in combination with the existing feature TTL-after-finished (see Link[1]: Automatic Clean-up for Finished Jobs) this issue makes really sense in my opinion.

Link[1]: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
Repository: godot
Issue: The `View Owners...` tool in the FileSystem tree does not list scripts as owner of resources they `preload` in 4.0.alpha11
Labels: bug,topic:editor

### Godot version

works in 3x, doesn't in 4.0.alpha11

### System information

linux

### Issue description

Scripts that `preload` resources should be registered as owners (FileSystem tree > RMB > View Owners...) since they depends on those resources.
But they don't anymore.
The `Edit dependencies...` tool don't list preloaded resources as dependencies to scripts anymore either.

### Steps to reproduce

```gdscript
var icon := preload("res://icon.png")
```
View the icon's owners: none show up.

### Minimal reproduction project

_No response_
Repository: neovim
Issue: backtick expansion has a trailing space when shell is cmd.exe 
Labels: bug,platform:windows

### Neovim version (nvim -v)

v0.8.0-dev+580-g45ba2e147

### Vim (not Nvim) behaves the same?

No

### Operating system/version

Windows 10

### Terminal name/version

Windows Terminal

### $TERM environment variable

builtin_vtpcon

### Installation

nightly release zip

### How to reproduce the issue

1. Run `nvim --clean`
2. Run
```vim
:argadd `echo foo`
```
3. Run `:echo argv()`

### Expected behavior

`['foo']` is printed

### Actual behavior

`['foo ']` is printed
Repository: tauri
Issue: [bug] Can not download in front end
Labels: type: bug,scope: core,status: backlog

### Describe the bug

in the browser, we can use <a> like this:
```js
 const eleLink = document.createElement("a");
                eleLink.href = url;
                eleLink.download = `${title} - ${artist}`;
                eleLink.style.display = "none";
                document.body.appendChild(eleLink);
                eleLink.click();
                document.body.removeChild(eleLink);
```
to download file in front; but in tauri,this function can not take effect.

### Reproduction

_No response_

### Expected behavior

_No response_

### Platform and versions

```shell
› OS: Mac OS 12.4.0 X64
  › Node.js: 16.14.0
  › npm: 8.3.1
  › pnpm: 6.32.3
  › yarn: 1.22.17
  › rustup: 1.24.3
  › rustc: 1.61.0
  › cargo: 1.61.0
  › Rust toolchain: stable-aarch64-apple-darwin
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: vscode
Issue: Error loading webview: An unknown error occurred when fetching the script..
Labels: bug,upstream,install-update,webview,chromium,confirmation-pending

<!-- ⚠️⚠️ 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. -->
Hi, I am getting the following error when trying to open an image or a Jupyter Notebook from vscode:

```
Error loading webview: Error: Could not register service workers: TypeError: Failed to register a ServiceWorker for scope ('vscode-webview://07sc9lmooel1imi876ccjtdsk65nnniijk3c2pnhia9134c2kfjr/') with script ('vscode-webview://07sc9lmooel1imi876ccjtdsk65nnniijk3c2pnhia9134c2kfjr/service-worker.js?v=4&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&remoteAuthority='): An unknown error occurred when fetching the script..
```

This issue appears similar to #122951, but the error message is not quite the same, and running `pkill code` or rebooting my computer does NOT fix the error. I have found no workaround so far. So far I've noticed the error pops up when trying to open an image, a Jupyter Notebook, or a Markdown preview.

Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 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:
```
Version: 1.69.0
Commit: 92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9
Date: 2022-07-08T15:48:40.449Z
Electron: 18.2.4
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Linux x64 5.18.9-arch1-1
```
- OS Version: `Linux 5.18.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 02 Jul 2022 21:03:06 +0000 x86_64 GNU/Linux`

Steps to Reproduce:

1. Open vscode
2. In Vscode, open a .png image, a Markdown preview, or a Jupyter Notebook
3. Observe the bug: the image or notebook does not display, and the error messages appears
Repository: PowerToys
Issue: SVG Thumbnails not showing as thumbnails.
Labels: Issue-Bug,Product-File Explorer,Needs-Triage,Needs-Team-Response

### Microsoft PowerToys version

0.60.0

### Running as admin

- [X] Yes

### Area(s) with issue?

SVG Thumbnail

### Steps to reproduce

![image](https://user-images.githubusercontent.com/42563050/178113326-f6ef1996-f128-41ab-a1a1-10b13cc5b11e.png)
![image](https://user-images.githubusercontent.com/42563050/178113336-b99a2666-7913-4d9c-8456-782b734e4030.png)
[PowerToysReport_2022-07-09-22-55-18.zip](https://github.com/microsoft/PowerToys/files/9077472/PowerToysReport_2022-07-09-22-55-18.zip)



### ✔️ Expected Behavior

Normal File browsing with SVG thumbnails must be displayed.

### ❌ Actual Behavior

Microsoft Edge Icon instead.

### Other Software

_No response_
Repository: excalidraw
Issue: scrollbars don't show
Labels: bug

Likely related to the render throttling PR.
Repository: PowerToys
Issue: Add resistance for moving mouse Between Monitors near boundary
Labels: Idea-New PowerToy,Product-Mouse Utilities

### Description of the new feature / enhancement

Toggle in Mouse Utilities that makes movement between monitors "Sticky," i.e, you need to move the mouse faster/farther to get from one display to another

### Scenario when this would be used?

Clicking buttons on the edge of the screen is difficult because the mouse jumps to the other monitor. This makes moving the mouse to another monitor more intentional, and less likely to happen accidentally.

### Supporting information

This is part of an old piece of software called Dual Monitor Tools. As described by their website: 

> The cursor is allowed to move between screens, but there is some resistance to moving between the screens. You can adjust the resistance using the Resistance to movement between screens slider.

Source: [http://dualmonitortool.sourceforge.net/dmt_cursor.html](http://dualmonitortool.sourceforge.net/dmt_cursor.html)
Repository: godot
Issue: Viewport width & height are incorrect on Windows when Resizable is disabled (DisplayServer regression)
Labels: bug,platform:windows,topic:porting,confirmed,regression

### Godot version

4.0 alpha 11

### System information

Windows 10

### Issue description

Setting the viewport width and depth results in the true viewport size being +12 pixels for both width and height.
Tried setting the viewport via Project Settings -> General -> Display -> Window and noticed when I'd run my project, the viewport was showing things that shouldn't be visible. Printed the viewport size (`get_viewport().get_visible_rect()`) and confirmed that the sizing was off by +12 for both width & height. Putting width and height dimensions in that are 12 less than what I actually want gives correct viewport visuals.
Can't find any project setting that addresses why it would add twelve to both width & height, so I'm assuming this is an error. Checked on Godot 3 and it works as intended.

(NOTE : This only happens when the stretch mode is set to disabled)

### Steps to reproduce

Set the viewport width and height via Project Settings -> General -> Display -> Window
Make a simple scene with a Node and attach a script with `print_debug(get_viewport().get_visible_rect())` in `_ready()`
Run the scene and the output will show that the width & height are both off by +12 from what was put under the settings

### Minimal reproduction project

_No response_
Repository: godot
Issue: GDExtension move_and_collide instantly crashes game
Labels: bug,topic:physics,needs testing,topic:gdextension,crash

### Godot version

v4.0.alpha11.official [afdae67cc]

### System information

Windows 11 Home, NVIDIA GeForce RTX 2080 [30.0.15.1259]

### Issue description

Whenever I use "move_and_collide(<some vector>)" with GDExtension, the game instantly crashes and produces no crash log. The problem happens every time I run the game (no matter where I put the "move_and_collide" function call).

### Steps to reproduce

1. Clone "godot-cpp" from [github link](https://github.com/godotengine/godot-cpp)
2. Use scons to build both the "godot-cpp" folder and "test" folder
3. Paste the following code into example.h:

`class ExampleRigidBody2D : public RigidDynamicBody2D {
	GDCLASS(ExampleRigidBody2D, RigidDynamicBody2D);
protected:
	static void _bind_methods() {}
public:
	virtual void _physics_process(double delta) override;
};`

and example.cpp:
`void ExampleRigidBody2D::_physics_process(double delta) {
	if (!Engine::get_singleton()->is_editor_hint()) {
		move_and_collide(Vector2(1, 0), delta);
	}
}`

   4. Run the game, and notice an instant crash

### Minimal reproduction project

[test.zip](https://github.com/godotengine/godot/files/9078419/test.zip)
Repository: PowerToys
Issue: Ability to span windows across multiple zones via CTRL + WIN + ALT is gone?
Labels: Idea-Enhancement,Help Wanted,FancyZones-Hotkeys,Product-FancyZones,Area-User Interface

### Microsoft PowerToys version

0.60.0

### Running as admin

- [ ] Yes

### Area(s) with issue?

FancyZones

### Steps to reproduce

There used to be an option to make a window span multiple zones via Ctrl + Win + Alt + Left/Right Arrow.
I can't find it on the new version. Or it just stopped working for some reason.

Is it missing on purpose? any Alternative? 

### ✔️ Expected Behavior

_No response_

### ❌ Actual Behavior

_No response_

### Other Software

_No response_
Repository: rust
Issue: Rust allocates stack space for constant arrays, overflowing the stack
Labels: C-bug,A-array

I wrote a function that works with a fairly large array of constants.
On windows it crashed with "(exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)"

I subsequently minimized my code to the following:

```rust
const BIG_ARRAY: [usize; 65536] = [0; 65536];

pub fn recursive(depth: usize) -> usize {
    if depth < 3 {
        recursive(depth+1) + recursive(depth+1)
    } else {
        BIG_ARRAY[depth]
    }
}
```

Obviously, this function should not be smashing the stack.

In Godbolt I see the following assembly output for my test function
```asm
example::recursive:
  movl $524344, %eax
  callq __rust_probestack
  subq %rax, %rsp
  ...
```

Rust is allocating space for the entire array of constants on the stack!
I looked at the assembly, and as far as I can tell this space was only allocated but not used.

This happens on rust 1.62 as well as on nightly.
Repository: godot
Issue: Focus does not work properly when the screen size changes when font oversampling is enabled due to font metrics changing
Labels: bug,confirmed,topic:gui

### Godot version

3.4.4 stable, 3.5 rc5

### System information

Windows10 GLES3 NVIDIA GeForce GTX 1660 SUPER

### Issue description

If you change the window to a different screen size than the project settings while it is running, focus will not work properly.
I know the cause of it, but I don't know the solution.

- When `separation` property = `0` ( vbox-container)
- When I use  the font `M+ 1p Medium`

I guess to conflict the font and the property. Attached small project so please check that.

Screen Resolution : 2560x1440
Window/HiDPI : ON


https://user-images.githubusercontent.com/186786/178140959-fa8aeaaf-a6a2-4821-9acb-968ce8c54cf0.mp4




### Steps to reproduce

run it same composition as attached small project

### Minimal reproduction project

[FocusTest_3.5rc5.zip](https://github.com/godotengine/godot/files/9078825/FocusTest_3.5rc5.zip)
Repository: PowerToys
Issue: FancyZones window position when switching layouts
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

I like to switch layouts quite a bit, but they'll often have different amount of zones available. For example, i use the priority grid, and a simple version that just splits my monitor into two equal zones.

When switching between these two layouts, windows in zone 1 will move accordingly to stay in zone 1 on the new layout. Same goes with zone 2. But when I switch from priority grid to the dual zone setup, the windows in the 3rd zone will not have anything done. What I would like is to specify in the layout setting which zone that should go to if there aren't that many zones in the new layout. So for example, I can say that zone 3 windows will move to zone 2 when I change the layout.

### Scenario when this would be used?

I would use this whenever I switch between zones. I use priority grid when playing games that don't support ultrawide, but can switch to another layout when browsing reddit. I'll also have quite a few more zones when in a work layout, where Discord is off to the side, but Slack takes more priority. Or when I want my monitor to just have a single zone, the other windows should follow that layout.

### Supporting information

_No response_
Repository: pytorch
Issue: MPS: Placeholder tensor is empty!
Labels: module: crash,triaged,module: mps

### 🐛 Describe the bug

concatenation operation is not working with empty tensor on Apple M1 GPU.

```
import torch

device = torch.device("mps")
a = torch.tensor([], device=device)
b = torch.tensor([1], device=device)

c = torch.cat((a,b))
```

```
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Input In [14], in <cell line: 7>()
      4 a = torch.tensor([], device=device)
      5 b = torch.tensor([1], device=device)
----> 7 c = torch.cat((a,b))
      8 print(c)

RuntimeError: [srcBuf length] > 0 INTERNAL ASSERT FAILED at "/Users/runner/work/_temp/anaconda/conda-bld/pytorch_1657350589436/work/aten/src/ATen/native/mps/OperationUtils.mm":277, please report a bug to PyTorch. Placeholder tensor is empty!
```


### Versions

PyTorch version: 1.13.0.dev20220709
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 12.4 (arm64)
GCC version: Could not collect
Clang version: 14.0.6
CMake version: version 3.16.1
Libc version: N/A

Python version: 3.9.13 | packaged by conda-forge | (main, May 27 2022, 17:00:33)  [Clang 13.0.1 ] (64-bit runtime)
Python platform: macOS-12.4-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.22.3
[pip3] torch==1.13.0.dev20220709
[pip3] torchvision==0.14.0.dev20220709
[conda] numpy                     1.22.3           py39h25ab29e_0  
[conda] numpy-base                1.22.3           py39h974a1f5_0  
[conda] pytorch                   1.13.0.dev20220709         py3.9_0    pytorch-nightly
[conda] torchvision               0.14.0.dev20220709        py39_cpu    pytorch-nightly

cc @kulinseth @albanD @malfet @DenisVieriu97 @jhavukainen
Repository: rust
Issue: "The trait `T` is not implemented for `impl Future<Output = impl T>`" does not suggest `.await`
Labels: A-diagnostics,T-compiler

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.

If you cannot produce a minimal reproduction case (something that would work in
isolation), please provide the steps or even link to a repository that causes
the problematic output to occur.
-->

Given the following code: <!-- Please provide a link to play.rust-lang.org -->

```rust
trait MyTrait {}
impl MyTrait for () {}

async fn returns_my_trait() -> impl MyTrait {
    ()
}

#[allow(dead_code)]
async fn runs() -> impl MyTrait {
    returns_my_trait()
}
```

The current output is:

```
error[[E0277]](https://doc.rust-lang.org/stable/error-index.html#E0277): the trait bound `impl Future<Output = impl MyTrait>: MyTrait` is not satisfied
  --> src/lib.rs:9:33
   |
9  |   async fn runs() -> impl MyTrait {
   |  _________________________________-
10 | |     returns_my_trait()
11 | | }
   | | ^
   | | |
   | |_the trait `MyTrait` is not implemented for `impl Future<Output = impl MyTrait>`
   |   required by a bound introduced by this call
   |
   = help: the trait `MyTrait` is implemented for `()`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `playground` due to previous error
```

<!-- The following is not always necessary. -->
The solution to this is replacing `returns_my_trait()` with `returns_my_trait().await`, but this is not suggested by the error.

<!--
If the problem is not self-explanatory, please provide a rationale for the
change.
-->

<!--
If dramatically different output is caused by small changes, consider also
adding them here.

If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions. The output might also be
different depending on the Edition.
-->


<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":null}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: godot
Issue: The `Edit Dependencies...` editor tool can't change dependencies originating from a `preload` in a script
Labels: bug,topic:editor

### Godot version

3.5 rc3, in 4.0 scripts preloading resources do not even list them as dependencies, see https://github.com/godotengine/godot/issues/62853

### System information

Linux

### Issue description

The edit dependencies feature does not work when modifying preloaded resources in a script.

https://user-images.githubusercontent.com/71937306/178142388-46424a1b-c2a5-4a05-832c-dfa5e785304c.mp4

### Steps to reproduce

1. preload a resource in a script
2. try to replace it using the edit deps tool

### Minimal reproduction project

_No response_
Repository: PowerToys
Issue: [PT Run > Program plugin] Duplicate entries for Word
Labels: Idea-Enhancement,Help Wanted,Run-Results (Programs),Run-Plugin

### Microsoft PowerToys version

0.59.0

### Running as admin

- [ ] Yes

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

Search for Word application.

(Only seeing this with Office 2016 on my pc at work.)

### ✔️ Expected Behavior

Only one entry for MS Word. / Not seeing the entry from `Windows Installer` folder.

### ❌ Actual Behavior

![image](https://user-images.githubusercontent.com/61519853/178143066-8576540e-dfb3-4a4a-83c3-d4cb3fd3363a.png)



### Other Software

- Microsoft Office 2016 (MSI)
- Windows 10 21H2 (Patch level April 2022)
Repository: transformers
Issue: Adding TF Implementation of BEiT
Labels: WIP

### Feature request

Addition of TF implementation of BEiT 

### Motivation

I have always seen that there is a discrepancy in the availability of models for PyTorch and the models available in TensorFlow, and want to have models for usage in both backends.

### Your contribution

I will add the implementation of BEiT in TF :)

cc - @gante