sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: neovim
Issue: Setting foldmethod and foldexpr to treesitter affect terminal buffer
Labels: enhancement,terminal

### Problem

Terminal buffers receiving streaming data foldexpr set to treesitter lock up the main thread, rendering nvim virtually inoperable.

Minimal repro
```lua
pcall(vim.treesitter.start)
vim.cmd.split()
vim.cmd.term()
vim.wo.foldmethod = "expr" -- use treesitter folds
vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()"
vim.bo.filetype = "baseterm"
```

Then run the following in the terminal
```
while true; do echo test; done
```

Now if you exit terminal mode and try to navigate to the first split with the [No name] buffer and start typing, go in normal mode and try to move the cursor back/forward ([b] and [w]). There is a significant lag in every motion.

### Expected behavior

Terminal data streaming should not lock up nvim.
Repository: vscode
Issue: Preview file immediately after press the arrow button
Labels: feature-request,file-explorer,list-widget

<!-- ⚠️⚠️ 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 I click a file (image here in below screenshot), vscode will preview it in the right side, but when I press arrow down button to preview next image, vscode just select it , not preview on the right side, I have to put my hand on the mouse to click file which is not convinent, so I wish vscode can preview file immediately.
![image](https://github.com/microsoft/vscode/assets/138575543/982559f3-3ff7-4970-b317-259ab3b54c56)
Repository: storybook
Issue: [Bug]: Mobile emulator has wrong width on initial render after page reload
Labels: bug,needs triage

### Describe the bug

When using the viewport width to run some conditional logic on initial render of a component (triggering an animation for example), the initial render will receive the incorrect value

### To Reproduce

Simplest way to reproduce is to add 

```JS
console.log(Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0))
```

To the body of any component, pick a mobile emulator, and refresh the page.

You should see the full viewport width initially logged, followed by the chosen width of the emulator

Doing the same with browser dev-tools mobile emulation will result in only the latter value being logged

### System

```bash
Storybook Environment Info:

  System:
    OS: Linux 6.4 Ubuntu 23.10 23.10 (Mantic Minotaur)
    CPU: (10) arm64 unknown
    Shell: 5.2.15 - /bin/bash
  Binaries:
    Node: 20.12.2 - /usr/bin/node
    Yarn: 1.22.22 - /usr/bin/yarn
    npm: 10.5.0 - /usr/bin/npm
    pnpm: 8.15.8 - /usr/bin/pnpm <----- active
  npmPackages:
    @storybook/addon-a11y: 8.0.9 => 8.0.9 
    @storybook/addon-actions: 8.0.9 => 8.0.9 
    @storybook/addon-coverage: ^1.0.1 => 1.0.1 
    @storybook/addon-docs: 8.0.9 => 8.0.9 
    @storybook/addon-essentials: 8.0.9 => 8.0.9 
    @storybook/addon-interactions: 8.0.9 => 8.0.9 
    @storybook/addon-links: 8.0.9 => 8.0.9 
    @storybook/addon-mdx-gfm: ^8.0.9 => 8.0.9 
    @storybook/blocks: 8.0.9 => 8.0.9 
    @storybook/cli: 8.0.9 => 8.0.9 
    @storybook/core-server: 8.0.9 => 8.0.9 
    @storybook/jest: 0.2.3 => 0.2.3 
    @storybook/manager-api: 8.0.9 => 8.0.9 
    @storybook/react: 8.0.9 => 8.0.9 
    @storybook/react-vite: 8.0.9 => 8.0.9 
    @storybook/test-runner: 0.17.0 => 0.17.0 
    @storybook/testing-library: 0.2.2 => 0.2.2 
    @storybook/testing-react: ^2.0.1 => 2.0.1 
    @storybook/theming: 8.0.9 => 8.0.9 
    chromatic: ^6.13.1 => 6.13.1 
    eslint-plugin-storybook: ^0.8.0 => 0.8.0 
    storybook: 8.0.9 => 8.0.9 
    storybook-addon-intl: ^4.0.0 => 4.0.0 
    storybook-addon-pseudo-states: 3.0.1 => 3.0.1
```


### Additional context

_No response_
Repository: TypeScript
Issue: Handle JSDoc {@link ... } inline tags for OS
Labels: Suggestion,Awaiting More Feedback

### 🔍 Search Terms

 JSDoc @link for local OS

### ✅ 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

like this post :
https://github.com/microsoft/TypeScript/issues/16498

can we also add support for local OS drive ?
I work on 2 project, and i would like to be able to open external file to another projet .



### 📃 Motivating Example

ex:
iif am in project `projets\ANFTECS-WEB` , i would like to add a clickable note link to `projets\ANFTECS`
```ts
/** @see {@link D:\Users\jonle\Documents\DEV\projets\ANFTECS\src\game\enum\battle.enums.ts} */
```

![image](https://github.com/microsoft/TypeScript/assets/24865815/8dc3bb4a-2bec-4cac-81c0-be7578cab843)

Actually, the link is not clickable, and I need to open the folder and the file manually.
It's just not very time-efficient and productive!
I would like to open the file when I ctrl+click on it, like a web address. Is it possible to add this support ?
Thank you

### 💻 Use Cases

1. What do you want to use this for?
work on multi project connected with security and productivity (on the same machine or server)
Repository: rust
Issue: Using thread::sleep inside panic hook aborts panic hook
Labels: O-windows,C-bug,T-libs,A-panic

I tried this code:

```rust
    panic::set_hook(Box::new(|panic_info| {
      log::debug!("step 1");
      thread::sleep(time::Duration::from_secs(3));
      log::debug!("step 2");
      if let Err(e) = Command::new("...").spawn() {
        log::error!(e);
      }
      log::debug!("step 3");
      process::exit(0);
    }));
```

I expected to see this happen: all the code in the panic handler is executed.

Instead, this happened: with the `thread::sleep`, the execution of the panic handler is **silently** stopped at this step (the following code is simply ignored!). When removing the `thread::sleep`, the panic handler gets executed as expected.

### Meta
cargo 1.77.2 (e52e36006 2024-03-26)
release: 1.77.2
commit-hash: e52e360061cacbbeac79f7f1215a7a90b6f08442
commit-date: 2024-03-26
host: x86_64-unknown-linux-gnu
libgit2: 1.7.2 (sys:0.18.2 vendored)
libcurl: 8.5.0-DEV (sys:0.4.70+curl-8.5.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Debian 12.0.0 [64-bit]

cargo build --target x86_64-pc-windows-gnu
Repository: pytorch
Issue: set_device只支持int,但如果碰到k8s分卡vcuda时报错segmentation fault
Labels: needs reproduction,module: cuda,triaged

### 🐛 Describe the bug

>>> import torch
>>> torch.cuda.set_device(gpu_id)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'gpu_id' is not defined
>>> torch.cuda.set_device(0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/conda/envs/tts/lib/python3.9/site-packages/torch/cuda/__init__.py", line 399, in set_device
    torch._C._cuda_setDevice(device)
  File "/opt/conda/envs/tts/lib/python3.9/site-packages/torch/cuda/__init__.py", line 293, in _lazy_init
    torch._C._cuda_init()
RuntimeError: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 36: API call is not supported in the installed CUDA driver


### Versions

cuda version:
cutlet                    0.4.0
nvidia-cublas-cu12        12.1.3.1
nvidia-cuda-cupti-cu12    12.1.105
nvidia-cuda-nvrtc-cu12    12.1.105
nvidia-cuda-runtime-cu12  12.1.105
nvidia-cudnn-cu12         8.9.2.26
nvidia-cufft-cu12         11.0.2.54
nvidia-curand-cu12        10.3.2.106
nvidia-cusolver-cu12      11.4.5.107
nvidia-cusparse-cu12      12.1.0.106
nvidia-nccl-cu12          2.20.5
nvidia-nvjitlink-cu12     12.4.127
nvidia-nvtx-cu12          12.1.105

torch version:
torch                     2.3.0
torchaudio                2.3.0

cc @ptrblck @msaroufim
Repository: PowerToys
Issue: PowerToys Run freezes for a few seconds when opened sometimes
Labels: Issue-Bug,Needs-Triage,Needs-Team-Response

### Microsoft PowerToys version

0.80.1

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

Press the keyboard shortcut to open PowerToys Run (alt+space).
Edit to add: This mostly happens after resume from hibernation/sleep, but it can happen at other times.

### ✔️ Expected Behavior

The PowerToys Run window opens and is responsive immediately.

### ❌ Actual Behavior

A blurred rectangle of the window appears, but does not display the text entry box and does not respond to input.

After a few seconds, the display is normal and text entry works as expected.

### Other Software

Windows 11 Pro, fully pacthed.
Repository: flutter
Issue: `showMenu`  does not allow keyboard arrow traversal
Labels: framework,f: material design,platform-web,f: focus,has reproducible steps,P2,team-design,triaged-design,found in release: 3.19,found in release: 3.22

### Steps to reproduce

1. Use showMenu in Flutter in Flutter Web.
2. Use up and down arrow keys to traverse.
3. Does not work on Flutter Web (It does work on Mac OS) 

### Expected results

Should be able to traverse showMenu

### Actual results

Not able to traverse showMenu with keyboard keys. 

### Code sample

<details open><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

class MenuContainer extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: () {
        showMenu(
          context: context,
          items: [
            PopupMenuItem(
              child: Icon(Icons.add),
            ),
            PopupMenuItem(
              child: Icon(Icons.add),
            ),
            PopupMenuItem(
              child: Icon(Icons.add),
            ),
            PopupMenuItem(
              child: Icon(Icons.add),
            ),
          ],
          color: Colors.green[100],
          shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(30),
          ),
          position: RelativeRect.fromLTRB(
            MediaQuery.of(context).size.width / 2 - 100,
            MediaQuery.of(context).size.height / 2 - 100,
            MediaQuery.of(context).size.width / 2 + 100,
            MediaQuery.of(context).size.height / 2 + 100,
          ),
        );
      },
      child: Container(
        width: 100,
        height: 100,
        color: Colors.red,
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel beta, 3.22.0-0.3.pre, on macOS 14.4 23E214 darwin-x64, locale en-GB)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] IntelliJ IDEA Community Edition (version 2023.3.5)
[✓] VS Code (version 1.89.0)
[✓] Connected device (2 available)
[✓] Network resources

```

</details>
Repository: PowerToys
Issue: Add feature to PowerToys Run
Labels: Idea-Enhancement,Product-PowerToys Run,Run-Plugin

### Description of the new feature / enhancement

I would like to delete some files using command in PowerToys Run, mb using path or name of program. I really need this feature to easy delete program using just command /delete "file name" 

### Scenario when this would be used?

I get tired of going into the settings every time to delete the application completely, and not just the shortcut. For me personally, it would be more convenient if I could use the line that is called up by pressing just two keys and delete the file/program.

### Supporting information

i have no any information. Sorry.
Repository: ollama
Issue: llama3 instruct template will have different outputs depending on system tokens
Labels: bug

### What is the issue?

Issue:
The absense or presence of a system token produces different outputs, based on my findings:
https://github.com/ggerganov/llama.cpp/issues/7062#issuecomment-2100500582

This is even more important for fine tunes on the instruct models as it can break everything.

Official ollama - llama3 template removes tokens if no system message is present:
https://github.com/ollama/ollama/blob/main/docs/modelfile.md
https://ollama.com/library/llama3:instruct/blobs/8ab4849b038c

The corrected template should be:
`TEMPLATE """
system
 {{ .System }} 
{{ if .Prompt }} 
user
 {{ .Prompt }} 
{{ end }} 
assistant
 {{ .Response }} 
"""`

Edit:
I've made an official thread and awaiting response:
https://github.com/meta-llama/llama3/issues/203
Repository: flutter
Issue: Add plus-darker and plus-lighter to the BlendMode enum
Labels: c: new feature,c: proposal,P3,team-engine,triaged-engine

### Use case

CSS mix-blend-mode, Figma and Sketch uses plusDarker and plusLighter as blend modes. We also need this in Flutter. Tried to find an issue with those words but didn't find anything, so here it is.

### Proposal

I would like to be able to use plusLighter and plusDarker
Repository: next.js
Issue: "Could not open page.js in the editor" error on VSCode Windows
Labels: bug

### Link to the code that reproduces this issue

https://github.com/YerayAlonso/nextjs-group-route-debug

### To Reproduce

1. Open the workspace in VSCode, in Windows
2. Start the application in dev mode (`pnpm dev`)
3. Navigate to the /broken route. An error is thrown, as expected, but you can't navigate to the file in VSCode from the browser. And the terminal in VSCode says:

> Could not open page.tsx in the editor.
> 
> When running on Windows, file names are checked against an access list to protect against remote code execution attacks. File names may consist only of alphanumeric characters (all languages), periods, dashes, slashes, and underscores.

### Current vs. Expected behavior

I'd expect to be sent to VSCode with the file where the exception happened.  
This is how it works if you try the /working route in the same test project.  
The only difference is in the `(group)` route.

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Pro     
  Available memory (MB): 16274
  Available CPU cores: 12     
Binaries:
  Node: 20.10.0
  npm: N/A
  Yarn: N/A
  pnpm: 8.15.3
Relevant Packages:
  next: 14.3.0-canary.54 // Latest available version is detected (14.3.0-canary.54).
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Developer Experience

### Which stage(s) are affected? (Select all that apply)

next dev (local)

### Additional context

_No response_
Repository: ui
Issue: [bug]: Combo box is not working.
Labels: bug

### Describe the bug

the default code for combobox in a next.js app throws this error:


Unhandled Runtime Error
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))

### Affected component/components

ComboBox

### How to reproduce

just copy the default code for combo box from [shadcnui.com/combobox](https://ui.shadcn.com/docs/components/combobox) and paste it in page.tsx
run the code and the error should pop up while trying to click the PopoverTrigger button.

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
browser
```


### Before submitting

- [ ] I've made research efforts and searched the documentation
- [x] I've searched for existing issues
Repository: vscode
Issue: Remove skipLibCheck from build folder
Labels: debt,engineering

Change was made as part of https://github.com/microsoft/vscode/pull/209818/commits/cab7839b6061afde2693af506fbba2d84d2e7071 to workaround typing incompatibility in 3-rd party dependencies.

We would need to update

- [ ] vscode-gulp-watch to use chokidar >= 3.6.0 to adopt the changes from https://github.com/paulmillr/chokidar/commit/a0f9e09f64ce7ae70cc6ae1f5615f65cb35f532f
- [x] @types/gulp to >= 4.0.17
Repository: nvm
Issue: Feature Request:  User-provided hash
Labels: feature requests

I see that nvm checks nodejs versions against a copy of SHASUMS256.txt which [it downloads](https://github.com/nvm-sh/nvm/blob/master/nvm.sh#L1703) from the same mirror that it downloads nodejs.  

This verification is not without value as-is, but I've got my tin-foil-hat on and it doesn't quite scratch the itch. I'd like to hard-code a hash so that my automation will break if there's a MITM between myself in the mirror (otherwise the MITM can just tamper with SHASUMS256.txt to make the verification pass and hide whatever skulduggery they've amended node with).

I'm imagining something like:

```
nvm install 16.19.1 --sha256 ca63da538e02de15b7e974f7a17ce4732cc0d63023942301d30044c472ed9ddd
```

Please consider it.  Thank you.
Repository: pytorch
Issue: Improve reasoning for size oblivious equations involving min or max()
Labels: high priority,triaged,oncall: pt2,module: dynamic shapes

### 🐛 Describe the bug

Internal xref: https://fb.workplace.com/groups/6829516587176185/posts/7172183699576137/

This program fails to compile:

```
@torch.compile(fullgraph=True, backend="eager")
def cf(x):
    u0, u1 = x.tolist()
    torch._check_is_size(u0)
    torch._check_is_size(u1)
    torch._check(u0 + u1 == 20)
    if guard_size_oblivious(torch.sym_max(1, u0 + u1) == 20):
        return torch.tensor(True)
    else:
        return torch.tensor(False)

@run_test
def test_symmax():
    assert cf(torch.tensor([10, 10])).item()
```

Actually, we should be able to make the inference here, because u0 and u1 are size-like in a size oblivious, so we assume they are >= 2, which means that the Max should evaporate, but we are unable to do this.

cc @gchanan @zou3519 @kadeng @msaroufim @chauhang @penguinwu @bobrenjc93 @bdhirsh @anijain2305 @lezcano 

### Versions

main
Repository: pytorch
Issue: DISABLED test_transformer_training_is_seq_parallel_False (__main__.DistTensorParallelExampleTest)
Labels: oncall: distributed,module: rocm,module: flaky-tests,skipped

Platforms: rocm

This test was disabled because it is failing on main branch ([recent examples](https://torch-ci.com/failure?failureCaptures=%5B%22distributed%2Ftensor%2Fparallel%2Ftest_tp_examples.py%3A%3ADistTensorParallelExampleTest%3A%3Atest_transformer_training_is_seq_parallel_False%22%5D)).

Broken by either #122995 or #122996 or #122997.

CC @groenenboomj @xinyazhang 

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @wconstab @yf225 @chauhang @d4l3k @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @clee2000
Repository: tauri
Issue: [bug] svg animation or css animation  Stuck and stopped
Labels: type: bug,status: needs triage

### Describe the bug

svg animation or css animation  Stuck and stopped

### Reproduction

_No response_

### Expected behavior

_No response_

### Full `tauri info` output

```text
WARNING: Only one package manager should be used, but found yarn and bun.
         Please remove unused package manager lock files, will use yarn for now!

[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 124.0.2478.80
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.78.0 (9b00956e5 2024-04-29)
    ✔ cargo: 1.78.0 (54d8815d0 2024-03-26)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.11.1
    - yarn: 4.1.1
    - npm: 10.2.4
    - bun: 1.1.7

[-] Packages
    - tauri [RUST]: 2.0.0-beta.19 (no manifest)
    - tauri-build [RUST]: 2.0.0-beta.15 (no manifest)
    - wry [RUST]: 0.39.5 (no manifest)
    - tao [RUST]: 0.28.0 (no manifest)
    - tauri-cli [RUST]: 2.0.0-beta.17
    - @tauri-apps/api [NPM]: 2.0.0-beta.11
    - @tauri-apps/cli [NPM]: 2.0.0-beta.17

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist/static
    - devUrl: http://localhost:1420/
    - framework: Vue.js
    - bundler: Rollup
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: flutter
Issue: [web][Link] Cleanup event listeners on hot restart
Labels: t: hot reload,platform-web,p: url_launcher,P2,team-web,triaged-web

When the `Link` widget is used, it attaches some global event listeners. These listeners are leaked when a hot-restart occurs.

My first (failing) attempt was:
```dart
developer.registerExtension('ext.flutter.disassemble', (_, __) {
  _detachGlobalListeners();
  return Future<developer.ServiceExtensionResponse>.value(
    developer.ServiceExtensionResponse.result('OK'),
  );
});
```
but it throws the following error:
```
Invalid argument(s): Extension already registered: ext.flutter.disassemble
```
Repository: godot
Issue: AnimatableBody3D can't rotate and move at the same time
Labels: needs testing,topic:3d

### Tested versions

reproducible in 4.2

### System information

Windows 11 Godot 4.2

### Issue description

AnimatableBody3D can't rotate and move at the same time

### Steps to reproduce
```gdscript
func _physics_process(delta: float) -> void:	
  global_position.y += delta
  rotate_y(delta)
```

this will make the object just rotate. If you switch the rotation and movement in places, it will only move. but not both at the same time

### Minimal reproduction project (MRP)

[test.zip](https://github.com/godotengine/godot/files/15276898/test.zip)