sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Cannot select between a sequence of unicode flags
Labels: bug,editor-core

<!-- ⚠️⚠️ 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.78.1
- OS Version: macOS 13.3.1

Steps to Reproduce:

1.  Put consecutive flags e.g. 🇩🇲🇩🇴 into the text editor
2. Try to select between the flags, or left/right arrow into the middle. It only goes to the start or the end.

If you try on a browser input field it works, you can select between the flags.

https://github.com/microsoft/vscode/assets/28838817/cfaa3551-09cd-46c2-8864-23d97f251ddf
Repository: vscode
Issue: Offer different `editor.fontWeight` and `terminal.integrated.fontWeight` for both dark and light mode 
Labels: feature-request,editor-theming

<!-- ⚠️⚠️ 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. -->
Light mode typically needs more font weight than dark mode:, look:

![image](https://github.com/microsoft/vscode/assets/74575852/f0ea9b94-94c0-4599-a2c8-facac9aff7e9)
![image](https://github.com/microsoft/vscode/assets/74575852/7ff33bd9-4417-40f2-acbf-d349c0f8d8a8)
![image](https://github.com/microsoft/vscode/assets/74575852/e695323d-7701-4d08-b86e-72c0b82ed757)
![image](https://github.com/microsoft/vscode/assets/74575852/679518e2-12fb-4506-b221-7c5387bddfdb)

 (but try it better in your editor while switching darkmode on and off because you can't really see the real impact well on the snippets above)

Edit: you find more scientific background here:
https://signbrad.com/2016/10/02/why-white-looks-bigger-than-black-the-irradiation-illusion/
![image](https://github.com/microsoft/vscode/assets/74575852/7d047c88-5a4f-418a-8202-71808aeac876)
Repository: pytorch
Issue: RPC Framework support custom backend
Labels: oncall: distributed,triaged

### 🚀 The feature, motivation and pitch

Custom backend(PrivateUse1) also has requirements for the RPC framework, and hopes to provide a registration method or implement a common logic. 

I'm currently reading the code of the RPC part, according to my analysis and research, the RPC module has a great dependence on the third-party project tensorpipe, and the important channel module is also implemented in it.

I understand that the current RPC module needs to support third-party devices, and there are several things to do :
1. Extend the corresponding device logic in the RPC module of pytorch project to provide a processing branch for third-party devices. 
2. Third-party devices need to inherit the `TensorpipeDeviceTypeConverter `class to implement their own converter class, and complete the preparation for sending and receiving of devcie tensor. And correctly registered in pytorch to ensure that the object can be obtained correctly
3. Third-party devices need to refer to cuda_basic channel, implement their own basic channel, and register

Our current demands:
1. At present, for the pytorch project, we can improve and expand the corresponding device logic.
2. For the tensorpip project, we hope to expose more header files, so that third-party devices can implement their own basic channel based on tensorpip

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @ezyang.

### Alternatives

_No response_

### Additional context
1. The current tensorpipe project cannot contribute or discuss etc.
_No response_
Repository: next.js
Issue: "First Load JS shared by all" is including css files, "First Load JS" is not
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: linux
      Arch: x64
      Version: #1 SMP Fri Jan 27 02:56:13 UTC 2023
    Binaries:
      Node: 16.18.1
      npm: 8.19.2
      Yarn: 1.22.19
      pnpm: N/A
    Relevant packages:
      next: 13.4.7-canary.1
      eslint-config-next: 13.4.6
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.1.3
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

_No response_

### Link to the code that reproduces this issue or a replay of the bug

n/a

### To Reproduce

```bash
# Create example app
npx create-next-app@13.4.6 test-app --typescript --tailwind --eslint --no-app --src-dir --import-alias '~/*' --use-npm

# Create a build
cd test-app
npm run build
```
![image](https://github.com/vercel/next.js/assets/14218719/aa614b0c-b8a5-47bb-8404-2ec3e169a6b3)


### Describe the Bug

"First Load JS" for individual pages should be at least "First Load JS shared by all" but it's not, e.g., `/404` has "First Load JS" of 74.1 kB when "First Load JS shared by all" is 77.3 kB.

The likely reason for the difference is that the 3.35 kB CSS file is included in "First Load JS shared by all" but not included in "First Load JS" (77.3 kB - (74.1 kB - 182 B) = 3.4 kB).

### Expected Behavior

"First Load JS" should be the same or bigger than "First Load JS shared by all". If it is intentional that CSS is included in the "First Load JS shared by all" then the title should be changed to "First Load JS and CSS shared by all". In that case it would be good to also include the CSS in the "First Load JS" measurement.

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: pytorch
Issue: Torch 1.13 for GPU breaks if libcublas is already present.
Labels: triaged,module: docker

### 🐛 Describe the bug

When I install pytorch into the docker image `gcr.io/deeplearning-platform-release/base-cu113` from https://cloud.google.com/deep-learning-containers/docs/choosing-container or `nvidia/cuda:11.3.1-cudnn8-runtime-ubuntu20.04` with gpu, it installs also installs `nvidia-cublas-cu11` which is a dependency, but it's already present in these images, so when importing torch, it errors out, see
```python
>>> import torch
Traceback (most recent call last):
  File "/root/.cache/pypoetry/virtualenvs/my-env-jEFYeG2G-py3.10/lib/python3.10/site-packages/torch/__init__.py", line 172, in _load_global_deps
    ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
  File "/opt/conda/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /root/.cache/pypoetry/virtualenvs/my-env-jEFYeG2G-py3.10/lib/python3.10/site-packages/torch/lib/../../nvidia/cublas/lib/libcublas.so.11: undefined symbol: cublasLtGetStatusString, version libcublasLt.so.11
```
see https://stackoverflow.com/a/75095447/5224881 where people were also struggling with it.
The cuda toolkit is automatically installed on GCP docker images, so it makes it hard to use.
When I uninstall the `nvidia-cublas-cu11`, it starts working, but I would like to be able to use it purely using poetry
Of course I can manually uninstall the dependency, but option to install or uninstall it using extras would be very welcome.

### Versions

[pip3] flake8==3.9.2
[pip3] mypy==0.950
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.24.3
[pip3] torch==1.13.1
[conda] numpy                     1.23.5                   pypi_0    pypi
Repository: material-ui
Issue: [SwipeableDrawer] Portal inside shadow DOM mobile touch event ignored
Labels: bug 🐛,component: SwipeableDrawer,priority: low

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

Link to live example: https://codesandbox.io/s/lingering-water-wr6cqx

Steps:

1. switch browser to mobile mode and try to swipe from bottom


### Current behavior 😯

Mobile touch events ignored if MuiModal use ShadowDom as container.

### Expected behavior 🤔

Working on mobile

### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
chrome

  System:
    OS: Linux 5.15 Ubuntu 20.04.5 LTS (Focal Fossa)
  Binaries:
    Node: 18.14.2 - ~/.nvm/versions/node/v18.14.2/bin/node
    Yarn: 1.22.19 - /mnt/c/Program Files (x86)/Yarn/bin/yarn
    npm: 9.5.0 - ~/.nvm/versions/node/v18.14.2/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmPackages:
    @emotion/react: 11.10.6 => 11.10.6 
    @emotion/styled: 11.10.6 => 11.10.6 
    @mui/base:  5.0.0-beta.3 
    @mui/core-downloads-tracker:  5.13.3 
    @mui/icons-material: ^5.11.0 => 5.11.16 
    @mui/lab: ^5.0.0-alpha.120 => 5.0.0-alpha.132 
    @mui/material: ^5.9.1 => 5.13.3 
    @mui/private-theming:  5.13.1 
    @mui/styled-engine:  5.13.2 
    @mui/system:  5.13.2 
    @mui/types:  7.2.4 
    @mui/utils:  5.13.1 
    @types/react: 18.0.28 => 18.0.28 
    react: 18.2.0 => 18.2.0 
    react-dom: 18.2.0 => 18.2.0 
    styled-components: 5.3.6 => 5.3.6 
    typescript: 5.0.4 => 5.0.4 
```
</details>
Repository: vscode
Issue: Flicker When Opening A File/Diff From A PR
Labels: bug,api,verified,api-proposal,comments,papercut :drop_of_blood:

![JdXPsNjOiH](https://github.com/microsoft/vscode-pull-request-github/assets/2931520/fb7579df-b3e9-457b-8c0c-f0edfc57d2e8)

Here the frame where it happens:

![azbB4B0uoK](https://github.com/microsoft/vscode-pull-request-github/assets/2931520/212c23ba-f372-4519-bcc8-d066714eb630)

I'm pretty sure this is caused by the comments gutter.
Is there a way that we can get rid of this flickering?
Repository: stable-diffusion-webui
Issue: Avoiding Model Interference When Using set_options(/sdapi/v1/options) in a Multi-User Environment 
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?

Hello,

I would like to address an issue related to the usage of set_options(/sdapi/v1/options) in a multi-user environment. As my API is being used by multiple individuals simultaneously, I have noticed a specific scenario that requires attention.

Let me provide an example:

User A opens the webpage and selects the SD1.5 model to load an image. Meanwhile, User B utilizes the API interface to set the options and chooses the SD2.0 model.

In this situation, even though User A sees that they have selected the SD1.5 model on the webpage, the actual inference is performed using the SD2.0 model due to User B's subsequent selection.

My question is: How can we ensure that using set_options(/sdapi/v1/options) does not impact the model already chosen on the webpage?

Thank you for your assistance.

Best regards,

### Steps to reproduce the problem

1. User A opens the webpage and selects the SD1.5 model to load an image. Meanwhile,
2. User B utilizes the API interface to set the options and chooses the SD2.0 model.


### What should have happened?

User A still uses sd1.5 correctly

### Commit where the problem happens

NO

### What Python version are you running on ?

Python 3.10.x

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

Windows

### What device are you running WebUI on?

Other GPUs

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

Google Chrome

### Command Line Arguments

```Shell
NO
```


### List of extensions

NO

### Console logs

```Shell
NO
```


### Additional information

NO
Repository: material-ui
Issue: [Autocomplete] Prevent keyboard interaction on mobile - [searchable] prop
Labels: support: question,component: autocomplete

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

Hi,
i am currently using the autocomplete component -> 

"@mui/material": "^5.13.5",
"@mui/system": "^5.13.2",
"@mui/utils": "^5.13.1",

i am looking a prop that will allow me to prevent the keyboard interaction on native mobile device.
is there any [searchable] or other prop that allow this behavior ?

in react-select component they have the **searchable** prop that is actually doing this.

any ideas?

thanks.


### Examples 🌈

_No response_

### Motivation 🔦

_No response_
Repository: vscode
Issue: Async data tree doesn't maintain consistency on focus and selection events. 
Labels: under-discussion

Given the following two event listeners on a `WorkbenchAsyncDataTree`:

```ts
		this._register(this.tree.onDidChangeSelection(e => {
			if (e.elements !== this.lastSelection) {
				this.lastSelection = e.elements;
				this.lastActive = this.tree?.getFocus()[0] ?? this.lastActive;
				this._onDidChangeSelectionAndFocus.fire({ selection: this.lastSelection, focus: this.lastActive });
			}
		}));
		this._register(this.tree.onDidChangeFocus(e => {
			if (e.elements.length && (e.elements[0] !== this.lastActive)) {
				this.lastActive = e.elements[0];
				this.lastSelection = this.tree?.getSelection() ?? this.lastSelection;
				this._onDidChangeSelectionAndFocus.fire({ selection: this.lastSelection, focus: this.lastActive });
			}
		}));
```

I would expect that when the `onDidChangeSelection` event fires, that the value of `getFocus` has already been updated. 
I would also expect that when the `onDidChangeFocus` event fires, that the value of `getSelection()` has already been updated.

This came out of the API discussion for https://github.com/microsoft/vscode/pull/184268.
Repository: pytorch
Issue: Please consider the SCFA/dynamic flash attention for your implementation of scaled dot product attention
Labels: module: sparse,triaged,topic: new features,module: sdpa

### 🚀 The feature, motivation and pitch

Sparse Causal Flash Attention as implmented [here](https://github.com/epfml/dynamic-sparse-flash-attention) and described in [this paper](https://arxiv.org/abs/2306.01160) claims to 

> extend FlashAttention to accommodate a large class of attention sparsity patterns that, in particular, encompass key/query dropping and hashing-based attention. This leads to implementations with no computational complexity overhead and a multi-fold runtime speedup on top of FlashAttention. Even with relatively low degrees of sparsity, our method improves visibly upon FlashAttention as the sequence length increases. Without sacrificing perplexity, we increase the training speed of a transformer language model by 2.0× and 3.3× for sequences of respectively 8k and 16k tokens.

Adding these implementations to main Pytorch might lead to Transformers being able to use both flash attention, PEFT/LoRA and methods for handling long contexts

### Alternatives

1. Leaving everything as is and finalising the current implementation to allow handling attention masks (see issue #96099 )
2. Relying on flash_attn by HazyResearch, which works great on its own but apparently does not work with LoRA

### Additional context

I'm just not sure functions written in triton are readily convertible into C++ functions.

cc @alexsamardzic @nikitaved @pearu @cpuhrsch @amjames @bhosmer @jcaip @jbschlosser @erichan1 @drisspg @mikaylagawarecki
Repository: storybook
Issue: [Bug]: EBUSY: Resource busy or locked
Labels: bug,has workaround,windows

### Describe the bug

We recently upgraded to Storybook v7 and now some of our team are struggling to run the updated version of Storybook.
We previously had this same issue in v6, however the fix stated in this thread [Issue19336](https://github.com/storybookjs/storybook/issues/19336) worked for us until now with the upgrade to v7 :(

### To Reproduce

Run npm run storybook after upgrading to v7

### System

```shell
Environment Info:

 

  System:
    OS: Windows 10 10.0.22621
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900H
  Binaries:
    Node: 18.16.0 - C:\Program Files\nodejs\node.EXE
    npm: 9.5.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1848.0), Chromium (114.0.1823.51)
  npmPackages:
    @storybook/addon-a11y: ^7.0.21 => 7.0.21
    @storybook/addon-actions: ^7.0.21 => 7.0.21
    @storybook/addon-console: ^2.0.0 => 2.0.0
    @storybook/addon-docs: ^7.0.21 => 7.0.21
    @storybook/addon-essentials: ^7.0.21 => 7.0.21
    @storybook/addon-interactions: ^7.0.21 => 7.0.21
    @storybook/addon-links: ^7.0.21 => 7.0.21
    @storybook/addon-mdx-gfm: ^7.0.21 => 7.0.21
    @storybook/addons: ^7.0.21 => 7.0.21
    @storybook/mdx1-csf: ^1.0.0 => 1.0.0
    @storybook/node-logger: ^7.0.21 => 7.0.21
    @storybook/preset-create-react-app: ^7.0.21 => 7.0.21
    @storybook/react: ^7.0.21 => 7.0.21
    @storybook/react-webpack5: ^7.0.21 => 7.0.21
    @storybook/testing-library: ^0.1.0 => 0.1.0
    @storybook/theming: ^7.0.21 => 7.0.21
```


### Additional context

![0edd67e8-38ca-470f-95db-1d91e2ca712c](https://github.com/storybookjs/storybook/assets/43680876/999f8a9b-9a2c-4698-83ca-253bb6609762)
Repository: TypeScript
Issue: Component not always a valid JSX component depending on a generic type
Labels: Help Wanted,Possible Improvement

# Bug Report

### 🔎 Search Terms

jsx react generic valid JSX

### 🕗 Version & Regression Information

- This changed between versions 5.0.4 and 5.1.3

### ⏯ Playground Link

[Playground Link](https://www.typescriptlang.org/play?ts=5.1.3&q=284#code/JYWwDg9gTgLgBAKjgQwM5wEoFNkGN4BmUEIcARFDvmQNwBQduEAdqvAIJwC8cAPACpwsADxhZmAE3QBXZgGtmEAO7MAfAAoA3ijgBfAFxxtyQ4N0BKbqrjqYATzBYIBHVzfk2UYMwDmZOAD8cMzSADahcIbMWEpwAKJQxFDqZMhwINJscABGWDqe3n7mlmhwgiJikugFvoHBYRGGCUn0jCxZAFaowgDqwDAAFs3Q3HzsvDU+1shcqf4A9KqtTKzwAEKj45NLDCud3X2DENIww1CjvBszc3CL9EA)

### 💻 Code

```tsx
import * as React from "react";

const A = <T extends unknown>({ a }: { a: T }) => (typeof a === "string" ? null : new Error("a must be a string")) as T extends string ? null : Error;

const jsxWithError = <A<string> a="a" />;

const B = A<string>;

const jsxWithoutError = <B a="a" />;

```

### 🙁 Actual behavior

Error on `A` in `jsxWithError`:

```
'A' cannot be used as a JSX component.
  Its type '<T extends unknown>({ a }: { a: T; }) => T extends string ? null : Error' is not a valid JSX element type.
    Type '<T extends unknown>({ a }: { a: T; }) => T extends string ? null : Error' is not assignable to type '(props: any, deprecatedLegacyContext?: any) => ReactNode'.
      Type 'Error' is not assignable to type 'ReactNode'.(2786)
```

### 🙂 Expected behavior

No error with the generic type provided (as is the case for `jsxWithoutError`), since we are sure we are using a valid JSX component.
Repository: vscode
Issue: Accessibility: Cannot turn off audio cues on a language level
Labels: feature-request,accessibility,accessibility-signal

CC @meganrogge

Tested on Windows. I cannot turn off audio cuse on a language level.

I don't want to get the audioCues.lineHasError played in markdown files, but it is still played.

`settings.json`:

``` json
{
  "audioCues.lineHasError": "on",
  "[markdown]": {
    "audioCues.lineHasError": "off"
  }
}
```

## System Info

Version: 1.80.0-insider (system setup)
Commit: 73eb619afb87cab4aa83a569259c891b6983c11e
Date: 2023-06-19T05:35:37.388Z
Electron: 22.3.11
ElectronBuildId: 21658788
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621
Repository: PowerToys
Issue: Mouse without boarders fails if one device is offline for hours
Labels: Issue-Bug,Priority-1,Product-Mouse Without Borders

### Microsoft PowerToys version

0.70.1

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

Connect 2 devices, works fine all day. Turn off one PC overnight while the second PC remains online. Start the first PC the next day. Windows without Boarders will not work. In the settings on both PC's it appears that they are attempting to connect. On both systems the "border" color begins with blue than green but then changes to yellow than orange. The sequence repeats.

### ✔️ Expected Behavior

Connections should persist across system shutdowns or reboots.

### ❌ Actual Behavior

About 50% of the time, the connection fails until a key is regenerated on one PC and shared.

### Other Software

_No response_
Repository: vscode
Issue: `⌘ Command` + `Backtick` hotkey on MacOS doesn't switch between  VSCode windows (AZERTY layout)
Labels: bug,keybindings

<!-- ⚠️⚠️ 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.79.2
- OS Version: MacOS Ventura 13.4 (22F66)

Steps to Reproduce:

1. Open two VSCode windows 
2. Make sure a text file is opened as has focus
3. Try to switch to another window with `⌘ Command` + `` ` `` (MacOS native key combo)

Behavior:
-  **Observed**: With an AZERTY keyboard layout, the `` ` `` is directly taken by the editor and printed at cursor position. Note that the AZERTY layout does not require a special modifier key to output a backtick. 
- **Expected**: Switch to the other VSCode window.