sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: stable-diffusion-webui
Issue: [Bug]: AttributeError: 'str' object has no attribute '__traceback__'
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [ ] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [ ] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

install error 

### Steps to reproduce the problem

the params of method was wrong to pass

/data/git/stable-diffusion-webui/modules/errors.py

```shell
diff --git a/modules/errors.py b/modules/errors.py
index 48aa13a1..29665488 100644
--- a/modules/errors.py
+++ b/modules/errors.py
@@ -97,7 +97,7 @@ def run(code, task):
     try:
         code()
     except Exception as e:
-        display(task, e)
+        display(e, task)^M
 
 
```

### What should have happened?

fix the code

### What browsers do you use to access the UI ?

Google Chrome

### Sysinfo

abrove

### Console logs

```Shell
Traceback (most recent call last):
  File "/data/git/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/data/git/stable-diffusion-webui/launch.py", line 44, in main
    start()
  File "/data/git/stable-diffusion-webui/modules/launch_utils.py", line 465, in start
    import webui
  File "/data/git/stable-diffusion-webui/webui.py", line 13, in <module>
    initialize.imports()
  File "/data/git/stable-diffusion-webui/modules/initialize.py", line 36, in imports
    shared_init.initialize()
  File "/data/git/stable-diffusion-webui/modules/shared_init.py", line 17, in initialize
    from modules import options, shared_options
  File "/data/git/stable-diffusion-webui/modules/shared_options.py", line 4, in <module>
    from modules import localization, ui_components, shared_items, shared, interrogate, shared_gradio_themes, util, sd_emphasis
  File "/data/git/stable-diffusion-webui/modules/interrogate.py", line 13, in <module>
    from modules import devices, paths, shared, lowvram, modelloader, errors, torch_utils
  File "/data/git/stable-diffusion-webui/modules/devices.py", line 113, in <module>
    errors.run(enable_tf32, "Enabling TF32")
  File "/data/git/stable-diffusion-webui/modules/errors.py", line 100, in run
    display(task, e)
  File "/data/git/stable-diffusion-webui/modules/errors.py", line 68, in display
    te = traceback.TracebackException.from_exception(e)
  File "/root/miniconda3/envs/stableDiffusion/lib/python3.10/traceback.py", line 572, in from_exception
    return cls(type(exc), exc, exc.__traceback__, *args, **kwargs)
```


### Additional information

_No response_
Repository: pytorch
Issue: Avoid recompilation for inputs integer number
Labels: triaged,oncall: pt2,module: dynamic shapes,vllm-compile

### 🐛 Describe the bug

