sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Trait resolution fails, and then `rustc` hangs.
Labels: A-trait-system,A-associated-items,T-compiler,C-bug,I-hang,T-types,fixed-by-next-solver,A-higher-ranked

<!--
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.
-->

I tried this code:

```rust
trait Index {
    type IndexRef;
}

trait Borrow {
    type Borrowed<'a>;
}

trait Test {
    type Ref<'a>;
    type Container: Borrow where for<'a> <Self::Container as Borrow>::Borrowed<'a> : Index<IndexRef = Self::Ref<'a>>;
}
```

This builds fine if `<Self::Container as Borrow>::Borrowed<'a>` is replaced by `&'a Self::Container`. However, the above both errors, and also hangs `rustc` (still running after many minutes; wedges playground). The error is

> binding for associated type `Ref` references lifetime `'a`, which does not appear in the trait input types

I don't understand the error, though I could imagine that it is my fault or a known limitation of GATs. However, the hanging of `rustc` seems likely to be a bug.

### Meta
<!--
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.
-->

`rustc --version --verbose`:
```
rustc 1.83.0 (90b35a623 2024-11-26)
```

<details><summary>Compiler output before hang</summary>
<p>

```
error[E0582]: binding for associated type `IndexRef` references lifetime `'a`, which does not appear in the trait input types
  --> lib.rs:11:92
   |
11 |     type Container: Borrow where for<'a> <Self::Container as Borrow>::Borrowed<'a> : Index<IndexRef = Self::Ref<'a>>;
   |                                                                                            ^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error
```

</p>
</details>
Repository: stable-diffusion-webui
Issue: [Bug]: git clone error in windows 10 environment
Labels: asking-for-help-with-local-system-issues

### Checklist

- [ ] The issue exists after disabling all extensions
- [ ] 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
- [ ] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

I am trying to install the Stable diffusion broser from the cmd. 
I keep getting this : 
"error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 1395 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output" 
I am logged in the github platform , coppied the code link and AFAIK all dependancies are met . 
Is it something with the windows , like firewalls or other network related ? 
Thank you 


### Steps to reproduce the problem

Perhaps is not a bug of the package .

### What should have happened?

Perhaps the Python settings are not right ? 

### What browsers do you use to access the UI ?

_No response_

### Sysinfo

Edition	Windows 10 Pro
Version	22H2
Installed on	
OS build	19045.5247
Experience	Windows Feature Experience Pack 1000.19060.1000.0


### Console logs

```Shell
PS C:\stable-diffusion> git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
Cloning into 'stable-diffusion-webui'...
remote: Enumerating objects: 34787, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (10/10), done.
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 1395 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
```


### Additional information

_No response_
Repository: godot
Issue: Android build fails when Arabic characters are in the file path.
Labels: discussion,platform:android,confirmed,topic:export

### Tested versions

tested it on Godot 4.1.4-stable

### System information

Windows 11 - Godot v4.1.4 - compatibility - Dedicated NVIDIA GeForce RTX 3070

### Issue description

![Image](https://github.com/user-attachments/assets/533cde04-33ec-40c0-bc99-cde2e76e7b79)


Building an Android project fails when the project path contains Arabic characters. This issue appears to be specific to file paths with non-Latin characters ( I didn't try any other language beside arabic so this is a theory ).

### Steps to reproduce

1- Create a new Godot project.
2- Save the project in a directory with Arabic characters in the path (e.g., "C:/مشروع/").
3- Attempt to build the project for Android.
4- Observe the error in the build process.

### Minimal reproduction project (MRP)

[لعبة.zip](https://github.com/user-attachments/files/18137000/default.zip)

The project file named in arabic, so that should get you the error
Repository: deno
Issue: `deno doc --lint` - `private-type-ref` should not be raised for type in other package
Labels: bug

```ts
import { Path } from "@david/path";

