sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: The "Source Control" panel is often out of sync with my git repo
Labels: bug,git


Type: <b>Bug</b>

Since upgrading, I've noticed that the "Source Control" panel does not stay in sync with my git repo. I find myself invoking "reload window" a lot throughout the day to fix the problem. This wasn't an issue before, but now I run into it constantly.

Example repro:
1. Add/modify files (through vscode or externally)
2. Source Control panel updates to show changes
3. Commit (from the command line)
4. Source Control panel still shows modified files until I "reload window"

VS Code version: Code 1.95.1 (65edc4939843c90c34d61f4ce11704f09d3e5cb6, 2024-10-31T05:14:54.222Z)
OS version: Windows_NT x64 10.0.22631
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 2995)|
|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.71GB (2.63GB free)|
|Process Argv|--log trace --crash-reporter-id 4c14e0ab-6323-4be2-8ea1-b8ae8d1b35aa|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (10)</summary>

Extension|Author (truncated)|Version
---|---|---
copy-relative-path|ale|0.0.2
turbo-console-log|Cha|2.10.5
githistory|don|0.6.20
prettier-vscode|esb|11.0.0
gc-excelviewer|Gra|4.2.62
jenkins-declarative-support|jmM|0.1.0
code-groovy|mar|0.1.2
better-folding|Moh|0.5.1
color-highlight|nau|2.8.0
material-icon-theme|PKi|5.12.0

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
vscrpc:30673769
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
jg8ic977:31013176
dvdeprecation:31068756
dwnewjupytercf:31046870
impr_priority:31102340
nativerepl2:31139839
refactort:31108082
pythonrstrctxt:31112756
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013

```

</details>

<!-- generated by issue reporter -->
Repository: godot
Issue: Reverb predelay does not separate dry from wet.
Labels: bug,topic:audio

### Tested versions

4.3 .Net , 4.4 Dev3 .Net

### System information

Win10 x64 22H2

### Issue description

Predelay in reverb means the time difference between the start of the audio sample (dry), and the start of the reverb effect (wet).

In reverb settings, assign Predelay to 0ms and Feedback to 0. Playing an audio source will have wet and dry play at the same time. Ok, good so far.

Assigning Predelay to the max value of 500ms STILL has wet and dry play at the same time, instead of playing wet 500ms after dry starts.

Maybe Feedback is the issue? Turn up Feedback to 0.5 and keep Predelay at 500ms. Play the sound again, and notice
1) Wet and dry still play at the same time instead of having 500ms delay between the two.
2) But now the whole reverb effect is repeated every Predelay time.

### Steps to reproduce

1) Open Godot, go to go to Audio tab and assign Reverb to the Master bus.
2) Crank up `room size` to 1 for reverb emphasis.
3) Set `damp` to 0 for clean reverb.
4) Set `wet` to 1 and `dry` to 0.5 to hear reverb better.
4) Set `predelay` to 0ms, and `feedback` to 0.
5) Add an audio source to the scene and play it.
6) Notice Wet and Dry play at the same time. This is correct since there is 0ms predelay between the two.
7) Set 500ms predelay, and play the audio again.
8) Notice Wet and Dry still play at the same time. This is wrong because there should be 500ms delay between Wet and Dry. Perhaps `feedback` needs to be non-zero?
9) Set `feedback` to 0.5, and replay audio.
10) Notice Wet and Dry still play at the same time, but the reverb effect repeats every predelay time. This is also wrong.

### Minimal reproduction project (MRP)

n/a
Repository: pytorch
Issue: Support scalar tensor in `value` arg of foreach op
Labels: module: optimizer,triaged,module: mta

### 🚀 The feature, motivation and pitch

In https://github.com/pytorch/pytorch/pull/134171/files#r1805348159 there is a limitation with supporting scalar tensors in the `value` arg of foreach ops, and this results in an unnecessary copy of all grads in the optimizer. Ideally, the foreach op can support scalar tensors as the value arg, since they can be transferred to the requisite device/passed as an arg to the kernel. This would permit the foreach ops to be more flexible.

### Alternatives

The current status quo is to separate out the value arg into a separate foreach op, which is worse for perf. 

### Additional context

Overall this only matters if eager performance is paramount for the desired scenario. In this case, torch.compile will remove any of the additional overhead. This isn't urgent for any of my scenarios since all of them will utilize torch.compile to remove the additional overhead. However if in the future this is needed for some code in eager, there is no workaround to remove the overhead other than the alternative listed above.

cc @vincentqb @jbschlosser @albanD @janeyx99 @crcrpar @mcarilli
Repository: ui
Issue: [feat]: Implement with browser-level APIs for better performance
Labels: area: request

### Feature description

There are a few browser-level APIs that could deliver better page and user interaction performance compared to a JS implementation.  Please consider adopting these APIs:

Popover (also used on this exact GitHub page you're viewing): 
[https://developer.mozilla.org/en-US/docs/Web/API/Popover_API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)

Anchor positioning:
[https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_anchor_positioning](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_anchor_positioning)

Scroll-driven animations:
[https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_scroll-driven_animations](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_scroll-driven_animations)

View transitions:
[https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API)

Customizable select element:
[https://open-ui.org/components/customizableselect/](https://open-ui.org/components/customizableselect/)

details element
[https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details)

dialog element
[https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog)

### Affected component/components

popups, menus, buttons, etc.

### Additional Context

Additional details here...

### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues and PRs
Repository: flutter
Issue: Improve error if `BoxDecoration` has both a circle shape and a border radius
Labels: framework,c: proposal,a: error message,P3,team-framework,triaged-framework

### Use case

The following `BoxDecoration` is invalid:

```dart
BoxDecoration(
  shape: BoxShape.circle,
  borderRadius: BorderRadius.circular(3.0),
)
```

Using this decoration in a `DecoratedBox` widget will result in errors like:

```
════════ Exception caught by rendering library ═════════════════════════════════
'package:flutter/src/painting/box_decoration.dart': Failed assertion: line 419 pos 16: '_decoration.borderRadius == null': is not true.
The relevant error-causing widget was:
    DecoratedBox ContainerDecorators|decoratedBox:file:///Users/loicsharma/Code/tmp/decorators_study/lib/sunflower/decorator.dart:121:8
