sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: DirAccess does not give useful errors (even though there's supposed to be support for them)
Labels: bug,topic:core

### Tested versions

Tested and reproduced in 4.2.1.stable

### System information

Godot v4.2.1.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated AMD Radeon RX 5700 XT (Advanced Micro Devices, Inc.; 31.0.24027.1012) - AMD Ryzen 5 2600 Six-Core Processor (12 Threads)

### Issue description

Essentially I was failing to get DirAccess working and I noticed that it _always_ throws @GlobalScope.FAILED aka Error 1.

### Steps to reproduce

Try to rename a file with
```gdscript
var path = YOUR_PATH_HERE
var from = FILE_NAME_AT_START
var to = FILE_NAME_AFTER_RENAME

var da = DirAccess.open(path)
da.rename(from, to)
```
but fail to rename the file, have an incorrect path or something that will throw an error, the error will ALWAYS be Error 1

### Minimal reproduction project (MRP)

[MRP_DirAccess_Error_Codes.zip](https://github.com/godotengine/godot/files/15227729/MRP_DirAccess_Error_Codes.zip)
Repository: PowerToys
Issue: Schedule folder and file deletion
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

There's not much to say, it's simply the option to schedule deletion of folders and files.

For temporary files and folders that need to be automatically deleted after a period of time. It would be a custom timing tool for each selection.

### Scenario when this would be used?

I have a photo or video editing job, I need pre-production files to execute it. After a set period of time in which I know I will have the work done, these files will be automatically deleted once I set that time. This function can be used in other scenarios such as school work and downloads in general.

### Supporting information

Select one or more folders and files > windows menu right click > scheduled deletion option > menu with directories and a time/date selection option and a definitive delete option or move to trash
Repository: kubernetes
Issue: Kubelet memory leak when a plugin is registered twice
Labels: kind/bug,priority/backlog,area/kubelet,sig/node,triage/accepted

### What happened?

We found that the kubelet memory kept increasing，and we exported the pprof of the goroutine. The grpc goroutine leaks, causing memory leakage.
![image](https://github.com/kubernetes/kubernetes/assets/54977497/76a1d622-2129-49e0-bd4c-79b6bad786b1)
We found out that the reason was because one of the pluginThe following code causes this situation. One client is lost.s kept registering twice and using the same name for both.
https://github.com/kubernetes/kubernetes/blob/1dc30bf90fd6a729d226b4e942118110b0a73e65/pkg/kubelet/cm/devicemanager/plugin/v1beta1/handler.go#L90-L96
When two requests are registered at the same time, only one client is reserved in s.clients.
https://github.com/kubernetes/kubernetes/blob/1dc30bf90fd6a729d226b4e942118110b0a73e65/pkg/kubelet/cm/devicemanager/plugin/v1beta1/handler.go#L106-L117
Therefore, after the c.Run () method in the runClient method is executed, s.getClient obtains only one registered client. As a result, the c.grpc.Close () method is not invoked, causing memory and coroutine leakage.


### What did you expect to happen?

Even in this case, kubelet should not leak memory.

### How can we reproduce it (as minimally and precisely as possible)?

1、The plug-in is registered every 5 seconds and two registration requests are sent at the same time.
2、The kubelet memory usage keeps increasing.

### Anything else we need to know?

_No response_

### Kubernetes version

<details>

```console
$ kubectl version
# 1.28
```

</details>


### Cloud provider

<details>

</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: go
Issue: proposal: cmd/compile,runtime: `-race` should report the allocation site of the object involved in the data race
Labels: Proposal

### Go version

go version go1.21.1 darwin/amd64

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/Users/xx/Library/Caches/go-build'
GOENV='/Users/xx/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/xx/gocode/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/milind/gocode'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/Cellar/go/1.21.1/libexec'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/Cellar/go/1.21.1/libexec/pkg/tool/darwin_amd64'
GOVCS=''
GOVERSION='go1.21.1'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='cc'
CXX='c++'
CGO_ENABLED='1'
GOMOD='/Users/xx/Projects/GoExamples/raceAlloc/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/rz/d0xs6gz11nl81r1thdl4g8gm0000gn/T/go-build271399794=/tmp/go-build -gno-record-gcc-switches -fno-common'
```


### What did you do?

`go test -race ./...` on the attached project
[raceAlloc.zip](https://github.com/golang/go/files/15229151/raceAlloc.zip)


### What did you see happen?

Saw the race report that is included in `result.txt`

### What did you expect to see?

Expect to see the call stack that allocated the object `items` in addition to the call stack of the two conflicting access.

This is a proposal/feature request.

In complex projects when we run tests with `-race` option and the tests fail, we get large call stacks. Many times the data race is not in the project code but because of shared objects created within tests; and in such cases the fix is also, often, in the test code. 

We often see this issue in our CI systems. It is nontrivial for developers to debug data races purely from the two conflicting call stacks that access the shared object.  It would be much better if we can show where the object in race was allocated. 

This feature exists in the CilkSan ([openCIlk](https://www.opencilk.org/)) language's race detection capabilities.

<img width="756" alt="image" src="https://github.com/golang/go/assets/13371280/3162e2fc-9167-4840-a4b1-1be2ea6e521c">
Repository: TypeScript
Issue: Add a rule to the compiler options to disallow the `assert` keyword for import attributes
Labels: Suggestion,Committed,Fix Available

### 🔍 Search Terms

"import assertions", "import attributes", "assert"

### ✅ 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

Currently Stage 3 Import Attributes deprecates the `assert` keywords and is working to remove them from the spec if possible. V8 will remove support for the `assert` keywords, so Node.js and Chrome will follow suit.

> Hey, quick update on this. Node.js is planning to remove support for `assert` in v22 (which will be released in April) and Chrome in v126 (which will be released in May).

https://github.com/denoland/deno/issues/17944#issuecomment-2027005952

I would like to remove support for the `assert` keywords from TypeScript as well, and would like to add `disallowAssertKeywords` to the compiler options as a beginning.

#### FYI

JSR bans publishing of TypeScript/JavaScript files that use the `assert` keywords.
https://github.com/jsr-io/jsr/pull/427

I've made a PR for swc, but it is pending because I can't include features that are not in tsc.
https://github.com/swc-project/swc/pull/8913

### 📃 Motivating Example

The following code will fail if the `disallowAssertKeywords` option is enabled.

```ts
import foo from "./foo.json" assert { type: "json" };
```

### 💻 Use Cases

1. What do you want to use this for?

Deno / JSR

2. What shortcomings exist with current approaches?

Deprecated the `assert` keywords cannot be rejected

3. What workarounds are you using in the meantime?

N/A
Repository: godot
Issue: Polygon2D.polygon is and is not a reference, but would be nice to be consistently a reference
Labels: bug,documentation,topic:2d

### Tested versions

4.2.stable

### System information

Godot v4.2.stable - Pop!_OS 22.04 LTS - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3050 Laptop GPU () - 13th Gen Intel(R) Core(TM) i9-13900H (20 Threads)

### Issue description

per the documentation, Polygon2D.polygon is a copy, not a reference: https://docs.godotengine.org/en/stable/classes/class_polygon2d.html#class-polygon2d-property-polygon

i've noticed in code, however, that polygon vertices can be updated, but they can't be added/removed.  i didn't read the documentation closely when i first used Polygon2D.polygon, and have been happily updating `Polygon2D.polygon[0] = Vector2D(...first point...)`, etc., only to bump into weird issues when i try to change the number of points in the polygon (e.g., `Polygon2D.polygon.clear()` or `.resize(5)` or `.append(Vector2(...new point...))`).  i.e., that's when we start seeing the issue that `polygon` is *sometimes* a copy.

TL;DR: `Polygon2D.polygon.clear()` acts like clearing the copy (doesn't do what you want) and `Polygon2D.polygon[0]` acts like a reference to the first point, despite the documentation saying that `polygon` is not a reference.  IMO in an ideal world Polygon2D.polygon would be a reference so we could do both of these things and they do what we expect.

### Steps to reproduce

see the `wobble.gd` scene for using `polygon` as a reference (and it working) and the `ngon.gd` scene for trying to clear the points (and it not working if you use `bad_reset()`): https://github.com/lowagner/bad-ngon

### Minimal reproduction project (MRP)

https://github.com/lowagner/bad-ngon
Repository: ollama
Issue: modify template, system,or params on webpage
Labels: feature request

after pushing a model, sometimes I hope to modify template, system,or params on webpage.
Repository: flutter
Issue: SceneBuilder.pushImageFilter does not apply itself to the mutator for platform views
Labels: a: platform-views,P2,team-engine,triaged-engine

@jonahwilliams  actually, it looks like the mutator stack used for platform views doesn't have a concept of an image filter
@jonahwilliams  so `color_filter_layer.cc` calls   `mutator.applyColorFilter(paint_bounds(), filter);`
@jonahwilliams  but image filter layer doesn't

pushImageFilter should be a string superset of pushColorFilter, because every ColorFilter is an ImageFilter.
Repository: next.js
Issue: Property overrideSrc of image component (next/image) does not override srcset property
Labels: bug,Image (next/image)

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/quirky-feistel-76hgmy?file=%2Fpages%2Findex.tsx%3A9%2C19

### To Reproduce

Set the property **overrideSrc** as described in the docs https://nextjs.org/docs/app/api-reference/components/image#overridesrc

Both in dev and build the srcset property of the image won't be overridden.

### Current vs. Expected behavior

Current:

The accessToken is being exposed in srcset!

Expected:

To be srcset property rewritten to **bg.jpg**

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:41 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8103
  Available memory (MB): 16384
  Available CPU cores: 8
Binaries:
  Node: 18.20.2
  npm: 10.5.0
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.2.3 // Latest available version is detected (14.2.3).
  eslint-config-next: 14.2.3
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.4.5
Next.js Config:
  output: N/A
```


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

Image (next/image)

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

next dev (local), next build (local)

### Additional context

_No response_
Repository: ui
Issue: [bug]: Astro integration breaks existing tailwind styles
Labels: bug

### Describe the bug

Following the https://ui.shadcn.com/docs/installation/astro guide breaks any existing and working tailwind styles.

### Affected component/components

tw

### How to reproduce

add tailwind to Astro the recommended way and make a simple layout with flexbox or grid for example then add shadCN to Astro like described here https://ui.shadcn.com/docs/installation/astro

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
WSL2, Chrome Latest
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: electron
Issue: [Feature Request]: Add possibility to change DevTools font
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

The default font/size of DevTools seems to be changed in the latest stable version (30.0.2). See below the comparision between 29.3.2 and 30.0.2 (tried out with Electron Fiddle). 30.0.2 seems to have different background color and font.

29.3.2:
![Electron 29 3 2](https://github.com/electron/electron/assets/16571328/7218f229-3b2f-4767-ae72-0f896a34ed89)


30.0.2:
![Electron 30 0 2](https://github.com/electron/electron/assets/16571328/f7b12f20-00ac-4fc4-8e5c-dce9b983af05)



### Proposed Solution

Similar to BrowserView WebPreferences, defaultFontFamily and defaultFontSize, add defaultDevToolsFontFamily defaultDevToolsFontSize. Or add a method in webContents to set the default font/size.

### Alternatives Considered

Could not find any possibility to change the DevTools font family/size.

### Additional Information

_No response_
Repository: ollama
Issue: qwen:72b-chat-q4_K_S does not load
Labels: bug,memory

### What is the issue?

Where the model "qwen:72b" loads successfully, the model "qwen:72b-chat-q4_K_S" does not load. The loading spinner just doesn't stop even after waiting a long time. Since the models occupy the same amount of memory (41 GB) I assume the RAM usage is roughly the same. Can somebody reproduce this?

### OS

Linux

### GPU

Nvidia

### CPU

Intel

### Ollama version

0.1.33
Repository: tauri
Issue: [bug] How do I know if remote content in webview has been loaded normally?
Labels: type: bug,status: needs triage

### Describe the bug

I have received a URL from the user and am showing this page in webview.
When an invalid url is entered as follows, webview is showing an empty screen. I want to catch this error and expose the error page. How can I do it?

```
https://www.yahoo.co.jp밍낢ㄴㅇㄹㅁㄴㅇㄹ
```

![image](https://github.com/tauri-apps/tauri/assets/27146546/913a2f93-8cbf-46bf-9538-d54b1fdb5f44)

```rust
let _ = WebviewWindowBuilder::new(&app_handle, "test", WebviewUrl::External(url.parse().unwrap()))
                .decorations(false)
                .resizable(false)
                .on_page_load(move |window, payload| {
                    match payload.event() {
                        PageLoadEvent::Started => {}
                        PageLoadEvent::Finished => {
                            // on load
                        }
                    }
                })
                .build()
                .unwrap();
```

### Reproduction

_No response_

### Expected behavior

_No response_

### Full `tauri info` output

```text
[✔] Environment
    - OS: Mac OS 14.2.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 18.17.1
    - yarn: 1.22.19
    - npm: 9.6.7

[-] Packages
    - tauri [RUST]: 2.0.0-beta.18
    - tauri-build [RUST]: 2.0.0-beta.14
    - wry [RUST]: 0.39.3
    - tao [RUST]: 0.27.1
    - tauri-cli [RUST]: 2.0.0-beta.9
    - @tauri-apps/api [NPM]: 2.0.0-beta.6
    - @tauri-apps/cli [NPM]: 2.0.0-beta.10

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: PowerToys
Issue: STL preview no longer working
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.80.1

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

File Explorer: Preview Pane, File Explorer: Thumbnail preview

### Steps to reproduce

as from a few version before my previews of STL files (and some more) are no longer working.
I consider that as a big problem because of the need to check what file I have selected to 3D print or to see how the result of a print should look like.

### ✔️ Expected Behavior

I was expecting power toys to work properly and show the previews in the preview window.

### ❌ Actual Behavior

nothing

### Other Software

_No response_
Repository: godot
Issue: Unable to long press on Android unless I click somewhere else
Labels: bug,platform:android,topic:input

### Tested versions

Reproducible in 4.2.1

### System information

Android 13

### Issue description

I made a TouchScreenButton node and, when I use the is_pressed() bool in the _process function it works well in Windows while testing but, when I try to debug on Android, the long press only lasts for about 1 second and then it stops working. I tried it with different buttons and the problem persists.

But, when I click the TouchScreenButton and I touch somewhere else on the screen, it appears to work like normal.

### Steps to reproduce

```
func _process(_delta): 
	if touchbutton.is_pressed():
		print("pressed")
```
On Android, try to press the button and see if the print is consistent in console. For me, it only shows a few lines and then it stops showing anything, which means it stops the long press after a second.

### Minimal reproduction project (MRP)

N/A
Repository: angular
Issue: Allow search by query param | angular.dev
Labels: P3,area: docs-infra

### Describe the problem that you experienced

previously checking out the angular docs allowed to pass a search term via query parameters like this:

```url
https://angular.io/?search=foo
```

This for example is pretty neat when trying to search for something in the angular docs and it allows for exmaple to configure custom browser search-targets es shown below e.g. for google chrome by replacing the "%q" with the actual search query.

![Bildschirmfoto 2024-05-07 um 10 39 14](https://github.com/angular/angular/assets/4279702/02ba9970-4318-4801-8a19-23981909c7b2)


### Enter the URL of the topic with the problem

https://angular.dev/?search=foo

### Describe what you were looking for in the documentation

A feature to pass a search term via URL

### Describe the actions that led you to experience the problem

_No response_

### Describe what you want to experience that would fix the problem

https://angular.io/?search=foo and replace ".io" with ".dev"

### Add a screenshot if that helps illustrate the problem

![Bildschirmfoto 2024-05-07 um 10 43 13](https://github.com/angular/angular/assets/4279702/600ec382-f704-4c15-9404-5e06c1a0d403)

...should actually result in search opened like this:

![Bildschirmfoto 2024-05-07 um 10 43 31](https://github.com/angular/angular/assets/4279702/13ea8f03-8e19-4786-a7bd-bba99bd02e45)


### If this problem caused an exception or error, please paste it here

_No response_

### If the problem is browser-specific, please specify the device, OS, browser, and version

_No response_

### Provide any additional information here in as much as detail as you can

_No response_
Repository: next.js
Issue: Unused dependencies in standalone build using storybook
Labels: bug,Output (export/standalone),Module Resolution

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/competent-shirley-zg6rwr

### To Reproduce

- build the application using `pnpm build`
- goes in .next/standalone/node_modules/.pnpm

### Current vs. Expected behavior

Right now you can find some storybook "related" dependencies like "esbuild" which are leading to vulnerabilities and unused (because they are devDeps) in production code.
Expect to not find them

### Provide environment information

```bash
Operating System
   Platform: windows
   Architecture x86-64
   Version: 11
Binaries:
   Node: 20.12.2
   Npm: 10.5.0
   pnpm: 9.1.0
```


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

Module Resolution, Output (export/standalone)

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

next build (local), Other (Deployed)

### Additional context

I tested in both v,14,2,3 and 14,1,4
Repository: tauri
Issue: [feat] SystemTray icon theming
Labels: type: feature request

### Describe the problem

Currently, the system tray created by Tauri directly references an image file, and will therefore only show that particular image in the system tray.  This will ignore the configured user icon theme.

### Describe the solution you'd like

The system tray configuration and any `SystemTray` methods that allow for icon manipulation should have a way of providing an icon name to use, as well as an image file as a fallback for themes that don't have that icon or platforms that don't support theming.

### Alternatives considered

_No response_

### Additional context

On Linux, applications are expected to provide an _icon name_ for the system tray, which will be used to look up the correct icon from the current icon theme with context on image type support, display size, etc. In general, applications should install their icons on the `hicolor` theme and not use any hardcoded images, but most tray implementations allow for an image fallback from outside the themes path.

Tauri, however, uses hardcoded images *only*, which means users don't get the icon from their selected theme, and that icon won't be selected according to display size or image format support (i.e., might not be properly scaled, or might not be displayed at all if the tray doesn't support its format).