sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Using `duplicate()` on node that changes child node order during _init() causes scripts to be applied to the wrong nodes.
Labels: bug,discussion,topic:core

### Tested versions

4.3 stable

### System information

Windows 11 version 10.0.22631 - Vulkan (Forward+) - dedicated AMD Radeon RX 7900 XTX (Advanced Micro Devices, Inc.; 31.0.22023.1014) - AMD Ryzen 7 7800X3D 8-Core Processor (16 Threads)

### Issue description

Given this hierarchy: 

Node A
    v Node B
    |     > Node C
    |     > Node D

Given this circumstance:

- Node A duplicates Node B.
- Node B causes it's child nodes to be reorder during `_init()` (either by adding an INTERNAL_MODE_FRONT child, or re-ordering Node C and Node D)
- Node C has a script attached

The following occurs: Node C's script will be erroneously added to whichever child has index 0 (either a new node, or the re-ordered Node D), rather than Node C directly. This will throw an error when the node at index 0 has a different type than Node C.

### Steps to reproduce

Attempt to `duplicate()` a node which re-orders it's children during `_init()`. Scripts will be applied to nodes at the original child indices before any reordering.

### Minimal reproduction project (MRP)

[minimal.zip](https://github.com/user-attachments/files/16633051/minimal.zip)

`duplicate()` is called inside the `_ready()` function of node.gd
Repository: rust
Issue: Decide about generics in arbitrary self types
Labels: T-lang,C-discussion

Over [here](https://github.com/rust-lang/rust/issues/44874#issuecomment-2292369151), @adetaylor gave an update about arbitrary self types that included this bit:

> During the preparation of the RFC it was broadly felt that we should ban "generic" self types but we didn't really define what "generic" meant, and I didn't pin it down enough.
> 
> Some of the commentary:
> 
> * [Arbitrary self types v2 rfcs#3519 (comment)](https://github.com/rust-lang/rfcs/pull/3519#discussion_r1390267286)
> * [Arbitrary self types v2 rfcs#3519 (comment)](https://github.com/rust-lang/rfcs/pull/3519#discussion_r1435282566)
> * [Arbitrary self types v2 rfcs#3519 (comment)](https://github.com/rust-lang/rfcs/pull/3519#discussion_r1474221554)
> * [A zulip comment](https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/Arbitrary.20self.20types.20v2.20RFC/near/416086169)
> * I've a feeling there's more which I've been unable to find, including the initial impetus to ban generics from arbitrary self types.
> 
> It seems to be widely felt that:
> 
> ```rust
> impl SomeType {
>  fn m<R: Deref<Target=Self>>(self: R) {}
> }
> ```
> 
> would be confusing, but (per those comments) it's actually pretty hard to distinguish that from various legitimate cases for arbitrary self types with generic receivers:
> 
> ```rust
> impl SomeType {
>   fn method1(self: MyBox<Self, impl Allocator>) {}
>   fn method2<const ID: u64>(self: ListArc<Self, ID>) {}
> }
> ```
> 
> I played around with different tests here on the `self` type in `wfcheck.rs` but none of them yield the right sort of filter of good/bad cases (which is unsurprising since we haven't quite defined what that means, but I thought I might hit inspiration).
> 
> From those comment threads, the most concrete proposal (from @joshtriplett) is:
> 
> > just disallow the case where the top-level receiver type itself is not concrete.
> 
> I plan to have a crack at that, unless folks have other thoughts. cc @Nadrieril who had opinions here.
> 
> If we do this, I [might need to revisit the diagnostics mentioned in the bits of RFC _removed_ by this commit](https://github.com/rust-lang/rfcs/pull/3519/commits/fad04aee7e432acc31fb39464300debfa9abd244).

We never made a decision about this.  Perhaps if we could offer more clarity, it would save @adetaylor some time here, so it may be worth us discussing.

@rustbot labels +T-lang +I-lang-nominated -needs-triage +C-discussion

cc @rust-lang/lang @adetaylor
Repository: stable-diffusion-webui
Issue: [Bug]: Error while using img2img
Labels: bug-report

### Checklist

- [X] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

When using img2img, you cannot get the preview image, and sometimes the entire img2img does not work.
An error message appears in the upper left corner: ErrorUnexpected token '<', "<html> <h"... is not valid JSON

### Steps to reproduce the problem

img2img

### What should have happened?

img2img works normally

### What browsers do you use to access the UI ?

Google Chrome

### Sysinfo

Python 3.10.14 (main, Apr  6 2024, 18:45:05) [GCC 9.4.0]
Version: v1.8.0
Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
Launching Web UI with arguments: --xformers --enable-insecure-extension-access --share --gradio-queue --no-half-vae --opt-channelslast --theme dark --no-gradio-queue
==============================================================================
You are running torch 2.0.1+cu118.
The program is tested to work with torch 2.1.2.
To reinstall the desired version, run with commandline flag --reinstall-torch.
Beware that this will cause a lot of large files to be downloaded, as well as
there are reports of issues with training tab on the latest version.

Use --skip-version-check commandline argument to disable this check.
==============================================================================
=================================================================================
You are running xformers 0.0.20.
The program is tested to work with xformers 0.0.23.post1.
To reinstall the desired version, run with commandline flag --reinstall-xformers.

Use --skip-version-check commandline argument to disable this check.

### Console logs

```Shell
!apt update
!apt -y install python3.10
!apt -y install libpython3.10-dev
!apt -y install build-essential
!apt -y install ffmpeg
!curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
!python3.10 -m pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 torchtext==0.15.2 torchdata==0.6.1 --extra-index-url https://download.pytorch.org/whl/cu118 -U
!python3.10 -m pip install xformers==0.0.20 triton==2.0.0 -U
!python3.10 -m pip install httpx==0.24.1
#!python3.10 -m pip install insightface -U
!python3.10 -m pip install matplotlib -U
!python3.10 -m pip install ipython -U
from IPython import get_ipython
get_ipython().run_line_magic('matplotlib', 'inline')
%cd /notebooks/stable-diffusion-webui
!python3.10 launch.py --xformers --enable-insecure-extension-access --share --gradio-queue --no-half-vae --opt-channelslast --theme dark --no-gradio-queue
```


### Additional information

_No response_
Repository: pytorch
Issue: [PixelShuffle] PixelShuffle doesn't support channels_last feature for 5D inputs
Labels: module: nn,triaged,module: memory format

### 🐛 Describe the bug

PixelShuffle doesn't support channels_last feature for 5D inputs.

Error message: RuntimeError: Unsupported memory format. Supports only ChannelsLast, Contiguous

UT to reproduce the issue:

'''
import torch

pixel_shuffle = torch.nn.PixelShuffle(2)
input = torch.randn(2, 2, 4, 4, 4)
input = input.to(memory_format=torch.channels_last_3d)
output = pixel_shuffle(input)
'''

### Versions

numpy==1.26.4
torch==2.3.1
torch_tb_profiler==0.4.0
torchaudio==2.3.0
torchdata==0.7.1
torchtext==0.18.0a0
torchvision==0.18.1a0

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki @jamesr66a
Repository: vscode
Issue: When scrolling slowly focus moves to the wrong file
Labels: bug,multi-diff-editor

<!-- ⚠️⚠️ 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. -->
Version: 1.92.2
Commit: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9
Date: 2024-08-14T17:29:30.058Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0
Steps to Reproduce:

1.  Open a multi-file diff viewer with at least one file that has a large number of changes (more than view port)
2. Scroll up slowly, and the file with lot of changes comes into view but the scroll position is wrong
See the following recording
* I'm on `diffElementViewModel.ts` at line 35 and try to scroll up very slowly, 
* however there's a big jump in the scroll position to a different file and completely different position.



![Image](https://github.com/user-attachments/assets/b0b723c0-b2c8-4402-a20e-4e62f3ec78c7)
Repository: go
Issue: runtime: use `tophash == emptyRest` to decrease search times in `mapaccess1_faststr` and `mapaccess2_faststr`
Labels: Performance,NeedsDecision,compiler/runtime

### Proposal Details

In function `mapaccess2_faststr  ` and `mapaccess2_faststr` , I think we can add follow code in `dohash ` block to decrease the search in bucket & over flow buckets.
```
   if b.tophash[i] == emptyRest {
       return unsafe.Pointer(&zeroVal[0])
   }
```

Position: https://github.com/golang/go/blob/527610763b882b56c52d77acf1b75c2f4233c973/src/runtime/map_faststr_noswiss.go#L98

I am pleasure to change it if you think it is good.
Repository: material-ui
Issue: [colorManipulator] lighten/darken a CSS var() color
Labels: new feature,package: system,customization: theme

### Summary

Hi, I'm working on my own design system implementation with MUI v6 (base + system). Previously, with utilities in colorManipulator I can easily lighten/darken a color defined in palette. With CSS variables, now it's difficult and I have to augment the palette a lot. For `alpha` the solution is with pure CSS function `rgba`, probably for `lighten`/`darken` I should go with the same way? Or, by `getComputedStyle` I can run the same function just as before?

### Examples

```diff
-      color: darken(theme.palette.primary.main),
+      color: darken(theme.vars.palette.primary.main),
```

### Motivation

_No response_

**Search keywords**: colorManipulator lighten darken var CSS color
Repository: godot
Issue: Scenes with 3D MultiMeshes print errors on load
Labels: bug,needs testing,topic:3d

### Tested versions

4.3

### System information

Windows 11

### Issue description

https://github.com/godotengine/godot/blob/ee363af0ed65f6ca9a906f6065d0bd9c19dcf9e4/scene/resources/multimesh.cpp#L309 prints an error if the `instance_count` is set before `set_transform_format`. This will be true for any non empty 3D `MultiMesh` stored in a scene file.

### Steps to reproduce

Add a 3D `MultiMesh` with some instances to a scene.
Save scene.
Reopen scene.
`<scene\resources\multimesh.cpp(309): MultiMesh::set_transform_format> Condition "instance_count > 0" is true.`

### Minimal reproduction project (MRP)

-
Repository: godot
Issue: Switching to DX12 renderer creates bugs in Godot 4.3 editor UI rendering
Labels: bug,platform:windows,topic:rendering,topic:gui

### Tested versions

4.3 Stable

### System information

Windows 10 22H2 + NVIDIA RTX 3060 Ti

### Issue description

I opened the old project from 4.2 in 4.3 and found a D3D12 rendering option, enabled and rebooted. While opening each menu, the editor first renders the whole window on it, and only on refresh (for example, by moving around between several menu items) the render gets correct information. The issue only exists if DX12 is enabled as Windows rendering.

https://github.com/user-attachments/assets/9103d6ff-925e-4ab9-a4bd-9babc47d1b8a



### Steps to reproduce

1. Open project from 4.2 in 4.3
2. Open project settings
3. Enable DX12 as rendering API for Windows
4. Apply and restart the editor
5. Try to open any menu

or

1. Create new project in 4.3
2. Switch to D3D12, apply and restart
3. Use this project for some time (took me ~30 min)
4. Try to open menu items

### Minimal reproduction project (MRP)

The testing scene is too big to upload here
Repository: TypeScript
Issue: Number.prototype.toFixed, Number.prototype.toExponential,Number.prototype.toPrecision comments error
Labels: Bug,Help Wanted

### 🔎 Search Terms

is:issue Number toFixed 

### 🕗 Version & Regression Information

- This changed between versions ______ and _______
- This changed in commit or PR _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______


### ⏯ Playground Link

_No response_

### 💻 Code

```ts
// Your code here
```


### 🙁 Actual behavior

https://github.com/microsoft/TypeScript/blob/52395892e0c4ee8a22b4fa6190bad46d81e66651/src/lib/es5.d.ts#L550
https://github.com/microsoft/TypeScript/blob/52395892e0c4ee8a22b4fa6190bad46d81e66651/src/lib/es5.d.ts#L556
https://github.com/microsoft/TypeScript/blob/52395892e0c4ee8a22b4fa6190bad46d81e66651/src/lib/es5.d.ts#L562

### 🙂 Expected behavior

The right range is 0 to 100 for toFixed and toExponential, 1 to 100 for toPrecision.

### Additional information about the issue

_No response_
Repository: vscode
Issue: When updating, download new version before deleting old
Labels: bug,install-update

<!-- ⚠️⚠️ 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

<!-- 🪓 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.92.2
- OS Version: WSL2

Steps to Reproduce:

1. With automatic updating on, get into a situation in which there is a new version of vscode ready
2. Shut down all existing vscode windows
3. Turn off your internet (hop on an airplane, go to a cabin in the woods, whatever)
4. Type `code` from the shell

What happens is that vscode deletes itself, tries to download the new version, and fails. Thus you're stuck without a working version of vscode.
Repository: vscode
Issue: Persistent `rg.exe` blocking Visual Studio Code Updates
Labels: bug,install-update,search

For a long time _(dating back to Windows 10 and early Visual Studio Code releases)_, I've consistently encountered an issue where every Visual Studio Code update fails. I'm currently using Windows 11 23H2 and the latest version (1.92) of Visual Studio Code. After investigating, I identified that the problem stems from `rg.exe`, located at:

```powershell
$HOME\AppData\Local\Programs\Microsoft VS Code\resources\app\node_modules.asar.unpacked\@vscode\ripgrep\bin\rg.exe
```

I've tried shutting it down via the Taskbar, using PowerToys Unlock with File Locksmith, and even SysInternals Process Explorer, but nothing can terminate or stop this file. After restarting, I have only a few seconds to delete it, even without opening VS Code. It seems something triggers it to run and it remains active indefinitely. However, if I’m quick enough to delete it after a restart, the VS Code update proceeds without issues.

Any advice on resolving this would be greatly appreciated.

![image](https://github.com/user-attachments/assets/7251c97a-280a-4160-8e9a-e955820249dd)

![image](https://github.com/user-attachments/assets/831917a9-45ef-49ff-b4c2-4c77ee827814)

![image](https://github.com/user-attachments/assets/e1578fc2-125d-45d5-a70f-d3379bd1440e)
Repository: ui
Issue: [bug]: react-remove-scroll not imported correctly from scrolling elements
Labels: bug

### Describe the bug

When trying to use any element with a scroll bar (dropdown, sheet, drawer, etc.) the same error is shown relating to `react-remove-scroll`

### Affected component/components

Dropdown, Sheet, Drawer

### How to reproduce

- Install `npx shadcn-ui@latest add dropdown-menu`
- Copy-paste the first example on the page for [dropdowns](https://ui.shadcn.com/docs/components/dropdown-menu)
- Build the page or run `pnpm dev`
- The error from the "logs" section will be shown

(As the issue happens with the built-in example from the website, codesandbox is omitted)

### Codesandbox/StackBlitz link

_No response_

### Logs

```bash
The following error is shown every tine an element with a scrollbar is used:

Error: Cannot find package 'C:\Users\Name\Company\Documents\Code\granite-ui\node_modules\.pnpm\@radix-ui+react-menu@2.1.1_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\react-remove-scroll\dist\es5\index.js' imported from C:\Users\Name\Company\Documents\Code\granite-ui\node_modules\.pnpm\@radix-ui+react-menu@2.1.1_@types+react-dom@18.3.0_@types+react@18.3.3_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\@radix-ui\react-menu\dist\index.mjs
Did you mean to import "react-remove-scroll/dist/es5/index.js"?
```
```


### System Info

```bash
OS Name	/ Microsoft Windows 10 Pro
Version	/ 10.0.19045 Build 19045
Chrome Version / 127.0.6533.100 (Official Build) (64-bit) (cohort: Stable) 
Package.json: 
  "dependencies": {
    "@radix-ui/react-dropdown-menu": "^2.1.1",
    ...
    "next": "14.2.5",
    "njwt": "^2.0.1",
    "react": "^18.3.1",
    "react-dom": "^18.3.1",
    "react-remove-scroll": "^2.5.10"
  }
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: godot
Issue: Vulkan (MoltenVK) rendering backends crashing on older Macbook (Intel HD 530, OpenCore)
Labels: bug,platform:macos,topic:rendering,crash,regression

### Tested versions

4.3 stable

### System information

14.4.1  2.9 GHz Quad-Core Intel Core i7 Radeon Pro 460 4 GB Intel HD Graphics 530 1536 MB

### Issue description

4.3 stable keep crash when create or open project

### Steps to reproduce

download 4.3 stable
open it
create a new project
it always crash

### Minimal reproduction project (MRP)

[Archive.zip](https://github.com/user-attachments/files/16634861/Archive.zip)
Repository: godot
Issue: TileMapLayer-Custom layer(array)- Tileset  UI does not refresh
Labels: bug,topic:editor,topic:2d

### Tested versions

-Reproducible in v4.3.stable.official [77dcf97d8]

### System information

Windows 10  - v4.3.stable.official [77dcf97d8] -  Compatibility/Forward+

### Issue description

TileMapLayer-custom data layer.
When adding or attempting to modify custom data layer on TileMapLayer node in the TileSet paint menu everything below "Painting" element(Customdata|Array(size x) does not refresh automatically when you change values. 
You can manually refresh the UI by click on any of the elements.
None of the UI elements do not "array size" or "array type".
 


### Steps to reproduce

add node TileMapLayer
add custom data layer : array
go to TileSet and attempt to set the values of the custom layer

### Minimal reproduction project (MRP)

[test_project.zip](https://github.com/user-attachments/files/16634863/test_project.zip)
Repository: deno
Issue: node:http2 stream error when using npm:firebase-admin
Labels: node:http

I ran the same code maybe 2-4 weeks ago on deno deploy and it worked, but now I run it from my own server and get this error: I saw similar issues raised (error with node:http2) before like this but not the same error message.

I run with -A --unstable-kv --unstable-cron and i tried with just --unstable but it did also not work

and i use fresh: "$fresh/": "https://deno.land/x/fresh@1.6.8/",

Not sure if relevant but i have deno to output to port 8000, and then i ran:
```bash
iptables -t nat -A OUTPUT -o lo -p tcp --dport 443 -j REDIRECT --to-port 8080
```

And I have secure connection.

Version: Deno 1.45.5

```ts
import admin from "npm:firebase-admin";
import serviceAccount from "...[file path]..." with { type: "json" };

// Init
admin.initializeApp({
  credential: admin.credential.cert(serviceAccount as admin.ServiceAccount)
});


// In some function later in the file
async function f() {
  const messages = [
    {
      token: "......[the actual token].....",
      notification: {
        title: "...[some title]...",
        body: "...[some text]..."
      },
      data: { surveys: "...[some data]..." }
    }
  ]
  
  await admin.messaging().sendEach(messages); // This errors
}
```

```bash
error: Uncaught (in promise) Error: stream error received: unspecific protocol error detected
    at node:http2:735:50
    at ClientHttp2Stream._read (node:http2:761:7)
    at ClientHttp2Stream.Readable.read (ext:deno_node/_stream.mjs:2996:16)
    at resume_ (ext:deno_node/_stream.mjs:3346:16)
    at processTicksAndRejections (ext:deno_node/_next_tick.ts:33:15)
    at runNextTicks (ext:deno_node/_next_tick.ts:71:3)
    at eventLoopTick (ext:core/01_core.js:175:21)
```
Repository: pytorch
Issue: Can pytorch add sparse linear solvers like scipy.sparse.linalg.gmres, scipy.sparse.linalg.bicg etc.
Labels: module: sparse,triaged,module: linear algebra

### 🚀 The feature, motivation and pitch

I am a compute fluid dynamic software developer. Pytorch really helped me for using GPU to accelerate computing. However, in compute fluid dynamic or other mechanics domain, we usually store coefficients matrix in sparse format like CSR and solve the linear equation systems. I wondering if pytorch can develop a sparse solver which input the sparse coefficients matrix with a dense vector for the right hand of equations and output a dense vector represent the solve. In scipy there are already such solvers, but it does not support gpu acceleration. I hope pytorch can add such solvers.

### Alternatives

_No response_

### Additional context

_No response_

cc @alexsamardzic @nikitaved @pearu @cpuhrsch @amjames @bhosmer @jcaip @jianyuh @mruberry @walterddr @xwang233 @Lezcano
```[tasklist]
### Tasks
```