The following RenderObject was being processed when the exception was fired: RenderDecoratedBox#a007e relayoutBoundary=up2
RenderObject: RenderDecoratedBox#a007e relayoutBoundary=up2
════════════════════════════════════════════════════════════════════════════════
````

It's not clear from this error what needs to be changed.


### Proposal

Add an assertion to `BoxDecoration`'s constructor that gives a helpful error like:

```
A circle cannot have a border radius. Remove either the shape or the borderRadius argument.
```
Repository: PowerToys
Issue: Surface Pro Slim Pen2 (and other similar Devices)
Labels: Needs-Triage

### Description of the new feature / enhancement

Option to use it as presenter with using back side and side button as well as pen tip as buttons and the gyro to highlight and mouse pointer

### Scenario when this would be used?

Immediately in Powerpoint and other apps like video control (playback...) 

### Supporting information

_No response_
Repository: flutter
Issue: Migrate api 26 and 27 to arm based firebase test lab emulators 
Labels: platform-android,P2,team-android,triaged-android,fyi-infra

Notes here go/flutter-android-omni-lab-2024-11-05
TLDR forward looking migration that should have speed benefits 

Needs to happen before End of q1 2025.
Repository: godot
Issue: Using load_threaded_request with sub_threads raises errors when requesting multiple scenes with scripts that access the same autoloaded node
Labels: bug,topic:core

### Tested versions

Godot 4.3.stable

### System information

Mac OS Sequoia (15.1)

### Issue description

I was trying to implement a node that loads several scenes in the ResourceLoader's cache before the game starts, and I managed to get a crude implementation of what I wanted by following the documentation for ResourceLoader's `load_threaded_request` and `load_threaded_get_status` method.

However, when I tried to set`load_thread_request`'s third parameter (`use_sub_threads`) to true, several errors popped up on the console complaining that I was trying to call a function from a thread.

