sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: cmd/go: support passing @args-file to -toolexec commands
Labels: NeedsInvestigation

### Go version

go version go1.23.2 linux/arm64

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_arm64'
GOVCS=''
GOVERSION='go1.23.2'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GCCGO='gccgo'
GOARM64='v8.0'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/Users/romain.marcadier/Development/Datadog/orchestrion/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 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build89119916=/tmp/go-build -gno-record-gcc-switches'
```


### What did you do?

The following command works as intended:

```console
$ go build -a github.com/elastic/go-elasticsearch/v8/typedapi/types
```

However if you use any `-toolexec` value, it suddenly fails on Windows:
```console
$ go build -toolexec="D:\\a\\orchestrion\\orchestrion\\bin\\orchestrion.exe" -a github.com/elastic/go-elasticsearch/v8/typedapi/types
fork/exec D:\\a\\orchestrion\\orchestrion\\bin\\orchestrion.exe: The filename or extension is too long.
```

This is because the `github.com/elastic/go-elasticsearch/v8/typedapi/types` package contains _a metric ton_ of files, and results in an excessively long command line for Windows.

### What did you see happen?

What we observe is that when there is no `-toolexec` the Windows arguments size limit (of 32KiB) is "worked around" by passing an `@args-file` value that contains all the arguments instead of passing the arguments list itself directly...

Unfortunately, the use of `-toolexec` appears to disable this mechanism, making it impossible to build packages with very large amounts of files in them on Windows.

I have verified this behavior using `strace` on a Linux machine... I expect the same behavior happens on Windows as well and explains our issue here...

### What did you expect to see?

I expect a package that successfully builds without `-toolexec` to also be build-able with `-toolexec`, and for the `-toolexec` tool to actually also receive the arguments file stand-in when appropriate.
Repository: next.js
Issue: Confusing error when calling a server function from use cache scope
Labels: bug,invalid link,dynamicIO

### Link to the code that reproduces this issue

n/a

### To Reproduce

```js
export default async function Main({ searchParams }) {
  const data = await searchParams;
  return (
    <Parent getStuff={() => <h2>huh {data.foo}</h2>}></Parent>
  );
}
```

```js
"use cache";