I am trying to apply `torch.compile` into vLLM, and I have met an issue that recompilation happens for each next token run. Thanks for the help from @anijain2305, I have narrow down the dynamo guard failure as 
![image](https://github.com/user-attachments/assets/0fbba1e6-c138-4585-ba25-b73bceeb12eb)

The `max_decode_seq_len` (defined here: https://github.com/vllm-project/vllm/blob/7b261092de3b008f7a2c218e338f4f8a025c93ee/vllm/attention/ops/paged_attn.py#L23) increases with number of next tokens and will be used as shape to create tensors inside kernel as in: https://github.com/intel/intel-extension-for-pytorch/blob/0a9762f68bbd83e35fdec7d8ac5b358313d4ebc2/csrc/cpu/aten/kernels/PagedAttentionKrnl.cpp#L216-L221

### Error logs

https://gist.github.com/leslie-fang-intel/9baea13ac0204f85540952725b0c3060#file-error-log

### Minified repro

Create a small testcase to simulate this issue: https://gist.github.com/leslie-fang-intel/9baea13ac0204f85540952725b0c3060

### Versions

```
[conda] blas                      1.0                         mkl
[conda] intel-extension-for-pytorch 2.5.0+git25acc5f           dev_0    <develop>
[conda] mkl                       2023.1.0         h213fc3f_46344
[conda] mkl-include               2024.0.0                 pypi_0    pypi
[conda] mkl-service               2.4.0           py310h5eee18b_1
[conda] mkl-static                2024.0.0                 pypi_0    pypi
[conda] mkl_fft                   1.3.8           py310h5eee18b_0
[conda] mkl_random                1.2.4           py310hdb19cb5_0
[conda] numpy                     1.26.0                   pypi_0    pypi
[conda] optree                    0.12.1                   pypi_0    pypi
[conda] torch                     2.5.0a0+gitae708e9           dev_0    <develop>
[conda] torch-fidelity            0.3.0                    pypi_0    pypi
[conda] torchao                   0.3.1                     dev_0    <develop>
[conda] torchaudio                2.2.0a0+17a7081          pypi_0    pypi
[conda] torchfix                  0.4.0                    pypi_0    pypi
[conda] torchmetrics              1.3.0.post0              pypi_0    pypi
[conda] torchtune                 0.0.1                    pypi_0    pypi
[conda] torchvision               0.19.0a0+5181a85          pypi_0    pypi
[conda] triton-nightly            3.0.0.post20240716052845          pypi_0    pypi

```

cc @ezyang @chauhang @penguinwu
Repository: opencv
Issue: Add roadmap from dmabuffer to UMat
Labels: feature,category: core

### Describe the feature and motivation

Since we need to get data from gstreamer buffer, we need to go through the two steps :
(1)Mat src(sz, CV_8UC3, GST_VIDEO_FRAME_PLANE_DATA(&frame, 0), step);
(2)src.copyTo(dst);, which greatly increases our time cost.
So I want to ask if it is possible to increase the datapath of transferring the buffer directly to the umat variable?

### Additional context

_No response_
Repository: PowerToys
Issue: Enabling keyboard manager overrides the system keyboard setting
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.83.0

### Installation method

Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

In my system I use a Polish keyboard layout (PL - Programmers, it's a standard in Poland)
In this layout I can create a language specific characters by using Alt key, for example:
Alt + a = ą
Alt + o = ó
etc.

When I enable the keyboard manager in Power toys, these shortcuts no longer work. I am unable to create language specific characters.

**Mouse without borders is turned off and this issue is still happening.**
I need to disable the keyboard manager to regain my shortcuts, but the I cannot remap the keys I need..

### ✔️ Expected Behavior

I am expecting for the keyboard layout to be honored - the language specific characters shortcuts should be preserved.

### ❌ Actual Behavior

Language-specific characters are not used. Instead some weird actions are triggerered (selecting some text, opening some menu elements etc)

### Other Software

_No response_
Repository: TypeScript
Issue: Isolated declarations quick fix defaults to including renamed properties
Labels: Help Wanted,Possible Improvement

### 🔎 Search Terms

isolated declarations quick fix rename ts2842 ts9007

### 🕗 Version & Regression Information

- This is the behavior in every version I tried


### ⏯ Playground Link

https://www.typescriptlang.org/play/?isolatedDeclarations=true&ts=5.6.0-dev.20240807#code/KYDwDg9gTgLgBAMwK4DsDGMCWEWIBQCUcA3gFBwVxTAxJS5x57ECGAXHAEYC+HrHABm4EOANwiYAJnAC8APhLCAhAG5S3IA

### 💻 Code

```ts
export function f() {
    return  (({a: b}: {a: 0}): void => {})!;
}
```


### 🙁 Actual behavior

Quick fix introduces a type error:
```tsx
export function f(): ({ a: b }: { a: 0; }) => void {
//                         ~
//                         'b' is an unused renaming of 'a'. Did you intend to use it as a type annotation? (2842)
    return  (({a: b}: {a: 0}): void => {})!;
}
```

### 🙂 Expected behavior

```tsx
export function f(): ({a}: { a: 0; }) => void {
    return  (({a: b}: {a: 0}): void => {})!;
}
```

### Additional information about the issue

While the quick fix is consistent with the emitted declaration, it ideally wouldn't lead to another type error which can be avoided.
There are cases where it may make sense to preserve the renaming, most obviously
```tsx
export function f(): ({ a: b }: { a: 0; }) => typeof b {
    return (({a: b}: {a: 0}): typeof b => b)!;
}
```
but also perhaps
```tsx
export function f() {
    return  (({a: b}: {a: 0}, a: {}): void => {})!;
}
```
though, maybe surprisingly, this would currently this still result in ts(2842)
```tsx
export function f(): ({ a: b }: { a: 0; }, a: {}) => void {
//                         ~
//                         'b' is an unused renaming of 'a'. Did you intend to use it as a type annotation? (2842)
    return  (({a: b}: {a: 0}, a: {}): void => {})!;
}
```
Perhaps this could be relaxed. While `b` is unused in the direct sense, it technically has value in that it avoids the naming collision between the `a`s.
Repository: godot
Issue: Instantiate Child Scene Keyboard Shortcut strange behavior on MacOS
Labels: bug,platform:macos,topic:editor,needs testing

### Tested versions

- Reproducible in 4.3.rc2, 4.3.dev5, 4.3dev4, 4.2.2.stable (and probably more, only tested these versions)

### System information

Godot v4.3.rc2 - macOS 14.6.0 - Vulkan (Forward+) - integrated Apple M2 Pro - Apple M2 Pro (10 Threads)

### Issue description

The default keyboard shortcut Shift+Command+A to instantiate a new child scene doesn't work at first. Upon clicking Shift+Command+A, "Godot" in the menu bar flashes, see attached video. When pressing the button with the mouse it opens as expected. But then, when clicking on "Godot", and hovering over "Services" and closing the menu again, the keyboard shortcut suddenly works. Just pressing on "Godot", but not hovering over "Services" does not make the shortcut work.

https://github.com/user-attachments/assets/84048862-e802-4aef-ba87-3d9655888fce



### Steps to reproduce

This works for me everytime I start a brand new project. Then I do what I described above and what is visible in the screen recording. I suspect that this is due to me updating to the newest MacOS version (Sonoma 14.6), because I don't think I experienced this before updating.

### Minimal reproduction project (MRP)

N/A
Repository: godot
Issue: macOS: Tiles from large TileSets not selectable in TileMap
Labels: bug,platform:macos,topic:editor,topic:2d

### Tested versions

- Reproducible in 4.2.2-stable and 4.3-rc2

### System information

- macOS Sonoma 14.5
- Not reproducible on Windows 11 

### Issue description

Importing large tilesets on macOS (2048x2048 and larger), results in tiles not being auto-created correctly. The tileset is greyed out and tiles are not selectable in the TileMap editor.

### Steps to reproduce

Steps to Reproduce:

1. Create a TileMap node
2. Create a new TileSet in the Inspector
3. Set Tile Size to 128x128 in the Inspector
4. Import the tileset asset (at least 2048x2048), in MRP asset from [Kenney.nl](https://kenney.nl/assets/top-down-shooter)
5. In the TileSet editor add Atlas
6. Select ‘Yes’ on the dialog for auto creating tiles

Result:
- TileSet is greyed out
- Tiles are not selectable nor placeable in TileMap editor
- See screenshots

<img width="946" alt="screenshot-tilemap" src="https://github.com/user-attachments/assets/960b6cf0-c551-45c8-9df8-6c66cc73f113">
<img width="952" alt="screenshot-tileset" src="https://github.com/user-attachments/assets/65eed17b-89f4-4c0f-901b-5bc5ab39355b">

Expected:
- Tiles in TileMap editor are selectable and placeable

Workaround:
- Follow steps 1. - 6. in reproducing
- Re-import asset from Filesystem dock: Right-Click -> Reimport
- In TileSet Editor -> Three dots -> "Create Tiles in Non-transparent Texture Regions"
- Tiles are created as expected and selectable/placeable via the TileMap editor

<img width="951" alt="screenshot-tileset-good" src="https://github.com/user-attachments/assets/6a62c6ba-28ff-4c85-ba66-d16d8015cbb5">

### Minimal reproduction project (MRP)

[tileset-reproduce.zip](https://github.com/user-attachments/files/16521177/tileset-reproduce.zip)
Repository: vscode
Issue: Unable to undo insertion/deletion of cell from Notebook diff view
Labels: bug,papercut :drop_of_blood:,notebook-diff

We have an undo button to render changes to text in cells, 
But no similar undo/revert  for inserted/deleted cells
Repository: vscode
Issue: SCM Graph - Enhance Source Control Tab with Git Graph Features
Labels: feature-request,scm

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

Hello Visual Studio Code Team,

I would like to suggest an enhancement to the Source Control tab in VSCode. Specifically, I propose incorporating features similar to those found in the [`mhutchie.git-graph`](https://github.com/mhutchie/vscode-git-graph) extension. These features include:

1. **Visual Git Graph**: A graphical representation of the Git commit history, which helps visualize branches, merges, and the overall commit structure.

2. **Branch Management**: Functions for managing branches directly from the Source Control tab, including creating, renaming, and deleting branches.

3. **Interactive Features**: Ability to perform common Git actions like merging, rebasing, and cherry-picking directly from the graph view.

![Recording of Git Graph](https://github.com/mhutchie/vscode-git-graph/raw/master/resources/demo.gif)

**Motivation:**

I currently use the [`mhutchie.git-graph`](https://github.com/mhutchie/vscode-git-graph) extension, which is free and handles about 90% of my daily Git-related tasks. However, the extension's last commit was on September 19, 2021, and it has not been updated since then. Integrating similar functionality natively into VSCode would provide a consistent user experience and streamline workflow without needing additional extensions.

Additionally, I noticed that in July 2024, VSCode implemented an "Incoming/Outgoing changes graph," which I find quite cool. It would be even better if there were a graph-like feature that allowed users to perform actions such as checkout, merge, and rebase using mouse clicks, without needing to type Git commands.

In the past, there was a third-party plugin that allowed users to manage profiles, and now VSCode has a similar feature built-in ([VSCode Profiles](https://code.visualstudio.com/docs/editor/profiles#_create-a-profile)). I hope VSCode can implement a similar built-in feature for Git graph functionality.

**Benefits:**

- **Improved Visualization**: A graphical representation of the commit history makes it easier to understand the structure and evolution of the codebase.
- **Efficient Branch Management**: Streamlines the process of managing branches directly from the Source Control tab.
- **Enhanced Interaction**: Allows users to perform Git operations directly from the visual interface, reducing the need to switch contexts and type commands.

**Additional Information:**

Having these enhancements built into VSCode would be especially valuable for users who prefer a built-in solution over third-party extensions. It would be great to have a free, mini version of the functionalities provided by GitLens, integrated directly into VSCode.

Thank you for considering this suggestion!

Best regards,
Repository: tauri
Issue: [bug] cannot create webview tauri 2
Labels: type: bug,status: needs triage,scope: unstable flag

### Describe the bug

I'm trying to create a webview inside my current WebviewWindow using javascript.
It fails with the following error:
`Failed to load resource: the server responded with a status of 400 (Bad Request)`

### Reproduction


`pnpm create tauri-app --rc`

Update permissions:
```
{
  "$schema": "../gen/schemas/desktop-schema.json",
  "identifier": "default",
  "description": "Capability for the main window",
  "windows": ["main"],
  "permissions": [
    "shell:allow-open",
    "core:webview:allow-create-webview-window",
    "core:webview:allow-create-webview",
    "core:webview:allow-reparent",
    "core:webview:default",
    "core:webview:allow-set-webview-position",
    "core:webview:allow-set-webview-size",
    "core:window:allow-create",
    "core:window:default",
    "core:app:default"
  ]
}
```

Run the following javascript:
```
import { Webview, getCurrentWebview } from "@tauri-apps/api/webview";
import { Window } from "@tauri-apps/api/window";

  const window = Window.getCurrent();
  const webview = new Webview(window, 'main2', {
    x: 0,
    y: 0,
    width: 200,
    height: 200,
  });

  webview.once("tauri://created", () => {
    console.log("webview created");
  });
```

### Expected behavior

I would expect a new Webview to be embedded in my window

### Full `tauri info` output

```text
[✔] Environment
    - OS: Mac OS 14.5.0 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.80.0 (051478957 2024-07-21)
    ✔ cargo: 1.80.0 (376290515 2024-07-16)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 20.13.1
    - pnpm: 9.7.0
    - npm: 10.5.2
    - bun: 1.1.18

[-] Packages
    - tauri [RUST]: 2.0.0-rc.0
    - tauri-build [RUST]: 2.0.0-rc.0
    - 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.1

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../build
    - devUrl: http://localhost:1420/
    - framework: Svelte
    - bundler: Vite
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: flutter
Issue: SliverResizingHeader semantics and dev-usability issues
Labels: framework,f: scrolling,P2,team-framework,triaged-framework

Hey @HansMuller, awesome work on #143325 and thanks for that widget! I see a few problems though (looking at [file permalink](https://github.com/flutter/flutter/blob/e0c051f47f9e33cb16c2928273cee554987e27c0/packages/flutter/lib/src/widgets/sliver_resizing_header.dart)):
1. The `children` of render object contain prototypes, `visitChildrenForSemantics` uses `visitChildren` which uses `children`, so the prototypes are put into the semantics tree which shouldn't take place.
2. The `SliverResizingHeader.child` can't really do a nice interpolation between the min and max extent prototypes, because it has no idea of the calculated extents. We can get the constraints of the `child`, where the minimum main axis would be the `minExtent`, but we have no `maxExtent` available (that changes with the scroll offset). It would be greatly appreciated to have the access to the extents calculated in the render object somehow in the `SliverResizingHeader`. Through an inherited widget (no breaking changes since 3.24), or a dedicated builder method instead of accepting `child`:
  
   https://github.com/flutter/flutter/blob/e0c051f47f9e33cb16c2928273cee554987e27c0/packages/flutter/lib/src/widgets/sliver_resizing_header.dart#L204-L208
Repository: ollama
Issue: Add Generate Embedding for Sparse vector
Labels: feature request

I find ollama already support bge-m3, 
because bge-m3 can generate sparse vector. Is there any way for generate sparse embeddings?
Repository: deno
Issue: SUGGEST: Auto-Complete For The Configuration File `"imports"`
Labels: feat,lsp

In the scripts, `import` syntax has auto-complete:

`something.ts`

```ts
import {} from "jsr:@std/yaml@|";
//                            ^ This is cursor! And this can auto-complete the dependency version.
```

However, in the configuration file, this is not the case:

`deno.jsonc`

```jsonc
{
  "imports": {
    "YAML": "jsr:@std/yaml@|"
//                         ^ This is cursor! However no any auto-complete.
  }
}
```

Add this feature allow us to import the dependency easier!
Repository: pytorch
Issue: Enhance the compiler module to use cudagraph with PrivateUse1
Labels: triaged,oncall: pt2,module: PrivateUse1

### 🚀 The feature, motivation and pitch

I noticed that the inductor has registered the PrivateUse1 backend, but the implementation in cudagraph is all hard-coded for CUDA. such as https://github.com/pytorch/pytorch/blob/main/torch/_inductor/compile_fx.py#L569
```
    def codegen_and_compile(
        gm,
        example_inputs,
        inputs_to_check,
        fx_kwargs,
    ):
        # ...
        cudagraph_info = None
        if cudagraphs:
            # check cudagraph disabling reasons from inductor lowering
            if compiled_graph.disabled_cudagraphs_reason:
                if "cuda" in compiled_graph.device_types:
                    log_cudagraph_skip_and_bump_counter(
                        f"skipping cudagraphs due to {compiled_graph.disabled_cudagraphs_reason}"
                    )
                else:
                    counters["inductor"]["cudagraph_skips"] += 1
         # ...
```


### Alternatives

Is there any plan to make the cudagraph implementation compatible with PrivateUse1?

### Additional context

_No response_

cc @ezyang @chauhang @penguinwu @NmomoN @mengpenghui @fwenguang @cdzhan @1274085042 @PHLens
Repository: pytorch
Issue: torch.library.opcheck generates gradients with strides of 0
Labels: triaged,module: library,module: opcheck

### 🐛 Describe the bug

When using `torch.library.opcheck(...)` to test an operator, the `test_aot_dispatch_dynamic` step invokes the backward pass of the operator by passing gradient tensors whose strides are all zeros.

This is because these gradients are obtained by the backward of the `.sum()` operator, as seen here: https://github.com/pytorch/pytorch/blob/32f9a809c780d0dda2d5de8ff6348721e9f644e2/torch/testing/_internal/optests/aot_autograd.py#L108 If I multiply `i` by 2 before calling `.sum()` the issue disappears.

I believe this can be considered an issue because tensors with strides of zero are uncommon in real workloads, thus not all operators might be ready to handle them. Forcing such a test on all operators might be too much to ask.

### Versions

PyTorch nightly 2.5.0.dev20240718 py3.10_cuda12.1_cudnn9.1.0_0 installed via conda.

cc @anjali411 @zou3519
Repository: vscode
Issue: Context menu shows up on left click for deleted lines, not right click
Labels: bug,diff-editor

Repro:

1. Open a diff with deleted lines
2. Left click the lines, 🐛 context menu shows up
3. Right click the lines, 🐛 context menu does not show up

![image](https://github.com/user-attachments/assets/aac3ae40-99b6-49c8-ac88-d9e304e5c2f1)
Repository: PowerToys
Issue: General Shortcut
Labels: Needs-Triage

### Description of the new feature / enhancement

I can't remember all of the features and all of the shortcuts from Powertoys, but I know that all of the features I've activated, I need at some point. And whenever I do, not remembering the correct shortcut sometimes has me give up on using it altogether. 

So the idea is this: 
1) Implement a general shortcut that, when pressed and held, brings up a neat list of all the activated powertoys and their specific shortcut
2) While the shortcut is held, let me scroll and select to the correct function, same as alt tabbing for example where I can keep hitting tab to the right window, or click it while alt tab is held
3) Have the most used powertoys come up on top of the list for ease of use

### Scenario when this would be used?

All the time

### Supporting information

basically alt tab for powertoys. I remember windows 10 or 7 hacving something similar when you held windows on your keyboard and it brought up all win+* shortcuts that existed. That is basically the blueprint