Trying to narrow down what was causing the issue, I noticed that it only happened under these circumstances:

- Registered some node as an autoload in the project's settings
- Started the threaded loading logic for more than 1 resource
- Said loaded resources tried to call a method from the global inside their scripts
- The errors pop up when the resources are loading, regardless of whether I instantiate them or not.

<img width="1087" alt="Screenshot 2024-11-05 at 4 23 32 PM" src="https://github.com/user-attachments/assets/5dc80fad-8d0a-4282-8cef-7d22fc1778c6">

While the game doesn't crash, I'm not sure if those errors would cause further problems down the road, or if a compiled version of the game would indeed start crashing. 

Another issue I noticed is that only the first call of `load_threaded_get` returns the actual resource, any subsequent call returns `null`. Not sure if this is truly a bug or if there are some additional steps I need to take to query that resource again.

### Steps to reproduce

Just run the attached project, I've hooked the loading logic to the main scene's `_ready` call, you should see the errors pop up on the debugger, and the text `"finished loading"` should be printed on the console.

For the second issue: after that text appears, pressing the button on the screen prints the loaded resource for one specific scene, but any subsequent button press will instead print null.

### Minimal reproduction project (MRP)

[TestResourceLoader.zip](https://github.com/user-attachments/files/17638784/TestResourceLoader.zip)

This project tires to load all the scenes located inside the `Scenes` subfolder, and both `ChildScene.tscn` and `SecondChildScene.tscn` contain a script that tries to call a method from an autoloaded node called `RandomGlobal.tscn`
Repository: kubernetes
Issue: Query param decoding fails to default when query string is entirely unset
Labels: sig/api-machinery,triage/accepted

This was noticed by @knight42 and @thockin: https://github.com/kubernetes/kubernetes/pull/127360#discussion_r1828554485
Repository: go
Issue: x/mobile/cmd/gobind: TestGobind/GOPATH failures
Labels: NeedsInvestigation,mobile

```
#!watchflakes
default <- pkg == "golang.org/x/mobile/cmd/gobind" && test == "TestGobind/GOPATH"
```

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8732529201876720369)):

    === RUN   TestGobind/GOPATH
        gobind_test.go:128: stat ../../.git/index.lock: no such file or directory
    --- FAIL: TestGobind/GOPATH (0.16s)


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: go
Issue: runtime/pprof: flaky TestGenericsHashKeyInPprofBuilder
Labels: NeedsFix,compiler/runtime

```
#!watchflakes
default <- pkg == "runtime/pprof" && test == "TestGenericsHashKeyInPprofBuilder"
```

This test failed in CI: https://ci.chromium.org/ui/p/golang/builders/try/gotip-linux-amd64-staticlockranking/b8732088109106960193/test-results?sortby=&groupby=

The problem is we got 
```
testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.genericAllocFunc[go.shape.uint32] [1 128 1 128]
```
but want 
```
testing.tRunner;runtime/pprof.TestGenericsHashKeyInPprofBuilder;runtime/pprof.genericAllocFunc[go.shape.uint32] [1 128 0 0]
```

I think this is saying that the allocation is unexpectedly live. The 128 one at https://cs.opensource.google/go/go/+/master:src/runtime/pprof/protomem_test.go;l=132;drc=6f59c11155d75024985d4827a7fe155cd6561df9.

This test isn't intending to test liveness at all, so ignoring that field likely makes the most sense.

cc @golang/runtime
Repository: PowerToys
Issue: [Advanced Paste] Enhance Clipboard History
Labels: Idea-Enhancement,Product-Advanced Paste

### Description of the new feature / enhancement

Enhance the support for the Clipboard History adding parity with the Windows built-in one.

- Add a "Clear all" action to clear the entire history
- Add support for pinning https://github.com/microsoft/PowerToys/issues/33715
- Improve pasting an item from the history
  Current behavior of item click is that the item get copied (moved on top) and the user need to paste a second time

### Scenario when this would be used?

