sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: ui
Issue: [bug]: CLI --version flag reports incorrect version (0.0.2)
Labels: bug

### Describe the bug

The `shadcn-ui --version` command (and the `-v` flag) is reporting version 0.0.2, even though the actual installed version is 0.8.0 or later.

### Affected component/components

CLI (Command Line Interface)

### How to reproduce

## Steps to Reproduce
1. Install the latest version of shadcn-ui globally:
   ```
   npm install -g shadcn-ui@latest
   ```
2. Run the version check command:
   ```
   shadcn-ui --version
   ```
3. Observe that it outputs "0.0.2"

## Expected Behavior
The command should report the actual installed version (0.8.0 or later).

## Actual Behavior
The command reports version 0.0.2.

## Additional Information
- The `package.json` file in the installation directory correctly shows version 0.8.0
- All other CLI functionalities (like `add`, `init`) work as expected with the latest version features
- Running `node C:\Users\[Username]\AppData\Roaming\npm\node_modules\shadcn-ui\dist\index.js` without arguments shows the correct list of commands for the latest version

### Codesandbox/StackBlitz link

Since this is a CLI issue, a CodeSandbox or StackBlitz reproduction isn't applicable. 

### Logs

_No response_

### System Info

```bash
OS: Windows 11 Pro

Node.js version: v20.11.0

npm version: 10.4.0
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: ui
Issue: [bug]: Astro Getting Started instructions fail to create src/styles/global.css
Labels: bug

### Describe the bug

Following the Astro getting started guide fails to create the src/styles/global.css file. I can create it manually, but what consequences flow from that? It will probably contain:

@tailwind base;
@tailwind components;
@tailwind utilities;

but who am I to say that when the instructions say it will be created already?

### Affected component/components

Astro project setup

### How to reproduce

Follow the instructions at https://ui.shadcn.com/docs/installation/astro. I'm using Mac terminal and npm.

### Codesandbox/StackBlitz link

_No response_

### Logs

```bash
Error
An error occurred.
Cannot find module '@/styles/globals.css' imported from '/Users/.../Documents/Web Dev/Tutorials/astro-shadcn/src/pages/index.astro'
```


### System Info

```bash
Sonoma 14.5
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: pytorch
Issue: Enabling GPU mixed precision algorithms 
Labels: triaged,module: linear algebra

### 🚀 The feature, motivation and pitch

