sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: storybook
Issue: [Bug]: Weird CSS added that affects docs styling
Labels: bug,needs triage

### Describe the bug

In my Storybook, there is following CSS added to some iframes that shows a docs page:

```css
.css-qa4clq :where(div:not(.sb-anchor, .sb-unstyled, .sb-unstyled div)) {
  font-family:
    "Nunito Sans",
    -apple-system,
    ".SFNSText-Regular",
    "San Francisco",
    BlinkMacSystemFont,
    "Segoe UI",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
  font-size: 16px;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-overflow-scrolling: touch;
}

```

The selector has high specificity, so it makes styling divs more difficult, and also the font styles are inherited, so I have to needlessly add classes to override that - but those classes won't be needed when I use the components elsewhere.

### Reproduction link

https://666f2dc8033dde8c47f6a278-exnfuvkrwz.chromatic.com/?path=/docs/forms--docs

### Reproduction steps

1. Open the reproduction link.
2. On Forms page, inspect label "Name"
3. See that I have to needlessly specify font-family (via `font-sans` Tailwind class), because otherwise styling is inherited from the weird CSS described above.

### System

```bash
Storybook Environment Info:

  System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 AMD Ryzen 7 5825U with Radeon Graphics
  Binaries:
    Node: 20.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD <----- active
  Browsers:
    Edge: Chromium (127.0.2651.74)
```


### Additional context

_No response_
Repository: pytorch
Issue: When using parallelize_module to do tp parallel and pp parallel mixing, the SendRecv time is too long
Labels: oncall: distributed,triaged

### 🐛 Describe the bug

