sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: neovim
Issue: lsp filewatcher not work with some glob pattern
Labels: bug,lua,lsp,filesystem

### Problem

https://github.com/Decodetalkers/neocmakelsp/blob/master/src/languageserver.rs#L280-L293

I have registered such kind of filewatcher. every time files under the project, like `buiild/CMakeCache.txt` is changed, lsp will read the file and publish some diagnose. it used to work on 0.9, but now it will only react to `CMakeCache.txt` such kind of file, which is on the top of the file. I have tried vscode, vscode works well, so I think it maybe a bug.. 

my config is 

```lua
local configs = require("lspconfig.configs")
local opts = {
    capabilities = {
        workspace = {
            didChangeWatchedFiles = {
                dynamicRegistration = true,
                relative_pattern_support = true,
            },
        },
        textDocument = {
            completion = {
                completionItem = {
                    snippetSupport = true
                }
            }
        }
    },
    on_attach = on_attach,
}
if persettings and persettings.lsp and persettings.lsp.neocmake then
    opts = persettings.lsp.neocmake
end

nvim_lsp.neocmake.setup(opts)
```

### Steps to reproduce

config neocmake like the above way. create a new cmake project, use git init, init the git repo. 

Then write the min thing

```cmake
cmake_minimum_required(VERSION 3.27)
project(AA)

find_package(ddggf REQUIRED)
```

here the `ddggf` package is not exist, run

```bash
cmake -B build
```

cmake will report error, and generate  `build/CMakeCache.txt`, and neocmakelsp will report warning on `ddggf`, but neocmakelsp does not receive any file changes. 


### Expected behavior

"**/CMakeCache.txt",such kind of glob can be support with filewatcher

### Neovim version (nvim -v)

v0.10.1

### Vim (not Nvim) behaves the same?

no

### Operating system/version

archlinux

### Terminal name/version

konsole/24.05.2

### $TERM environment variable

xterm-256color

### Installation

from the repo of archlinux
Repository: deno
Issue: Add integration test for #24727
Labels: tests

              We should add an integration test for this one.

_Originally posted by @dsherret in https://github.com/denoland/deno/issues/24727#issuecomment-2252668360_
Repository: neovim
Issue: Program freeze when opening empty named pipe
Labels: bug,io,system,filesystem

### Problem

When opening a named pipe neovim remains unresponsive even after the producer(s) finish writing and close their end of the pipe.

### Steps to reproduce

```
mkfifo pipe
nvim --clean ./pipe
```

from another terminal:
```
cowsay 'I love neovim!' >./pipe
```

### Expected behavior

Should work the same as with an unnamed pipe (`... | nvim -`)

After the producers close their write ends neovim should load the data into a buffer and start accepting user input.

### Neovim version (nvim -v)

NVIM v0.10.1  Build type: Release  LuaJIT 2.1.1720049189

### Vim (not Nvim) behaves the same?

yes, 9.0 Included patches: 1-1378, 1499

### Operating system/version

Linux 6.6.41-1-lts #1 SMP PREEMPT_DYNAMIC, x86_64 GNU/Linux 

### Terminal name/version

st 0.9

### $TERM environment variable

xterm-256color 

### Installation

pacman (extra)
Repository: godot
Issue: After Oculus key on Native Quest, the is_mouse_button_pressed (LMB) is always true
Labels: bug,needs testing,topic:xr,topic:input

### Tested versions

- Reproducible in 4.3 RC1

### System information

Quest 3 - Godot_v4.3rc1_win64.exe

### Issue description

After opening the Oculus/Meta menu via the Oculus key, the Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT) returns always true.__

### Steps to reproduce

- Start a native app on Quest
- Check the current Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT) status => It's false
- Open the Oculus menu
- Close the Oculus menu (continue the app)
- Check again the current Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT) status => is true now

### Minimal reproduction project (MRP)

N/A
Repository: deno
Issue: JavaScript doesn't support decorators
Labels: feat,upstream

In Deno, JavaScript decorators aren't supported. Obviously they're supported for TypeScript.

This is pretty annoying when one bundles a Deno project into one large JavaScript file to run.

The workaround is to rename the bundled files to `ts` instead of `js`.

