sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: bounds on trait impls are used in implied bounds 
Labels: T-compiler,C-bug,T-types,A-implied-bounds

The following compiles although it shouldn't:
```rust
trait Trait {
    type Assoc;
}

impl<T: 'static> Trait for Box<T> {
    type Assoc = ();
}

struct MyTy<U>(U)
where
    U: Trait,
    U::Assoc: Sized, // any predicate naming U::Assoc
;

fn fn_test<T>(_: MyTy<Box<T>>) {}
```
`fn_test` should fail with an error requiring an explicit `T: 'static` bound.

This is a compiler bug for the following reasons:
- It certainly does not follow from the rules of [RFC 1214][rfc1214] and [RFC 2089][rfc2089]. The implied bounds from a trait reference (`Box<T>: Trait`) includes only the where-clauses of the trait itself, not the trait impl. 
- It breaks stability guarantees in the sense that relaxing region constraints on trait impls is now a breaking change. Removing the useless bound `U::Assoc: Sized` is also a breaking change.
- It requires remote reasoning when dealing with implied bounds.
- It is a surprising behavior: why does the trivial bound `U::Assoc: Sized` make any meaningful difference?

[rfc1214]: https://rust-lang.github.io/rfcs/1214-projections-lifetimes-and-wf.html
[rfc2089]: https://rust-lang.github.io/rfcs/2089-implied-bounds.html
Repository: deno
Issue: integration::cert::cafile_compile is flaky
Labels: flaky

See: https://github.com/denoland/deno/actions/runs/4523853079/jobs/7967278237

```
---- integration::cert::cafile_compile stdout ----
deno_exe path /home/runner/work/deno/deno/target/release/deno
command /home/runner/work/deno/deno/target/release/deno compile --quiet --cert ./tls/RootCA.pem --allow-net --output /tmp/deno-cli-testa7DbqO/cert ./cert/cafile_ts_fetch.ts
command cwd "/home/runner/work/deno/deno/cli/tests/testdata"
command /tmp/deno-cli-testa7DbqO/cert 
command cwd "/home/runner/work/deno/deno/cli/tests/testdata"
[test_util/src/lib.rs:2061] part = "\nHello\n"
[test_util/src/lib.rs:2061] i = 1
[test_util/src/lib.rs:2070] "exit false " = "exit false "
[test_util/src/lib.rs:2070] i = 1
OUTPUT START
error: Uncaught (in promise) TypeError: error sending request for url (https://localhost:5545/cert/cafile_ts_fetch.ts.out): error trying to connect: Connection reset by peer (os error 104)
    at async mainFetch (ext:deno_fetch/26_fetch.js:266:12)
    at async fetch (ext:deno_fetch/26_fetch.js:490:7)

OUTPUT END
EXPECTED START
[WILDCARD]
Hello

EXPECTED END
thread 'integration::cert::cafile_compile' panicked at 'pattern match failed at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/ops/function.rs:250:5'
```
Repository: deno
Issue: integration::cert::listen_tls_alpn is flaky
Labels: flaky

See: https://github.com/denoland/deno/actions/runs/4523846647/jobs/7967268124

```
---- integration::cert::listen_tls_alpn stdout ----
thread 'integration::cert::listen_tls_alpn' panicked at 'assertion failed: `(left == right)`
  left: `0`,
 right: `5`', cli\tests\integration\cert_tests.rs:241:7
```
Repository: stable-diffusion-webui
Issue: [Bug]: result images wont show when bat>1 after recent update.
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

1. choose bat size >1
2. can see the image is genarating, but the end result will not show images

### Steps to reproduce the problem

1. choose bat size >1
2. Press  genarate
3. no result images and grid show


### What should have happened?

imgs and imgs-grid should show.

### Commit where the problem happens

0325 

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

_No response_

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

_No response_

### Command Line Arguments

```Shell
set COMMANDLINE_ARGS=--deepdanbooru --xformers --port=7862 --api --listen
```


### List of extensions

most pop exts.

### Console logs

```Shell
no exceptions
```


### Additional information

_No response_
Repository: storybook
Issue: [Bug]: createPortal in decorator breaks react-element-to-jsx-string
Labels: bug,has workaround,block: source

### Describe the bug

If I attempt to use createPortal in a decorator, the story breaks like this:

![image](https://user-images.githubusercontent.com/50637/227777348-d47e29f1-ab4a-4693-8e2f-6010b9fdbc38.png)

Here is the decorator:

```jsx
import {createPortal} from 'react-dom'

const myDecorator = Story => {
  return (
    <>
      {createPortal(<p>Hello</p>, document.body)}
      <Story />
    </>
  )
}

export default myDecorator
```

### To Reproduce

Repo at https://github.com/agriffis/storybook-createportal

This was created with three steps:

1. `pnpm create vite storybook-createportal`
2. `pnpx storybook@next init`
3. Add the decorator, see https://github.com/agriffis/storybook-createportal/commit/afd5f95b9fc932f993e73649332db629a259fe96

To repro locally

```
git clone https://github.com/agriffis/storybook-createportal.git
cd storybook-createportal
pnpm i
pnpm storybook
```

### System

```shell
System:
    OS: Linux 6.1 Fedora Linux 36 (Server Edition)
    CPU: (12) x64 Intel Core Processor (Skylake, IBRS)
  Binaries:
    Node: 16.18.1 - /usr/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.2.0 - /usr/local/bin/npm
  Browsers:
    Firefox: 111.0.1
  npmPackages:
    @storybook/addon-essentials: ^7.0.0-rc.8 => 7.0.0-rc.8 
    @storybook/addon-interactions: ^7.0.0-rc.8 => 7.0.0-rc.8 
    @storybook/addon-links: ^7.0.0-rc.8 => 7.0.0-rc.8 
    @storybook/blocks: ^7.0.0-rc.8 => 7.0.0-rc.8 
    @storybook/react: ^7.0.0-rc.8 => 7.0.0-rc.8 
    @storybook/react-vite: ^7.0.0-rc.8 => 7.0.0-rc.8 
    @storybook/testing-library: ^0.0.14-next.1 => 0.0.14-next.1
```


### Additional context

_No response_
Repository: rust
Issue: Access Denied Error when `x.py` tries to rebuild bootstrap
Labels: O-windows,T-bootstrap,A-contributor-roadblock

It appears that `x` is creating the build folder with the incorrect permissions.

## Steps to reproduce
- Clean install.
- Run `./x.ps1 build`
- Run any command (like `./x.py test tidy`) that rebuilds anything that's already been built using the other shell.
- Observe the following error
```
error: failed to remove file `C:/msys64/home/siyua/rust/build/bootstrap\debug\rustc.exe`

Caused by:
  Access is denied. (os error 5)
warning: build failed, waiting for other jobs to finish...
error: failed to remove file `C:/msys64/home/siyua/rust/build/bootstrap\debug\bootstrap.exe`

Caused by:
  Access is denied. (os error 5)
failed to run: C:/msys64/home/siyua/rust/build/x86_64-pc-windows-gnu/stage0/bin/cargo.exe build --manifest-path C:/msys64/home/siyua/rust/src/bootstrap/Cargo.toml
```

## Workaround
Navigate to the rust build folder, open properties, navigate to the security tab and make sure that the Users section has permissions for `Modify`

Head is at `ef03fda339923e659d3d3ca3321de887316d2807`.
Repository: PowerToys
Issue: Alt+Tab does not disable if a third key is also pressed.
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Needs-Triage

### Microsoft PowerToys version

0.68.1

### Installation method

Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

Press Alt + Tab + <other key>

### ✔️ Expected Behavior

Disabling the Alt +Tab shortcut disables only Alt + Tab. If you press a third key also then Alt + Tab works as normal. This is painful for gaming as you frequently use other key inputs at the same time, which causes the window to become minimised. You also cannot disable a specific three-key combination as PowerToys (as far as I know) will only allow you to input shortcuts with two key combinations.

### ❌ Actual Behavior

Alt + Tab functions normally if a third key is also pressed.

### Other Software

_No response_
Repository: pytorch
Issue: torch.zeros_like on a zero-sized BSR/BSC tensor results invalid tensor
Labels: module: sparse,triaged,module: correctness (silent)


## Issue description

As in the title.

## Code example

```python
>>> torch.sparse.check_sparse_tensor_invariants.enable()
>>> x=torch.sparse_bsr_tensor([0, 3], [0, 1, 2], torch.arange(12).reshape(3, 2, 1, 2))
>>> torch._validate_sparse_bsr_tensor_args(x.crow_indices(), x.col_indices(), x.values(), x.shape)
>>> z=torch.zeros_like(x)
>>> z
tensor(crow_indices=tensor([0, 0]),
       col_indices=tensor([], size=(0,)),
       values=tensor([], size=(0, 2, 2, 1)), size=(2, 3, 2), nnz=0,
       layout=torch.sparse_bsr)
>>> torch._validate_sparse_bsr_tensor_args(z.crow_indices(), z.col_indices(), z.values(), z.shape)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: tensor shape[1] (=3) must be divisible with blocksize[1] (=2) as defined by values shape
```

The expected result is
```python
>>> z=torch.sparse_bsr_tensor(torch.zeros(x.crow_indices().shape, dtype=torch.int64), torch.zeros(0, dtype=torch.int64), torch.zeros(0, *x.values().shape[1:]), x.shape)
>>> torch._validate_sparse_bsr_tensor_args(z.crow_indices(), z.col_indices(), z.values(), z.shape)
>>> z
tensor(crow_indices=tensor([0, 0]),
       col_indices=tensor([], size=(0,)),
       values=tensor([], size=(0, 2, 1, 2)), size=(2, 3, 2), nnz=0,
       layout=torch.sparse_bsr)
```


## System Info

- PyTorch version: master


cc @alexsamardzic @nikitaved @cpuhrsch @amjames @bhosmer
Repository: vscode
Issue: Output and editor scroll at the same time on Safari
Labels: bug,notebook-output

Using latest Insiders on Codespace on Safari

https://user-images.githubusercontent.com/876920/227794526-bf659d6d-ed53-4ee9-82a4-8f08733a3fca.mov
Repository: PowerToys
Issue: Unit converter: Allow fractions as input
Labels: Idea-Enhancement,Product-PowerToys Run,Needs-Triage,Run-Plugin

### Description of the new feature / enhancement

It would be convenient to allow fractions as input for the unit converter.

For example:
```
%% 1/2 in to mm
12.7 mm
```

Currently, the only way to accomplish this is by first converting the fraction to decimal, and then running:
```
%% 0.5 in to mm
12.7 mm
```

**Further suggestions:**
It could also be helpful to allow other math operations as input to the unit converter such as:
```
%% 0.5 + 7/16 in to mm
23.812 mm
```

Or even mixing and matching units in math, such as
```
%% 10 mm + 0.5 in to mm
22.7 mm
```

### Scenario when this would be used?

Units like inches commonly use fractional denominations, such as 1/2, 5/8, 3/4, etc. It would be helpful to be able to input a fraction directly into the unit converter instead of having to take an extra step of converting the fraction to a decimal.

### Supporting information

Performing unit conversions in Windows Search supports fractions and mixed units, such as `1/2 in to mm` or `10 mm + 0.5 in to mm`. However, it is (sometimes) slow and requires an internet connection. It would be nice if PowerToys supported this natively too.
Repository: TypeScript
Issue: Regression with TS 5. Type instantiation is excessively deep and possibly infinite.ts(2589) 
Labels: Needs More Info

# Bug Report

### 🔎 Search Terms

<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

- Type instantiation is excessively deep and possibly infinite.ts(2589)
- Typescript 5.0.2  
- instantiationCount >= 5e6  

### 🕗 Version & Regression Information

`5.0.2` (Also tested with `5.1.0-dev.20230326`)

Please keep and fill in the line that best applies:
- This changed between versions 4.9.5 and 5.0.2

### ⏯ Playground Link

I created a reproduction repo with straight forward reproduction path:  
https://github.com/garronej/typescript-v5-instantiationCount-bug-report  

### 💻 Code

The problem is related to typescript 5 instantiating much more object than TS 4.  
I know that the problem occurs when involving [this framework that has complex type definitions](https://github.com/garronej/redux-clean-architecture/blob/main/src/createCore.ts).  

### 🙁 Actual behavior

With TypeScript v5 project fail to compile with `Type instantiation is excessively deep and possibly infinite.ts(2589)`.  
Because the `instantiationCount` limit (5e6) is reached.  
Increasing it by modifying TypeScript's source fixes it but intelissense becomes so slow it becomes impossible to work.  

On MBP M1:

https://user-images.githubusercontent.com/6702424/227797872-21ac44ed-a4a9-4378-9bd8-ea7431e13f7e.mp4

### 🙂 Expected behavior  

With TypeScript v4 it compiles and the devloppement experience is smooth:  

https://user-images.githubusercontent.com/6702424/227798305-cd0f1b89-6e97-4ea8-aa11-05dd1456ac03.mov   

Thanks to all the team, thanks for your great work!
Repository: pytorch
Issue: Regression in jit for f-strings with new lines
Labels: oncall: jit,triaged

### 🐛 Describe the bug

Consider the following code. It executes without error on v1.13.1 and python3.7

```python
import torch

@torch.jit.script
def xxx(
    box_preds: torch.Tensor, cls_scores: torch.Tensor, cls_labels: torch.Tensor
) -> None:
    assert (
        1 == 2
    ), f'"cls_labels" should have the same shape as "cls_scores", but got {cls_labels.shape} and \
        {cls_scores.shape}'

print(xxx)
```

But it fails with the following error on v1.13.1 and python3.9

```
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
[<ipython-input-4-7faa743d235b>](https://localhost:8080/#) in <module>
      2 
      3 @torch.jit.script
----> 4 def xxx(
      5     box_preds: torch.Tensor, cls_scores: torch.Tensor, cls_labels: torch.Tensor
      6 ) -> None:

11 frames
[/usr/local/lib/python3.9/dist-packages/torch/jit/frontend.py](https://localhost:8080/#) in get_char(index)
    730 
    731         def get_char(index):
--> 732             return chr(source[index])
    733 
    734         start_pos = base.range().end + 1

IndexError: index out of range
```

### Versions

v1.13.1

cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel
Repository: tauri
Issue: [bug] Window changes position when AlwaysOnTop and AcceptFirstMouse window combined with Normal window
Labels: type: bug,platform: macOS,status: needs triage

### Describe the bug

Hello,

My app has two windows, one is alwaysOnTop and has acceptFirstMouse, the other is a normal window. The problem (see recording below) occurs when the normal window is clicked and then the on top window. When the op top window is clicked its window suddenly shifts position:

https://user-images.githubusercontent.com/26923796/227799984-5b74572e-8066-4ed0-8b27-043ec4a796f4.mov

In the recording I try to explain that the offset of the shifted window is exactly the mouse position + top left window offset.

This bug may be related to https://github.com/tauri-apps/tauri/issues/4056.

### Reproduction

See recording. Below you find the window properties:

```
    "windows": [
      {
        "label": "whiteboard",
        "acceptFirstMouse": false,
        "alwaysOnTop": false,
        "decorations": false,
        "fileDropEnabled": false,
        "focus": false,
        "fullscreen": false,
        "maximized": true,
        "transparent": true,
        "resizable": false,
        "visible": true,
        "x": 0,
        "y": 0,
        "url": "https://localhost/whiteboard"
      },
      {
        "label": "asteriks",
        "acceptFirstMouse": true,
        "alwaysOnTop": true,
        "center": true,
        "decorations": false,
        "fileDropEnabled": false,
        "focus": true,
        "fullscreen": false,
        "transparent": true,
        "resizable": false,
        "visible": false,
        "height": 96,
        "width": 96,
        "url": "https://localhost/asteriks"
      }
    ],
    "macOSPrivateApi": true
```

### Expected behavior

The always on top window should not shift in position.

### Platform and versions

```text
Environment
  › OS: Mac OS 12.6.3 X64
  › Node.js: 19.6.0
  › npm: 9.4.0
  › pnpm: Not installed!
  › yarn: Not installed!
  › rustup: 1.25.2
  › rustc: 1.68.1
  › cargo: 1.68.1
  › Rust toolchain: stable-aarch64-apple-darwin 

Packages
  › @tauri-apps/cli [NPM]: 1.2.3
  › @tauri-apps/api [NPM]: 1.2.0
  › tauri [RUST]: 1.2.3,
  › tauri-build [RUST]: 2.0.0-alpha.2,
  › tao [RUST]: 0.15.8,
  › wry [RUST]: 0.23.4,

App
  › build-type: bundle
  › CSP: unset
  › distDir: https://localhost/
  › devPath: https://localhost/

App directory structure
  ├─ target
  ├─ node_modules
  ├─ icons
  └─ src
```


### Stack trace

```text
-
```


### Additional context

_No response_
Repository: godot
Issue: Very noticeable stutter / lag when adding children to scene tree.
Labels: topic:core,needs testing,performance

### Godot version

4.0

### System information

Windows 10, Forward+, i5-10400

### Issue description

adding children to the scene tree results in a noticeable stutter in increase in frametime. 
![Godot_v4 0-stable_win64_2qFhmtxkW7](https://user-images.githubusercontent.com/50029372/227803003-4aa7bccf-45cf-4f5e-8ae6-de1b18925cc9.png)
(all those spikes are when adding children)


### Steps to reproduce

just add a child of a loaded instance using add_child()

### Minimal reproduction project

N/A
Repository: PowerToys
Issue: Sort PowerToy Settings list into 2 groups: enabled and disabled
Labels: Needs-Triage

### Description of the new feature / enhancement

Sort the PowerToys Settings list into two groups based on whether or not the module is enabled or not, similar to the quick mock up below. The colors and headers of "Enabled" and "Disabled" don't matter as much, but it would make sense to slightly darken and completely desaturate the disabled entries.

![PowerToys Settings](https://user-images.githubusercontent.com/8204892/227807654-f805bdaa-d9d7-4660-b8be-7dbfeab684dc.png)

### Scenario when this would be used?

Makes it far easier to quickly find the settings for the things I care about considering I only use about a third of the modules. Think of it as an ease-of-use, accessibility UX improvement.

### Supporting information

_No response_
Repository: bitcoin
Issue: Should be able to import an xpub descriptor to a privkey-enabled wallet if the wallet has the privkeys
Labels: Feature

### Please describe the feature you'd like to see added.

If you have a privkey-enabled wallet, you should be able to import a public descriptor where your wallet knows the private keys corresponding to (some of) the xpubs in the descriptor.

### Is your feature related to a problem, if so please describe it.

If you try to import a descriptor into a Core wallet that has private keys, and you only provide the public descriptor, it will fail with the error `Cannot import descriptor without private keys to a wallet with private keys enabled`. To do the import, you need to pull the private keys out of the wallet, populate the descriptor with them, recompute the checksum, then try again. This is unsafe and unnecessary.

### Describe the solution you'd like

Before erroring out, the wallet should check whether it actually has private keys that would allow it to import the descriptor.

### Describe any alternatives you've considered

_No response_

### Please leave any additional context

_No response_
Repository: next.js
Issue: Prefetch on the same pathname with different query params is ignored
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:22 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T6000
    Binaries:
      Node: 16.17.0
      npm: 9.1.1
      Yarn: 1.22.19
      pnpm: 7.17.1
    Relevant packages:
      next: 13.2.5-canary.18
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

_No response_

### Link to the code that reproduces this issue

https://github.com/gbdev-issues/router-prefetch-issue

### To Reproduce

clone the example repository and run yarn build and yarn start, then, hover on the buttonwith text "prefetch", notice that the route /users/1 is prefetched, but when navigating to this route and hovering on the button with the text "prefetch user 2", the prefetch does not occur

### Describe the Bug

I'm facing an issue with router prefetch. When I'm on the "/" route and use the "router.prefetch('/users/1')", everything works correctly, and the prefetch works as expected. However, when I try to prefetch another route with a different parameter, it doesn't work. For example, if I'm on the "/users/1" route and try to prefetch "/users/2" using "router.prefetch", nothing happens.

### Expected Behavior

I need some way to use router.prefetch on the same route but with different parameters, for example prefetch users/2 from users/1

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: opencv
Issue: VideoCapture's index of webcam changes when using rasberry pi
Labels: bug

### System Information

OpenCV python version: 4.7.0.68
Operating System: Windows 11
Python version: 3.10

### Detailed description

When running the code to take a videocapture 

```
import cv2
cam = cv2.VideoCapture(0)
```

I wondered if there was a way to always access the webcam of any laptop with the same code, because the index used differs depending on the laptop that runs the code.
For some, its when the index is 0, for others its 1, we even had one where the webcam was the index was 4.

I dont know if it's actually possible but it would be great.

### Steps to reproduce

By having an external camera and trying to access the webcam in different OS.

### 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: stable-diffusion-webui
Issue: [Bug]: How to stop this process?
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

I got very high memory usage in my ubuntu server:
![image](https://user-images.githubusercontent.com/46926496/227834747-3c6b59e1-03ea-4a5f-bc2e-2e7e558b3b95.png)

This software is a very suspicious cause of this.

How to close safely and delete this project completely?

### Steps to reproduce the problem

1. Go to .... 
2. Press ....
3. ...


### What should have happened?

Close this project safely and delete completely

### Commit where the problem happens

1

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

Linux

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

_No response_

### Command Line Arguments

```Shell
1
```


### List of extensions

1

### Console logs

```Shell
1
```


### Additional information

_No response_