sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: output=model(input) report error:'gbk' codec can't decode byte 0x8a in position 171: illegal multibyte sequence
Labels: low priority,triaged,oncall: pt2

### 🐛 Describe the bug

Chinese development environment, when writing code using UTF-8 encoding, an error occurs

### Error logs

_No response_

### Minified repro

import torch
from modelFile import Model #this is utf-8 file in the Chinese System, And it includes Chinese annotations.
model=torch.compile(Model())
output=model(input) <-error 

### Versions

PyTorch version: 2.3.1+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 11 专业版
GCC version: (GCC) 14.1.0
Clang version: 17.0.3
CMake version: version 3.30.0
Libc version: N/A

Python version: 3.11.6 (tags/v3.11.6:8b6ee5b, Oct  2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.22631-SP0
Is CUDA available: True
CUDA runtime version: 12.3.103
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: Quadro GV100
Nvidia driver version: 551.52
cuDNN version: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.3\bin\cudnn_ops_train64_8.dll
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture=9
CurrentClockSpeed=1496
DeviceID=CPU0
Family=1
L2CacheSize=16384
L2CacheSpeed=
Manufacturer=GenuineIntel
MaxClockSpeed=1496
Name=Intel(R) Xeon(R) Platinum 8260 CPU @ 2.40GHz
ProcessorType=3
Revision=21767


Architecture=9
CurrentClockSpeed=1496
DeviceID=CPU1
Family=1
L2CacheSize=16384
L2CacheSpeed=
Manufacturer=GenuineIntel
MaxClockSpeed=1496
Name=Intel(R) Xeon(R) Platinum 8260 CPU @ 2.40GHz
ProcessorType=3
Revision=21767

Versions of relevant libraries:
[pip3] numpy==1.26.2
[pip3] torch==2.3.1+cu121
[pip3] torchaudio==2.3.1+cu121
[pip3] torchsummary==1.5.1
[pip3] torchvision==0.18.1+cu121
[pip3] triton==2.1.0
[conda] Could not collect

cc @ezyang @anijain2305 @chauhang @penguinwu
Repository: godot
Issue: gdscript unfinished condition in if statement gives unhelpful error
Labels: bug,discussion,topic:gdscript

### Tested versions

4.2.1.stable.mono but also in 3.5 stable per a friend's message/screenshot on discord

### System information

Godot v4.2.1.stable.mono - Linux Mint 21 (Vanessa) - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 (nvidia; 535.183.01) - AMD Ryzen 9 5950X 16-Core Processor (32 Threads)

### Issue description

When providing a condition to an if statement that contains something like the pattern `identifier identifier...:`, rather than indicating the condition is malformed, it simply treats the space as being the end of the line (or last token on the line maybe?) and just says `Expected ":" after "if" condition.`

What I would expect in this situation is that it indicates in some way that the condition is malformed. Maybe it's a stretch to call this a bug, maybe more of a QOL improvement.

The error could be something like "unterminated if condition", but that might be too terse.

### Steps to reproduce

In a script on a node, insert the following code
```gdscript
func _unhandled_input(event: InputEvent) -> void:
       #dummy variables, the identifier doesn't matter
        var a = 0
        var b = 0
	if a b:
		print("bang")
```
results in the error `Error at (line,column): Expected ":" after "if" condition.` rather than indicating that the condition is malformed.

### Minimal reproduction project (MRP)

This includes a project with the above code for demonstration.
[gdscript_parse_unreg.zip](https://github.com/user-attachments/files/16201052/gdscript_parse_unreg.zip)
Repository: ant-design
Issue: 在next中同时使用了Drawer和Popover组件并设置了自定义主题后，Drawer样式失效了
Labels: Inactive,unconfirmed

### Reproduction link

[https://github.com/Kiyumi-v/AntdRegistryProblem](https://github.com/Kiyumi-v/AntdRegistryProblem)

### Steps to reproduce

在同时使用AntdRegistry、设置layer、设置自定义主题后，同时使用Drawer和Popover组件后，在页面上发现Drawer样式丢失。


### What is expected?

期望Drawer正常显示

### What is actually happening?

Drawer样式丢失

| Environment | Info |
| --- | --- |
| antd | 5.19.1 |
| React | react 18.3.3 |
| System | macOS 14.5 (23F79) |
| Browser | Chrome 126.0.6478.127 |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: electron
Issue: [Feature Request]:  WebContentsView.destroy()
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 bug report that matches the one I want to file, without success.

### Electron Version

31.2.0 

### What operating system(s) are you using?

Windows

### Operating System Version

windows 11 

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

WebContentsView has no `destory()` method, so it's hard to manually manage the view's lifecycle
if somewhere keep the view reference, the view will not be garbage collected (process will not be terminated)
a method like `WebContentsView.destroy()` will be helpful!

### Actual Behavior

see the code below

### Testcase Gist URL

_No response_

### Additional Information

```js
const { app, BrowserWindow, BaseWindow, WebContentsView } = require('electron')

function addNewView(win, idx) {
  const view = new WebContentsView()
  view.webContents.loadURL('https://baidu.com')
  let firstView = win.contentView.children?.[0];
  if (firstView) {
    console.log("remove view:", idx);
    // remove child view from contentView
    win.contentView.removeChildView(firstView);
    // delete firstView; won't work!

    // WebContentsView has no `destory()` method, so it's hard to manually manage the view's lifecycle
    // if somewhere keep the view reference, the view will not be garbage collected (process will not be terminated)
    // i need a method of `contentView` to destroy the view (to terminate the render process)
  }
  win.contentView.addChildView(view)

  view.setBounds({ x: idx * 20, y: 0, width: 400, height: 600 })
  return view
}

function testBaseView () {
  const win = new BrowserWindow({
    width: 800,
    height: 600,
  })

  let idx = 0;
  let views = [];
  setInterval(() => {
    console.log("add new view:", idx);
    idx += 1;
    let view = addNewView(win, idx);

    // !!! this will cause memory leak, the view will not be garbage collected,
    // the render process will not be terminated, even if the view is removed from the contentView and no further use
    // i know release the reference to the view can solve the problem, but program can be complex, its not easy to do that
    // i need a method of contentView to destroy the view (to terminate the render process)
    views.push(view);
  }, 2000);
}

app.whenReady().then(() => {
  testBaseView()
})

app.on('window-all-closed', function () {
  if (process.platform !== 'darwin') app.quit()
})


```
Repository: material-ui
Issue: Continuous Releases for material-ui using pkg.pr.new
Labels: core,scope: code-infra

### Summary

Hey, I'm Mohammad, from https://pkg.pr.new! Thank you so much all for this piece of art. 

Lately we had [ant-design](https://github.com/ant-design/ant-design/pull/49647#issuecomment-2196874995) using pkg.pr.new for their continuous releases which made me think if this might be useful to material-ui too! This would enable preview releases (like netlify/vercel previews) but for the `@mui/material` npm package (and other modules too) on each branch, pull request and commit. 

### Examples

Something like this would be possible:

```
npm i https://pkg.pr.new/@mui/material@173
```
And this would install the package from pull request number 173.

```
npm i https://pkg.pr.new/@mui/material@902743b
```
And this would bring the commit version of the package. 

### Motivation

This way, it'd be way easier to try out new pull requests, features and bug fixes. As it allows for a smoother feedback loop on the development cycle of material-ui. 

And this would be a huge opportunity for https://pkg.pr.new :) 

Feel free to close this if you think it's not necessary! 

**Search keywords**: continuous releases
Repository: node
Issue: Add `--root-directory` optional flag for `node --run`
Labels: feature request,cli,stale

### What is the problem this feature will solve?

Currently, when running `node --run`, it searches recursively for the package.json file up to the root directory. Additionally, it appends the `/node_modules/.bin` paths up to the root directory to the PATH environment variable.

It would be nice to restrict recursively searching till a certain directory if it is provided as an option `node --run test --root-directory=<monorepo-root>.`.  This is particularly helpful in a monorepos with multiple/multi-level workspaces where we don't expect the bin paths to be added beyond the monorepo directory and also do not look for package.json beyond that point. In some cases, it will help to avoid any discrepancies between local and CI

### What is the feature you are proposing to solve the problem?

Add an optional flag `--root-directory` or a similar one, which will be used as a root directory instead of `cwd.root_path()` [here](https://github.com/nodejs/node/blob/5731e2b3460c02971c2d32865e17519113a95847/src/node_task_runner.cc#L220).

### What alternatives have you considered?

_No response_
Repository: TypeScript
Issue: feature request: expose `tsconfig.json` types in TypeScript files
Labels: Suggestion,Awaiting More Feedback

### 🔍 Search Terms

expose `tsconfig.json` types to developers

### ✅ Viability Checklist

- [X] This wouldn't be a breaking change in existing TypeScript/JavaScript code
- [X] This wouldn't change the runtime behavior of existing JavaScript code
- [X] This could be implemented without emitting different JS based on the types of the expressions
- [X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- [X] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- [X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

### ⭐ Suggestion

It'd be nice if TypeScript developers could enforce that an object is consistent with `tsconfig.json`.

### 📃 Motivating Example

If you're creating a tool that initializes a project that uses TypeScript, you can ensure the `tsconfig.json` you're composing in your source code is valid.

```ts
const tsConfig: TSConfig = {
  "compilerOptions": {
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "module": "NodeNext"
  }
};

fs.writeFileSync(
  path.join(root, "tsconfig.json"),
  JSON.stringify(tsConfig, null, 2)
);
```

### 💻 Use Cases

1. What do you want to use this for?

I'm building a tool that initializes a TypeScript project with other dependencies.

It'd be kind of nice if I could be 100% certain the `tsconfig.json` I'm composing in my source code is valid.

```ts
  fs.writeFileSync(
    path.join(root, "tsconfig.json"),
    JSON.stringify(
      {
        compilerOptions: {
          target: "ESNext",
          module: "CommonJS",
          jsx: "react-jsx",
        },
        include: ["src"],
        exclude: ["node_modules"],
      },
      null,
      2
    )
  );
```
2. What shortcomings exist with current approaches?

In `.ts` source code, TypeScript doesn't verify if a `tsconfig.json` file being written to disk is valid or not.

3. What workarounds are you using in the meantime?

I'm copying over an existing `tsconfig.json` file from a `template/` subdirectory.
Repository: next.js
Issue: null is not an object (evaluating 't.parallelRoutes.get')
Labels: bug,Navigation,Runtime

### Link to the code that reproduces this issue

https://github.com/JClackett/next-reproduction-app

### To Reproduce

So, I literally have no idea how to reproduce this consistently yet, but will keep trying.

I'm getting this error semi-often in production only and only sometimes for certain users, most of the time it's working. 

Looking at the stack trace (which is limited), it's due to some call to a `<cache>.parallelRoutes.get`. Searching the next code base with https://github.com/search?q=repo%3Avercel%2Fnext.js%20parallelRoutes.get&type=code
shows all the times this method is called.

It seems that one of the cache objects is null for me? How would I go about creating a repro for that. Or does anyone have any idea why this cache object would be null in the first place. The page this is erroring on is nothing special, it's just a async server component that fetches data and renders few components, one being a client component, so I dont see (yet) how this is something strange with my setup. Only thing of note is that im using react suspense to handle the fallback because the loading.tsx pages dont work as id like (they dont trigger on search param changes).


### Current vs. Expected behavior

Doesn't crash

### Provide environment information

```bash
Like I said, only in production and on vercel.
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.1.0: Mon Oct  9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 8
Binaries:
  Node: 18.18.2
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.15.7
Relevant Packages:
  next: 14.2.5 // Latest available version is detected (14.2.5).
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Navigation, Runtime

### Which stage(s) are affected? (Select all that apply)

Vercel (Deployed)

### Additional context

Only in production on vercel
Repository: PowerToys
Issue: Allow to search/filter within Advanced Paste Clipboard history to quickly find the text to paste
Labels: Idea-Enhancement,Needs-Triage,Product-Advanced Paste

### Description of the new feature / enhancement

As Windows does not support searching within `Clipboard history`, it would be nice if **Advance Paste** could allow it. **Advanced Paste Clipboard history**  with **search bar**  at the top to narrow down the matching results could be accessible with `a keyboard shortcut`. 
It could even override/replace the default Windows `Win+V` Clipboard manager and replace it with

![image](https://github.com/user-attachments/assets/d3fcd620-684a-4154-81ca-ddb5a4a751d6)


### Scenario when this would be used?

User with multiple items in the Windows Clipboard history would press **a keyboard shortcut** to open **Advanced Paste Clipboard history** and start typing to narrow down/filter results in Clipboard history thus saving time by not scrolling down thru history and searching for the text. Especially when clipboard history has several items which begin with the same text it would be great time saver.



### Supporting information

Some other threads:
https://github.com/microsoft/PowerToys/issues/94#issuecomment-761581872
https://ditto-cp.sourceforge.io/index.php
https://www.alfredapp.com/help/features/clipboard/
Repository: ollama
Issue: The usage of VRAM has significantly increased
Labels: bug,memory

### What is the issue?

In previous versions, I set the context length of each of my models to the maximum value that could be fully loaded onto the GPU memory. However, after the update, I found that parts of them were being partially loaded onto the CPU instead. I wonder what could be causing this. The following table is some examples.
|NAME|SIZE|PROCESSOR|
| :-: | :-: | :-: |
|glm4:9b-chat-2K-q5_K_M|8.3 GB|10%/90% CPU/GPU|
|glm4:9b-chat-10K-q4_K_M|7.8 GB|7%/93% CPU/GPU|
|codegeex4:9b-all-10K-q4_K_M|7.8 GB|7%/93% CPU/GPU|
|qwen2:7b-instruct-19K-q5_K_M|8.3 GB|13%/87% CPU/GPU|
|internlm2:7b-chat-v2.5-8K-q5_K_M|7.7 GB|4%/96% CPU/GPU|
|llama3:8b-instruct-5K-q6_K|8.2 GB|10%/90% CPU/GPU|
My graphics card is a 4060 laptop model, with only 8GB of VRAM. Interestingly, even before the update, none of the models was actually utilizing the full capacity of my GPU memory.

### OS

Windows

### GPU

Nvidia

### CPU

AMD

### Ollama version

0.2.3
Repository: PowerToys
Issue: PowerToys Run resets settings
Labels: Issue-Bug,Product-PowerToys Run,Priority-1

### Microsoft PowerToys version

0.81.1.0

### Installation method

GitHub

### Running as admin

No

### Area(s) with issue?

General

### Steps to reproduce

It sometimes resets all the settings.

### ✔️ Expected Behavior

I set PowerToys Run keyboard shortcut to Win+Space. It should have been it.

### ❌ Actual Behavior

After a few Windows restarts, it gets to Alt+Space. This problem is the same on my other pc.

### Other Software

_No response_
Repository: godot
Issue: Scrollwheel doesn't change fly mode speed when shift is pressed
Labels: bug,topic:editor,topic:input,topic:3d

### Tested versions

v4.3.beta3.official [82cedc83c]

### System information

Godot v4.3.beta3 - macOS 14.5.0 - Vulkan (Forward+) - integrated Apple M1 Max - Apple M1 Max (10 Threads)

### Issue description

When moving around the scene I got into a habit of always holding shift and I'm moving without shift only for finer position adjustments. Since scrollwheel doesn't work with shift to change the speed I need to let go of shift, scroll, then press shift again which feels clunky

Note: Scrollwheel works if alt is pressed though

### Steps to reproduce

Hold RMB and Shift and try to use scroll

### Minimal reproduction project (MRP)

N/A
Repository: go
Issue: cmd/cgo: use void keyword in generated headers on extern'd function declarations with no params
Labels: compiler/runtime

### Proposal Details

I propose that the generated header files from `--buildmode=c-shared` have void in the parenthesis when the extern'd function takes no parameters.  
In C, function declarations with an empty list of parameters means that the parameters are unknown. The way to declare a function that takes no parameters is to put the void keyword in the parenthesis. If you omit the void keyword then callers are allowed to specify any number of parameters to the function, although compilers can issue warnings when this happens.

In my case I'm using `jextract` to generate java bindings for a header file generated by a go project. It's is kind of a new tool. When it sees the empty parameter list it treats the function as [variadic](https://github.com/openjdk/jextract/blob/master/doc/GUIDE.md#variadic-functions) which looks slightly different on the java side. This doesn't really matter much though. I'm just including this here for context.

I'm unsure what backwards compatibility concerns something like this would have. In the case of jextract it changes everything about the function call on the java side. I don't know if there are other tools that would be greatly affected by this change.
Repository: vscode
Issue: Git - PowerShell in VSCode Terminal can not find my ssh key.
Labels: bug,git

<!-- ⚠️⚠️ 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/No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.91.1
- OS Version: Win11 23H2

The $HOME path seems to be wrong, but I checked it was fine.
How to make git as normal as I used it in another terminal?


Steps to Reproduce:

1.  In VSCode Terminal, input `git pull`

PS C:\Users\drunk\projects\unowhat> git pull
The authenticity of host 'github.com (20.27.177.113)' can't be established.
ED25519 key fingerprint is SHA256:... This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

Could not create directory '**/home/drunk/.ssh**' (No such file or directory).
Failed to add the host to the list of known hosts (/home/drunk/.ssh/known_hosts).
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Repository: godot
Issue: LightOccluder2D overlay is being written onto the screen_texture in the editor
Labels: bug,topic:rendering,topic:editor

### Tested versions

Reproducible in 4.3 dev

### System information

Mac OS, godot 4.3 dev, mobile renderer, M2 apple silicon 

### Issue description

LightOccluder2D is using a dark overlay in the editor to indicate the position of the LightOccluder2Ds in the scene, this overlay is being written to screen_texture which makes the screen_space effects to be previewed "wrong" in the editor. I reckon that the screen_texture must not include the editor elements even in the editor, and henceforth consider this a bug. however if this is intended I suggest the option to disable writing this overlay to the screen texture in the editor.

### Steps to reproduce

In the attached project the top rectangle is rendering the screen_texture and as you can inspect, it does include the occluder indicator overlay. this, however is not visible in play mode.

### Minimal reproduction project (MRP)

[occluder2d_screen_texture_issue.zip](https://github.com/user-attachments/files/16202260/occluder2d_screen_texture_issue.zip)
Repository: PowerToys
Issue: Advanced Paste: Paste unescaped string
Labels: Product-Advanced Paste

### Description of the new feature / enhancement

When debugging code, I add breakpoints and inspect variable values.

When copying the value of a string variable that contains special characters like line feeds (`\n`), double quotes (`\"`), curly braces (`\{`, `\}`), it is often desirable to paste the **UNESCAPED** value (f.ex into some text editor to review the raw value).

This is the case when for instance when copying a string variable that contains JSON-formatted data. In VS Code there is unfortunately no _"Copy value unescaped"_ feature when right clicking in the Debugging>Variables or Degugging>Watch windows.

But if PowerToys had a _"Paste unescaped"_ feature, it would help overcome this VS Code's shortcoming, and it would also be a system-wide solution; not only for VS Code, but for any editor/tool.

I think this would be a very useful feature would add great value for developers.

### Scenario when this would be used?

When copying escaped strings and you want to paste it "unescaped".
Would typically be used by developers when debugging code.


### Supporting information

_No response_