export class TempFile extends Path {
```

```
> deno doc --lint mod.ts
error[private-type-ref]: public type 'TempFile' references private type 'Path'
   |
98 | export class TempFile extends Path {
   | ^
   = hint: make the referenced type public or remove the reference
   |
29 | export class Path {
   | - this is the referenced type
   |

  info: to ensure documentation is complete all types that are exposed in the public API must be public


error: Found 1 documentation lint error.
```

In this case, `Path` is in `jsr:@david/path` so I don't think it makes sense to error here.
Repository: tensorflow
Issue: nvidia 'container-toolkit/latest/install-guide.html' link points to depricated page/product
Labels: stat:awaiting tensorflower,type:docs-feature


on this page
```
https://www.tensorflow.org/install/docker
```

this link ('install NVIDIA Docker support')
```
https://github.com/NVIDIA/nvidia-docker
```

found in this text:
```
TensorFlow Docker requirements
1. Install Docker on your local host machine.
2. For GPU support on Linux, install NVIDIA Docker support.
```

points to this "DEPRECATION NOTICE"
```
DEPRECATION NOTICE
This project has been superseded by the NVIDIA Container Toolkit.
```

which points to this link: 'NVIDIA Container Toolkit.'
```
https://github.com/NVIDIA/nvidia-container-toolkit
```

it would be helpful to include a link to this (burried) sub-sub link:
to the installation info:
```
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html
```
Repository: kubernetes
Issue: kube-apiserver memory leak
Labels: kind/bug,sig/api-machinery,triage/needs-information,needs-triage

### What happened?

I have upgraded to kubernetes 1.31.1 using Kubespray, after the update i can observe several issues, if we observe the graph for mem usage its like 45 degrees, from the start rising up untill it crashes, not much can be seen from the logs except some GRCP errors, i doubt this to cause the crashes, but this is everything i have

### What did you expect to happen?

Api not leak memory and crashes

### How can we reproduce it (as minimally and precisely as possible)?

Not sure

### Anything else we need to know?

W1214 15:25:17.351529       1 logging.go:55] [core] [Channel #1029556 SubChannel #1029558]grpc: addrConn.createTransport failed to connect to {Addr: "REDACTED:REDACTED", ServerName: "REDACTED:REDACTED", }. Err: connection error: desc = "error reading server preface: read tcp REDACTED:REDACTED->REDACTED:REDACTED: use of closed network connection"


Those erros are filling the logs, nothing else can be observed

### Kubernetes version

<details>

```console
$ kubectl version 
# paste output here
```
1.31.1

</details>


### Cloud provider

<details>

</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# Ubuntu 24.04
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>
Kubespray
</details>


### Container runtime (CRI) and version (if applicable)

<details>
Containerd
</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>
Weave
</details>
Repository: excalidraw
Issue: Text breaks at slash during editing but doesn't otherwise
Labels: bug,firefox,text wrapping

The text in the following text box, breaks at the slash when editing the text, but doesn't otherwise
```json
{"type":"excalidraw/clipboard","elements":[{"id":"VmmRPvcXB4MkrGPPvZDHn","type":"text","x":5083.783309982058,"y":1192.8432963475398,"width":502.90177325347287,"height":75,"angle":0,"strokeColor":"#1971c2","backgroundColor":"transparent","fillStyle":"solid","strokeWidth":2,"strokeStyle":"solid","roughness":1,"opacity":100,"groupIds":[],"frameId":null,"index":"b3o","roundness":null,"seed":1168588998,"version":359,"versionNonce":461317338,"isDeleted":false,"boundElements":[],"updated":1734207230558,"link":null,"locked":false,"text":"Stellt sich raus ich hab das Backup in\n/mnt/data/data/ statt nur /mnt/data/\nwiederhergestellt ...","fontSize":20,"fontFamily":5,"textAlign":"left","verticalAlign":"top","containerId":null,"originalText":"Stellt sich raus ich hab das Backup in /mnt/data/data/ statt nur /mnt/data/ wiederhergestellt ...","autoResize":false,"lineHeight":1.25}],"files":{}}
```
![Image](https://github.com/user-attachments/assets/f4c5f7e1-052f-43fc-9422-cbad56e14f70)
![Image](https://github.com/user-attachments/assets/6b5f6b5e-2a5a-48d1-9d7a-0e8461c77b61)
Tested on excalidraw.com
Repository: PowerToys
Issue: Adding Audio Management Tools
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

I am missing a PowerToys Style tool to handle the Windows Audio Streams better.
I am using various audio devices for different outputs and its a mess.
Has this been considered before?



### Scenario when this would be used?

1. Most important step one: create a taskbar widget for easy access to app-volumes, its simply a missing windows feature
(the workarounds for this I found are quite complicated, e.g. create an executable to star the right settings.....)

2. create an audio mixer that does it better for multiple audio devices
    1. show the routing in a more intuitive way
    2. if its not default routing - show it immediately - no extra clicks
    3. manage audio setup presets (next version)
    4. find a way to route system sound to another device than default (maybe impossible)

### Supporting information

Living in a city I need a sound background. But I also need informative or interactive audiostreams. 
So multiple audio streams are the solution.

AFAIK, there are no easy workaround.
The existing audio solutions don't integrate so well with win11.
Any suggestions?
I found https://github.com/File-New-Project/EarTrumpet
maybe its enough

I am offering collaboration as the mediocre default handling in win11 is wasting my time a lot. 

Is it just a fork and pull request? whats the instance to decide the pull request action?
Repository: deno
Issue: Unable to use NPM packages like `debug` and `chai` due to `ERR_TYPES_NOT_FOUND`
Labels: bug,node resolution

Version: Deno 2.1.4

Unable to use NPM packages like `debug` and `chai` due to `ERR_TYPES_NOT_FOUND`

```bash
$ deno run test
Task test deno test --coverage --clean --allow-env src/**/*.test.ts
error: Failed resolving types. [ERR_TYPES_NOT_FOUND] Could not find types for 'file:///Users/njenning/code/projects/sockethub-deno/node_modules/.deno/debug@4.4.0/node_modules/debug/index.js' imported from 'file:///Users/njenning/code/projects/sockethub-deno/packages/schemas/src/validator.ts'
    at file:///Users/njenning/code/projects/sockethub-deno/packages/schemas/src/validator.ts:2:19

$ cat deno.json
{
  "name": "@sockethub/schemas",
  "description": "JSON schema files for validating Sockethub Activity Streams",
  "version": "3.0.0-alpha.5",
  "exports": "./src/index.ts",
  "license": "MIT",
  "tasks": {
    "build": "deno run --allow-read --allow-write scripts/export-json-schema.ts",
    "coverage": "deno coverage | deno run jsr:@silverbucket/threshold 100 88",
    "test": "deno test --coverage --clean --allow-env src/**/*.test.ts"
  },
  "imports": {
    "@silverbucket/threshold": "jsr:@silverbucket/threshold@1.0.2",
    "@types/node": "npm:@types/node@22.5.0",
    "@types/debug": "npm:@types/debug@4.1.12",
    "ajv": "npm:ajv@8.12.0",
    "ajv-formats": "npm:ajv-formats@2.1.1",
    "@silverbucket/ajv-formats-draft2019": "jsr:@silverbucket/ajv-formats-draft2019@1.6.1",
    "debug": "npm:debug@^4.4.0"
  }
}
```

```bash
$ deno run test
Task test deno test --coverage --clean --allow-env --allow-read src/**/*.test.ts
error: Failed resolving types. [ERR_TYPES_NOT_FOUND] Could not find types for 'file:///Users/njenning/code/projects/sockethub-deno/node_modules/.deno/chai@4.3.10/node_modules/chai/index.js' imported from 'file:///Users/njenning/code/projects/sockethub-deno/packages/activity-streams/src/activity-streams.test.ts'
    at file:///Users/njenning/code/projects/sockethub-deno/packages/activity-streams/src/activity-streams.test.ts:12:23

$ cat deno.json
{
  "name": "@sockethub/activity-streams",
  "version": "4.4.0-alpha.5",
  "description": "A simple tool to facilitate handling and referencing activity streams without unnecessary verbosity",
  "license": "MIT",
  "exports": "./src/activity-streams.ts",
  "tasks": {
    "clean": "rm -rf npm coverage",
    "build": "deno run -A ./build.ts .",
    "coverage": "deno coverage | deno run jsr:@silverbucket/threshold 90 95",
    "test": "deno test --coverage --clean --allow-env --allow-read src/**/*.test.ts"
  },
  "imports": {
    "@types/chai": "npm:@types/chai@^4.3.19",
    "chai": "npm:chai@^4.3.10",
    "eventemitter3": "npm:eventemitter3@^5.0.1",
    "mocha": "npm:mocha@^10.7.3"
  }
}
```
Repository: vscode
Issue: CoPilot Edits - needs more granular display of changes like in CoPilot Chat
Labels: feature-request,cross-file-editing

<!-- ⚠️⚠️ 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. -->
When using the new CoPilot Edits feature (great feature BTW), there are a couple of suggested refinements: 

1. I'd like to be able to see the edits in the file in line as we do with the CoPilot Chat when we ask it to incorporate the changes into the file. It highlights each area with a Accept/Discard/Show changes choice above each. It would be nice to have this with Edits. 

I'd suggest keeping the global Accept All Changes as you have it now, as sometimes you know you want to accept them all after glancing over them. 

Currently, I have to click the icon to compare the files side by side which is slow and a bit clunky when the previously mentioned method works very well. 


2. Can you just drop the whole Edits screen and go back to using the chat interface, but have a toggle between the "Edits" behavior, and the Chat behavior? I don't like how I lose all my previous questions in the Edits screen, when I often need to grab that, copy/paste it again, revise it etc. I often scroll back up and find things from before, grab chunks of code that were listed out, etc. Actually, I just like the Chat screen format much better than just breaking out the Edits behavior. 

It seems to me that we programmers toggle between asking for a piece of code and the explanation of a concept from one second to the next so changing contexts from Edits to Chat is a pain. 

I REALLY like how fast the Edits incorporates the changes as opposed to how the Chat screen laboriously lists out the whole file, chunk of code, etc. 

Good work! Keep it up! Thanks for listening.
Repository: TypeScript
Issue: [tsserver] add support to fetch symbol references from only the current file.
Labels: Suggestion,Awaiting More Feedback

### 🔍 Search Terms

Hey.
it will be awesome if the "references" command can only get references of a symbol at position (x,y) but only inside the current file.


### ✅ Viability Checklist

- [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
- [x] This wouldn't change the runtime behavior of existing JavaScript code
- [x] This could be implemented without emitting different JS based on the types of the expressions
- [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- [x] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- [x] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

### ⭐ Suggestion

this can be added using `currentFileOnly?: boolean;` (like that inside `interface NavtoRequestArgs`).

### 📃 Motivating Example

i use it mainly for rewriting javascript files (usually obfuscated ones), so for each symbol i need to get all references but only for the currently opened file, so i wish there was a flag for it. as i thought it will be more performant (i.e. instead of searching references all across the project, if we restricted it to the current file - by a flag in a the request - then it can be more performant due to reduced search space?)

### 💻 Use Cases

1. What do you want to use this for?
- rewriting js files accurately. 
3. What shortcomings exist with current approaches?
- performance issues.
5. What workarounds are you using in the meantime?
- requesting references then filtering them if the ref['file'] key is the same as that supplied in `references` request. however, i think tsserver can be more performant than this approach.
Repository: TypeScript
Issue: Bug: string is not a string
Labels: Bug,Help Wanted

### 🔎 Search Terms

string extends template bug wrong error conditional

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ.

### ⏯ Playground Link

https://www.typescriptlang.org/play/?ts=5.7.2#code/FAFwngDgpgBAcgexgXhgbQGYEMA2BnKAXWFElgEk8BBAZRACcBLAOwHMAeGgPhRhpigAPEFGYATPDAAGAEgDeLDFHowA+gF8pMAPwwGAV1gAuGNnxQA3CXDQ+DFq0q17bdgBUBw0RJh4XrHlQ0JzomV1k5N00uQk8RcUlEHVNcAhgTAygSAGMEZj9fAAsEfRwxKhwAdywwPAAhKDd6QxNQhxD-dgByPC7AvWbLIA

### 💻 Code

```ts
type No = [false]

type IsAString<S> = S extends `${infer _}` ? true : false;

type StringIsAString<T extends string> = [IsAString<`${T}`>] extends No ? false : true

const shouldAlwaysBeTrue: StringIsAString<'s'> = true;
```


### 🙁 Actual behavior

`shouldAlwaysBeTrue` reports the following error:

> Type 'true' is not assignable to type 'false'.(2322)

### 🙂 Expected behavior

No error

### Additional information about the issue

This is the most minimal reproduction of the issue I could come up with after whittling it down from a _much_ more complicated scenario.

Interestingly enough, if I change _almost anything_ about it, the issue goes away. For example, if I replace `No` with `[false]`, issue goes away. If I take out one of the templates, issue goes away. Etc.
Repository: opencv
Issue: OpenCV.js aruco_CharucoBoard getChessboardCorners broken
Labels: bug,category: javascript (js)

### System Information

OpenCV version: 4.x
Operating System / Platform: Ubuntu 24.04
Compiler & compiler version: EMCC 3.1.73

### Detailed description

After compiling OpenCV.js following the tutorial, running the following code:
```js
import cv from "/home/sid/Documents/opencv/build_js/bin/opencv.js"


const cv2 = await cv;

let dictionary = cv2.getPredefinedDictionary(cv2.DICT_6X6_250);
let size = {width: 5, height: 7};
let squareLength = 0.04;
let board = new cv2.aruco_CharucoBoard(size, squareLength, 0.02, dictionary, new cv2.Mat());

board.getChessboardCorners()
```
results in an error:
```
node:internal/process/esm_loader:40
      internalBinding('errors').triggerUncaughtException(
                                ^
UnboundTypeError: Cannot call aruco_CharucoBoard.getChessboardCorners due to unbound types: NSt3__26vectorIN2cv7Point3_IfEENS_9allocatorIS3_EEEE
    at new UnboundTypeError (/home/sid/Documents/opencv/build_js/bin/opencv.js:31:11076988)
    at throwUnboundTypeError (/home/sid/Documents/opencv/build_js/bin/opencv.js:31:11077779)
    at ClassHandle.unboundTypesHandler [as getChessboardCorners] (/home/sid/Documents/opencv/build_js/bin/opencv.js:31:11087045)
    at file:///home/sid/PycharmProjects/slamdunk/app/lib/calibrate/test2.js:15:7

Node.js v20.9.0
```

### Steps to reproduce

1) Clone opencv and opencv_contrib
2) Build: `emcmake python3 ./platforms/js/build_js.py build_js --cmake_option="-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules"`
3) Run my code with `node test.js`

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [x] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: godot
Issue: Changing the script inheritance of a Resource does not update the type in resources and scenes where it is saved as a subresource automatically
Labels: bug,topic:editor

### Tested versions

v4.4.dev5.official [9e6098432]

### System information

Godot v4.4.dev5 - Fedora Linux 41 (KDE Plasma) on Wayland - X11 display driver, Multi-window, 1 monitor - Vulkan (Forward+) - integrated Intel(R) UHD Graphics 620 (KBL GT2) - Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 threads)

### Issue description

I use custom Resources in my project that inherit from Resource. I decided to change one of them to inherit from BoxShape3D, instead. However, when I saved the script and opened a scene that had it as a subresource, it printed in the console: `Script inherits from native type 'BoxShape3D', so it can't be assigned to an object of type 'Resource'.` and the resources no longer had script variables saved. When I saved the scene, the script variables were also no longer serialized.

I realized the issue was that it was still saved as "Resource" in the "type" parameter of the PackedScene/Resources where it was saved, but it should actually be "BoxShape3D" since the native type was changed. But for some reason, the editor did not update this automatically as would be expected. I had to manually update every resource's type to "BoxShape3D" using a text editor. This issue doesn't occur where it is saved as a main resource since there is no "type" parameter.

The issue also happens with Nodes, but at least you can change the type directly in the Scene Dock to the right value. But you can't do that with Resources without having to create a new version of it from the Godot editor.

### Steps to reproduce

Make a script that inherits from Resource. Optionally add some export variables. Then make a scene and add a Node, and add a script. Add an export variable for the resource. Then in the inspector, add a new resource of that script and set the variables to non-defaults. Then change the base class of the custom resource to something that inherits from Resource. When you run the project, an error should show when running saying `Script inherits from native type '*', so it can't be assigned to an object of type 'Resource'.`

### Minimal reproduction project (MRP)

[resourceissue.zip](https://github.com/user-attachments/files/18136904/resourceissue.zip)