sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Compiler forgets the trait bound on an associated type if the concrete type is known
Labels: A-trait-system,T-compiler,C-bug,T-types

<!--
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 SomeTrait {}

trait Foo {
    type Assoc: SomeTrait;
}

struct Wrap<T>(T);

fn require_trait<T: SomeTrait>() {}

fn works<T: Foo>() {
    require_trait::<<T as Foo>::Assoc>();
}

fn fails<T: Foo<Assoc = Wrap<T>>>() {
    require_trait::<<T as Foo>::Assoc>();
}
```

I expected the code to compile, but I got the following error instead:

```
   Compiling playground v0.0.1 (/playground)
error[E0277]: the trait bound `Wrap<T>: SomeTrait` is not satisfied
  --> src/lib.rs:16:21
   |
16 |     require_trait::<<T as Foo>::Assoc>();
   |                     ^^^^^^^^^^^^^^^^^ the trait `SomeTrait` is not implemented for `Wrap<T>`
   |
help: this trait has no implementations, consider adding one
  --> src/lib.rs:1:1
   |
1  | trait SomeTrait {}
   | ^^^^^^^^^^^^^^^
note: required by a bound in `require_trait`
  --> src/lib.rs:9:21
   |
9  | fn require_trait<T: SomeTrait>() {}
   |                     ^^^^^^^^^ required by this bound in `require_trait`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `playground` (lib) due to 1 previous error
```

Note that the `works` function compiles, even though it's strictly more general than the `fails` function.

Discovered by sarah8389 on the rust community discord.

### Meta

The issue reproduces on the playground with "Stable version: 1.81.0" and "1.83.0-nightly (2024-09-15 04a318787b39732e306f)"
Repository: storybook
Issue: [Bug]: Indexers are 'first-come, first served' for each RegExp match
Labels: bug,needs triage

### Describe the bug

I attempted to create a new indexer with the RegExp match `\.amlstories.ts$?\` and couldn't understand why it was not working.  It took quite some debugging and referencing existing indexers to realise that the indexer array is first-come, first-served for the regex match.  After changing the RegExp to `\.aml.ts%?\`, the indexer matched the file type and ran normally.

I see two solutions - the easiest is to simply document this fact.  It shouldn't be hard to keep `story` or `stories` out of the matched filename, though instinct does indicate that you write that.  Alternatively, a combinatorial approach would allow you to have a different render for each indexer, and combine them together.  I don't mind, I just wanted this to be documented for anyone else who hits this (admittedly trivial) issue in the future :)

### Reproduction link

https://stackblitz.com/~/github.com/LazerFX/storybook-indexer-bug

### Reproduction steps

1. Add a `custom_indexer` with the `test` matching the same as the default indexer (i.e. anything ending story or stories).

I expected the indexer to be 'added' or 'merged' with the existing one, so that regular stories would be indexed, as well as new ones.  Instead, the existing indexer was ran, and the new indexer wasn't even triggered (Which led to a lot of head scratching to figure out why the test was failing - it wasn't, strictly speaking, it was just never ran as the first indexer to satisfy the result was used).

### System

```bash
Storybook Environment Info:

  System:
    OS: Windows 11 10.0.22631
    CPU: (14) x64 Intel(R) Core(TM) Ultra 5 135U
  Binaries:
    Node: 20.17.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD <----- active
  Browsers:
    Edge: Chromium (127.0.2651.86)
```


### Additional context

_No response_
Repository: PowerToys
Issue: Keyboard Manager shortcut not working
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.84 and 0.79

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

I added Win+Y and Alt+Y key combinations to open the calc.exe in a new window. Restart the computer, let powertoys run automatically.

### ✔️ Expected Behavior

After restart the added key combinations will work.

### ❌ Actual Behavior

The combinations only work right after configuring them or after disabling/enabling the keyboard manager. Additional problem is that even when it works, the calc.exe is mostly not opened in the foreground (tested with firefox and other apps).

### Other Software

_No response_
Repository: pytorch
Issue:  `num_features` of `nn.BatchNorm1d()` with a tuple of `int` works
Labels: module: nn,triaged

### 🐛 Describe the bug

[The doc](https://pytorch.org/docs/stable/generated/torch.nn.BatchNorm1d.html) of `nn.BatchNorm1d()` says `num_features` is `int` as shown below:

> Parameters
> - num_features ([int](https://docs.python.org/3/library/functions.html#int)) – number of features or channels C of the input

But `num_features` with a tuple of `int` works as shown below. *It also happens with `num_features` of [nn.BatchNorm2d()](https://pytorch.org/docs/stable/generated/torch.nn.BatchNorm2d.html) and [nn.BatchNorm3d()](https://pytorch.org/docs/stable/generated/torch.nn.BatchNorm3d.html):

```python
import torch
from torch import nn

