sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Git - The staged file disappears from the git view
Labels: bug,git

<!-- ⚠️⚠️ 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?: Unkown

<!-- 🪓 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.87.0
- OS Version: Alpine Linux 3.19

Steps to Reproduce:

1. Delete a soft link from a repository.
2. Create a normal file using the name of the soft link and make modifications.
3. Stage file in the git view.
4. The staged file disappears from the git view.

ScreenShot:

https://github.com/microsoft/vscode/assets/54622331/b32327ac-feda-42d0-9912-40f24d9df86d
Repository: stable-diffusion-webui
Issue: [Feature Request]: Reset all input config/settings to default
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

A small button for reset all of the current input setting/input to default, e.g:
- Sampling steps
- Sampling method
- Hires fix
- etc...
As the current "Clear Prompt" button does for now. Sometimes, we want to generate a new image, but the current input configs/settings of the previous generation is still there. A reset button should help.
I hope this could help user make a fresh preparation for a new generation faster than reset them one by one or reset the webui.

### Proposed workflow

1. Go to the button below/behind the Generate button
2. Press Reset input configs/settings button
3. All of the input config/settings reset to default.


### Additional information

_No response_
Repository: PowerToys
Issue: Keyboard Manager remap shortcut should detect applications with different arguments as seperate applications for the "If Running"  setting
Labels: Idea-Enhancement,Product-Keyboard Shortcut Manager,Needs-Triage

### Description of the new feature / enhancement

I have setup Keyboard Manager in 0.79 to remap shortcuts for various vscode instances, each with different argument that contain the folder I am working in.

Each shortcut has a different shortcut setting e.g.

![image](https://github.com/microsoft/PowerToys/assets/13977449/e565d4a3-fdf2-48e5-9594-8657c080aa2f)


if I select "Show Window" for the setting "If Running" then it won't open the application if a another instance with different arguments is running. This is not correct.

As a workaround I select "Start Another" for the "If Running" so it does start the new instance that has different arguments.
But if the same application with same arguments is running and the window is maximized but not visible, then instead of showing the window, the taskbar flashes and I have to click on it to open it. This is not ideal.

I would like to suggest that App Executable + Arguments identifies a unique application for the setting "If Running". 
Currently just the App Exectuable is used to identify a unique application for the "If Running" setting.


### Scenario when this would be used?

If you setup shortcuts to map to programs that have multiple instances but different argument e.g. Editors with different arguments i.e. folders

### Supporting information

_No response_
Repository: PowerToys
Issue: Keyboard Manager. Remap a shortcut does not work with certain key combinations
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Needs-Triage,Needs-Team-Response

### Microsoft PowerToys version

v0.79.0

### Installation method

PowerToys auto-update

### Running as admin

None

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

- Enable the powertoys feature: Paste As Plain Text
- Add in keyboard Manager -> Shortcuts > Remap a shortcut. Remap the key (CTRL + V to Win Ctrl Alt V*)
*the key Combination to Paste as Plain Text  

### ✔️ Expected Behavior

When I press Ctrl V. I expect it to paste as plain text. 

### ❌ Actual Behavior

It still keeps the format of the source. 
_might help with troubleshooting_
- When I manually press Win Ctrl Alt V, it does paste as plain text.  (which indicates Paste As Plain Text is working fine)
- When I change the remap key to CTRL + V to something else (like text: xxx), the remapping does work.  (which indicates remapping is working fine).
I expect the order of the Remap a shortcut is the issue here. the remap shows the remapped shortcut is Win Ctrl Alt V. When I press the win button first, Paste as Plain Text does not work. I am unable to change the order of Win Ctrl in the Remap Shorcuts menu.

### Other Software

_No response_
Repository: react
Issue: Bug: Class component with `defaultProps` not merging props correctly in `componentDidMount`
Labels: Type: Bug

<!--
  Please provide a clear and concise description of what the bug is. Include
  screenshots if needed. Please test using the latest version of the relevant
  React packages to make sure your issue has not already been fixed.
-->

React version: `18.2.0`

## Steps To Reproduce

1. Have a `lazy`-wrapped, class-component with `defaultProps`, `componentDidMount` and `componentWillUnmount`.
2. Using `StrictMode`, on initial call to `componentDidMount`, `this.props` contains `defaultProps` correctly.
3. On 2nd mount - `this.props` isn't merged with `defaultProps` correctly.

```tsx
const LazyComponent = lazy(
  async () =>
    class SomeComponent extends Component {
      static defaultProps = { someProp: true };
      componentDidMount() {
        // 1st mount - `true`
        // 2nd mount - `undefined`
        console.log(this.props.someProp);
      }
      componentWillUnmount() {}
      render() { /* ... */ }
    },
);

<StrictMode>
  <LazyComponent />
</StrictMode>
```


Link to code example:
https://stackblitz.com/edit/vitejs-vite-1ptuah?file=src%2Fmain.jsx

## The current behavior
The `StrictMode`-triggered 2nd mount doesn't correctly merge `defaultProps` into `this.props`.

## The expected behavior
`this.props` contains the specified `defaultProps`.

## More context

I noticed each of the following works-around the issue:
- Wrapping the class-component in a function-component (before wrapping with `lazy`)
- Not using `lazy`
- Not defining a `componentWillUnmount`

Since this is happening in a 3rd-party which we wrap with `lazy`, the 1st option is a solid workaround for now.

## Possibly related issues
- #13960
Repository: pytorch
Issue: torch.onnx： operator 'aten::unflatten' to ONNX is not supported.
Labels: module: onnx,triaged

### 🚀 The feature, motivation and pitch

Want for this.

### Alternatives

_No response_

### Additional context

_No response_
Repository: ant-design
Issue: Notification 在 React 17.0.2 下的兼容性问题
Labels: 🐛 Bug,Inactive

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/test-notification-3cnr2g)