Decorators should be supported in both TypeScript and JavaScript.
Repository: godot
Issue: Custom Themes execute code in Editor without Tool mode
Labels: bug,topic:core,topic:editor

### Tested versions

Reproducible in Godot Engine v4.2.2.stable.official.15073afe3

### System information

Windows 10 - Vulkan API 1.3.242 - Forward+ - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 2070 SUPER

### Issue description

Custom Theme Resources will have their _init() function executed within the editor context, despite no Tool annotation being present.

This may also apply to other Resources defined in the ProjectSettings, if any.

### Steps to reproduce

Define a custom Theme Resource as such:

```
class_name MyTheme
extends Theme

func _init() -> void:
    code goes here.
    For example you may subscribe to SceneTree.node_added() and modify the node.
```

Detailed example: https://github.com/TheDuriel/DurielUtilities/blob/main/FancyTheme/FancyTheme.gd

Define this Them as a Custom Theme in the Project Settings.

Restart the editor.

The Themes _init() function will not be executed, despite the lack of a Tool annotation.

### Minimal reproduction project (MRP)

N/A
Repository: PowerToys
Issue: Disable Ctrl + Mouse Scroll zoom
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

It would be nice to disable Ctrl + Mouse Scroll at all or change it to Ctrl + Shift + Mouse Scroll or Windows + Mouse Scroll.

### Scenario when this would be used?

Logitech mouse MX Master have a super smooth scroll wheel. So you may gently touch the scroll and it will keep on going. Super nice feeling. Next, if you are a "Windows heavy user", you use shortcuts a lot. Most of them starts from CTRL. Combine these two and you will get annoying web experience. The page keeps zoom out to 25% fast or zoom in to 500%. 

But the most annoying is in Visual Studio. It will change text size for every file. 

### Supporting information

https://www.logitech.com/en-us/products/mice/mx-master-3s.910-006556.html
https://stackoverflow.com/questions/75691659/can-you-disable-ctrl-mousewheel-to-zoom-in-microsoft-visual-studio
https://github.com/MvRens/DisableMouseWheelZoom
Repository: pytorch
Issue: Static shape guards are put on tensors even if they never actually get used
Labels: high priority,triaged,actionable,oncall: pt2,module: dynamic shapes,module: dynamo

### 🐛 Describe the bug

Internal xref: https://fb.workplace.com/groups/1286739428954016/posts/1293582771603015/

```
import torch

@torch.compile(fullgraph=True, backend='eager')
def f(x, y):
    z = y
    return x * 2

f(torch.randn(3), torch.randn(4))
f(torch.randn(3), torch.randn(6))
```

Logs: https://gist.github.com/ezyang/fc85b8ff9d1826886f32a5f2d7fa6a76

Notably, you see this triggers a recompile from y's size change even though y isn't used at all.

```
V0726 07:04:24.836000 1780047 torch/_dynamo/guards.py:2688] [0/1] [__recompiles] Recompiling function f in /data/users/ezyang/a/pytorch/nu.py:3
V0726 07:04:24.836000 1780047 torch/_dynamo/guards.py:2688] [0/1] [__recompiles]     triggered by the following guard failure(s):
V0726 07:04:24.836000 1780047 torch/_dynamo/guards.py:2688] [0/1] [__recompiles]     - 0/0: tensor 'L['y']' size mismatch at index 0. expected 4, actual 6
```

This is easy to trigger when compiling FX graphs that have graph breaks, since there are lots of live variables that may be irrelevant to the particular subgraph being compiled.

This might not be so easy to fix. We need a LazyTensorVariable that doesn't install guards until we actually use it for real.

### Versions

main

cc @gchanan @zou3519 @kadeng @msaroufim @chauhang @penguinwu @bobrenjc93 @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @amjames
Repository: material-ui
Issue: [material-ui][Badge] When `showZero={false}` and value is `0` content is not updated
Labels: bug 🐛,component: badge,package: material-ui

### Steps to reproduce

Link to live example: (required)
Demo in Stackblitz : https://stackblitz.com/edit/react-qkjzbj?file=Demo.tsx
Steps:
1. Inspect `.MuiBadge-badge` elements in dev tools
2. Click "Set to 0" and observe 

 