my_tensor = torch.tensor([[8., -3., 0.],
                          [1., 5., -2.]])
batchnorm1d = nn.BatchNorm1d(num_features=(3,))
batchnorm1d(input=my_tensor)            # ↑↑↑↑
# tensor([[1.0000, -1.0000, 1.0000],
#         [-1.0000, 1.0000, -1.0000]], grad_fn=<NativeBatchNormBackward0>)
```

### Versions

```python
import torch

torch.__version__ # '2.3.0'
```

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: deno
Issue: Implement Happy Eyeballs for TCP connections
Labels: feat,ext/net

Right now we generally prefer IPv6 to IPv4 addresses when connecting to services. This unfortunately causes users to run into "connection failed" errors when their service does not actually listen on IPv6 (even though the DNS resolves to an IPv6 address).

[Happy Eyeballs](https://en.wikipedia.org/wiki/Happy_Eyeballs) fixes this. It establishes connections to multiple addresses in parallel and uses the first one that connects.
Repository: tauri
Issue: [bug] [LINUX] Cursor theme in GTK is reset to adwaita when running AppImage built on GitHub Actions
Labels: type: bug,status: upstream,platform: Linux,status: needs triage

### Describe the bug

Cursor theme in GTK is reset to adwaita when running AppImage built on GitHub Actions.

For app built natively, this issue doesn't occurs

downstream issue: vrc-get/vrc-get#1532

### Reproduction

1. change the cursor theme with GTK config (I don't know much)
2. run tauri app built on GitHub Actions


### Expected behavior

cursor should be user customized one

### Full `tauri info` output

```text
[✔] Environment
    - OS: Mac OS 14.4.1 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.81.0-beta.7 (4a765c0b8 2024-08-28)
    ✔ cargo: 1.81.0-beta.7 (2dbb1af80 2024-08-20)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: beta-aarch64-apple-darwin (default)
    - node: 22.6.0
    - pnpm: 8.15.4
    - npm: 10.8.2

[-] Packages
    - tauri 🦀: 2.0.0-rc.8
    - tauri-build 🦀: 2.0.0-rc.7
    - wry 🦀: 0.42.0
    - tao 🦀: 0.29.1
    - tauri-cli 🦀: 2.0.0-rc.3
    - @tauri-apps/api : 2.0.0-rc.4
    - @tauri-apps/cli : 2.0.0-rc.10

[-] Plugins
    - tauri-plugin-single-instance 🦀: 2.0.0-rc.1
    - @tauri-apps/plugin-single-instance : not installed!
    - tauri-plugin-dialog 🦀: 2.0.0-rc.3
    - @tauri-apps/plugin-dialog : not installed!
    - tauri-plugin-updater 🦀: 2.0.0-rc.2
    - @tauri-apps/plugin-updater : not installed!
    - tauri-plugin-fs 🦀: 2.0.0-rc.1
    - @tauri-apps/plugin-fs : not installed!

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: out
    - devUrl: http://localhost:3030/
    - framework: React (Next.js)
    - bundler: Webpack
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: PowerToys
Issue: 无界鼠标没有网络
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.84.1

### Installation method

Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