### Steps to reproduce

官方示例，比如：https://ant-design.antgroup.com/~demos/notification-demo-custom-style。
使用 React 17.0.2 版本，多次点击按钮，展示 notifacition 会有闪烁的情况。而  React 18 正常。

### What is expected?

兼容 React >= 16.9.0 或者 peerDependencies 改为 >= 18.0.0

### What is actually happening?

React 不兼容导致异常

| Environment | Info |
| --- | --- |
| antd | 5.13.2 |
| React | 17.0.2 |
| System | MacOS |
| Browser | Chrome |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: ant-design
Issue: Time RangePicker do not accept a start value greater than the end value
Labels: Inactive,unconfirmed

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/antd-reproduction-template-forked-khzmnt)

### Steps to reproduce

1. Setup a `DatePicker.RangePicker` component with the props `picker="time"`
2. Try setting a greater start time value than the end time value on the rendered UI (Ex: Start time = 07:00, End time = 01:00)

### What is expected?

User should be able to set a range with a greater start time value than the end time value

### What is actually happening?

When setting a start time value that is greater than the end time value, it swaps them automatically

| Environment | Info |
| --- | --- |
| antd | 5.9.0 |
| React | 17.0.2 |
| System | MacOS Sonoma 14.0 |
| Browser | Arc 1.32.0 Chromium 122.0.6261.94 |

---
Maybe you could add a props that when set to `true` allows users to set a range with a greater start time than the end time

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: godot
Issue: `AudioStreamPolyphonic` with `AudioStreamPlayer.pitch_scale`
Labels: discussion,needs testing,topic:audio

### Tested versions

v4.2.2.rc1.official [c7fb0645a]

### System information

Ubuntu 23.10, Vulkan, NVIDIA GeForce RTX™ 2060 / NVIDIA GeForce RTX™ 2060

### Issue description

Previously, in Godot 3 we could have the following setup with an `AudioStreamPlayer` where we could use `pitch_scale` with an `Audio Clip` track in the `AnimationPlayer`.