I wonder if pytorch supports a mix of these two ways, I use the parallelize_module interface to implement tp, and do the corresponding parameter slicing of the attention layer and the mlp layer, and add pp, the model is switched to different GPUs, when only one of the implementations is selected, the communication time is reasonable, but when the two are mixed, every time pp ncclDevKernel_ SendRecv takes too long
![tppp](https://github.com/user-attachments/assets/72e30bb7-a49e-4bf2-bbab-f39536cb1117)


### Versions

torch2.2.1

cc @XilunWu @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o
Repository: vscode
Issue: Add setting to control rendering of multi-line inline completions
Labels: feature-request,inline-completions
Repository: PowerToys
Issue: Negative start value of advanced counter does not work
Labels: Issue-Bug,Product-PowerRename,Needs-Triage

### Microsoft PowerToys version

0.83.0

### Installation method

PowerToys auto-update, Microsoft Store

### Running as admin

No

### Area(s) with issue?

PowerRename

### Steps to reproduce

Use any negative number in `start` like - `${start=-2}`


### ✔️ Expected Behavior

The enumeration starts with the specified negative number

### ❌ Actual Behavior

Any negative value for `start` is ignored and start become 0.

![image](https://github.com/user-attachments/assets/a1d81dcf-293f-4bca-9ee0-8f2a2e15b1d5)


### Other Software

_No response_
Repository: PowerToys
Issue: [PTRun] Preview panel
Labels: Idea-Enhancement,Product-PowerToys Run,Status-In progress,Needs-Triage

### Description of the new feature / enhancement

Add a Preview Panel to the Run Plugin

This panel would display the same information currently shown in the action itself:
- Image
- Title
- SubTitle

The image would be displayed at a larger size in the preview panel.

Additionally, there should be a setting to enable or disable the preview panel.

### Potential improvements (future versions)
- Customization of the preview on a per-plugin basis
- Timeline/playback controls for media files
- Displaying a preview image for various file types, such as PDF, XLS, etc.

Any additional suggestions or feedback on this feature are welcome. 

### What it would look like
For icons
![image](https://github.com/user-attachments/assets/baac87d5-55c3-46d3-8359-a682e839a1ff)

For images
![image](https://github.com/user-attachments/assets/eb520136-df8b-4d5b-8093-5b49bbb703ef)


### Scenario when this would be used?

This would enhance the searching experience for anything, by displaying a preview of the item.

### Supporting information

Older issue related: https://github.com/microsoft/PowerToys/issues/3310
Repository: tauri
Issue: [bug] tauri dev - whole terminal window changes in linux
Labels: type: bug,platform: Linux,status: needs triage

### Describe the bug

- Run the command `pnpm tauri dev`, the whole terminal window changes to render the app.
- By that can't see any `println` strings, print it on the terminal.


https://github.com/user-attachments/assets/912f038d-22ed-4906-a9ec-a5752d4da462


**SideNote:**
OS: Artix Linux x86_64
Kernel: 6.6.32-1-lts
Packages: 897 (pacman)
**Shell: zsh 5.9**
Resolution: 1024x768
**WM: dwm**
Theme: Arc-Gruvbox [GTK2/3]
Icons: Adwaita [GTK2/3]
**Terminal: st**
Terminal Font: NotoColorEmoji

### Reproduction

_No response_

### Expected behavior

- `pnpm tauri dev` command will run the app in a new terminal window. 
- And the current terminal window where it's running will be in watch mode, printing the value when see println macro.

### Full `tauri info` output

```text
-> pnpm tauri info

[✔] Environment
    - OS: Artix Linux Unknown X64
    ✔ webkit2gtk-4.1: 2.44.2
    ✔ rsvg2: 2.58.2
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 18.20.3
    - pnpm: 9.6.0
    - yarn: 1.22.22
    - npm: 10.8.0

[-] Packages
    - tauri [RUST]: 2.0.0-rc.2
    - tauri-build [RUST]: 2.0.0-rc.2
    - wry [RUST]: 0.41.0
    - tao [RUST]: 0.28.1
    - @tauri-apps/api [NPM]: 2.0.0-rc.0
    - @tauri-apps/cli [NPM]: 2.0.0-rc.3

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:3000/
    - framework: Vue.js (Nuxt)
    - bundler: Webpack
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: pytorch
Issue: DISABLED test_split_scan (__main__.TestKernelBenchmark)
Labels: module: rocm,triaged,skipped

Platforms: rocm

This test was disabled because it is failing on main branch ([recent examples](https://torch-ci.com/failure?failureCaptures=%5B%22inductor%2Ftest_kernel_benchmark.py%3A%3ATestKernelBenchmark%3A%3Atest_split_scan%22%5D)).

This seems to have been failing since introduction in https://github.com/pytorch/pytorch/commit/2784b3f1b7e574f0dfe1ad5f5a3624f0bb63a855, need to investigate why this is causing issues on ROCm.

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @hongxiayang
Repository: rust
Issue: `rustdoc --show-coverage` misses associated items on public items re-exported from private modules
Labels: T-rustdoc,C-bug,A-doc-coverage

I tried this code:

```rust
// src/lib.rs
//! ```
//! ```

pub mod foo;
pub mod bar;
```

```rust
// src/foo.rs
//! ```
//! ```

/// ```
/// ```
pub struct Foo;

impl Foo {
    /// ```
    /// ```
    pub fn foo() {}
}
```

```rust
// src/bar.rs
//! ```
//! ```

mod inner {
    /// ```
    /// ```
    pub struct Bar;

    impl Bar {
        pub fn bar() {}
    }
}

pub use inner::Bar;
```

```console
> cargo rustdoc -- --show-coverage -Zunstable-options
```

I expected to see this happen: 
```
+-------------------------------------+------------+------------+------------+------------+
| File                                | Documented | Percentage |   Examples | Percentage |
+-------------------------------------+------------+------------+------------+------------+
| src/bar.rs                          |          2 |      66.7% |          2 |      66.7% |
| src/foo.rs                          |          3 |     100.0% |          3 |     100.0% |
| src/lib.rs                          |          1 |     100.0% |          1 |     100.0% |
+-------------------------------------+------------+------------+------------+------------+
| Total                               |          6 |     100.0% |          6 |     100.0% |
+-------------------------------------+------------+------------+------------+------------+
```

Instead, this happened:
```
+-------------------------------------+------------+------------+------------+------------+
| File                                | Documented | Percentage |   Examples | Percentage |
+-------------------------------------+------------+------------+------------+------------+
| src/bar.rs                          |          2 |     100.0% |          2 |     100.0% |
| src/foo.rs                          |          3 |     100.0% |          3 |     100.0% |
| src/lib.rs                          |          1 |     100.0% |          1 |     100.0% |
+-------------------------------------+------------+------------+------------+------------+
| Total                               |          6 |     100.0% |          6 |     100.0% |
+-------------------------------------+------------+------------+------------+------------+
```

`src/bar.rs` is ignoring the undocumented public method.

The same also happens with non-inline modules.

### Meta
```
rustdoc 1.82.0-nightly (64ebd39da 2024-08-03)
binary: rustdoc
commit-hash: 64ebd39da5ec28caa3bd7cbb3f22f5949432fe2b
commit-date: 2024-08-03
host: x86_64-unknown-linux-gnu
release: 1.82.0-nightly
LLVM version: 19.1.0
```
Repository: godot
Issue: Animating FontVariations causes memory leak(?)
Labels: discussion,topic:gui,performance

### Tested versions

Tested in 4.2.1.stable and 4.3.rc3.

### System information

Godot v4.2.1.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3090 (NVIDIA; 31.0.15.4601) - 11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz (16 Threads)

### Issue description

When animating a FontVariation in an AnimationPlayer, ram and vram usage skyrockets. In 4.3.rc3, the Video RAM tab shows a ton of entries for an empty resource: ",Texture,1024x1024x1 LumAlpha8,2.66 MiB". The animation in question simply increased the Y scale of the font and was used so the font outline would have a consistent width as scaling normally seems to make it look a little off. It was semi-inconsistent but at times could increase ram use from 120-ish mb to over _12gb_. This is especially bad when the game is maximised.

### Steps to reproduce

Make a font variation and have it be animated with an AnimationPlayer. In my case it was a 1 second long animation where it starts at a higher y scale and ends at its original y scale, with elastic easing at 60fps.

### Minimal reproduction project (MRP)

[leak.zip](https://github.com/user-attachments/files/16588231/leak.zip)
Repository: vscode
Issue: Custom text editors do not handle extension host restarts or crashes which can lead to data loss
Labels: bug,custom-editors

<!-- ⚠️⚠️ 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?: No

<!-- 🪓 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.92.1
- OS Version:  macOS 14.6.1

Steps to Reproduce:

(This needs to be done with an installed extension rather than in extension development mode as when the extension host is killed in that mode, the process exits)
1. Clone https://github.com/microsoft/vscode-extension-samples/tree/main/custom-editor-sample 
2. `npm i`
3. Modify the publisher in the `package.json` to be anything else.
4. Run `vsce pack`
5. Install the resulting vsix. e.g. Using `code --install-extension`
6. Open a new window.
7. Open both `exampleFiles/example.cscratch` & `exampleFiles/example.pawDraw`.
8. Edit anything in both files and don't save. Disable auto-save if on.
9. Run `Developer: Restart Extension Host`
10. The cscratch editor (Which is a custom text editor) is left in an orphaned state, any further edits in it are non-responsive. pawdraw (Which is a custom editor) seems to try and save on normal extension host restart and continues working.
11. Edit anything in both files again and don't save. Disable auto-save if on.
12. Force kill the extension host, e.g. `kill -9` using the PID printed in the developer tools or using the VS Code process explorer.
13. The same happens, but pawdraw is now orphaned as well, and you are unable to save any unsaved changes.

There doesn't seem to be an API for an extension or webview to detect and warn the user in such a case, and when this happens, it can often lead to data loss, as when it happens it is silent, and some editors might even continue to function, e.g. pawdraw, but you are unable to save!

Related:
https://github.com/microsoft/vscode/issues/180514 (Which isn't exposed to users, and seems to not be used in custom text editor, only on custom editor, also it doesn't handle crashes, only clean restarts)
https://github.com/microsoft/vscode/issues/188257
https://github.com/microsoft/vscode/issues/209967
Repository: vscode
Issue: Clean up context menus
Labels: under-discussion,menus

Context menus, especially in editors and notebooks, have grown substantially in size and variety as VS Code has evolved. There are inconsistencies to address (e.g. Share is in a different place in different menus) and organizational improvements that could be made.

Here's a rough sketch that looks at:
- Folding large sections like `Go to` into their own submenu
- Moving Copy / Share / Copilot groups to the bottom so they are consistent across different menus

![Image](https://github.com/user-attachments/assets/573f22b9-537f-4e62-be02-3c8c42269bd7)
Repository: pytorch
Issue: [dynamo] torch.compile does not support compiling a module that contains autograd within it.
Labels: feature,triaged,oncall: pt2,module: dynamo,module: compiled autograd

### 🐛 Describe the bug

```
import torch
class my_module(torch.nn.Module):
    def __init__(self):
        super(my_module, self).__init__()
    def forward(self, x):
        F = x**3 - 2*x**2 - 3
        grad_outputs = torch.ones_like(F)
        dF = torch.autograd.grad(F, x, grad_outputs=grad_outputs)[0]
        return F, dF

if __name__ == "__main__":
    x = torch.randn(10)
    x.requires_grad_(True)
    y, dy = model(x)
    print(y, dy)
    model = torch.compile(model, fullgraph=True, backend="inductor")
    y, dy = model(x)
    print(y, dy)
```

In some of our use cases we require that our model outputs both some arbitrary function F, together with its derivative dF which we compute using autograd. In practice F is some non-trivially large model.

As of Pytorch Nightly version **2.5.0.dev20240809**+cu124, this is not yet support, _**in a single graph**_. 

Questions:

1.  Is this a feature that is going to be added to torch.compile eventually?
2.  Is there potential for significant performance gains to be had from being able to incorporate the autograd step within a single graph compiled model?

### Error logs

torch._dynamo.exc.Unsupported: 'skip function grad in file /usr/local/lib/python3.12/site-packages/torch/autograd/__init__.py'                                                

from user code:
   File "/mnt/host/torch_compile_inductor_dynamo/t_grad_compile.py", line 11, in forward                                                                                      
    dF = torch.autograd.grad(F, x, grad_outputs=grad_outputs)[0]

### Minified repro

_No response_

### Versions

Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] pytorch-triton==3.0.0+dedb7bdf33
[pip3] torch==2.5.0.dev20240809+cu124
[pip3] torchaudio==2.4.0.dev20240809+cu124
[pip3] torchvision==0.20.0.dev20240809+cu124

cc @ezyang @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @amjames
Repository: pytorch
Issue: Failures in select_autotuning.py do_autotuning results in a huge amount of file not found spam
Labels: triaged,oncall: pt2,module: inductor

### 🐛 Describe the bug

Steps to reproduce, patch this in:

```
diff --git a/torch/_inductor/select_algorithm.py b/torch/_inductor/select_algorithm.py
index 35c18685dda..73d239d8763 100644
--- a/torch/_inductor/select_algorithm.py
+++ b/torch/_inductor/select_algorithm.py
@@ -1322,6 +1322,7 @@ class AlgorithmSelectorCache(PersistentCache):
             tuning_pool.initialize()
 
         def do_autotuning(precompile_fn):
+            assert False
             precompile_start_ts = time.time()
             precompile_fn()
             precompile_elapse = time.time() - precompile_start_ts
```

and then run:

```
python test/inductor/test_codecache.py TestFxGraphCache.test_inductor_counters
```

Expected result: test fails with assertion failure and then all done

Actual result: test fails as expected, but then I get a ton of triton compilation failed spam:

```
E0812 08:08:07.588000 3488018 torch/_inductor/runtime/triton_heuristics.py:435] Triton compilation failed: Placeholder.DESCRIPTIVE_NAME
E0812 08:08:07.588000 3488018 torch/_inductor/runtime/triton_heuristics.py:435] def triton_mm(arg_A, arg_B, out_ptr0):
E0812 08:08:07.588000 3488018 torch/_inductor/runtime/triton_heuristics.py:435]     GROUP_M : tl.constexpr = 8
E0812 08:08:07.588000 3488018 torch/_inductor/runtime/triton_heuristics.py:435]     EVEN_K : tl.constexpr = True
E0812 08:08:07.588000 3488018 torch/_inductor/runtime/triton_heuristics.py:435]     ALLOW_TF32 : tl.constexpr = False
E0812 08:08:07.588000 3488018 torch/_inductor/runtime/triton_heuristics.py:435]     ACC_TYPE : tl.constexpr = tl.float32
E0812 08:08:07.588000 3488018 torch/_inductor/runtime/triton_heuristics.py:435]     B_PROLOGUE_CAST_TYPE : tl.constexpr = None
E0812 08:08:07.588000 3488018 torch/_inductor/runtime/triton_heuristics.py:435]     BLOCK_M : tl.constexpr = 16
E0812 08:08:07.588000 3488018 torch/_inductor/runtime/triton_heuristics.py:435]     BLOCK_N : tl.constexpr = 16
E0812 08:08:07.588000 3488018 torch/_inductor/runtime/triton_heuristics.py:435]     BLOCK_K : tl.constexpr = 16
E0812 08:08:07.588000 3488018 torch/_inductor/runtime/triton_heuristics.py:435]     A = arg_A
E0812 08:08:07.588000 3488018 torch/_inductor/runtime/triton_heuristics.py:435]     B = arg_B
```

Full error: https://gist.github.com/ezyang/51e08bd496ecae7cff38822ee614919d

cc @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @oulgen @nmacchioni 

### Versions

main
Repository: godot
Issue: GDScript "Cannot find member" errors for user-defined classes when member definitely exists, only resolved by reloading project in the editor
Labels: bug,topic:gdscript,needs testing

### Tested versions

This is occurring for me with v4.2.2.stable.mono.official [15073afe3]

### System information

Windows 10

### Issue description

This has now been happening for me both when writing code in the editor, and when writing code in another IDE using the editor's LSP. When adding new members to one script, then adding a reference to those new members in another script, I will often receive a "Cannot find member" or "The method is not present" error that I have only been able to resolve by restarting the editor and reloading the project. The editor mysteriously and intermittently neglects to register the new member and acknowledge that it can be accessed without an error until after the project is reloaded. Making further changes and re-saving the script with the added members does not help.

### Steps to reproduce

This occurs intermittently and I am not able to give reproduction steps.

This is one GDScript file in my project where recently this has been happening especially frequently (please do not judge my very WIP code):

https://files.pineapplemachine.com/public/logs/MonsterTerrain3D.2024.08.12.gd

### Minimal reproduction project (MRP)

The issue is intermittent and the cause is not clear to me.
Repository: tauri
Issue: [feat] switch dark/light mode on iOS
Labels: type: feature request,platform: iOS

### Describe the problem

When setting dark mode on iOS, background color of status bar and bottom area(out of safe area) is still white.

### Describe the solution you'd like

Maybe dynamically changing background color of webview, status bar and bottom area is a good solution.

### Alternatives considered

White bg in light mode and black bg in dark mode.

### Additional context

_No response_
Repository: tauri
Issue: [bug] Background mode does not work in full screen mode
Labels: type: bug,platform: macOS,status: needs triage

### Describe the bug

After operating the window in full screen mode, hide the window, and run app.prevent_close(), a black screen appears to exit the window.

https://github.com/user-attachments/assets/f18099e2-c735-483d-aeb5-f871e8e73c1b



### Reproduction

https://github.com/gusxodnjs/tauri-issues/tree/bug/background

```rust
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

fn main() {
    tauri::Builder::default().on_window_event(|window, event| match event {
        tauri::WindowEvent::CloseRequested { api, .. } => {
          window.hide().unwrap();
          api.prevent_close();
        }
        _ => {}
      })
      .run(tauri::generate_context!())
      .expect("error while running tauri application");
}

```

### Expected behavior

The window should be hidden and the desktop should be displayed.

### Full `tauri info` output

```text
[✔] Environment
    - OS: Mac OS 13.5.2 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.80.1 (3f5fd8dd4 2024-08-06)
    ✔ cargo: 1.80.1 (376290515 2024-07-16)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 18.18.2
    - yarn: 1.22.21
    - npm: 9.8.1

[-] Packages
    - tauri [RUST]: 2.0.0-rc.2
    - tauri-build [RUST]: 2.0.0-rc.2
    - wry [RUST]: 0.41.0
    - tao [RUST]: 0.28.1
    - tauri-cli [RUST]: 2.0.0-alpha.18
    - @tauri-apps/api [NPM]: 2.0.0-rc.0
    - @tauri-apps/cli [NPM]: 2.0.0-rc.3

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite
✨  Done in 6.84s.
```


### Stack trace

_No response_

### Additional context

_No response_