- Allow PowerToys users to use Advanced Paste instead of the Windows Clipboard History.
- Override WIN+V and configure a single shortcut/tool to rule the clipboard.
Repository: terminal
Issue: In tmux 3.4, ZSH does not work correctly either locally or by SSH
Labels: Help Wanted,Issue-Bug,Product-Terminal,Needs-Tag-Fix,Priority-3

### Windows Terminal version

1.22.2912.0

### Windows build number

10.0.22631.4391

### Other Software

* Git for Windows 2.47.0.windows.2
* zsh 5.9
* tmux 3.4
* OpenSSH_9.9p1, OpenSSL 3.2.3 3 Sep 2024

### Steps to reproduce

There are two issues that appear related as they are rendering problems that *only* occur when using ZSH. In order to reproduce the issues, either of the following is required:
* A Git bash installation with ZSH
* Connecting to a remote Linux server through SSH (via Git Bash) that is running ZSH.

## Issue 1 Steps
1. Start a terminal with ZSH using either of the aforementioned setups.
2. Start typing any command. Longer commands will display the issue more clearly.
3. Delete the command.

## Issue 2 Steps
This specific issue only occurs on Linux servers with `tmux` and ZSH:
1. Connect to a server using SSH. The terminal *must* be ZSH.
2. Open `tmux`
3. Open a new vertical split. 
4. Switch to the right-side split and enter any command.
5. Now switch back to the original split and enter a different command.

## Note
The flickering issue is not present in version 1.18.10301. The `tmux` issue however is present on any version since.

### Expected Behavior

For both issues, the terminal should render the text correctly and the cursor should not flicker.

### Actual Behavior

## Issue 1
When entering or deleting text, the cursor jumps to the beginning of the current line and then back to the end rapidly. This is easier to see when deleting a command. Unfortunately it appears that screen recording doesn't showcase the issue properly so I can't show it. 

## Issue 2
![Image](https://github.com/user-attachments/assets/327943bf-1322-48d3-b342-30959b76af16)
See that the `~/Documents >` should've appeared on the right pane, and there's a gap on the right side before the cursor where `~/Documents` should've appeared.
Repository: TypeScript
Issue: Syntactic checks against comparing to null/undefined in strictNullChecks mode
Labels: Suggestion,Experimentation Needed

### 🔍 Search Terms

nullish, strictNullChecks, equals, undefined, null

### ✅ 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

When strictNullChecks are enabled, disallow `==` and `===` comparisons to null/undefined for expressions that are syntactically known to not be undefined.

I'd imagine the definition of syntactically not null/undefined expressions would be similar to that from https://github.com/microsoft/TypeScript/pull/59217.

This is similar to https://github.com/microsoft/TypeScript/issues/11920, but I think would be easier to land because it won't error on defensive programming null checks.

### 📃 Motivating Example

TypeScript's `typeof` operator always returns a string, but it can be hard to spot the difference between checking `"undefined"` and just `undefined` in code like this:

``` ts
if (typeof foo === undefined) {
```

In strictNullChecks mode, TypeScript will catch unnecessary comparisons like this, for expressions that at runtime it knows can never be null or undefined.

### 💻 Use Cases

1. What do you want to use this for? catch user errors
2. What shortcomings exist with current approaches? there's the https://typescript-eslint.io/rules/no-unnecessary-condition/, but that's type-based so does have the problem of flagging defensive programming. it's also nice to have things be in the compiler instead of a separate tool.
3. What workarounds are you using in the meantime? nothing at the moment, if this is infeasible will probably create a custom lint check.
Repository: ollama
Issue: Support for # of completions? (for loom obsidian plugin)
Labels: feature request

I'm trying to adapt the loom obsidian plugin to use ollama.

now it seems to work fine, except I only ever get 1 completion. where settings.n is the number of completions I would like to generate.

https://github.com/cosmicoptima/loom/blob/master/main.ts

```javascript
  async completeOpenAICompat(prompt: string) {
    prompt = this.trimOpenAIPrompt(prompt);

    // @ts-expect-error TODO
    let url = getPreset(this.settings).url;

    if (!(url.startsWith("http://") || url.startsWith("https://")))
      url = "https://" + url;
    if (!url.endsWith("/")) url += "/";
    url = url.replace(/v1\//, "");
    url += "v1/completions";
    let body: any = {
      prompt,
      model: getPreset(this.settings).model,
      max_tokens: this.settings.maxTokens,
      n: this.settings.n,
      temperature: this.settings.temperature,
      top_p: this.settings.topP,
      best_of:
        this.settings.bestOf > this.settings.n
          ? this.settings.bestOf
          : this.settings.n,
    };
```
Repository: flutter
Issue: [impeller] implement golden image tests for linux
Labels: P3,e: impeller,team-engine,triaged-engine,e: opengl

Currently, all golden image tests are run on CI on mac bots.  Swiftshader is used for Vulkan and ANGLE is used for OpenGLES.

In https://github.com/flutter/flutter/issues/157951 it was shown that the OpenGLES tests don't have antialiasing because ANGLE never implemented it for Metal.

The idea here is to get the golden tests running on linux CI so that:
1) We have anti-aliasing for our opengles golden tests
1) Running the golden tests locally on linux will make it easier to develop for linux developers
Repository: TypeScript
Issue: Design Meeting Notes, 11/5/2024
Labels: Design Notes


