sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: torch.is_vulkan_available() false in windows
Labels: triaged,module: vulkan

### 🐛 Describe the bug

Hi, I am trying to load a torch.nn.Module to a vulkan device.
I have NVIDIA GeForce RTX 4080 in windows, 
I installed and followed all the instroction from https://pytorch.org/tutorials/prototype/vulkan_workflow.html
the installation looks good and the vulkan SDK recognized my driver but i can't get torch to get vulkan available True.
before the module run using CPU or CUDA.

Hope someone can help!

### Versions

/
Repository: PowerToys
Issue: Enhance Screen Ruler with options and Real Ruler
Labels: Idea-Enhancement,Product-Screen Ruler

### Description of the new feature / enhancement

1. Allow to choose other units, other than pixels, for the measurements (cm, mm, inches, etc)
2. Allow free choice of endpoints
3. Allow to show a movable real ruler on screen
   3.1 Optional units (cm, in, etc)
   3.2 Can be rotated or vertical or horizontal

### Scenario when this would be used?

According to the previous description:

1. When you want to know how many cm are there on screen between objects
2. When the objects on screen are not aligned horizontally or vertically
3. When you want to measure a real object by putting it close to the screen

### Supporting information

_No response_
Repository: node
Issue: Add support to print help/usage of util.parseArgs
Labels: feature request

### What is the problem this feature will solve?

An almost ubiquitous practice of writing a CLI is including a help command in the CLI itself. Currently anyone using `util.parseArgs` needs to write their own help command. This, in my opinion, makes parseArgs incomplete.

### What is the feature you are proposing to solve the problem?

My suggestion is to include the ability to prin help/usage information generated directly from the config given to `parseArgs`. A minimum would be something along the lines of:

1. Include help text for each ParseArgsOptionConfig to include help text for each option in particula:
```js
foo: {    
 type: 'boolean',    
 short: 'f',   
 help: 'enable foo',
},
```
2. Add a main help text to the ParseArgsConfig as well, to include details on what the CLI as a whole:
```js
parseArgs({ 
  help: 'Use this command to achieve foo',
  options: {
    // ...
  }
});
```
3. Add the `--help`/`-h` option to print the generated usage information either:
  - always add the `--help`/`-h` option, and automatically print the usage and exit the process when parsing the args (E.g. how python's builtin `argparse` does it); this would be a breaking change since it may conflict with other similar options implemented already. 
  - add a new option to the ParseArgsConfig to enable autogenerated help option if desired 
```js
parseArgs({ 
  enableHelp: true,
  help: 'Use this command to achieve foo',
  options: {
    // ...
  }
});
```
  - simply provide a method to print the usage and let the user implement it themselves in userland
```js
const { values, positionals, printUsage } = parseArgs({
  help: 'Use this command to achieve foo',
  options: {
    help: {
      type: "boolean",
      short: "h",
      help: "print command line options and exit"
    }
  }
});
if (values.help) {
  printUsage();
  process.exit(0);
}
```



### What alternatives have you considered?

_No response_
Repository: godot
Issue: Returning untyped arrays and dictionaries is not caught by static checking
Labels: bug,discussion,topic:gdscript

### Tested versions

- Reproducible in v4.4.dev (current master)

### System information

Godot v4.4.dev (517ec7cdb) - Arch Linux #1 SMP PREEMPT_DYNAMIC Fri, 22 Nov 2024 16:04:27 +0000 on Wayland - X11 display driver, Multi-window, 1 monitor - Vulkan (Forward+) - dedicated Quadro T2000 (nvidia; 565.57.01) - Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 threads)

### Issue description

Returning an untyped dictionary or array from a function that is supposed to return a typed dictionary/array does not show up as an error in the editor but crashes at runtime. I'd expect it to show up as an error like when trying to return a dictionary/array with different key/value types.

### Steps to reproduce

```gdscript
# Crashes when being called
func function_returning_untyped_dict() -> Dictionary[int, String]:
	var untyped_dict := {}
	return untyped_dict


# Crashes when being called
func function_returning_untyped_array() -> Array[int]:
	var untyped_array := []
	return untyped_array


# Parse error
func function_returning_wrongly_typed_array() -> Array[int]:
	var untyped_array: Array[String] = []
	return untyped_array
```

Only the 3rd one throws a parse error, while the first two ones crash at runtime when the functions are actually called.

### Minimal reproduction project (MRP)

[typed-dict-return-text.zip](https://github.com/user-attachments/files/18052688/typed-dict-return-text.zip)
Repository: godot
Issue: ScrollContainer focus StyleBox is not clipped by parent
Labels: bug,topic:gui

### Tested versions

v4.4.dev6.official [1f47e4c4e]

### System information

Fedora Linux 40 (KDE Plasma) on Wayland - X11 display driver, Multi-window

### Issue description

![Image](https://github.com/user-attachments/assets/14590874-4426-4de5-919b-caab8b9a6239)

PR https://github.com/godotengine/godot/pull/97521 added a focus style for ScrollContainer this has the same problem as following issues:

Tree:
https://github.com/godotengine/godot/issues/100063
https://github.com/godotengine/godot/issues/88749
https://github.com/godotengine/godot/issues/74670



ItemList:
https://github.com/godotengine/godot/issues/77919


### Steps to reproduce

A ScrollContainer inside another ScrollContainer
Add some content to both
Enable draw_focus_border for second ScrollContainer
Select something in the second ScrollContainer so it gets focus
Scroll the first ScrollContainer

### Minimal reproduction project (MRP)

[scrollfocus.zip](https://github.com/user-attachments/files/18052689/scrollfocus.zip)
Repository: ollama
Issue: Support loading models from multiple locations
Labels: feature request

Model files adds up real fast, and my internal disk is near full after pulling a few 72b models. It would be great if `OLLAMA_MODELS` can be a colon separated string with multiple paths. Then the `pull` and `run` command should automatically decide which folder to put new models to and allow overwritting with a switch.
Repository: ui
Issue: [feat]: nested menus in combobox
Labels: area: request

### Feature description

I believe many times that we’re looking to implement a combobox, we also need that combobox to support nested dropdowns in case the user prefers to use their mouse or keyboard instead of typing, and also to limit the size of the combobox (can’t have a combobox that is 50 rows long for example, so the nested dropdowns inside the combobox allow for a much cleaner / simpler presentation, while still allowing a user to access the nested content via search or through the manual mouse / keyboard approach). This implementation is similar to how [linear.app](linear.app) implemented their combobox component. 

@shadcn, do you have any plans to add this in the near future? If so, what approach or library would you recommend using?

### Affected component/components

Combobox

### 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: vscode
Issue: clicking "Install formatter" points you to the Python extension
Labels: bug,notebook-format

Hi,

If you search for autopep8 and install this formatter it will work.

I think this was solved in a unfortunate way, because people who just had the Python extension installed, suddenly didn't have a working formatting function anymore because it was removed from the Python extension.
Furthermore, clicking "Install formatter" points you to the Python extension which is misleading.

_Originally posted by @nahanoo in https://github.com/microsoft/vscode-python/issues/22412#issuecomment-1831999276_
Repository: vscode
Issue: Enhancing Debugging Experience: Adding Docstring and Type Hint Support to Debug Console
Labels: feature-request

<!-- **PLEASE** look for preexisting feature requests before opening a new one as a 👍 on a preexisting issue is more important than opening a new issue or leaving a comment. -->

The docstring and type hint functionality in the editor works well. However, there is no equivalent feature available in the debug console during debugging sessions.

In certain scenarios, I find myself needing to debug my Python application extensively using 'hot coding', which involves writing code directly in the debug console.

Each time I attempt to call a function or method, I am left with only the function name without any access to the docstring, type hints, or intelligent suggestions for keyword arguments.

Would it be possible to introduce a feature that enhances the coding experience within the debug console?

Thanks a lot.

Best Wishes.

![1](https://github.com/microsoft/vscode/assets/10967857/53a20fdf-4e68-42ed-a01e-4b41650db7c4)

![2](https://github.com/microsoft/vscode/assets/10967857/9b3cf05c-f380-4da2-9182-06eaf12efef6)

![3](https://github.com/microsoft/vscode/assets/10967857/89c1cd8e-4e75-4410-a9a9-5679c66a2268)

![4](https://github.com/microsoft/vscode/assets/10967857/521f6e9b-0f12-443f-8f2c-2b6e7f7ee9f0)
Repository: svelte
Issue: Local styles aren't scoped when nested
Labels: bug,css

### Describe the bug

Say I have an element in a component that needs to depend on its parent's state. I might write something like this:
```svelte
<div class="tint"></div>

<style>
  :global(*):hover > .tint {
    opacity: 0.08;
  }
</style>
```

Now let's say I want to also account for focus. To prevent repetition, I might nest my styles:
```svelte
<div class="tint"></div>

<style>
  :global(*) {
    &:hover > .tint {
      opacity: 0.08;
    }
    &:focus-visible > .tint {
      opacity: 0.12;
    }
  }
</style>
```

However, Svelte outputs CSS that works differently across these cases. It works correctly for the first one by applying special scoping classes to `.tint`, but it doesn't with the second one. (See the CSS output tab of the REPL.)

This means that *any* `.tint` that has a hovered parent will get the styling that was only supposed to apply to one component. That's a problem.

### Reproduction

https://svelte.dev/playground/fe63a82ba4da46799977fcbca797adfc?version=5.9.0

### Logs

_No response_

### System Info

```shell
N/A (using the REPL in Firefox 133.0 (64-bit) on Fedora Workstation 40)
```


### Severity

annoyance
Repository: go
Issue: x/pkgsite: multiple invalid HTML
Labels: help wanted,pkgsite

### What is the URL of the page with the issue?

~~~
view-source:https://pkg.go.dev/41.neocities.org/text
~~~

### What is your user agent?

Firefox

### Screenshot

> ![invalid](https://github.com/user-attachments/assets/9388bece-958a-4034-add2-dcf65de5624c)



### What did you see happen?

first is the double close tag:

https://github.com/golang/pkgsite/blob/dc08416c8122836b0f06f5b3025699f37e3d53b9/static/shared/header/header.tmpl#L27-L50

then space is removed on both sides, leading to attributes with no separating space:

<https://github.com/golang/pkgsite/blob/dc08416c8122836b0f06f5b3025699f37e3d53b9/static/frontend/unit/main/_meta.tmpl#L61-L69>

and another example actually hard coded:

https://github.com/golang/pkgsite/blob/dc08416c8122836b0f06f5b3025699f37e3d53b9/static/shared/footer/footer.tmpl#L142



### What did you expect to see?

valid HTML
Repository: flutter
Issue: Green line on right side of video: video_player, only when building on Mac M3 Pro . 
Labels: platform-android,waiting for customer response,platform-mac,p: video_player,package,e: OS-version specific,team-android,fyi-tool

### Steps to reproduce

1. Build APK on Mac M3 Pro (Works fine on windows)
3. Run on Android Devices (Samsung S21 FE/ any other android device) 

### Expected results

No green bars anywhere

### Actual results

Green Bars at the right of the video (As video orientation is portrait)
![WhatsApp Image 2024-12-09 at 00 29 13](https://github.com/user-attachments/assets/2cab73a2-b64c-4fb3-a62e-0496e3a6d6ca)


### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>
![WhatsApp Image 2024-12-09 at 00 29 13](https://github.com/user-attachments/assets/e65903df-0ed2-4ddf-8804-c3485e361846)


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.24.5, on macOS 14.6 23G80 darwin-arm64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.95.3)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

```

</details>
Repository: go
Issue: go/parser: ParseExprFrom and ParseExpr might return ast.Expr(nil) when AllErrors is unset
Labels: NeedsInvestigation

`ParseExprFrom` is documented as such:

https://github.com/golang/go/blob/c8fb6ae617d65b42089202040d8fbd309d1a0fe4/src/go/parser/interface.go#L193-L198

From the docs it is clear that, if reading the source succeeds, then the returned Expr shoudn't be nil, but it is not actually true (in case of a bailout, also see #70725).

Reproducer:

```go
func TestEarlyBailout2(t *testing.T) {
	const src = `func() {
		func () { var a }
		func () { var a }
		func () { var a }
		func () { var a }
		func () { var a }
		func () { var a }
		func () { var a }
		func () { var a }
		func () { var a }
		func () { var a }
		func () { var a }
		func () { var a }
		func () { var a }
}()
`

	fset := token.NewFileSet()
	expr, err := ParseExprFrom(fset, "test.go", src, SkipObjectResolution|ParseComments)
	t.Log(expr, err) // <nil> test.go:2:19: expected type, found '}' (and 10 more errors)
}
```

Same with `ParseExpr`:

https://github.com/golang/go/blob/c8fb6ae617d65b42089202040d8fbd309d1a0fe4/src/go/parser/interface.go#L243-L248

Per docs it should not return a nil `ast.Expr`.

CC @griesemer @alandonovan
Repository: vscode
Issue: Caps lock warning in password input prompt
Labels: feature-request,quick-pick

<!-- ⚠️⚠️ 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. -->
Logging in to a remote server requires password. A prompt appears on the top. The feature requests here is including some sort of warning in this prompt when caps lock is on. 

Here's an example:
![Image](https://github.com/user-attachments/assets/a6346fbb-5959-4c76-af58-0314e6e73423)
Repository: rust
Issue: shorten backtraces when called as a cdylib, not just for executables
Labels: C-enhancement,T-compiler,A-panic,A-backtrace

currently, backtraces for rust cdylibs called from a C main function look like this:
```
 thread '<unnamed>' panicked at lib.rs:5:34:
oops
stack backtrace:
   0: std::panicking::begin_panic
   1: lib::foo::{{closure}}
   2: std::panicking::try::do_call
   3: __rust_try
   4: std::panic::catch_unwind
   5: foo
   6: main
   7: __libc_start_call_main
             at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
   8: __libc_start_main_impl
             at ./csu/../csu/libc-start.c:392:3
   9: _start
```
(the `catch_unwind` -> `do_call` stack *should* be included, i had a manual catch_unwind in my program.)

this does ok for frames after main, but it shows three irrelevant frames before main. that happens because rustc doesn't control the final link, so it can't generate a `__rust_start_short_backtrace` frame. it would be nice if we could omit those.

to avoid making this dependent on the libc in use, i think we should:
- determine whether `main` was generated by rustc. we have a reliable signal for this at runtime, which is "is `std::rt::lang_start` present anywhere in the backtrace".
- if not, treat `main` the same as `__rust_start_short_backtrace`, except we also print the `main` frame in addition to toggling the state machine.

<details><summary>code that replicates this backtrace</summary>

```
; cat lib.rs main.c Makefile
  File: lib.rs
  use std::ffi::c_int;
  use std::panic::catch_unwind;
  #[no_mangle]
  pub extern "C" fn foo() -> c_int {
      let _panic = catch_unwind(|| panic!("oops")).unwrap_err();
      1
  }
────────────────────────────────────────────────────────
  File: main.c
  #include <stdio.h>

  int foo();

  int main() {
    printf("%d\n", foo());
  }
────────────────────────────────────────────────────────
  File: Makefile
  .PHONY: run
  run: main
          LD_LIBRARY_PATH=. RUST_BACKTRACE=1 ./main

  main: main.o librust.so
          gcc main.o -L. -lrust -o main

  librust.so: lib.rs
          rustc --crate-type cdylib lib.rs -o librust.so

```

</details>
Repository: ollama
Issue: Structured JSON does not handle arrays at the top level properly
Labels: bug

### What is the issue?

It looks like structured JSON is not respected when an array is specified at the top level.

Example 1:

Request:
```json
{
	"model": "llama3.1",
	"messages": [
		{
			"role": "system",
			"content": "Given a phrase, give a list of categories"
		},
		{
			"role": "user",
			"content": "I watched a movie with friends and there was a cat in it"
		}
	],
	"stream": false,
	"format": {
		"type": "array",
		"items": {
			"type": "string"
		}
	}
}
```

Response:
```json
{
  "model": "llama3.1",
  "created_at": "2024-12-08T22:46:35.146738527Z",
  "message": {
    "role": "assistant",
    "content": "[1] "
  },
  "done_reason": "stop",
  "done": true,
  "total_duration": 1520253202,
  "load_duration": 29133573,
  "prompt_eval_count": 37,
  "prompt_eval_duration": 538000000,
  "eval_count": 5,
  "eval_duration": 951000000
}
```

Example 2:

Request:
```json
{
	"model": "llama3.1",
	"messages": [
		{
			"role": "system",
			"content": "Given a phrase, give a list of categories. Respond in valid JSON"
		},
		{
			"role": "user",
			"content": "I watched a movie with friends and there was a cat in it"
		}
	],
	"stream": false,
	"format": {
		"type": "array",
		"items": {
			"type": "object",
			"items": {"name": {"type": "string"}, "description": {"type": "string"}},
			"required": ["name", "description"]
		}
	}
}
```

Response:
```json
{
  "model": "llama3.1",
  "created_at": "2024-12-08T22:52:42.640180789Z",
  "message": {
    "role": "assistant",
    "content": "[\n  {\n    \"category\": \"Entertainment\"\n  },\n  {\n    \"category\": \"Social\"\n  },\n  {\n    \"category\": \"Animals\"\n  }\n]"
  },
  "done_reason": "stop",
  "done": true,
  "total_duration": 81840944323,
  "load_duration": 29780952,
  "prompt_eval_count": 42,
  "prompt_eval_duration": 72020000000,
  "eval_count": 38,
  "eval_duration": 9789000000
}
```

I realize these examples are kind of nonsensical because I'm asking the LLM to do stuff that doesn't really line up with the schema. But surely it should be impossible for it to disobey the grammar, right? It seems to do fine if the top property is an object instead of an array.

### OS

Linux

### GPU

_No response_

### CPU

AMD

### Ollama version

0.5.0
Repository: godot
Issue: Script editor minimap overlaps vertical scrollbar when "Increase scrollbar touch area" is enabled
Labels: bug,topic:editor,usability,topic:gui

### Tested versions

- Reproducable in 4.3 and 4.4-dev6

### System information

Godot v4.4.dev6.mono - Windows 10.0.22631 - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 (NVIDIA; 32.0.15.6094) - 12th Gen Intel(R) Core(TM) i9-12900K (24 threads)

### Issue description

The script editor's minimap overlaps the vertical scrollbar when `interface/touchscreen/increase_scrollbar_touch_area` is enabled, causing part of the minimap to be hard to see.

![Image](https://github.com/user-attachments/assets/b07f4728-b001-4de0-88b1-adbf07427eec)

Instead, the minimap should either be shifted over to not overlap the scrollbar, or hidden all together when the minimap is enabled since it acts as a scrollbar also.


### Steps to reproduce

- Enable `interface/touchscreen/increase_scrollbar_touch_area` (Editor Settings -> Interface -> Touchscreen -> Increase Scrollbar Touch Area)
- Enable `text_editor/appearance/minimap/show_minimap` (Editor Settings -> Text Editor -> Appearance -> Show Minimap)
- Open any GDScript file in Godot's editor

### Minimal reproduction project (MRP)

N/A
Repository: fucking-algorithm
Issue: 插件拉取的题库不全
Labels: vscode-extension-bug

**Version:**
2.0.4

**Describe the bug**
我在官方网站上找到题号为3330的题目，回到vscode搜索3330，查询不到

**Screenshots**
If applicable, add screenshots to help explain your problem.
![Snipaste_2024-12-09_09-42-19](https://github.com/user-attachments/assets/7b65304f-572c-4b10-a490-4a2a70950cc4)
![line-icon1](https://github.com/user-attachments/assets/a149cbd2-d2d3-487a-beb2-d5584e3a3662)
Repository: vscode
Issue: VS Code exits on startup on Pop OS with COSMIC desktop
Labels: bug,freeze-slow-crash-leak

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

I just installed Code and didn't install any extensions yet, but have tried ` --disable-extensions` and it did not help.

<!-- 🪓 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.95.3-1731513102
- OS Version:  Pop OS (based on Ubuntu 24.04 LTS) with the new COSMIC desktop

Steps to Reproduce:

I just installed VS Code using official instructions for Ubuntu, since Pop OS is a derivative of Ubuntu 24.04 LTS.

I was able to run it once, and tried to select the light theme from the popup down left. That did not bring up the expected popup menu.

I then quit VS Code and now I'm unable to run it again, the window shows up and immediately disappears.

1. Run VS Code from command line or launcher icon
2. Watch its window come up and then immediately shut down

I do understand that COSMIC is a brand new desktop environment and it may contain bugs, but all my other applications seem to be working normally (Sublime Text and Merge, Android Studio, JetBrains GoLand).

I'm going to attach the output of "code --verbose" here.

[vscode_exits_on_popos_cosmic.txt](https://github.com/user-attachments/files/18055409/vscode_exits_on_popos_cosmic.txt)
Repository: ollama
Issue: Why is OllamaSetup.exe so large
Labels: feature request,windows

I also tried downloading [ollama-windows-arm64.zip](https://github.com/ollama/ollama/releases/download/v0.5.1/ollama-windows-arm64.zip) and replacing some files in my user folder which doesn' t fix the tray icon still notify the update. Could there be a smaller OllamaSetup.exe ? 

This combined with the tray "restart to update" button not effective can be very annoying.