export default async function Parent({ getStuff }) {
  console.log("render Parent");
  return (
    <>
      {getStuff()}
    </>
  );
}
```

produces

```
[ Cache ] Error: Attempted to call a temporary Client Reference from the server but it is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.
```

The confusing part is that the Client/Server wording here is wrong because it's really about Server/Cache.

### Current vs. Expected behavior

n/a

### Provide environment information

```bash
n/a
```


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

Developer Experience

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

next dev (local)

### Additional context

_No response_
Repository: react
Issue: Confusing error when calling a temporary reference function from a non-Client environment
Labels: React Core Team,React 19

See https://github.com/vercel/next.js/issues/71859.
Repository: pytorch
Issue: DISABLED test_byte_mask (__main__.TestAdvancedIndexing)
Labels: triaged,module: flaky-tests,module: macos,skipped,module: mps

Platforms: mac, macos

This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_byte_mask&suite=TestAdvancedIndexing&limit=100) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/32037936303).

Over the past 3 hours, it has been determined flaky in 6 workflow(s) with 6 failures and 6 successes.

**Debugging instructions (after clicking on the recent samples link):**
DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs.
To find relevant log snippets:
1. Click on the workflow logs linked above
2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
3. Grep for `test_byte_mask`
4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.



<details><summary>Sample error message</summary>

```
Traceback (most recent call last):
  File "/Users/ec2-user/runner/_work/pytorch/pytorch/test/test_mps.py", line 11258, in test_byte_mask
    self.assertEqual(len(w), 2)
  File "/Users/ec2-user/runner/_work/_temp/conda_environment_11492285962/lib/python3.9/site-packages/torch/testing/_internal/common_utils.py", line 3903, in assertEqual
    raise error_metas.pop()[0].to_error(
AssertionError: Scalars are not equal!

Expected 2 but got 3.
Absolute difference: 1
Relative difference: 0.5

To execute this test, run the following from the base repo dir:
    python test/test_mps.py TestAdvancedIndexing.test_byte_mask

This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
```

</details>


Test file path: `test_mps.py`

cc @clee2000 @malfet @albanD @kulinseth @DenisVieriu97 @jhavukainen
Repository: node
Issue: Invalid sqlite behavior about unused named parameter
Labels: discuss,sqlite

### Version

all

### Platform

```text
all
```


### Subsystem

sqlite

### What steps will reproduce the bug?

IMO, there is an issue with SQLite's behavior, as highlighted by the current test (https://github.com/nodejs/node/blob/main/test/parallel/test-sqlite-named-parameters.js#L17-L32):

```
  test('throws on unknown named parameters', (t) => {
    const db = new DatabaseSync(nextDb());
    t.after(() => { db.close(); });
    const setup = db.exec(
      'CREATE TABLE types(key INTEGER PRIMARY KEY, val INTEGER) STRICT;'
    );
    t.assert.strictEqual(setup, undefined);

    t.assert.throws(() => {
      const stmt = db.prepare('INSERT INTO types (key, val) VALUES ($k, $v)');
      stmt.run({ $k: 1, $unknown: 1 });
    }, {
      code: 'ERR_INVALID_STATE',
      message: /Unknown named parameter '\$unknown'/,
    });
  });

```


### How often does it reproduce? Is there a required condition?

NA

### What is the expected behavior? Why is that the expected behavior?

IMO, as mentioned earlier [here](https://github.com/nodejs/node/pull/53752#discussion_r1803814451), it should be permissible to set more parameters (such as the `$unknown` parameter of this test) than those actually used in the SQL string.
This approach is utilized by better-sqlite3 and is particularly useful when conditionally constructing your WHERE clause with parameters that may or may not be used in the final query.

The code and the associated error test should be modified to throw an error regarding the `$v` named parameter instead, similar to the behavior of better-sqlite3.

### What do you see instead?

NA

### Additional information

_No response_
Repository: langchain
Issue: How do I use langchain for vllm serve tool calls？
Labels: stale

### Checked other resources

- [X] I added a very descriptive title to this issue.
- [X] I searched the LangChain documentation with the integrated search.
- [X] I used the GitHub search to find a similar question and didn't find it.
- [X] I am sure that this is a bug in LangChain rather than my code.
- [X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

### Example Code

```
llm = ChatOpenAI(
    api_key="api_key", 
    temperature=0.1, 
    top_p=0.7,
    max_tokens=8192,
    model="glm4-9b-chat", 
    base_url="http://host:port/v1/"
)

tools = {"weather": weather}

context = []
def process_query(query):
    
    global context
    context.append({"role": "user", "content": query})
    
    response = llm_with_tools.invoke(context)
    print(response)
    
    if response.tool_calls:
        tool_call = response.tool_calls[0]
        tool_name = tool_call["name"]
        tool = tools[tool_name] 
        tool_arguments = tool_call["args"]
        tool_result = tool(**tool_arguments) 
        
        context.append({"role": "system", "content": f"你可以通过工具得到实时的天气信息，工具得到的结果是：\n\n{tool_result}\n\n，这个结果绝对准确，你可以直接使用该结果进行表述。"})
        
        response = llm.invoke(context)

    context.append({"role": "assistant", "content": response.content})
    
    return response.content

query_1 = "今天深圳的天气怎么样?"
response_1 = process_query(query_1)
print("LLM_response:", response_1)
```
#### vLLM command：
`vllm serve glm-4-9b-chat_path --served-model-name glm4-9b-chat --host xxx --port xxx --max_model_len=128000 --tensor_parallel_size 2 --gpu_memory_utilization 0.4 --trust_remote_code`

### Error Message and Stack Trace (if applicable)

*

### Description

I try to use `vLLM serve` and langchain to make `function call`.

### System Info

`vLLM=0.6.3`
Repository: langchain
Issue: AzureSearch error
Labels: Ɑ: vector store

### Checked other resources

- [X] I added a very descriptive title to this issue.
- [X] I searched the LangChain documentation with the integrated search.
- [X] I used the GitHub search to find a similar question and didn't find it.
- [X] I am sure that this is a bug in LangChain rather than my code.
- [X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

### Example Code

```
index_name: str = "langchain-vector-demo"
vector_store: AzureSearch = AzureSearch(
    azure_search_endpoint=vector_store_address,
    azure_search_key=vector_store_password,
    index_name=index_name,
    embedding_function=embeddings.embed_query,
)
```

### Error Message and Stack Trace (if applicable)

Exception ignored in: <function AzureSearch.__del__ at 0x000002B588070FE0>                                      
Traceback (most recent call last):
  File "C:\Users\n\AppData\Local\Programs\Python\Python311\Lib\site-packages\langchain_community\vectorstores\azuresearch.py", line 393, in __del__
  File "C:\Users\n\AppData\Local\Programs\Python\Python311\Lib\asyncio\events.py", line 761, in get_event_loop_policy
  File "C:\Users\n\AppData\Local\Programs\Python\Python311\Lib\asyncio\events.py", line 754, in _init_event_loop_policy
ImportError: sys.meta_path is None, Python is likely shutting down

### Description

Made everything as here:

https://python.langchain.com/docs/integrations/vectorstores/azuresearch/

when calling it i get error like above

### System Info

python 3.12
langchain latest
Repository: godot
Issue: Godot crashes when the logger is configured to log in a relative path
Labels: bug,topic:core,crash

### Tested versions

Reproducible in 4.3.stable, 4.2.1.stable, and likely in older versions.

### System information

Windows 10, Godot 4.3

### Issue description

Godot crashes when the logger is configured to write log files in a path that is relative to the project or working directory path. 

It only fails when it needs to create a folder. If the folder already exists, the logger works correctly.


### Steps to reproduce

- Start with an empty project
- Go to Project Settings and enable Advanced Settings
- Set the `Debug>File Logging>Log Path` setting to any of these:
  - `logs/my_project.log`
  - `res://logs/my_project.log`
- Run the project


### Minimal reproduction project (MRP)

An empty project will do
Repository: go
Issue: x/tools/gopls: "edit does not belong to syntax of package %q" bug in golang.Rename
Labels: NeedsInvestigation,gopls,Tools,gopls/telemetry-wins

```
#!stacks
"bug.Reportf" && "golang.(*renamer).update:+45"
```
Issue created by [stacks](https://pkg.go.dev/golang.org/x/tools/gopls/internal/telemetry/cmd/stacks).
```go
		pgf, ok := enclosingFile(r.pkg, item.node.Pos())
		if !ok {
			bug.Reportf("edit does not belong to syntax of package %q", r.pkg)
			continue
		}
```
This stack `4VHVlA` was [reported by telemetry](https://storage.googleapis.com/prod-telemetry-merged/2024-10-24.json):

- `gopls/bug`
- [`golang.org/x/tools/gopls/internal/util/bug.report:+35`](https://cs.opensource.google/go/x/tools/+/gopls/v0.16.2:gopls/internal/util/bug/bug.go;l=109)
- [`golang.org/x/tools/gopls/internal/util/bug.Reportf:+1`](https://cs.opensource.google/go/x/tools/+/gopls/v0.16.2:gopls/internal/util/bug/bug.go;l=54)
- [`golang.org/x/tools/gopls/internal/golang.(*renamer).update:+45`](https://cs.opensource.google/go/x/tools/+/gopls/v0.16.2:gopls/internal/golang/rename.go;l=1056)
- [`golang.org/x/tools/gopls/internal/golang.renameObjects:+31`](https://cs.opensource.google/go/x/tools/+/gopls/v0.16.2:gopls/internal/golang/rename.go;l=998)
- [`golang.org/x/tools/gopls/internal/golang.renameOrdinary:+99`](https://cs.opensource.google/go/x/tools/+/gopls/v0.16.2:gopls/internal/golang/rename.go;l=392)
- [`golang.org/x/tools/gopls/internal/golang.Rename:+18`](https://cs.opensource.google/go/x/tools/+/gopls/v0.16.2:gopls/internal/golang/rename.go;l=237)
- [`golang.org/x/tools/gopls/internal/server.(*server).Rename:+17`](https://cs.opensource.google/go/x/tools/+/gopls/v0.16.2:gopls/internal/server/rename.go;l=36)
- [`golang.org/x/tools/gopls/internal/protocol.serverDispatch:+489`](https://cs.opensource.google/go/x/tools/+/gopls/v0.16.2:gopls/internal/protocol/tsserver.go;l=657)
- [`golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3:+5`](https://cs.opensource.google/go/x/tools/+/gopls/v0.16.2:gopls/internal/protocol/protocol.go;l=160)
- [`golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4:+52`](https://cs.opensource.google/go/x/tools/+/gopls/v0.16.2:gopls/internal/lsprpc/lsprpc.go;l=509)
- [`golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2`](https://cs.opensource.google/go/x/tools/+/gopls/v0.16.2:internal/jsonrpc2/handler.go;l=35)
- [`golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3`](https://cs.opensource.google/go/x/tools/+/gopls/v0.16.2:internal/jsonrpc2/handler.go;l=103)
- `runtime.goexit:+0`
```
golang.org/x/tools/gopls@v0.16.2 go1.23.0 darwin/arm64 vscode (1)
```
Repository: deno
Issue: Spelling mistake Genereate in deno --help
Labels: bug,good first issue

Version: Deno 2.0.2

In `deno --help` it says `Genereate and show documentation for a module or built-ins`, but it should probably start with `Generate` rather than `Genereate`. I had a Google just in case `Genereate` was a thing but it looks like it's just a spelling mistake.

**Steps to reproduce**
1. Type in `deno --help`
Repository: PowerToys
Issue: Advance Paste copy paste form PDF - remove txt breaks
Labels: Needs-Triage

### Description of the new feature / enhancement

Option to paste with breaks removed from text that has been copied from PDF.

### Scenario when this would be used?

Copy any text from pdf - the text is not connected due to breaks between sentences. This will increase life and sustain happiness of majority of adults.

### Supporting information

_No response_
Repository: angular
Issue: Spelling Error in Angular Docs: "setup" vs "set up"
Labels: area: docs

### Describe the problem that you experienced

In English, "setup" is a noun and "set up" is a verb. The docs frequently use the wrong word which is distracting.

For example, on [this page](https://angular.dev/tutorials/learn-angular/15-forms), it says "you'll learn how to setup a form." It should read "you'll learn how to **set up** a form."

I will submit a PR to fix this minor issue.

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

https://angular.dev/tutorials/learn-angular/15-forms

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

_No response_

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

_No response_

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

_No response_

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

_No response_

### 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: kubernetes
Issue: When containers use memory backed tmpfs and hit a OOM limit they will keep OOM on restarts.
Labels: kind/bug,priority/backlog,sig/node,triage/accepted

### What happened?

While aiming to promote SizeMemoryBackedVolumes to stable, tim brought up a point about what would happen if a pod that hit a OOM due to tmpfs memory limits would keep OOM as the pages are still kept around.

He is correct. If a pod hits a OOM limit with tmpfs it will keep OOM and never purge that memory

### What did you expect to happen?

I would expect the tmpfs to be empty on a restart of the container.

### How can we reproduce it (as minimally and precisely as possible)?

I used kind 1.30.

```yaml
apiVersion: v1
kind: Pod
metadata:
  name: example
  labels:
    app: test-pd
spec:
  restartPolicy: OnFailure
  securityContext:
    seccompProfile:
      type: RuntimeDefault
  containers:
  - image: busybox
    command:
      - /bin/sh
      - -c
      - |
         sleep infinity
    name: test-pd
    resources:
      limits:
        memory: 2Gi
    volumeMounts:
    - mountPath: /dev/shm
      name: dshm
    securityContext:
      allowPrivilegeEscalation: false
      capabilities:
        drop:
        - ALL
  volumes:
  - name: dshm
    emptyDir:
      medium: Memory
      sizeLimit: 4Gi
```

kubectl exec -it example -- sh
cd /dev/shm/
dd if=/dev/zero of=filename bs=1024 count=2GB
command terminated with exit code 137

In this case, the pod is unable to start again and it gets stuck with:

```
7s          Warning   Failed                    pod/example               Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: container init was OOM-killed (memory limit too low?): unknown
```

### Anything else we need to know?

This is probably a long outstanding issue so its unclear if this will be fixed as a bug.

### Kubernetes version

<details>

```console
$ kubectl version
1.30
```

</details>


### Cloud provider

<details>
na
</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: PowerToys
Issue: Keyboard manager problem
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.82

### Installation method

GitHub

### Running as admin

None

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

I set up a different/simplified keyboard shortcut for win+shift+s, then removed it, and now that Windows shortcut no longer works. I have to set up the same shortuct win+shift+s to win+shift+s to make it work.

### ✔️ Expected Behavior

win+shift+s open snipping tool

### ❌ Actual Behavior

Typing the shortcut nothing happens

### Other Software

_No response_
Repository: excalidraw
Issue: Dark mode in the url #dark or ?theme=dark
Labels: enhancement

it is painful to see white bg page when we use web embedded and it does feel good while presenting so is there a way to force that to use dark mode ? If yes then do guide please i can even try to rebuild from source if needed but definitely need solution for that to save eyes :-))
Repository: godot
Issue: Scene and Resource files invisibly override non-exported variables
Labels: bug,topic:editor

### Tested versions

- Reproducible in: 4.3 stable

### System information

Godot v4.3.stable - Arch Linux

### Issue description

Scene and Resource files (.tscn and .tres) can set variables that aren't marked for `@export`. This seems relatively harmless until you remove the `@export` keyword from a variable during code refactoring: every scene that overrides the variable will continue doing so _even though you can't see it in the inspector anymore._

Saving the affected scene automatically fixes the problem, so it's easy to solve by accident or if you grep/edit .tscn files in an external editor. But if you're not lucky or comfortable tinkering with Godot's files outside it, these phantom values are intractable.

### Steps to reproduce

1. Create a scene or resource with an `@export` variable in its script.
2. Set the variable in the inspector and save the scene/resource in its own file.
3. _Close the file._ Do not open and resave it after this.
4. Remove `@export` from the script.
5. Run the project with the scene or resource instantiated. Its variable will continue to be silently overwritten.

Alternatively, just append something like this to a .tscn file:
`non_exported_variable = "Incorrect value you can't see in the inspector"`

### Minimal reproduction project (MRP)

[bad_math.zip](https://github.com/user-attachments/files/17522612/bad_math.zip)
Repository: PowerToys
Issue: Unexpected file lock when Unity packman installs com.unity.burst
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.85.1

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

General

### Steps to reproduce

1. Create empty Unity project
2. Open Unity Editor
3. Open Package Manager
4. Install `com.unity.barracuda@3.0.0` (or any package dependent on `com.unity.burst`)
5. **Sometimes**, the error happens, you may need to make steps from the start multiple times
6. Close PowerToys completely
7. The issue will never happen

### ✔️ Expected Behavior

Package installs without errors

### ❌ Actual Behavior

When PowerToys are open (in tray), the following error MAY appear:

```
An error occurred while resolving packages:
  One or more packages could not be added to the local file system:
    com.unity.burst: EBUSY: resource busy or locked, open 'C:\Users\kezzyhko\Desktop\FluctioSimTest\Library\PackageCache\.tmp-19776-3dH4eZB11v7E\copy\.Runtime\burst-lld-16-hostwin-arm64.exe'
```

### Other Software

Unity Editor (version does not really matter, I tested on latest Unity 6, but it also happened on earlier versions)
Repository: godot
Issue: Random UI elements of the editor do not work with touch events
Labels: bug,topic:editor,usability,topic:input

### Tested versions

Godot 4.3 Stable

### System information

Windows 10 x64, Laptop with touchscreen (Win Max 2)

### Issue description

![image](https://github.com/user-attachments/assets/6c5fb0d2-4506-41cd-803e-b63d77ab5413)

For example, in Project Launcher we can click on Create button to get this window, but its buttons (Browse, Create and edit, and Cancel) and text field are ignoring touch events completely. Similar things occur in the editor itself (touch clicks are often ignored, multitouch isn't supported at all, etc.)


### Steps to reproduce

1. Try to make a new project with touchscreen on Windows
2. Get confused

### Minimal reproduction project (MRP)

Not required