# `tsc --init`

https://github.com/microsoft/TypeScript/issues/58420

* Discussed previously
    * https://github.com/microsoft/TypeScript/issues/58417
* Example `tsconfig.json`.
    * https://github.com/microsoft/TypeScript/issues/58420#issuecomment-2458300636
    * `"rootDir": "src"`
        * Automatically sets `include`...right?
            * Probably not.
    * `"target": "es2022"`
        * Feels modern enough.
        * Maybe just do `esnext`
    * `"lib": ["dom", "esnext"]`
        * Need all the other `dom.*` libraries like `dom.iterable`.
        * Or just use `"esnext.full"`
    * `"module": "nodenext"`
        * But `bundler`?
    * `"skipLibCheck": true`
        * Disagreement about whether this is best practice, or even necessary for most projects.
* Node vs. browser?
    * Link to https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping when targeting Node.js.
Repository: next.js
Issue: Next.js 15 - Unsupported "BinaryExpression" error in "revalidate" field for math expressions
Labels: bug

### Link to the code that reproduces this issue

https://github.com/GitDevla/next_my_app

### To Reproduce

1. Create a new Next.js 15 project or use an existing one upgraded to Next.js 15.
2. Define a revalidate field with a mathematical expression in one of the route handlers. For example: 
``` javascript
export const revalidate = 60 * 5;
```
3. Attempt to run or build the project.

### Current vs. Expected behavior

**Current**:
```sh
npm run build

> build
> next build

   ▲ Next.js 15.0.3-canary.6

   Creating an optimized production build ...
 ⨯ Next.js can't recognize the exported `config` field in route "/page":
Unsupported node type "BinaryExpression" at "revalidate".
Read More - https://nextjs.org/docs/messages/invalid-page-config
 ✓ Compiled successfully
 ✓ Linting and checking validity of types    
 ⨯ Invalid config value exports detected, these can cause unexpected behavior from the configs not being applied. Please fix them to continue
```

**Expected**: The mathematical expression to be evaluated

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP Fri Mar 29 23:14:13 UTC 2024
  Available memory (MB): 3921
  Available CPU cores: 4
Binaries:
  Node: 20.16.0
  npm: 10.8.1
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 15.0.3-canary.6 // Latest available version is detected (15.0.3-canary.6).
  eslint-config-next: N/A
  react: 19.0.0-rc-7c8e5e7a-20241101
  react-dom: 19.0.0-rc-7c8e5e7a-20241101
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


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

Not sure

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

next build (local)

### Additional context

In Next.js 15, the revalidate field in route handlers does not support mathematical expressions (e.g. 60 * 5). This behavior was supported in Next.js 14, which accepted expressions that evaluated to integers.

Instead, Next.js 15 only supports direct integer values for revalidate.
eg.
```js
export const revalidate = 300; // 60*5
```