sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Changing `CompositorEffect` array in the editor while the game is running gives `Cannot asign contents of array[Object]`
Labels: bug,topic:gdscript,topic:editor

### Tested versions

- Reproducible in 4.3.beta2
- And v4.3.beta.gh-93876 [3ccb371a2] 
(latested dev build at time, merge has no relation with this bug)
- Still reproducible in v4.3.rc1.mono.official [e343dbbcc]

### System information

Windows 10 - Vulkan (forward+) - dedicated

### Issue description

Not anything critical, but
if your game is running and you try to change the Compositor array, Godot will spit out an error saying.
```
E 0:03:29:0436   Array::assign: Cannot assign contents of "Array[Object]" to "Array[Object]".
  <C++ Error>    Method/function failed.
  <C++ Source>   core\variant\array.cpp:245 @ Array::assign()
```
And won't update the running game.


https://github.com/godotengine/godot/assets/3084189/8f1eb03d-06ba-429c-a72e-1e866e2032c8



### Steps to reproduce

- Run the game.
- Change the environment Compositor array (either add or remove something)

Result: Error in output. No crash, but no change either.
Expected: Running game updated with the new Compositor values like it does for other things.

### Minimal reproduction project (MRP)

There is really no need. But here's a project with an empty scene and an environment node.
[compositor-error.zip](https://github.com/user-attachments/files/16098212/compositor-error.zip)
Repository: ant-design
Issue: 请为 <Menu /> 组件添加 renderItem 接口
Labels: 💡 Feature Request,Inactive,unconfirmed

### What problem does this feature solve?

我希望当鼠标悬浮于 `<Menu />` 任意 item 之上时，显示 `<Popconfirm />` 气泡卡片，
虽然 `MenuItemType` 的接口 `label` 能接收 ReactNode 组件，但气泡的显示位置会受到 label 自身长度的影响。

我做了一个示例 Demo 用于表达我的想法：
[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/react-zkzjot?file=demo.tsx)

这个示例中，我在 `<Menu />` 的 `MenuItem[]` 里将 `<Popconfirm />` 传递给 `label` 接口，
当鼠标悬浮在 Menu 的文字上方时，才会出现气泡，并且气泡出现在文字旁边，而不是指向整个 item。
为了达到预期效果，我模仿 `<Menu />` 组件的样式用 CSS 自行实现了一个组件。

![屏幕截图 2024-07-04 202058](https://github.com/ant-design/ant-design/assets/46666511/46dc63c9-3977-4d0c-94f8-3c65917ccccd)

### What does the proposed API look like?

我希望 `<Menu />` 能提供 `<List />` 组件相似的接口：renderItem 用于自定义渲染 MenuItem 。

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: deno
Issue: Bug: node `Server.address()` returns wrong port
Labels: bug,node compat,node:http

Noticed in Koa's test suite that we return the wrong port when calling `Server.address()`. Instead of the actual port we simply return the user supplied value. In case of `0` where the OS will pick the final port this value will be wrong and leads to test failures in Koa's suite. Running the snippet here in Node gives the actual port.

## Steps to reproduce

Run this:

```js
import http from "node:http";

const server = http
  .createServer((req, res) => res.end("hello"))
  .listen(0);

const addr = server.address();
if (addr.port === 0) {
  throw new Error("Didn't return actual port");
}

server.close();
```

Version: Deno 1.44.4 (git 147411e64 )
Repository: PowerToys
Issue: Unable to locate the plugin.json file to get the PluginID's use in my group policy settings.
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.82.0

### Installation method

GitHub

### Running as admin

No

### Area(s) with issue?

General

### Steps to reproduce

N/A

### ✔️ Expected Behavior

I expect there to be a plugin.json file under %LocalAppData%\Microsoft\PowerToys\PowerToys Run\Plugins

### ❌ Actual Behavior

The Plugins folder under %LocalAppData%\Microsoft\PowerToys\PowerToys Run\Plugins is empty

### Other Software

N/A
Repository: deno
Issue: http writes don't work after detaching socket
Labels: bug,node:http

Initially added in https://github.com/denoland/deno/commit/dc16c996dd83164011f3931a8bb49f25624601af. The test reports false positive because of header buffering and doesn't really attempt to send data.

To repro add another `res.write` here:
https://github.com/denoland/deno/blob/147411e64b22fe74cb258125acab83f9182c9f81/tests/unit_node/http_test.ts#L1049-L1050

```
deno test -A --unstable --config=tests/config/deno.json tests/unit_node/http_test.ts --filter=detachSocket

error: TypeError: this[#resolve] is not a function
    at ServerResponse.respond (node:http:1169:18)
    at ServerResponse.write [as _write] (node:http:1072:18)
    at writeOrBuffer (ext:deno_node/_stream.mjs:3956:16)
    at _write (ext:deno_node/_stream.mjs:3901:14)
    at ServerResponse.Writable.write (ext:deno_node/_stream.mjs:3904:14)
    at file:///Users/divy/gh/deno/tests/unit_node/http_test.ts:1053:7
```
Repository: PowerToys
Issue: Task-Oriented Desktop Configuration
Labels: Needs-Triage

### Description of the new feature / enhancement

A PowerToy that enables context-based desktop configurations that facilitate the activities to be completing for that session: gaming, research, development, content creation, etc. These configurations should be easily editable and loaded, similar to how FancyZones can configure and manage desktop window regions.

Virtual Desktop layouts could use different configurations and adjust your PC configuration on the fly by switching the active desktop. These configurations could be synced to your Microsoft account and allow you to organize your configurations into logical groups: device, environment, etc.

## Configuration Ideas

* System performance settings
* Theme settings
* Taskbar layout - the taskbar layouts could be their own configuration with settings for placement, pinned apps, system tray widgets, etc.
* Virtual Desktop layouts

### Scenario when this would be used?

When setting up my desktop environment, it would be helpful if I could think of the layout in terms of multiple scenarios instead of being constrained to a single master layout. When sitting down to accomplish anything on my computer, I could switch to a configuration that's tailored towards what I'm trying to accomplish without any distracting clutter.

### Supporting information

_No response_
Repository: rust
Issue: Tracking issue for future-incompatibility lint `ptr_cast_add_auto_to_object`
Labels: A-lints,T-compiler,C-future-incompatibility,C-tracking-issue,A-raw-pointers,A-trait-objects

<!--
NOTE: For library features, please use the "Library Tracking Issue" template instead.

Thank you for creating a tracking issue! 📜 Tracking issues are for tracking a
feature from implementation to stabilisation. Make sure to include the relevant
RFC for the feature if it has one. Otherwise provide a short summary of the
feature and link any relevant PRs or issues, and remove any sections that are
not relevant to the feature.

Remember to add team labels to the tracking issue.
For a language team feature, this would e.g., be `T-lang`.
Such a feature should also be labeled with e.g., `F-my_feature`.
This label is used to associate issues (e.g., bugs and design questions) to the feature.
-->

This is a tracking issue for the `ptr_cast_add_auto_to_object` lint, which was added in #120248.

This lint detects casts of raw pointers to trait objects, which add auto traits. Adding auto traits to trait objects may cause UB when [`#![feature(arbitrary_self_types)]`](https://github.com/rust-lang/rust/issues/44874) is used.

## Example

```rust
#![feature(arbitrary_self_types)]
trait Trait {
    fn f(self: *const Self)
    where
        Self: Send;
}

impl Trait for *const () {
    fn f(self: *const Self) {
        unreachable!()
    }
}

fn main() {
    let unsend: *const () = &();
    let unsend: *const dyn Trait = &unsend;
    let send_bad: *const (dyn Trait + Send) = unsend as _;
    send_bad.f(); // this crashes, since vtable for `*const ()` does not have an entry for `f`
    //~^ warning: adding an auto trait `Send` to a trait object in a pointer cast may cause UB later on
}
```

In case your usage is sound (e.g. because the trait doesn't have auto trait bounds), you can replace cast with a transmute to suppress the warning:

```rust
trait Cat {}
impl Cat for *const () {}

fn main() {
    let unsend: *const () = &();
    let unsend: *const dyn Cat = &unsend;
    let _send: *const (dyn Cat + Send) = unsafe {
        // Safety:
        // - Both types are pointers, to the same trait object (and thus have the same vtable)
        // - `Cat` does not have methods with `Send` bounds
        std::mem::transmute::<*const dyn Cat, *const (dyn Cat + Send)>(unsend)
    };
    // meow
}
```
Repository: transformers
Issue: Confusing documentation of input_ids and past_key_values in model.forward
Labels: WIP

### System Info

Current documentation

### Who can help?

_No response_

### Information

- [ ] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

The docs (e.g. for mistral forward method) state that :

> If past_key_values is used, optionally only the last decoder_input_ids have to be input (see past_key_values).

> If past_key_values are used, the user can optionally input only the last input_ids (those that don’t have their past key value states given to this model) of shape (batch_size, 1) instead of all input_ids of shape (batch_size, sequence_length).

https://huggingface.co/docs/transformers/main/model_doc/mistral#transformers.MistralModel.forward

### Expected behavior

It is my understanding that it is in fact not **optional** but **obligatory** to pass only the last input ids (those that don’t have their past key value states given to this model), as there is no handling of the case where full input ids are passed. C.f. https://discuss.huggingface.co/t/correct-input-ids-when-passing-past-key-values/92044
Repository: PowerToys
Issue: Enviroment Variable append to Variable list (i.e. Path) 
Labels: Idea-Enhancement,Needs-Triage,Product-Environment Variables

### Description of the new feature / enhancement

I manage some old projects that set installation path as variable (i.e. JAVA_HOME) and than set their bin on path (%JAVA_HOME%/bin). I was constructing their profiles as this would improve my workflow greatly but I stumbled on a barrier.

There is no way to add to an existing list variable (like path) via profile, If I try to create a Path entry on my profile it will substitute all path elements while it's active and if I copy an exisitng one it will not update if my path is ever changed so I need to keep both on sync. My request would be for the ability to create a Variable on profile and set it to "append" instead of substitute.

### Scenario when this would be used?

So this way when I activate the profile it would set, for example, JAVA_HOME = C:/JAVA123 and would append to path the entry %JAVA_HOME%/bin. This is needed as the path variables are resolved on variable load, if I let the non-profile path have %JAVA_HOME%/bin even if I later set JAVA_HOME it will not load to Path. But reloading path is not sufficient as I can have any kind of dependence chain or multiple entries that I would like to add to path on different profiles that could be  active at the same time.

### Supporting information

_No response_
Repository: ollama
Issue: Upper token limit scales with number of parallel requests
Labels: bug

### What is the issue?

It should be based on single parallel requests' context size

### OS

_No response_

### GPU

_No response_

### CPU

_No response_

### Ollama version

_No response_
Repository: stable-diffusion-webui
Issue: 'NoneType' object has no attribute 'params'
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [ ] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [ ] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [X] The issue has been reported before but has not been fixed yet

### What happened?

Things happen suddenly. webui used to run. Maybe something in my enviroment has changed...

Try for 4 hours, and found this:

in sd_models.py line 550,

# For UnCLIP-L, override the hardcoded karlo directory
    if hasattr(sd_config.model.params, "noise_aug_config") and hasattr(sd_config.model.params.noise_aug_config.params, "clip_stats_path"):
        karlo_path = os.path.join(paths.models_path, 'karlo')
        sd_config.model.params.noise_aug_config.params.clip_stats_path = sd_config.model.params.noise_aug_config.params.clip_stats_path.replace("checkpoints/karlo_models", karlo_path)

this make webui.bat can't load any checkpoint at all. Just can't launch.
the error says,

if hasattr(sd_config.model.params, "noise_aug_config") and hasattr(sd_config.model.params.noise_aug_config.params, "clip_stats_path"):
AttributeError: 'NoneType' object has no attribute 'params'

Comment it and fix.
What's this and why does prevent the checkpoint from loading?
And what's unclip-L, is it important? Why is everything fine before?
What changing in my enviroment can make these line a bug?
I've never changed anything in webui. codes or files.

### Steps to reproduce the problem

None

### What should have happened?

None

### What browsers do you use to access the UI ?

_No response_

### Sysinfo

win10 torch2.3 python310

### Console logs

```Shell
None
```


### Additional information

_No response_
Repository: godot
Issue: MultiplayerSynchronizer throws errors when replicating a variable via code of an existing object in the server to the newly connected client
Labels: bug,needs testing,topic:multiplayer

### Tested versions

4.3.beta2

### System information

Windows 11 - Godot 4.3.beta2 - Forward+

### Issue description

I just posted an issue which got resolved pretty easily https://github.com/godotengine/godot/issues/93844 and this situation is much like the previous one, the problem now is that, when you instantiate a child right after its parent is created, if the child tries to synchronize a variable it will throw the errors shown in the image below.
This errors occurs only when you are doing this on an existing entity on the server. which tries to synchronize itself to the new client.

![image](https://github.com/godotengine/godot/assets/4398470/18daf267-1805-46d9-922d-dbaa2a567399)


### Steps to reproduce

Open a server and a client and observe the errors
the problem is in the comment "PROBLEM"

### Minimal reproduction project (MRP)

[minimal project.zip](https://github.com/user-attachments/files/16101504/minimal.project.zip)
Repository: pytorch
Issue: randperm + torch.compile + SAC + CUDA graphs doesn't work
Labels: triaged,module: cuda graphs,oncall: pt2

### 🐛 Describe the bug

I have a function that uses randperm and I want to run it in a CUDA graph via torch.compile after applying selective activation checkpoitning:
```
import torch
from xformers.checkpoint import selective_checkpoint_wrapper

def my_fn(t, w):
    b, _ = t.shape
    idxs = (torch.randperm(b, device=t.device))[:b // 2]
    sub_in = t[idxs]
    sub_out = torch.matmul(sub_in, w)
    out = torch.index_add(t, dim=0, source=sub_out, index=idxs, alpha=0.5)
    return out

fn = torch.compile(
    selective_checkpoint_wrapper(
        my_fn,
        policy_fn=lambda mode, func, *args, **kwargs: "randperm" in str(func)
    ),
    options={"triton.cudagraphs": True}
)

t = torch.randn((512, 2048), dtype=torch.bfloat16, device="cuda", requires_grad=True)
w = torch.randn((2048, 2048), dtype=torch.bfloat16, device="cuda", requires_grad=True)
fn(t, w.t())
```
But this gives me:
```
skipping cudagraphs due to skipping cudagraphs due to cpu device (run_and_save_rng_state)
```
and when running this code in the profiler I observe that indeed it isn't launched from within a CUDA graph.

### Versions

I have PyTorch 2.5.0.dev20240630 py3.10_cuda12.1_cudnn9.1.0_0 from conda.

cc @mcarilli @ezyang @eellison @penguinwu @anijain2305 @chauhang
Repository: rust
Issue: ICE during async closure experiments
Labels: I-ICE,T-compiler,C-bug

[rustc-ice-2024-07-04T18_10_25-10188.txt](https://github.com/user-attachments/files/16101950/rustc-ice-2024-07-04T18_10_25-10188.txt)

### Code

Minimizing the code is nontrivial. Let me know if it is required to make a branch that reproduces the issue.

### Meta

```
nightly-x86_64-pc-windows-msvc unchanged - rustc 1.81.0-nightly (aa1d4f682 2024-07-03)
```

### Error output

See attached rust-ice.
Repository: next.js
Issue: Rewrite does not set the correct x-forwarded-host in Vercel
Labels: bug,Middleware

### Link to the code that reproduces this issue

https://github.com/hector/middleware-web

### To Reproduce

The basic code to trigger this bug is simply to use a rewrite in the middleware of Next.js like this:
```js
return NextResponse.rewrite(url, { request: req });
```

If you click on this link https://middleware-web.vercel.app/?rewrite=https://request-headers-web.vercel.app/ you are reproducing this issue.

This is what is happening:
- We are accessing the website https://middleware-web.vercel.app/, which will do a rewrite in the middleware for the url written in the query param "rewrite"
- We are pointing the rewrite to https://request-headers-web.vercel.app/ which is a website that simply prints the request headers it receives

Code of https://middleware-web.vercel.app/ is public in this repo https://github.com/hector/middleware-web
Code of https://request-headers-web.vercel.app/ is public in this repo https://github.com/hector/request-headers-web

### Current vs. Expected behavior

I would expect to receive the following headers in https://request-headers-web.vercel.app/ server:
- **host**: request-headers-web.vercel.app
- **x-forwarded-host**: middleware-web.vercel.app

This is what I is actually received (it is printed in the page and can be easily seen):
- **host**: request-headers-web.vercel.app
- **x-forwarded-host**: request-headers-web.vercel.app

The header x-forwarded-host is not set to the original host before the rewrite.
MDN Reference here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 22.6.0: Mon Apr 22 20:51:27 PDT 2024; root:xnu-8796.141.3.705.2~1/RELEASE_ARM64_T6020
  Available memory (MB): 16384
  Available CPU cores: 10
Binaries:
  Node: 20.13.1
  npm: 10.5.2
  Yarn: 1.22.22
  pnpm: 9.3.0
Relevant Packages:
  next: 15.0.0-canary.54 // Latest available version is detected (15.0.0-canary.54).
  eslint-config-next: N/A
  react: 19.0.0-rc-6f23540c7d-20240528
  react-dom: 19.0.0-rc-6f23540c7d-20240528
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Middleware

### Which stage(s) are affected? (Select all that apply)

Vercel (Deployed)

### Additional context

_No response_
Repository: angular
Issue: Update CSP_NONCE value dynamically on each API request using angular 16
Labels: area: security,cross-cutting: CSP

### Describe the problem that you experienced

Hello Angular Community,

I am working on implementing strict CSP (Content Security Policy) remediation in my Angular 16 application. Our server sends a nonce value in the CSP response header with each request. This nonce is used in place of `unsafe-inline` and `unsafe-eval` within the CSP header, formatted as `nonce-dynamicnonce`.

My challenge is to dynamically update the `CSP_NONCE` injection token with the new nonce value on each request. The official Angular documentation explains how to assign a nonce to `CSP_NONCE` during the bootstrapping phase, but I need guidance on how to update it dynamically for every request. If the `CSP_NONCE` is not updated with each request, the scripts will be blocked by the browser because the nonce in the response header will not match the current `CSP_NONCE` value.

Any advice or examples on how to achieve this dynamic update would be greatly appreciated.

Thank you!

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

https://angular.dev/best-practices/security#content-security-policy

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

https://angular.dev/best-practices/security#content-security-policy

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

There is no way given to update CSP_NONCE value dynamically on each api request.

### 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: node
Issue: Promise rejection in timeout (versus module-level) treated as unhandled by debugger
Labels: v8 engine,promises,debugger

### Version

v22.4.0

### Platform

```text
Darwin Hypothesis.local 24.0.0 Darwin Kernel Version 24.0.0: Thu Jun 20 20:36:19 PDT 2024; root:xnu-11215.0.115.501.3~1/RELEASE_ARM64_T8103 arm64
```


### Subsystem

_No response_

### What steps will reproduce the bug?

Create this script:
```js
setTimeout(() => {
  Promise.reject().catch(() => { })
}, 1)
```
And run it in the debugger with `break on Uncaught` enabled.

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

Every time. Note this does *not* happen if `Promise.reject()` is at top level instead of wrapped in `setTimeout()`.

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

It is expected that the debugger does (1) not pause on such a promise or (2) only pauses on such a promise if `breakOnException` is enabled.

The [HTML spec](https://html.spec.whatwg.org/multipage/webappapis.html#unhandled-promise-rejections) guarantees that promise rejections are *not* considered unhandled if a handler is then synchronously attached.

### What do you see instead?

Node breaks synchronously on the creation of the rejected promise. Similar issues happen when using the VSCode debugger and Chrome debugger.

```
node inspect promisetest.js
< Debugger listening on ws://127.0.0.1:9229/d18cff1f-6886-4ff6-9a4f-404128bd150a
< For help, see: https://nodejs.org/en/docs/inspector
< 
< Debugger attached.
< 
 ok
Break on start in promisetest.js:1
> 1 setTimeout(() => {
  2   Promise.reject().catch(() => { })
  3 }, 1)
debug> breakOnUncaught
debug> c
promiseRejection in promisetest.js:2
  1 setTimeout(() => {
> 2   Promise.reject().catch(() => { })
  3 }, 1)
  4 
```

### Additional information

A downstream issue where this interferes with usage of the web streams API: #51093

I too have been incredibly confused by this, as it makes it seem like even *correct* usage of promises is developer error.

VSCode reports this as "Exception has occurred" instead of "promiseRejection".
Repository: rust
Issue: [rustdoc] Feature Request: Allow code wrapping
Labels: T-rustdoc,A-rustdoc-ui,T-rustdoc-frontend

Would be nice to have a setting (or just a button) that could have the code wrap, gets tiring if you are reading lots of code on your phone to scroll back and forth.

My bad if this has been requested before, I didn't see it in any issues yet