PyTorch does not seem to provide wrappers to mixed precision algorithms in e.g MAGMA (dshpov, shportf) and cuSolver (https://docs.nvidia.com/cuda/cusolver/index.html#cusolverirsrefinement-t). Does anyone know if that is really the case? 
It would be interesting to have access to these routines since these may potentially improve performance of linear system solving by a factor 4.7 using GPUs with negligible changes in the accuracy (https://epubs.siam.org/doi/10.1137/19M1298263). 


I created two rough prototypes for the changes that would be needed to make those mixed precision algorithms available. It seems to be a simple modification. My prototype works by changing the behavior of functions cholesky_solve (for using the dshpov MAGMA routine) and linalg.cholesky (for using the shportf MAGMA routine). Due to my lack of deep knowledge of PyTorch, I was unable to go further.  It would be really awesome if someone could work on top of these prototypes to make a proper pull request.

One package that could benefit from these additions would be GPyTorch, since it executes Cholesky factorizations repeatedly during its training and prediction procedures. Since GPyTorch only uses solvers from PyTorch, it seems more reasonable to make these changes here.

Let me know if I can give more information!


Links for the prototypes: https://github.com/pytorch/pytorch/commit/a88f53c786d437d1cee49532aa1d240eda7c855e
https://github.com/pytorch/pytorch/commit/8c7194acff4924530dc63ca3e0b70fb7af8cc182


### Alternatives

_No response_

### Additional context

_No response_

cc @jianyuh @nikitaved @pearu @mruberry @walterddr @xwang233 @Lezcano
Repository: pytorch
Issue: xpu: support torch.utils.cpp_extension APIs to build SYCL kernels
Labels: triaged,module: xpu

As of https://github.com/pytorch/pytorch/commit/525fdc0f950c90d54cf69c1de5f10e741f43db76 [torch.utils.cpp_extension.load()](https://pytorch.org/docs/stable/cpp_extension.html#torch.utils.cpp_extension.load) does not support building SYCL kernels. Please, consider adding such support. It's used (load API), for example, by https://github.com/dvrogozh/optimum-quanto. See [invocation here](https://github.com/dvrogozh/optimum-quanto/blob/601dc193ce0ed381c479fde54a81ba546bdf64d1/optimum/quanto/library/extensions/extension.py#L7).

Note: I am willing to help with implementation and will provide a PR with the proposal shortly. Update: see https://github.com/pytorch/pytorch/pull/132945

Update 8/16: other APIs, `load_inline` and class API is not supported as well and also need to be implemented.

CC: @gujinghui @EikanWang @fengyuan14 @guangyey @jgong5

cc @gujinghui @EikanWang @fengyuan14 @guangyey
Repository: pytorch
Issue: xpu: missing aten ops needed to support Huggingface quanto
Labels: triaged,module: xpu

As of https://github.com/pytorch/pytorch/commit/21d4c48059478e6fe4871a09966a36ca3986a7ec, the following aten ops are not implemented by XPU backend which are required by https://github.com/dvrogozh/optimum-quanto:
- [ ] `__lshift__.Scalar`, https://github.com/intel/torch-xpu-ops/pull/688
- [ ] `aten::_weight_int8pack_mm` (requires `PYTORCH_ENABLE_XPU_FALLBACK=1`)
- [ ] `aten::_int_mm` (requires `PYTORCH_ENABLE_XPU_FALLBACK=1`)
- [ ] `aten::_convert_weight_to_int4pack` (requires `PYTORCH_ENABLE_XPU_FALLBACK=1`), https://github.com/intel/torch-xpu-ops/pull/1035

Support for XPU backend in quanto can be tried applying the following PRs:
* https://github.com/pytorch/pytorch/pull/132945
* https://github.com/huggingface/optimum-quanto/pull/273

CC: @gujinghui @EikanWang @fengyuan14 @guangyey @jgong5

cc @gujinghui @EikanWang @fengyuan14 @guangyey
Repository: pytorch
Issue: module 'torch.xpu' has no attribute 'set_fp32_math_mode'
Labels: triaged,module: xpu

### 🐛 Describe the bug

If you try to run any Triton XPU 10th tutorial (10 or 10i) it will fail with something like this:

Traceback (most recent call last):
  File "/home/yevhenii/Projects/triton/python/tutorials/10-experimental-block-pointer.py", line 330, in <module>
    torch.xpu.set_fp32_math_mode(torch.xpu.utils.FP32MathMode.TF32)
AttributeError: module 'torch.xpu' has no attribute 'set_fp32_math_mode'

Which means that this function need to be ported to upstream:
https://github.com/intel/intel-extension-for-pytorch/blob/227f34bfa11d940a7cd4ba74ba2df77b2ce6c65c/intel_extension_for_pytorch/xpu/utils.py#L273-L277

Corresponding Triton XPU issue - https://github.com/intel/intel-xpu-backend-for-triton/issues/1769

### Versions

- Top of the PyTorch main branch
- Top of the intel-xpu-backend-for-triton llvm-target branch

cc @gujinghui @EikanWang @fengyuan14 @guangyey
Repository: vscode
Issue: Inline diff not indenting wrapped lines correctly
Labels: bug,diff-editor

1. Head to https://insiders.vscode.dev/github.com/microsoft/debug-adapter-protocol/pull/492
2. Turn word wrapping on
3. Open the .json file in a narrow diff editor where it's displayed as inline
4. Notice that the wrapped "removed" lines are not indented correctly
<img width="742" alt="image" src="https://github.com/user-attachments/assets/dbaf8100-cbb2-4a0f-b461-f09a7a0ba03a">
Repository: pytorch
Issue: torchelastic multiprocessing start_processes documentation out of date
Labels: triaged,module: elastic,topic: docs

### 📚 The doc issue

Documentation in https://github.com/pytorch/pytorch/blob/e6d4451ae8987bf8d6ad85eb7cde685fac746f6f/torch/distributed/elastic/multiprocessing/__init__.py#L35 refers to `log_dir` and `redirects` arguments which no longer exist.

### Suggest a potential alternative/fix

We should document log_specs field instead and update the examples.

cc @dzhulgakov
Repository: go
Issue: proposal: x/term: expose history
Labels: Proposal

### Proposal Details

x/term is very nice, it includes a 100 slot history ring buffer, unfortunately entirely private

https://github.com/golang/term/blob/master/terminal.go#L89


it would be nice to let people 
```go
// History returns a slice of strings containing the history of entered commands so far.
func (t *Terminal) History() []string {
```

and
```go
// AddToHistory populates history.
func (t *Terminal) AddToHistory(commands ...string) {
```

and resize
```go
// NewHistory resets the history to one of a given capacity.
func (t *Terminal) NewHistory(capacity int) {
```

and allow replacement of last command in history (for instance to replace invalid by validated or canonical variant)
```go
// ReplaceLatest replaces the most recent history entry with the given string.
// Enables to add invalid commands to the history for editing purpose and
// replace them with the corrected version. Returns the replaced entry.
func (t *Terminal) ReplaceLatest(entry string) string {
```

and control whether lines are automatically added to history (defaults remains true)
```go
// AutoHistory sets whether lines are automatically added to the history
// before being returned by ReadLine() or not. Defaults to true.
func (t *Terminal) AutoHistory(onOff bool) {
```

~~if acceptable I'd be happy to make a PR~~ edit: made a PR
Repository: go
Issue: runtime:cpu2: TestRuntimeLockMetricsAndProfile/runtime.lock/sample-1 failures
Labels: NeedsInvestigation,compiler/runtime

```
#!watchflakes
default <- pkg == "runtime:cpu2" && test == "TestRuntimeLockMetricsAndProfile/runtime.lock/sample-1"
```

Issue created automatically to collect these failures.

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

    === RUN   TestRuntimeLockMetricsAndProfile/runtime.lock/sample-1
        metrics_test.go:1065: lock contention growth in runtime/pprof's view  (0.064667s)
        metrics_test.go:1066: lock contention growth in runtime/metrics' view (0.064682s)
        metrics_test.go:1104: stack [runtime.unlock runtime_test.TestRuntimeLockMetricsAndProfile.func5.1 runtime_test.(*contentionWorker).run] has samples totaling n=199 value=57946392
        metrics_test.go:1192: mutex profile reported contention count different from the known true count (199 != 200)
    --- FAIL: TestRuntimeLockMetricsAndProfile/runtime.lock/sample-1 (0.11s)


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: TypeScript
Issue: AllowUnresolveNames not working for completion getters/setters and property signature and declaration
Labels: Suggestion,Domain: Refactorings,Experience Enhancement

### 🔎 Search Terms

AllowUnresolveNames, "preserve type nodes"

### 🕗 Version & Regression Information

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about AllowUnresolvedNames and preserve types

### ⏯ Playground Link

https://www.typescriptlang.org/play/?target=99#code/JYOwLgpgTgZghgYwgAgILIN4Chm+TAewIC5lgBbABwKjAAoAiAOgHoATAiAZ3AgA9gXMEwBWXBgEomAMSIBuHHgDmEMMgBGcKHQmkK1Wo1YduvAUNHipsggoC+WRwgA2cLl2QAhMlWcRyEOAe6NgsLMgAKlDASipQyAgEvqrABCCkDPp+AeBkvLCIKKgMyGyClK4AnshgABaCCUkVKWnEWGFoCGAArnDObR2EJMhwIJUKHSpqmtq6I2OY7eF4NbVQBADuyCAQWwCiUOvaDACyqrUEbNsEaln+gZBsTJIT4XbIjh17fJQQXRBsAbhIZ6Kg0ejMdicHiQczCMSSGTyJbIKYaLQ6UEGCHGaFmQTwqxIgiLDorOrrLY7faHGiMM51S7XW7JHKPZ4SV7Id5YOxAA

### 💻 Code

```ts
interface A {
    foo: import("./doesntexist.js").Foo;
    get bar(): import("./doesntexist.js").Foo;
}


class B implements A {
// Trigger completion: "implement interface A" display this completion:
// Actual:
// foo: any;
// get bar(): any {
//     throw new Error("Method not implemented.");
// } 

// Expected:
// foo: import("./doesntexist.js").Foo;
// get bar(): import("./doesntexist.js").Foo {
//     throw new Error("Method not implemented.");
// } 
}
```


### 🙁 Actual behavior

Triggering completion uses `any` instead of the unresolved type.

### 🙂 Expected behavior

Completion should be the unresolved type instead of `any`

### Additional information about the issue

Found in PR https://github.com/microsoft/TypeScript/pull/59440
Repository: electron
Issue: [Bug]: Adding a View to a WebContentsView will not display it
Labels: platform/windows,bug :beetle:,status/confirmed,has-repro-comment,component/WebContentsView,31-x-y,32-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

31.3.1

### What operating system(s) are you using?

Windows

### Operating System Version

Windows 11 22631.3958

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

const win = new BaseWindow({ width: 800, height: 400 });
win.maximize();

const view1 = new WebContentsView();
win.contentView.addChildView(view1);
view1.setBackgroundColor('red');
view1.webContents.loadURL('https://electronjs.org');
view1.setBounds({ x: 0, y: 0, width: 1000, height: 1000 });

const view2 = new WebContentsView();
win.contentView.addChildView(view2);
view2.webContents.loadURL('https://github.com/electron/electron');
view2.setBounds({ x: 450, y: 450, width: 500, height: 1200 });

const view3 = new WebContentsView();
view1.addChildView(view3);
view3.webContents.loadURL('https://baidu.com');
view3.setBounds({ x: 50, y: 50, width: 1200, height: 500 });

view3 can be displayed normally in the parent view1 

### Actual Behavior

const win = new BaseWindow({ width: 800, height: 400 });
win.maximize();

const view1 = new WebContentsView();
win.contentView.addChildView(view1);
view1.setBackgroundColor('red');
view1.webContents.loadURL('https://electronjs.org');
view1.setBounds({ x: 0, y: 0, width: 1000, height: 1000 });

const view2 = new WebContentsView();
win.contentView.addChildView(view2);
view2.webContents.loadURL('https://github.com/electron/electron');
view2.setBounds({ x: 450, y: 450, width: 500, height: 1200 });

const view3 = new WebContentsView();
view1.addChildView(view3);
view3.webContents.loadURL('https://baidu.com');
view3.setBounds({ x: 50, y: 50, width: 1200, height: 500 });


In the above code, view3 is not displayed

### Testcase Gist URL

_No response_

### Additional Information

_No response_
Repository: flutter
Issue: [Desktop] Conflict between MouseRegion and PopupMenuButton widgets
Labels: framework,f: material design,a: desktop,a: mouse,has reproducible steps,P2,team-framework,triaged-framework,found in release: 3.24

### Steps to reproduce

1. Open the following URL in the browser.
https://dartpad.dev/?id=cbc986771845fa494fe8b82c6f0381a7
2. Move the mouse over the circle inside the grey bar.
3. Tap on the PopupMenuButton that says `Show menu`
4. Tap on `Sign out` PopupMenuItem

### Expected results

The following message should be logged in the console:

`onItemSelected -> item:SignOut`

### Actual results

Nothing happens

### Code sample

Sample app
https://dartpad.dev/?id=cbc986771845fa494fe8b82c6f0381a7

### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
Repository: ollama
Issue: Ollama multiuser scale
Labels: feature request,question

I'm looking for some scale numbers on what ollama supports as far as multi-user environments go. I see the OLLAMA_NUM_PARALLEL for adjusting how many simultaneous requests can be served as well as OLLAMA_MAX_QUEUE for how many requests can be queued before being rejected but nothing that will help me understand how that directly relates to how to design a system that will serve a large number of users and how much GPU resources will be required to do so. Is Ollama a fit for large scale environments where there might be a very large number of users interacting with it without having to front end an endless number of Ollama instances in front of a load balancer VIP? Has anyone done some scale testing to help design larger scale designs using Ollama or is Ollama still mostly fitting solely into the desktop use case? Will containers help here or is it strictly an underlying GPU/memory issue? The cost for the servers underneath are not an issue for us. Just need scale. Please advise.
Repository: react-native
Issue: Text Not Show Content When style both set borderWidth and backgroundColor.
Labels: Issue: Author Provided Repro,Type: New Architecture

### Description

Text Not Show Content When style both set borderWidth and backgroundColor.
if Text style is styles.tag, the '预售' Not Show，only show backgroundColor
else style is styles.tag, the '停止营业' Can show normally
like this
![image](https://github.com/user-attachments/assets/cd359069-160a-4bec-88cc-c7af011371bf)


The Code:

![image](https://github.com/user-attachments/assets/6065c6fb-97ea-42fa-b80b-a0309a8211d1)

style class:
![image](https://github.com/user-attachments/assets/46852758-6104-4cac-b6e1-0c1542a633cd)

Code link: https://github.com/zdpdsy/reproducer/blob/main/ReproducerApp/App.tsx

### Steps to reproduce

1.cd ReproducerApp
2. npm  run start
3. run Xcode

### React Native Version

0.73.9

### Affected Platforms

Runtime - iOS

### Areas

Fabric - The New Renderer

### Output of `npx react-native info`

```text
Node Version : v20.11.1
```


### Stacktrace or Logs

```text
none log
```


### Reproducer

https://github.com/zdpdsy/reproducer
Repository: pytorch
Issue: custom op registration error with mutates_args="unknown"
Labels: triaged,module: custom-operators,vllm-compile

### 🐛 Describe the bug

```python
import torch
from typing import Optional, List

def f(q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, cu_seqlens_q: torch.Tensor, cu_seqlens_k: torch.Tensor, max_seqlen_q: int, max_seqlen_k: int, softmax_scale: Optional[float] = None, causal: bool = False, window_size: Optional[List[int]] = None, softcap: float = 0.0, alibi_slopes: Optional[List[float]] = None, block_table: Optional[torch.Tensor] = None) -> torch.Tensor:
    return k + 1 + v + q

f = torch.library.custom_op("xxx::f", f, mutates_args="unknown")
```

error:

```text
ValueError: infer_schema(func): {'o', 'n', 'w', 'u'} in mutates_args were not found in the custom op's signature. mutates_args should contain the names of all args that the custom op mutates. Got func with signature (q: torch.Tensor, k: torch.Tensor, v: torch.Tensor, cu_seqlens_q: torch.Tensor, cu_seqlens_k: torch.Tensor, max_seqlen_q: int, max_seqlen_k: int, softmax_scale: Optional[float] = None, causal: bool = False, window_size: Optional[List[int]] = None, softcap: float = 0.0, alibi_slopes: Optional[List[float]] = None, block_table: Optional[torch.Tensor] = None) -> torch.Tensor)
```

Looks like pytorch thinks `"unknown"` are argument names.

I learned this usage from @zou3519 

### Versions

pytorch 2.4

the main branch fixes it.

we should make sure the fix is picked to 2.4.1 🙏 

cc @zou3519
Repository: godot
Issue: @tool functionality doesn't take effect until reloading the project.
Labels: bug,topic:gdscript,topic:editor,needs testing

### Tested versions

Tested in v4.2.2.stable.mono.official [15073afe3]

### System information

Godot v4.2.2.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 Ti (NVIDIA; 32.0.15.5585) - AMD Ryzen 7 5800X 8-Core Processor (16 Threads)

### Issue description

When editing a script to include `@tool` to reflect visual changes in a parent/sibling component, no changes are seen until I reload the project.

I have this simple script:
```gdscript
@tool
extends Node2D

@export var sprite : Sprite2D
@export var colour : Color :
	get:
		return colour
	set(value):
		colour = value
		if is_node_ready():
			sprite.self_modulate = colour
```
The first time I add this script to a Node2D after writing it, and modify the colour - I don't see the colour of the sprite change until I reload the project. However, after reloading I can remove the script and re-add it to the same or a different node and it will continue to work. It's only the first time I try to use the script after writing it does the issue occur. Deleting the script, creating a new one, and pasting the exact same code in will also make the issue occur again.

### Steps to reproduce

1. Create a new project with a Node2D as the root.
2. Add a Sprite, set to the default icon.svg.
3. Add a Node2D and attach a script to it.
4. Put this in the script:
```gdscript
@tool
extends Node2D

@export var sprite : Sprite2D
@export var colour : Color :
	get:
		return colour
	set(value):
		colour = value
		if is_node_ready():
			sprite.self_modulate = colour
```
5. Drag Sprite into the exported field on the Node2D
6. Change the exported colour variable on the Node2D and see that it doesn't affect the sprite.
7. Go to Project > Reload Current Project
8. Change the colour variable again and see that it does now affect the sprite.

Additionally:
9. Detach the script from the node, and delete it.
10. Attach a new script to the node, add the same script.
11. Drag the sprite back into the field.
12. Change the colour, and it isn't affecting the sprite again. 

### Minimal reproduction project (MRP)

This is simple enough to recreate and given that it seems to depend on things being used/written for the first time I don't think it's necessary I provide a project.
Repository: flutter
Issue: [shared_preferences] Android exception: `Unable to establish connection on channel: "dev.flutter.pigeon.shared_preferences_android.SharedPreferencesApi.getAll"`
Labels: platform-android,p: shared_preferences,package,P2,needs repro info,team-android,fyi-ecosystem

### Steps to reproduce

1. Use old api of shared preferences.
2. Build the app.

### Expected results

It should work with old api of shared preferences.

### Actual results

Getting exception as below

Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.shared_preferences_android.SharedPreferencesApi.getAll"., null, null)

### Code sample

<details open><summary>Code sample</summary>

```dart
_sharedPrefs = await SharedPreferences.getInstance();
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.22.3, on macOS 14.4.1 23E224 darwin-arm64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.92.0)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!
```

</details>