sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Editor window flicker and game silently restarts while trying to write d3d12.dll in project dir
Labels: bug,platform:windows,topic:editor

### Tested versions

-4.3.stable & (-.mono)
Due to D3D12 being supported from 4.3 earlier versions are probably unaffected

### System information

Godot v4.3.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 6GB (NVIDIA; 32.0.15.6603) - Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 Threads)

### Issue description

I noticed a weird flicker on the editor title window when the game was running, and in my peripheral vision i would often see something change in the taskbar, which turned out to be the game window closing for a split second and reopening (renderer crash perhaps?).
For now, I only looked at ProcMon and saw, that when the flicker/game reappearance happens, godot is trying to write d3d12.dll to my project dir and then gpu driver files get called
I will try to dig deeper into this shortly.
**NOTE:** This issue persists when `Fallback to D3D12` is disabled
![Image](https://github.com/user-attachments/assets/90daccc7-5a88-4006-bb8b-38440df06fc8)



### Steps to reproduce

Underlying cause not yet discovered but for me:
1. Open any project
2. Run game and wait until window flickers
3. Notice game sometimes reopening in the taskbar for a split second

### Minimal reproduction project (MRP)

N/A
Repository: ollama
Issue: Change /delete endpoint to use POST request
Labels: bug

### What is the issue?

**Description:**

The Ollama API's `/delete` endpoint currently uses a DELETE request with a message body to specify the model to be deleted. This directly conflicts with the HTTP specification, which states that the DELETE method should NOT have a request body. [1](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE) [2](https://apidog.com/articles/http-delete-request-body/)

This non-standard approach causes significant issues with HTTP libraries like `httpx`, which correctly adhere to the specification and do not support sending data in a DELETE request.

**Proposed Solution:**

* **Change the `/delete` endpoint to accept a POST request instead.**  This aligns with how POST is used for actions that modify the server's state (in this case, deleting a model).
* The request body can remain the same (e.g., `{"model": "llama3:13b"}`) to specify the model to delete.
* Update the API documentation to clearly reflect this change.

**Benefits:**

* **Resolves the conflict with the HTTP specification.**
* **Ensures compatibility with a wider range of standard HTTP libraries.**
* Improves the developer experience by avoiding unexpected errors and workarounds.


### OS

Linux

### GPU

Nvidia

### CPU

AMD

### Ollama version

0.5.1
Repository: godot
Issue: Typed dictionary causes godot-cpp compilation error because of not being unable to parse and resolve `typeddictionary::` into correct format
Labels: bug,topic:buildsystem,needs testing,topic:gdextension

### Tested versions

4.4 dev6

### System information

Windows 11

### Issue description

See: https://github.com/godotengine/godot/actions/runs/12211086323/job/34068068226?pr=100135
Using `TypedDictionary<>()` will lead to failture of godot-cpp compilation. Needs to be fixed as soon as possible.

### Steps to reproduce

Using a `TypedDictionary` in source code and push it to your forked repo, and then run the action on your fork.

### Minimal reproduction project (MRP)

Reproduction = source code. See **Steps to reproduce**
Repository: ui
Issue: [bug]: Sidebar Build Failed in NextJs Vercel Deployment
Labels: bug

### Describe the bug

When I tried to use `ui/sidebar` in the production code

```
Checking validity of types  ..Failed to compile.
./components/ui/sidebar.tsx:439:7
Type error: Type 'string | ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null' is not assignable to type '((string | ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement>) & (((instance: HTMLElement | null) => void) | RefObject<...>)) | null | undefined'.
  Type 'string' is not assignable to type '((string | ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement>) & (((instance: HTMLElement | null) => void) | RefObject<...>)) | null | undefined'.
  437 |   return (
  438 |     <Comp
> 439 |       ref={ref}
      |       ^
  440 |       data-sidebar="group-label"
  441 |       className={cn(
  442 |         "duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
  
  ```

there is some type error. in the file sidebar.tsx



possible fix: changing `ref={ref}` to  `ref={ref as any}` in the file `ui/sidebar.tsx`  worked for me.

### Affected component/components

ui/sidebar.tsx

### How to reproduce

create a new nextjs + ts project. use the sidebar component and try

`npm run build`

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Minimum Requirements. (i5 10 gen, chrome browser)
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: godot
Issue: Bicubic Lightmap Filtering Fails to Engage Under DX12
Labels: bug,platform:windows,topic:rendering,needs testing,topic:3d

### Tested versions

Tested in v4.4.dev (47bc374ed), built locally.

### System information

Godot v4.4.dev (47bc374ed) - Windows 10.0.19045 - Direct3D 12 (Forward+) - dedicated Radeon RX 5500 XT (Advanced Micro Devices, Inc.; 32.0.11027.1003) - AMD Ryzen 7 5800X 8-Core Processor (16 threads)

### Issue description

When using the DX12 backend, lightmaps never receive bicubic filtering even with the `Use Bicubic Filter` setting enabled. This is not an issue when using Vulkan, where the filtering switches to bicubic as expected.

| Vulkan | DirectX 12 |
|--------|--------|
| ![Image](https://github.com/user-attachments/assets/615a1577-5ee6-4f76-9016-dfd202d47cfc) | ![Image](https://github.com/user-attachments/assets/99d14e4a-4231-497b-b5df-2e9ca4e5f166) |

Additionally, I was able to force bicubic filtering by changing line `1653` in `scene_forward_clustered.glsl` from
`if (sc_use_lightmap_bicubic_filter()) {`
to
`if (sc_use_lightmap_bicubic_filter() || true) {`
so I believe this is an issue of the relevant flag somehow not being set.

When starting up the test project, the console also prints `drivers/d3d12/rendering_device_driver_d3d12.cpp:2873 - Condition "int_value & (1 << 31)" is true. Returning: 0` eight times, then does so again whenever `Use Bicubic Filter` is toggled on or off.
I also noticed in `scene_forward_clustered_inc.glsl` that this flag, along with several others, is pulled conditionally from either a push constant or a specialization constant based on whether ubershaders are being used, which may be relevant, but I didn't see anything else suspicious following the trail back to where `Use Bicubic Filter` is read from the project settings.

### Steps to reproduce

Create a 3D scene, add some `MeshInstances` to receive lightmaps and a light source to be baked, add a `LightmapGI` node and bake it.
In **Project Settings**, under **Rendering/Rendering Device** set `Driver` to `d3d12`, and under **Rendering/Lightmapping** ensure `Use Bicubic Filter` is toggled on.

### Minimal reproduction project (MRP)

[bicubic-lightmap-bug-mrp.zip](https://github.com/user-attachments/files/18047736/bicubic-lightmap-bug-mrp.zip)
Repository: transformers
Issue: [i18n-<languageCode>] Translating docs to Chinese  Translate agents.md into Chinese
Labels: WIP

Hello, I will translate agents.md to Chinese.
doc url : https://github.com/huggingface/transformers/blob/main/docs/source/en/agents.md
Repository: next.js
Issue: revalidatePath doesn't invalidate route cache for back/forward
Labels: bug

### Link to the code that reproduces this issue

https://stackblitz.com/edit/stackblitz-starters-cxo2blep?file=app%2Fpage.tsx

### To Reproduce

1. Click [Update] (it sends POST /foo, which updates data.value, and calls revalidatePath).
2. Click [Go to /b page]
3. Click [Go back with history.back()]

### Current vs. Expected behavior

Expected: data.value: 1
Actual: data.value: 0

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: Ubuntu 20.04.0 LTS Sat Dec 07 2024 16:27:55 GMT+0500 (Yekaterinburg Standard Time)
  Available memory (MB): NaN
  Available CPU cores: 8
Binaries:
  Node: 18.20.3
  npm: 10.2.3
  Yarn: 1.22.19
  pnpm: 8.15.6
Relevant Packages:
  next: 15.0.4 // Latest available version is detected (15.0.4).
  eslint-config-next: 15.0.4
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.2.2
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Not sure

### Which stage(s) are affected? (Select all that apply)

next dev (local)

### Additional context

- According to the docs, `revalidatePath` should invalidate Route Cache. But actually, it doesn't affect back/forward caching, which is unexpected.
- This is a minimal reproduction. My real case is, several client components have useState(initialState), where initialState is data from server component. After updating the data using route handler, going to another page and navigating backwards, the entire page state becomes outdated.
- Similar issue https://github.com/vercel/next.js/issues/59958
Repository: PowerToys
Issue: Workspaces cannot correctly identify the same program installed and running simultaneously in different directories.
Labels: Issue-Bug,Needs-Triage,Product-Workspaces

### Microsoft PowerToys version

0.86.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Workspaces

### Steps to reproduce

Due to the need to run multiple identical programs simultaneously for stock software (installed in different directories), when these programs run at the same time, Workspaces cannot correctly identify them and treats them as the same program from one of the directories.

### ✔️ Expected Behavior

It is hoped that the ability to manually set the program's path can be added to correctly identify the programs.

### ❌ Actual Behavior

_No response_

### Other Software

_No response_
Repository: electron
Issue: Shared libs build option
Labels: enhancement :sparkles:

### 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 feature request that matches the one I want to file, without success.

### Problem Description

For linux distos, we are required to link against libraries in the repo, thus, we cannot build against the bundled version of chromium. Furthermore, this can reduce sizes of applications 

### Proposed Solution

Have an argument in build.gn to link against system libs

### Alternatives Considered

N/a

### Additional Information

_No response_
Repository: pytorch
Issue: Unfold
Labels: module: nn,triaged

# 📚 The doc issue

Currently, only 4-D input tensors (batched image-like tensors) are supported.

### Suggest a potential alternative/fix

Even, 3D input tensor are also supported.

For example

`a = np.array([[[1,2,3,4]]]).astype("float")

t = torch.from_numpy(a)

output = torch.nn.functional.unfold(t,kernel_size=(1,2))

output, output.size()`

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: deno
Issue: Deno LSP periodically (~2 min intervals) stops working when using Effect.TS
Labels: bug,lsp

Version: Deno 2.1.3 (latest stable)

Repro video and GitHub repo here: https://github.com/skoshx/deno-lsp-errors-vanish-bug/blob/main/README.md

So basically, Deno LSP breaks `infer` behavior randomly when creating / deleting files. As you can see in the video, after deleting the file, Deno no longer can infer and defaults to `never`.

Restarting the LSP fixes the issue (temporarily)

It has been a really frustrating experience trying to use Deno on a new project, but having to restart the LSP continuously because randomly TypeScript types just break.

Let me know if I can help somehow.
Repository: pytorch
Issue: torch.nn.functional.normalize get nan
Labels: needs reproduction,module: nn,triaged

### 🐛 Describe the bug

when i run this code：
<img width="728" alt="image" src="https://github.com/user-attachments/assets/2e839b7d-62f3-47ca-95f0-7c710e39ed79">

   i found p_reps[4:,] is nan as :
<img width="517" alt="image" src="https://github.com/user-attachments/assets/6efb9dbc-65d4-43af-9165-949596b8850c">
even if i add eps=1e-2, it was unuseful.
<img width="502" alt="image" src="https://github.com/user-attachments/assets/de3287af-66cb-4043-a1ff-59fff501e600">
how can i do to solve ?

### Versions

1

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: vscode
Issue: Inconsistent scroll speed in Jupyter Notebooks, different for text/code vs plots/tables
Labels: bug,notebook-output

Does this issue occur when all extensions are disabled?: Yes

- VS Code Version: 1.95.3
- OS Version: Windows 11

Steps to Reproduce:

1. Have cells with both text/code and plots(plotly or matplotlib)/tables (pandas)
2. Scroll through cells as fast as you can, notice how it slows down when scrolling over plots/tables.

https://github.com/user-attachments/assets/ac6ba6d2-ce8a-4956-b0fb-74b185188009
Repository: transformers
Issue: FileNotFoundError: Couldn't find a module script at /home/tooko/transformers-course/glue/glue.py.
Labels: New model

### Model description

i run the example of hugging face NLP course(https://huggingface.co/learn/nlp-course/chapter3/4?fw=pt#the-training-loop)
my env at Vmware-ubuntu -vscode,evaluate Version is  0.4.3 . i always encounter this error:

import evaluate
metric = evaluate.load("glue", "mrpc") #此句依旧是出现FileNotFoundError错误
model.eval()

for epoch in range(num_epochs):
    for batch in train_dataloader:
        batch = {k: v.to(device) for k, v in batch.items()} #将batch中的数据转移到device上，batch是一个字典
        with torch.no_grad():
            outputs = model(**batch)
            
        logits = outputs.logits
        predictions = torch.argmax(logits, dim=-1)
        metric.add_batch(predictions=predictions, references=batch["labels"])

---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
Cell In[1], line 3
      1 import evaluate
----> 3 metric = evaluate.load("glue", "mrpc")
      4 model.eval()
      6 for epoch in range(num_epochs):

File ~/transformers-course/.env/lib/python3.11/site-packages/evaluate/loading.py:748, in load(path, config_name, module_type, process_id, num_process, cache_dir, experiment_id, keep_in_memory, download_config, download_mode, revision, **init_kwargs)
    703 """Load a [`~evaluate.EvaluationModule`].
    704 
    705 Args:
   (...)
    745     ```
    746 """
    747 download_mode = DownloadMode(download_mode or DownloadMode.REUSE_DATASET_IF_EXISTS)
--> 748 evaluation_module = evaluation_module_factory(
    749     path, module_type=module_type, revision=revision, download_config=download_config, download_mode=download_mode
    750 )
    751 evaluation_cls = import_main_class(evaluation_module.module_path)
    752 evaluation_instance = evaluation_cls(
    753     config_name=config_name,
    754     process_id=process_id,
   (...)
    760     **init_kwargs,
...
    684         ) from None
    685 else:
    686     raise FileNotFoundError(f"Couldn't find a module script at {relative_to_absolute_path(combined_path)}.")

FileNotFoundError: Couldn't find a module script at /home/tooko/transformers-course/glue/glue.py. Module 'glue' doesn't exist on the Hugging Face Hub either.

others opinion to solve this issue is to loging in hugging face account and not use proxy. B cos i am in China so i must use vpn to log in HF but after logged in no matter i used vpn or not the error was existing ,and i try to download glue/glue.py from Colab'example of HF provided but i didn't found. think you for your some advice for this problem (sorry for my bad english)

### Open source status

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

### Provide useful links for the implementation

_No response_
Repository: PowerToys
Issue: Keep the current window active when using Advanced Paste, similar to the windows built-in clipboard management software.
Labels: Needs-Triage,Product-Advanced Paste

### Description of the new feature / enhancement

![Image](https://github.com/user-attachments/assets/cfe03c38-b018-4e1e-b223-e5b15eb3bc06)
the gif demonstrates the operation of the windows built-in clipboard management software in a text editor.
when I type in clipboard management software， the text editor window is still active and the cursor is blinking. so I can know exactly where the text will be inserted


### Scenario when this would be used?

when i use Advanced Paste to paste text, I can know exactly where the text will be inserted.

### Supporting information

_No response_
Repository: vscode
Issue: source control: setting to add or change the default git commit command to run an alias
Labels: feature-request,git

<!-- ⚠️⚠️ 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. -->

[NO_TRAIN]::

Say I have a custom git commit alias that I created, such as `git commit-with-flags`.

I think there should be a setting in VS Code source control settings to either:
 - change the `Commit` behavior to always runs the specified alias command
and/or
 - a setting where the developer can add an aliased commit command(s) to the commit dropdown menu.
![Image](https://github.com/user-attachments/assets/ab84f2b8-e06a-49d2-aaed-8f030d86984b)
Repository: transformers
Issue: resizing token embeddings causes output embedding to be reinitialized in `post_init` when `tie_word_embedding` is False
Labels: Good Second Issue,bug,fixme

### System Info

- `transformers` version: 4.46.3
- Platform: Linux-6.6.20-aufs-1-x86_64-with-glibc2.36
- Python version: 3.11.2
- Huggingface_hub version: 0.26.1
- Safetensors version: 0.4.5
- Accelerate version: 1.0.1
- Accelerate config:    not found
- PyTorch version (GPU?): 2.5.1+cu124 (True)
- Tensorflow version (GPU?): not installed (NA)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using distributed or parallel set-up in script?: No
- Using GPU in script?: Yes
- GPU type: NVIDIA A10

### Who can help?

@ArthurZucker 

### Information

- [ ] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [X] My own task or dataset (give details below)

### Reproduction

This code reproduces the problem:

```
pythia = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-410m")
pythia.resize_token_embeddings(502)
pythia.post_init()
```

the default value for `tie_word_embeddings` in pythia is False.
I believe the problem arises from the fact the if `tie_word_embeddings` is False, Then `resize_token_embeddings` creates a new `nn.Linear` object that doesn't have the flag `_is_hf_initialized`(causing it to be `False` when using `getattr`), and then `post_init` calls `_init_weights` on the new module.

https://github.com/huggingface/transformers/blob/c8c8dffbe45ebef0a8dba4a51024e5e5e498596b/src/transformers/modeling_utils.py#L2406
 

### Expected behavior

`post_init` should not change the weights of output_embeddings after a resize.
Repository: TypeScript
Issue: [exactOptionalPropertyTypes] Unexpected 'undefined' arises in error message
Labels: Bug,Help Wanted

### 🔎 Search Terms

"not assignable", "never", "undefined", "exactOptionalPropertyTypes"

### 🕗 Version & Regression Information

**4.3.5**
``'undefined'`` error instead of ``'never'`` ; the value ``undefined`` is considered valid
**4.4.4**, **5.0.4**
Expected behavior
**5.1.6**, **5.7.2**
``'undefined'`` error instead of ``'never'`` ; the value ``undefined`` triggers the ``'never'`` message
**Nightly**
*not available when testing*

### ⏯ Playground Link

https://www.typescriptlang.org/play/?exactOptionalPropertyTypes=true&ts=5.7.2#code/C4TwDgpgBAKlC8UCwAoKUDeUCGAuKAdgK4C2ARhAE4A0UZA-PgRAG5VQC+UAPqultkaFWVWmSakKlTgG5UqAMYB7AgGdgUYPjiIMfHPgAM1feKiHUHGUA

### 💻 Code
``--exactOptionalPropertyTypes``

```ts
type T = 
  { a: number, b?: never } |
  { a?: never, b: number };

const t: T = { //  Types of property 'b' are incompatible. Type 'number' is not assignable to type 'undefined'
  a: 0,
  b: 0
};
```


### 🙁 Actual behavior

*Type 'number' is not assignable to type 'undefined'* is not relevant, since ``undefined`` cannot be the type of the ``t[b]``.

### 🙂 Expected behavior

The error should be about type 'number' not being assignable to type 'never'.
It is correctly displayed if the value ``undefined`` is used (after the regression at least).
Repository: tauri
Issue: [bug] Window can't focus after right-click on an inactive window. 
Labels: type: bug,platform: macOS,status: needs triage

### Describe the bug

1. right click an inactive tauri-app window, and the context menu will show
2. click outside of the context menu, and the context menu will disappear
3. the window can not gain focus any more unless it blur and focus again: no hover style, input caret not show...


### Reproduction

the initial project created by `bun create tauri-app` can reproduce the problem.

https://github.com/user-attachments/assets/0300ceeb-29d5-4ca8-868a-6b9e82c23966



### Expected behavior

_No response_

### Full `tauri info` output

```text
[✔] Environment
    - OS: Mac OS 15.1.1 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.83.0 (90b35a623 2024-11-26)
    ✔ cargo: 1.83.0 (5ffbef321 2024-10-29)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 22.11.0
    - npm: 10.9.0
    - bun: 1.1.36

[-] Packages
    - tauri 🦀: 2.1.1
    - tauri-build 🦀: 2.0.3
    - wry 🦀: 0.47.2
    - tao 🦀: 0.30.8
    - @tauri-apps/api : 2.1.1
    - @tauri-apps/cli : 2.1.0

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.2
    - @tauri-apps/plugin-shell : 2.0.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_