### Current behavior

 - For `Badge` with `showZero={false}` content of `.MuiBadge-badge` element will  not be updated  (will still be 8, depite of element being not visible)
  - For `Badge` with `showZero={true}` content of `.MuiBadge-badge` element will  be updated


### Expected behavior

I believe this is wrong and content should updated to current value, even if element is not visible

### Context

I am using Badge component and while testing if it visually hidden and has zero value when value is changed from anything other than 0 tests are failing because element is hidden but old value is present in the DOM.

### Your environment

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>


**Search keywords**: MuiBadge
Repository: rust
Issue: Should `Mutex` and `Condvar`  respect priorities?
Labels: T-libs,C-discussion,A-atomic

`std` does not have an API for setting the thread priority, and doesn't currently support priority inheritance on the majority of platforms (Linux and Windows in particular). Given this, does it still make sense to provide priority inheritance on any platform, when it is not guaranteed, won't be used by default and cannot be relied upon when using external libraries without inspecting the code? Or wouldn't it make more sense to deal with all the priority stuff in a separate crate? This would then allow reducing the number of synchronization primitive implementations inside `std` (we could switch to the queue-based variant on quite some platforms), thus simplifying efforts like #128203.
Repository: godot
Issue: [C#] Custom `VisualShaderNodeCustom` scripts are not recognized as shader nodes in Godot 4.2+
Labels: documentation,topic:dotnet,topic:shaders

### Tested versions

Reproducible in:
* 4.2.1.stable.mono
* 4.2.2.stable.mono

### System information

Godot v4.2.1.stable.mono - Windows 10.0.19045 - GLES3 (Compatibility) - NVIDIA GeForce RTX 2080 Ti (NVIDIA; 31.0.15.4617) - AMD Ryzen Threadripper 2970WX 24-Core Processor (48 Threads)

### Issue description

When trying to create a script inheriting from `VisualShaderNodeCustom` the engine / visual shader doesn't recognize the custom shader node created in C#. Custom GDScript shader nodes works.

I saw that there was a closed issue with a similar error, but it seems like the solution was for GDScript only.
https://github.com/godotengine/godot/issues/67268
https://github.com/godotengine/godot/pull/67407
https://github.com/godotengine/godot/pull/69738

The C# file used in the repro project will use this as the "template", since the built-in one is broken:
https://github.com/godotengine/godot/pull/94693

### Steps to reproduce

* Create a new or use existing project
* Create a node inheriting from `VisualShaderNodeCustom` and compile
* Open a VisualShader in the editor
* Try and add the new node

### Minimal reproduction project (MRP)

ZIP:
[VisualShaderNodeTest.zip](https://github.com/user-attachments/files/16393181/VisualShaderNodeTest.zip)

Link:
https://github.com/jonatanrojderd/VisualShaderNodeTest
Repository: angular
Issue: Allow NgOptimizedImage to work with predefined srcset
Labels: area: common,common: image directive

### Which @angular/* package(s) are relevant/related to the feature request?

common

### Description

Currently, if I have a predefined srcset and do not need srcset autogeneration, I cannot use that predefined srcset with NgOptimizedImage. This is particularly useful when image links are signed and returned by the backend server, rather than being generated on the frontend.

Example of the predefined srcset:
```
https://images.com/signature/image.png/128 128w,  
https://images.com/signature/image.png/256 256w,
https://images.com/signature/image.png/384 384w
```

The `ngSrcset` does not support a complete srcset with image links, it only supports a comma-separated list of one or more width/density descriptors. 

The issue is that while I can add `[attr.srcset]` for the image, NgOptimizedImage won't be able to work with it. For instance, if I have an image marked with `priority`, NgOptimizedImage will autogenerate preload link element without `imagesrcset`, basically omitting `[attr.srcset]`. It seems that it generates `imagesrcset` only when `ngSrcset` is used, which prevents the use of NgOptimizedImage with predefined srcset values.

### Proposed solution

Allow NgOptimizedImage to work with `[attr.srcset]` or add support for NgOptimizedImage to be able to use predefined srcset within `ngSrcset`. Along the lines of:
```
<img [ngSrc]="image.src"
     [ngSrcset]="image.srcset"
     [disableOptimizedSrcset]="true"
     sizes="100vw"
     priority
     fill />
```

where `image.srcset` is just a string of 

```
https://images.com/signature/image.png/128 128w, https://images.com/signature/image.png/256 256w, https://images.com/signature/image.png/384 384w
```

### Alternatives considered

To make it work right now, I had to come up with a custom image loader and a bunch of utility functions.

With `image.srcset` defined as

```
srcset: { [key: string]: string; }; // key is image width, value is an image src
```
I have the following `<img>`

```
<img [ngSrc]="image.src"
     [ngSrcset]="getSrcSet(image.srcset)"
     [loaderParams]="{srcset: image.srcset}"
     [disableOptimizedSrcset]="true"
     sizes="100vw"
     priority
     fill />
```

```
export function getSrcSet(srcset: { [key: string]: string }): string {
  return Object.keys(srcset).map(key => key + 'w').join(', ')
}
```

And this sort of custom image loader

```
export const predefinedSrcsetImageLoader: ImageLoader = (config: ImageLoaderConfig): string => {
  if (config.loaderParams?.['srcset'] && config.width) {
    let srcset: { [key: string]: string } =
      config.loaderParams?.['srcset'];

    return srcset[config.width];
  } else {
    return config.src;
  }
}
```

While this approach works, it requires additional effort and complexity that could be avoided with better support for predefined srcset values in NgOptimizedImage.
Repository: ollama
Issue: Make it easier to run the container as a non-root user
Labels: feature request,docker

Currently, the container runs as the root user by default (UID=0), this makes most things easy, but isn't the best for security reasons.

I would suggest adding a new non-0 UID user (e.g. `ollama`) with a dedicated home folder to the image. This should make using the image in restricted settings much easier.

I'd be happy to contribute this feature. Building a custom image from the official ollama:0.3.0 with a new user already works well:

```sh
FROM docker.io/ollama/ollama:0.3.0

RUN groupadd -r -g 65532 ollama && useradd --create-home --shell /bin/bash --uid 65532 -g ollama ollama

USER 65532:65532
```
Repository: vscode
Issue: code moved feature for the inline view
Labels: bug,diff-editor

Type: <b>Bug</b>

the diff has inline view and separate editor view,
the moved code indicators are visible in the separate view however there is no indicator.
the code moved option is enabled or visible with the inline view checked, may be it would be a good way to have it disabled/hidden with inline view if the movement indicators are not supported in inline view.

![image](https://github.com/user-attachments/assets/7f8ab65c-1480-4277-864c-32c8484c2ec2)


VS Code version: Code - Insiders 1.92.0-insider (bcbdd8e575684d6df1def9a478d645c37129c033, 2024-07-25T23:12:28.613Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Remote OS version: Linux x64 4.4.0-22621-Microsoft

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz (8 x 2112)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|15.82GB (1.24GB free)|
|Process Argv|--folder-uri=vscode-remote://wsl+Ubuntu/home/sanket/code/dps-fabric-ui --remote=wsl+Ubuntu|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|WSL: Ubuntu|
|OS|Linux x64 4.4.0-22621-Microsoft|
|CPUs|Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz (8 x 0)|
|Memory (System)|15.82GB (1.25GB free)|
|VM|0%|
</details><details><summary>Extensions (31)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-drawio|hed|1.6.6
output-colorizer|IBM|0.1.2
vscode-edge-devtools|ms-|2.1.5
remote-wsl|ms-|0.88.2
ng-template|Ang|18.1.2
vscode-markdownlint|Dav|0.55.0
vscode-eslint|dba|3.0.10
githistory|don|0.6.20
gitlens|eam|15.2.1
EditorConfig|Edi|0.16.4
prettier-vscode|esb|10.4.0
git-graph|mhu|1.30.0
mongodb-vscode|mon|1.6.1
vscode-scss|mrm|0.10.0
vscode-dotnet-runtime|ms-|2.1.1
data-workspace-vscode|ms-|0.5.0
mssql|ms-|1.22.1
sql-bindings-vscode|ms-|0.4.0
sql-database-projects-vscode|ms-|1.4.1
datawrangler|ms-|1.4.2
live-server|ms-|0.4.14
vscode-typescript-next|ms-|5.6.20240725
angular-console|nrw|18.25.0
vscode-xml|red|0.27.2024071808
vscode-yaml|red|1.15.0
code-spell-checker|str|3.0.1
vscode-stylelint|sty|1.4.0
win-ca|uko|3.5.1
intellicode-api-usage-examples|Vis|0.2.8
vscodeintellicode|Vis|1.3.1
vscodeintellicode-completions|Vis|2.0.0


</details>
<!-- generated by issue reporter -->
Repository: flutter
Issue: Update sample projects to target sdk version 35
Labels: platform-android,P1,team-android

https://github.com/flutter/samples/tree/main/
Repository: vscode
Issue: `editor.wordSegmenterLocales` configuration don't take effect in simpleWidget editors (like chat or SCM input Editor)
Labels: feature-request,scm,chat

<!-- ⚠️⚠️ 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. -->

```
About VSCode:

Version: 1.91.1 (Universal)
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:07:54.982Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 22.6.0
```

## Background

Issue #50045 has been resolved by PR #203605. However, this PR ignored simpleWidget editors (like chat or SCM input Editor). 

## Steps to Reproduce:
1. Config `"editor.wordSegmenterLocales": ["zh-CN"],` in `settings.json` 
2. Paste `测试测试测试测试测试测试` (or any other test string) into chat or SCM input editor
3. Trigger `cursorWordLeft` or `cursorWordRight` (shortcut: Option + ArrowLeft or ArrowRight)
4. `editor.wordSegmenterLocales` configuration don't take effect in these editors

## Reason

The `getSimpleEditorOptions` function don't return `wordSegmenterLocales` property.

<img width="558" alt="image" src="https://github.com/user-attachments/assets/d1c388be-0ba8-413e-bcc4-edfca0a911c5">

## ScreenShot

https://github.com/user-attachments/assets/6036f9fc-5025-424b-960f-5c66800fd8d6
Repository: deno
Issue: High disk write volume on .cache sqlite databases. 
Labels: perf,needs info

Version: Deno 1.44.2

We run lots of deno processes that frequently resolve dependencies with the `--reload` flag. Our hosts that run Deno processes will regularly see periods of 300mb/s of write volume to the sqlite databases in the cache. I think the v8 cache is the highest volume although I seem to have misplaced the strace logs I was using to verify this.

Couple questions:
1. Is the source of this high write volume known? These databases are usually 5mb to 80mb so I was surprised to see write volume that exceeded the size of the entire DB. Maybe there is lots of state contention and sqlite is writing lots of data over and over again?
2. Would it be possible to restructure the `.cache` directory so that the sqlite databases are in their own folder so that I can either bind mount or tmpfs that folder and skip the disk entirely? (Maybe this is possible already, but I assumed I cannot somehow make the sqlite files memory backed without including the full directory). 
3. Open to any other ideas to help reduce the disk usage :) 

Thanks!
Repository: TypeScript
Issue: Unique type
Labels: Suggestion,Awaiting More Feedback

### 🔍 Search Terms

"unique type"

### ✅ 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

Sometimes I just need a unique type as flags in my type calculations. If I use a string subtype or others it couldn't be identity well. Such as:
```ts
type Flag = 'Flag'
type MyType<T extends string|Flag>=T extends Flag? 'IsFlag':'A normal string'
```
In the code, `Flag` is also a string. I don't want to post some complex types which references each other and using flag types but it is really useful for me.
Define a pure unique type without any runtime content.

### 📃 Motivating Example

```
type Flag1 = unique('Flag')
type Flag2 = unique('Flag')
```
`Flag1` is not `Flag2` like unique symbols.
The unique types only extends itself for checking what it is.
Pass a text to `unique` keyword to create a unique type.

### 💻 Use Cases

1. What do you want to use this for?
To control the type calculation especially in recursive type definitions.
2. What shortcomings exist with current approaches?
If I define a unique symbol, it should produce a runtime symbol.
3. What workarounds are you using in the meantime?
Write flag with string sub-type carefully.