![image](https://github.com/godotengine/godot/assets/1177508/f86a925b-7a93-42fe-a8ef-2412f361602e)

With Godot 4 this setup doesn't work any more because `AudioStreamPolyphonic`'s pitch needs to be updated with `AudioStreamPlaybackPolyphonic` instance instead.

To make things worse, `AudioStreamPlaybackPolyphonic` is valid only after the `AudioStreamPlayer.stream` gets assigned so in the case above it's at the `1sec` mark in the `AnimationPlayer`.

What should happen in my opinion is that `AudioStreamPlayer.pitch_scale` should auto-update the `AudioStreamPlaybackPolyphonic` pitch as well, otherwise it gets confusing because `AudioStreamPolyphonic` is the only one that behaves differntly, not being affected by the `AudioStreamPlayer.pitch_scale` value.

### Steps to reproduce

1. Open the Minimal Reproduction Project.
2. Select the `AnimationPlayer` node.
3. Make sure `dbg-audio-clips` animation is selected from the dropdown list.
4. Play the animation and notice the `Animation Clips:` track pitch doesn't change.
5. Now select `dbg-expected` animation.
6. Play the animation and notice that this time the audio stream is properly pitch-shifted.

### Minimal reproduction project (MRP)

[godot-dbg.zip](https://github.com/godotengine/godot/files/14508617/godot-dbg.zip)
Repository: storybook
Issue: [Bug]: docs-mode table-of-contents does not change URL when clicking on an anchor
Labels: bug,good first issue,help wanted,addon: docs

### Describe the bug

If you enable `toc: true`, docs-mode renders a table-of-contents inside the docs page.
When clicking on one of the toc list-items, the expected behavior would be to add the # anchor to the browser URL.

It should behave the same as clicking the # icon on a docs-page headline.

### To Reproduce

https://stackblitz.com/edit/github-w91kck?file=.storybook%2Fpreview.ts

- Open "Button / Docs"
- Click on table of contents anchor -> nothing is added to the URL

### System

_No response_

### Additional context

_No response_
Repository: godot
Issue: Changing visibility for a node in an editor dock has no effect
Labels: bug,needs testing,topic:2d

### Tested versions

- Reproducible in v4.3.dev4.official [df78c0636]
- Not reproducible in v4.2

### System information

Godot v4.3.dev4 - Windows 10.0.19045 - Vulkan (Mobile)

### Issue description

In plugins, if you toggle the visibility of a dock-attached node from false to true, the node stays invisible. Please see the attached project. The label in the dock on the bottom right corner should become visible when the Polygon2D node is selected in the scene tree. This works in 4.2, but not in the latest preview build.

### Steps to reproduce

From an editor plugin, add a node in one of the editor dock slots. Toggle visibility to false and back to true. The node will not be visible, even if the "visible" is set to true.

### Minimal reproduction project (MRP)

[VisibilityBug.zip](https://github.com/godotengine/godot/files/14508736/VisibilityBug.zip)
Repository: transformers
Issue: ReBASED
Labels: New model

### Model description

Mirroring https://github.com/huggingface/transformers/issues/29466, the newer model utilizing LinearAttention adds RMS norm to the attention forwarding and contracts the Taylor expansion to include only the third term, showing better performance and like BASED outperforms Mamba and stuff

### Open source status

- [X] The model implementation is available
- [x] The model weights are available

### Provide useful links for the implementation

The repo https://github.com/corl-team/rebased
Repository: PowerToys
Issue: Image links are broken for markdown files
Labels: Issue-Bug,Needs-Triage,Product-Peek

### Microsoft PowerToys version

0.79.0

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

Peek

### Steps to reproduce

Use Peek to open a markdown file that contains an image

### ✔️ Expected Behavior

[Chromium](https://github.com/chromium/chromium/blob/main/README.md) (local links)

![image](https://github.com/microsoft/PowerToys/assets/68118705/9ede74f6-f5be-4cc1-8d8d-5a225d92f5fe)

[Visual Studio Code](https://github.com/microsoft/vscode/blob/main/README.md) (remote links)

![image](https://github.com/microsoft/PowerToys/assets/68118705/8e160b39-cbd0-42f9-890a-41a7e7f44eb6)


### ❌ Actual Behavior

[Chromium](https://github.com/chromium/chromium/blob/main/README.md) (local links)

![image](https://github.com/microsoft/PowerToys/assets/68118705/0f03649c-7d71-4c86-b8f4-5815ecc1d29f)

[Visual Studio Code](https://github.com/microsoft/vscode/blob/main/README.md) (remote links)

![image](https://github.com/microsoft/PowerToys/assets/68118705/12361c00-8161-4f6d-a0e4-4ad8d09d6f23)


### Other Software

_No response_
Repository: storybook
Issue: [Bug]: docs-page table-of-contents does not scroll and highlight current paragraph, if not enough height available
Labels: bug,good first issue,help wanted,sev:S4

### Describe the bug

In docs page, if you click on a table-of-contents item, and there is not enough height available in the docs page, it actually does not change the current state of the table-of-contents.

![table-of-contents](https://github.com/storybookjs/storybook/assets/5478899/a54972a2-206e-4e3a-9813-9c04269159b3)

At work, I dealt with a similar issue (horizontal tabs with scrollable content section). What we did was to use a hidden element that adds as many height as needed to be able to scroll to even the last element in all cases. It produces lots of unused space at the bottom but from a UX perspective, you can now use the toc and scroll + show the current active toc item in all cases.

Specifically, we use a resizeObserver to check if the user browser height changes. If it does, we calculate and apply the needed additional height.

### To Reproduce

[ttps://stackblitz.com/edit/github-w91kck?file=.storybook%2Fpreview.ts](https://stackblitz.com/edit/github-w91kck?file=.storybook%2Fpreview.ts)

- Open docs page
- Click on an item and see the same result as in the video capture above

### System

_No response_

### Additional context

**Alternative solution;** Do not add a hidden container at the bottom, leave everything at is but at least underline the last clicked "toc" element. After user-scroll, this obviously would change again but is still less confusing IMO
Repository: transformers
Issue: Large World Model and Ring Attention
Labels: New model

### Model description

Ring Attention is a new kind of attention that can expand the context size reliably (tested with precise needle search) up to several _million_ tokens. See https://arxiv.org/abs/2310.01889.

One of the models trained with RingAttention is multimodal Large World Model https://largeworldmodel.github.io/

I believe this attention replacement can be crucial for future LLMs (and not only), and should be included with the Transformers library

### Open source status

- [X] The model implementation is available
- [X] The model weights are available

### Provide useful links for the implementation

LWM checkpoints https://huggingface.co/LargeWorldModel
Ring Attention in PyTorch by Lucidrains https://github.com/lucidrains/ring-attention-pytorch
LWM in Jax https://github.com/LargeWorldModel/LWM
Repository: vscode
Issue: multi-diff-editor with 100+ files triggers global event limit
Labels: bug,multi-diff-editor

Type: <b>Bug</b>

1. Open the `vscode` git repository as workspace
2. Generate a list of 100+ changed files, e.g. `cp -r src/vscode-dts src/vscode-dts-copy`
3. From SCM view, show changes using the multi-diff-editor
4. Look at the developer console, there should be a lot of warnings like:

```
[1he] potential listener LEAK detected, having 175 listeners already. MOST frequent listener (1):
```

I'm filing this is a bug, while it's actually a limitation with the current design. In https://github.com/microsoft/vscode/blob/9626fb0cd29113bc7bbaf7035e0b0cbe96baae59/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.ts#L189
The current global event limit is 175.
https://github.com/microsoft/vscode/blob/9626fb0cd29113bc7bbaf7035e0b0cbe96baae59/src/vs/workbench/browser/workbench.ts#L144

So it's not that hard to hit the event limit with 100 files...
The limit sounds familiar, e.g. see https://github.com/microsoft/vscode/issues/199615, which btw I don't see happening any more, not even with 1K or 2K files.
This is unrelated to the other similar case where I hit the same event limit with an extension, as this can be reproduced without any extension installed.

cc @hediet 

VS Code version: Code - OSS Dev 1.88.0 (Commit unknown, Date unknown)
OS version: Windows_NT x64 10.0.18362
Modes:

<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|
|Load (avg)|undefined|
|Memory (System)|15.81GB (3.63GB free)|
|Process Argv|.|
|Screen Reader|no|
|VM|0%|
</details>Extensions: none
<!-- generated by issue reporter -->
Repository: stable-diffusion-webui
Issue: [Feature Request]: Delete button and a garbage bin
Labels: enhancement

### Is there an existing issue for this?

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

### What would your feature do ?

Have a button to fast and easy throw garbage images in a bin that gets emptied after a set duration to allow for accidental miss clicks.

### Proposed workflow

1. Generate images
2. Press delete to remove any garbage images
3. In case of any fat finger accidents restore them from the garbage bin


### Additional information

_No response_
Repository: PowerToys
Issue: Smooth scrolling in PowerToys, although it should be deactivated
Labels: Issue-Bug,Product-Settings,Priority-1,Needs-Triage,Needs-Team-Response,A11yE+D

### Microsoft PowerToys version

0.79.0

### Installation method

GitHub

### Running as admin

No

### Area(s) with issue?

General

### Steps to reproduce

Disable animations and smooth scrolling in Windows settings

Scroll any powertoys panel.

### ✔️ Expected Behavior

No smooth scrolling, just like in every other application. The program should respect accessibility settings.

I have motion sensitivity, so for me it's more than just a benign personal preference!

### ❌ Actual Behavior

Smooth scrolling. Nauscia.

### Other Software

_No response_
Repository: PowerToys
Issue: Remapping a shortcut allows extra modifier keys
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Needs-Triage,Needs-Team-Response

### Microsoft PowerToys version

0.79.0

### Installation method

GitHub

### Running as admin

No

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

1. Map a shortcut Win+Right to whatever.
2. Press Ctrl+Win+Right.

### ✔️ Expected Behavior

Shortcut remap should NOT trigger, because the shortcut was set without Ctrl.

Adding Ctrl to the shortcut should no longer trigger it, even though it "overlaps". Especially given that Ctrl+Win+Right has a function behind it natively (switch to next virtual desktop). It's just simply not what has been set up.

### ❌ Actual Behavior

Shortcut remap is triggered.

### Other Software

_No response_