![屏幕截图 2024-09-16 203705](https://github.com/user-attachments/assets/2af94491-c38f-4ff6-a575-43f0ca671b1d)


### ✔️ Expected Behavior

可以使用进行控制多台电脑

### ❌ Actual Behavior

经常中断,查不到原因，而且中间那个粘贴文件也不好用

### Other Software

_No response_
Repository: electron
Issue: [Bug]: Ozone-wayland window decorations (CSD) does not follow button spacing of the applied GTK style
Labels: platform/linux,bug :beetle:,stale,31-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

31

### What operating system(s) are you using?

Other Linux

### Operating System Version

Arch Linux

### What arch are you using?

x64

### Last Known Working Electron version

-

### Expected Behavior

Under GNOME wayland and weston, Electron will utilize GTK to draw decorations, since the Desktop does not draw decorations for Electron. However it appears that spacing between buttons does not conform to the applied GTK style:   
![gambar](https://cdn.discordapp.com/attachments/232742985882796032/1285216462981697628/image.png?ex=66e9769a&is=66e8251a&hm=b53f6571a9c342acb8401a60ecf9ab27adb253dcc3930c71e37723b8cc8974c3&)  
the image above from top-to-bottom shows CSD decorations from
- electron
- GTK headerbar
- GTK titlebar
- Qadwaitadecorations

### Actual Behavior

For button spacing to match the GTK style

### Testcase Gist URL

_No response_

### Additional Information

### Steps to Reproduce
1. Run Linux
2. Run GNOME wayland or weston
3. enable minimize and maximize buttons
4. run an electron app with --ozone-platform-hint=auto
5. Run a GTK app (non-gnome, i.e inkscape)
6. change gtk themes in gnome-tweaks
7. See that no matter what theme, electron will always be different

Please don't tell me to use electron fiddle, this should suffice
Repository: ollama
Issue: Massive performance regression on 0.1.32 -> GGML_CUDA_FORCE_MMQ: (SET TO NO, after  0.1.31)
Labels: bug,performance,nvidia,needs more info

### What is the issue?

For reference:

https://github.com/ollama/ollama/issues/3938 

The issue might be actually result of disabling the following mode:

Older versions: 0.1.31
ggml_cuda_init: GGML_CUDA_FORCE_MMQ: YES

New versions   (After  0.1.31)
ggml_cuda_init: GGML_CUDA_FORCE_MMQ: no

I tried to force this via env variables, but it did not help. Is there way to configure this via OLLAMA 


### OS

Linux

### GPU

Nvidia

### CPU

Intel

### Ollama version

0.1.31 -> 0.3.10
Repository: vscode
Issue: [106eb] potential listener LEAK detected, having 187 listeners already. MOST frequent listener (13):
Labels: error-telemetry

```javascript
Error
at u.create in src/vs/base/common/event.ts:933:15
at V.q [as onMouseDown] in src/vs/base/common/event.ts:1140:34
at new f in src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.ts:150:34
at <anonymous> in src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.ts:235:8
at computeFn in src/vs/base/common/observableInternal/derived.ts:122:11
at u.t in src/vs/base/common/observableInternal/derived.ts:284:22
at u.get in src/vs/base/common/observableInternal/derived.ts:261:10
at u.reportChanges in src/vs/base/common/observableInternal/base.ts:189:8
at u.get in src/vs/base/common/observableInternal/derived.ts:246:9
at u.reportChanges in src/vs/base/common/observableInternal/base.ts:189:8
at b.endUpdate in src/vs/base/common/observableInternal/autorun.ts:229:9
at u.endUpdate in src/vs/base/common/observableInternal/derived.ts:341:7
at u.endUpdate in src/vs/base/common/observableInternal/derived.ts:341:7
at u.endUpdate in src/vs/base/common/observableInternal/derived.ts:341:7
at c.finish in src/vs/base/common/observableInternal/base.ts:372:13
at b in src/vs/base/common/observableInternal/base.ts:306:6
at $6d in src/vs/base/common/observableInternal/base.ts:342:3
at d.r [as value] in out/vs/workbench/workbench.desktop.main.js:100:13201
at l.B in src/vs/base/common/event.ts:1242:13
at l.C in src/vs/base/common/event.ts:1253:9
at l.fire in src/vs/base/common/event.ts:1277:9
at l.J in src/vs/editor/common/model/tokenizationTextModelPart.ts:163:28
at d.value in src/vs/editor/common/model/tokenizationTextModelPart.ts:91:9
at l.B in src/vs/base/common/event.ts:1242:13
at l.fire in src/vs/base/common/event.ts:1273:9
at y.F in src/vs/editor/common/model/tokenizationTextModelPart.ts:563:28
at Object.setTokens in src/vs/editor/common/model/tokenizationTextModelPart.ts:480:11
at f.setTokensAndStates in src/vs/workbench/services/textMate/browser/backgroundTokenization/textMateWorkerTokenizerController.ts:217:37
at Object.$setTokensAndStates in src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.ts:155:17
at r.h in src/vs/base/common/worker/simpleWorker.ts:404:52
at Object.handleMessage in src/vs/base/common/worker/simpleWorker.ts:361:17
at n.k in src/vs/base/common/worker/simpleWorker.ts:245:32
at n.h in src/vs/base/common/worker/simpleWorker.ts:209:17
at n.handleMessage in src/vs/base/common/worker/simpleWorker.ts:178:8
at <anonymous> in src/vs/base/common/worker/simpleWorker.ts:347:20
at onMessageCallback in src/vs/base/browser/defaultWorkerFactory.ts:153:5
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40&bH=b08e9970-c631-cf6b-81bc-a82853f03746)
Repository: vscode
Issue: [106f1] potential listener LEAK detected, having 194 listeners already. MOST frequent listener (20):
Labels: error-telemetry,diff-editor

```javascript
Error
at u.create in src/vs/base/common/event.ts:933:15
at V.q [as onMouseMove] in src/vs/base/common/event.ts:1140:34
at new f in src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.ts:141:34
at <anonymous> in src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.ts:235:8
at computeFn in src/vs/base/common/observableInternal/derived.ts:122:11
at u.t in src/vs/base/common/observableInternal/derived.ts:284:22
at u.get in src/vs/base/common/observableInternal/derived.ts:261:10
at u.reportChanges in src/vs/base/common/observableInternal/base.ts:189:8
at u.get in src/vs/base/common/observableInternal/derived.ts:246:9
at u.reportChanges in src/vs/base/common/observableInternal/base.ts:189:8
at b.endUpdate in src/vs/base/common/observableInternal/autorun.ts:229:9
at u.endUpdate in src/vs/base/common/observableInternal/derived.ts:341:7
at u.endUpdate in src/vs/base/common/observableInternal/derived.ts:341:7
at u.endUpdate in src/vs/base/common/observableInternal/derived.ts:341:7
at c.finish in src/vs/base/common/observableInternal/base.ts:372:13
at b in src/vs/base/common/observableInternal/base.ts:306:6
at $6d in src/vs/base/common/observableInternal/base.ts:342:3
at d.r [as value] in out/vs/workbench/workbench.desktop.main.js:100:13201
at l.B in src/vs/base/common/event.ts:1242:13
at l.C in src/vs/base/common/event.ts:1253:9
at l.fire in src/vs/base/common/event.ts:1277:9
at l.J in src/vs/editor/common/model/tokenizationTextModelPart.ts:163:28
at d.value in src/vs/editor/common/model/tokenizationTextModelPart.ts:91:9
at l.B in src/vs/base/common/event.ts:1242:13
at l.fire in src/vs/base/common/event.ts:1273:9
at y.F in src/vs/editor/common/model/tokenizationTextModelPart.ts:563:28
at Object.setTokens in src/vs/editor/common/model/tokenizationTextModelPart.ts:480:11
at f.setTokensAndStates in src/vs/workbench/services/textMate/browser/backgroundTokenization/textMateWorkerTokenizerController.ts:217:37
at Object.$setTokensAndStates in src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.ts:155:17
at r.h in src/vs/base/common/worker/simpleWorker.ts:404:52
at Object.handleMessage in src/vs/base/common/worker/simpleWorker.ts:361:17
at n.k in src/vs/base/common/worker/simpleWorker.ts:245:32
at n.h in src/vs/base/common/worker/simpleWorker.ts:209:17
at n.handleMessage in src/vs/base/common/worker/simpleWorker.ts:178:8
at <anonymous> in src/vs/base/common/worker/simpleWorker.ts:347:20
at onMessageCallback in src/vs/base/browser/defaultWorkerFactory.ts:153:5
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40&bH=befbdad9-d06b-0469-b4e7-9b61582b1f7b)
Repository: vscode
Issue: There are no commenting ranges at the current position (with range).
Labels: error-telemetry

```javascript
Error: There are no commenting ranges at the current position (with range).
at q.addCommentAtLine in out/vs/workbench/workbench.desktop.main.js:2358:2651
at q.addOrToggleCommentAtLine in out/vs/workbench/workbench.desktop.main.js:2358:2181
at q.cb in out/vs/workbench/workbench.desktop.main.js:2358:1884
at u.value in out/vs/workbench/workbench.desktop.main.js:2357:21899
at ae.B in out-vscode/vs/workbench/vs/base/common/marked/marked.js:1873:1
at text in out-vscode/vs/workbench/vs/base/common/marked/marked.js:1880:1
at ae.fire in out/vs/workbench/workbench.desktop.main.js:93:1018
at ae.fire in out/vs/workbench/workbench.desktop.main.js:771:22609
at $e.onMouseUp in out/vs/workbench/workbench.desktop.main.js:771:20448
at C.emitMouseUp in out/vs/workbench/workbench.desktop.main.js:220:22500
at L.emitMouseUp in out/vs/workbench/workbench.desktop.main.js:699:46620
at i.M in out/vs/workbench/workbench.desktop.main.js:745:15967
at <anonymous> in out/vs/workbench/workbench.desktop.main.js:745:13080
at HTMLDivElement.<anonymous> in out/vs/workbench/workbench.desktop.main.js:740:34053
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=4849ca9bdf9666755eb463db297b69e5385090e3&bH=6e758ea5-4524-62fe-a2ec-e014cd6e5f7f)
Repository: realworld
Issue: [Bug]: while doing sign up , It also accepting  Invalid Emails
Labels: bug

### Relevant scope

Frontend specs

### Description

While Doing Sign Up ,It is also accepting Invalid Email like without @gmail.com

![image](https://github.com/user-attachments/assets/5da5c9f8-14a7-478d-974a-7051d1420423)
Repository: pytorch
Issue: MultiLabelMarginLoss with customized margin.
Labels: module: nn,module: loss,triaged,function request

### 🚀 The feature, motivation and pitch

I'm working on MultiLabelMarginLoss and would like customized margin to be possible.

### Alternatives

_No response_

### Additional context

_No response_

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: godot
Issue: Theme types cannot have characters such as . or /
Labels: enhancement,topic:editor,documentation,topic:gui

### Tested versions

Godot v4.4.dev unknown - Windows 10.0.19045 - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 4050 Laptop GPU (NVIDIA; 32.0.15.6070) - 13th Gen Intel(R) Core(TM) i5-13500HX (20 Threads)

### System information

Godot v4.4.dev unknown - Windows 10.0.19045 - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 4050 Laptop GPU (NVIDIA; 32.0.15.6070) - 13th Gen Intel(R) Core(TM) i5-13500HX (20 Threads)

### Issue description

Theme types cannot contain characters such as periods (.) or slashes (/)

I couldn't find information about this on the documentation but I could just be blind. I think it would be cleaner if you could use names with periods as if they were sub-classes of the main type.

### Steps to reproduce

1. Create a theme
2. Set a name such as Button.Test
3. See it does not add

### Minimal reproduction project (MRP)

N/A
Repository: go
Issue: cmd/go: add `go generate -exec` flag like `go run -exec` and `go test -exec`
Labels: NeedsInvestigation,FeatureRequest,GoCommand,Tools

I sometimes use `go run -exec` to quickly check how long a program takes to run excluding the build time, for example:

```
$ /bin/time go run testdata/gen.go 
7.53user 1.17system 0:01.51elapsed 573%CPU (0avgtext+0avgdata 601640maxresident)k
0inputs+384outputs (10major+131651minor)pagefaults 0swaps
$ go run -exec=/bin/time testdata/gen.go 
6.96user 1.08system 0:01.21elapsed 661%CPU (0avgtext+0avgdata 492024maxresident)k
0inputs+224outputs (1major+134476minor)pagefaults 0swaps
```

Similarly, I have found `go test -exec` very useful on occasion, for example to test for a different OS like `GOOS=windows go test -exec=wine`, or to test under a different environment like with https://github.com/mvdan/dockexec.

I wish I could do something similar with `go generate`. For example, in one of my projects, `go generate ./...` in CI takes twelve seconds, and I'd like to dig into which of the steps is taking longer than I would expect. For this reason I'd love to be able to do `go generate -exec=time ./...` or something similar with a short script.
Repository: vscode
Issue: Change boolean `isAi` to tag with enum value of possible descriptors
Labels: feature-request,editor-code-actions,api-proposal

@dbaeumer and I have had a conversation today about the proposed API `vscode.proposed.codeActionAI.d.ts`. Dirk asked if there is a reason we use a boolean here or if it would make sense to instead add a field `tag` that could take one of several descriptor values including `AI`. I believe Dirk mentioned he will be adding such a tag also in LSP as per user requests. This would allow us to extend the CodeAction `tag` property to other use cases too.

Pinging @jrieken about the API side.
Repository: flutter
Issue: Remove usages of ANDROID_SDK_ROOT in the engine 
Labels: platform-android,engine,c: proposal,P2,c: tech-debt,team-android,triaged-android

https://github.com/search?q=repo%3Aflutter%2Fengine%20ANDROID_SDK_ROOT&type=code

https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:build-system/gradle-core/src/main/java/com/android/build/gradle/internal/SdkLocator.kt;l=197?q=Several%20environment%20variables%20and%2For%20system%20properties%20contain%20different%20paths%20to%20the%20SDK
https://cs.android.com/android-studio/platform/tools/base/+/24d480687a1d5f92d898dd49e23286cdf8b0e3fd

The reason for targeting the engine is that if both ANDROID_HOME and ANDROID_SDK_ROOT are set but have the same value then there is not an error. But the engine overrides the local android sdk when building so it causes build errors.