sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: TXT files used for prefetch are not handled properly in static deploys
Labels: bug,Navigation

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/hungry-nova-ssjf9r

### To Reproduce

1. Compile an application using NextRoute + app routing as export: 'static'
2. Access the site

### Current vs. Expected behavior

.txt artifacts are created for what it seems to be a prefetching strategy and these files names are un-versioned (or un-hashed) into the root where the page can be found. Because of this, these files can't be cached or otherwise an update on the overall site will result in a broken state where chunks are not found and a browser force pull is needed.

This is [the part of the code](https://github.com/vercel/next.js/blob/4d4b45ec2c099634eba8f7defe7a39aa876b8af7/pa%5B%E2%80%A6%5Dt/src/client/components/router-reducer/fetch-server-response.ts) that tries to solve for the cdn case but on static deploys this doesn't really change and the url + parameter ends up always being the same.

In our case that hash ends up being:

```typescript
> hexHash(['1', '%5B%22%22%2C%7B%22children%22%3A%5B%22__PAGE__%22%2C%7B%7D%5D%7D%2Cnull%2Cnull%2Ctrue%5D', '/'].join(','));
'acgkz'
```

### Provide environment information

```bash
irrelevant
```


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

App Router, Routing (next/router, next/navigation, next/link)

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

Other (Deployed)

### Additional context

_No response_
Repository: flutter
Issue: Warn people when their `AndroidManifest.xml` file doesn't contain the string `android:taskAffinity`
Labels: platform-android,P2,team-android,triaged-android

Subcomponent of https://github.com/flutter/flutter/issues/63559.

We should notice when an `AndroidManifest.xml` file does not include the string `android:taskAffinity` and the minSdkVersion is not sufficiently high for it to not matter, and print a warning pointing people to https://developer.android.com/privacy-and-security/risks/strandhogg, something like this:

```
Warning: this application's AndroidManifest.xml file leaves it vulnerable to the StrandHogg v1 and
StrandHogg v2 Android vulnerabilities.
To mitigate the StrandHogg v1 vulnerability, set "android:taskAffinity" to the empty string in the
<activity> tag. To mitigate the StrandHogg v2 vulnerability, the minSdkVersion should be set to 28
or higher.
For more details, see: https://developer.android.com/privacy-and-security/risks/strandhogg
This warning can be silenced by including the string "android:taskAffinity" somewhere in the app's
AndroidManifest.xml file or by setting the "minSdkVersion" to a sufficiently high value.
```
Repository: flutter
Issue: Consider if our template minimum should be above our supported minimum, with a comment explaining why
Labels: platform-android,P2,team-android,triaged-android

Subcomponent of https://github.com/flutter/flutter/issues/63559.

We should consider whether to default to a minSdkVersion sufficient to mitigate the StrandHogg vulnerability. We would continue to support (and test) older versions, but our default template would default to not including it.

If we do this, we should leave a comment in the `AndroidManifest.xml` file that looks something like:

```
// The minimum Android version supported by Flutter is {{minSupportedSdkVersion}}, but
// we default to {{minSdkVersion}} to mitigate the StrandHogg vulnerability:
//    https://developer.android.com/privacy-and-security/risks/strandhogg
// If your application is not a high-value target, consider lowering the minSdkVersion
// to {{minSupportedSdkVersion}} to extend your reach to more users.
minSdk = {{minSdkVersion}}
```
Repository: flutter
Issue: Document that older Android versions have unmitigatable security risks on our supported platforms page
Labels: P2,team-android,triaged-android

Subcomponent of https://github.com/flutter/flutter/issues/63559.

We should update our public documentation to mention that versions of Android older than Android 9 (aka Pie, SDK level 28) leave applications vulnerable to the StrandHogg attack, and then link to <https://developer.android.com/privacy-and-security/risks/strandhogg>.
Repository: flutter
Issue: CI should run tests with the Flutter SDK in a directory that uses a space character
Labels: team-infra,P2,triaged-infra

We used to ensure that tests ran in a directory with a space, because it turns out it's very easy to accidentally write code that breaks when paths contain spaces. We stopped doing this at some point during the migration to Luci.

We should re-enable this.

Once we do this, we can re-enable the relevant test, as is done for https://github.com/flutter/flutter/issues/87285.
Repository: TypeScript
Issue: Inconsistent replacement span inclusion between member completion types
Labels: Bug,Help Wanted,Domain: Completion Lists

### 🔎 Search Terms

replacement span member completion optional insert mode replace suggest

### 🕗 Version & Regression Information

- This is the behavior in every version I tried

### ⏯ Playground Link

https://www.typescriptlang.org/play?ts=5.5.0-dev.20240301#code/C4TwDgpgBAysCGxoF4oG8BQUoQCYHMIAlCAMwGcAuKc4AJwEsA7fAbQF0BuLKJge1zEyVGvWZsuGAL7cMAYz5NaoxBGpxVUVJmz9BJCtQ4AaHkMNQT02QqXAVSAEzqESLeh57zIq9gBE3n5G7KYyGEA

### 💻 Code

```ts
type State = {
  edgeRefs: string[];
  nodeRefs: string[];
};

const state: State = {
  nodeRefs: [],
  e/*1*/Refs: [],
};

const state2: State = {
  nodeRefs: [],
  "e/*2*/Refs": [],
};
```


### 🙁 Actual behavior

Completion at 1 comes with an optional replacement range but no entry-level replacement range. Completion at 2 comes with both

### 🙂 Expected behavior

I see both of those to be the same type of completions - they both are meant to suggest members. For that reason, I'd expect both of those to have very similar payload

### Additional information about the issue

I proposed to use `optionalReplacementRange` in absence of `replacementRange` here: https://github.com/microsoft/monaco-editor/pull/4406

Currently, VS Code Insiders (ee69e2887fbe532588f74ae86560e7fdc1e59550) behaves the same way as TS playground with `editor.suggest.insertMode: 'insert'`. However, the same change (as the one that I proposed for Monaco) can't be introduced in VS Code. In fact, it briefly got introduced recently there in https://github.com/microsoft/vscode/pull/200945 but later the behavior got changed/tweaked after bug reports came in. You can see the recent history of the changes [here](https://github.com/microsoft/vscode/commits/428dd56479f4f9987fe0b0a444c11c46e84b2525/extensions/typescript-language-features/src/languageFeatures/completions.ts)

I studied that recent history a little bit and it seems that `replacementSpan` and `optionalReplacementSpan` do not represent the same thing so such reuse is not always safe. I didn't have time to study in depth when they are different and why (beyond noticing - based on one of the reported issues - that some completions for imports have them different).

I believe that the current behavior in VS Code at the marker 2 is incorrect with `editor.suggest.insertMode: 'insert'`. I've struggled with where I should report this but I concluded that in great part the reason why this behaves differently on VS Code side of things is that TS includes this `replacementSpan` inconsistently at those 2 markers so I chose to report this here first.

cc @andrewbranch @mjbvz (you both were involved in the recent changes around this in VS Code repo)
Repository: deno
Issue: Allow to create SBOM Reports of a Project
Labels: cli,suggestion

Would be nice if deno info or deno sbom exists that would allow create a valid CycloneDX SBOM file - based on the file that is given as an argument. 

Event better would be if the LICENSE type gets included in the SBOM file per import.
Repository: PowerToys
Issue: Fancy Zone App Launcher
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

Was just wondering if its possible to add an app launcher window to fancy zones, when snapping?

### Scenario when this would be used?

I often need to drag items between folders in explorer to other folders, emails, dropbox, etc. I end up snapping an open window to a zone and then wanting to immediately snap a folder window to the next zone but hadn't open the folder as yet. Just wandering if this is possible. Quickly opening other apps maybe useful to others, but for me, explorer is typically what I open and close most frequently.

At least for explorer: Explorer, technically, is always running in the background so maybe an invisible window that shows up when snapping and becomes visible when snapped may be a good substitute, idk.

### Supporting information

_No response_
Repository: pytorch
Issue: Flight Recorder dumps fail when TORCH_NCCL_ASYNC_ERROR_HANDLING=1
Labels: oncall: distributed

calling commAbort from inside watchdog thread leads to exit, 'broken promise' exception from async dump thread, and no dump file.

TORCH_NCCL_ASYNC_ERROR_HANDLING=3 should be the default, but that default is not working in all cases.
 (1) internally its not uniform
 (2) calling init_process_group a seeming innocuous way leads to using =1 value

from torchtrain train.py (see this PR https://github.com/pytorch/torchtrain/pull/103)
```
    torch.cuda.set_device(int(os.environ["LOCAL_RANK"]))
    torch.distributed.init_process_group(
        "nccl", timeout=timedelta(seconds=job_config.training.comm_timeout_s)
    )
    world_mesh = parallel_dims.build_mesh(device_type="cuda")
```

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @yf225 @chauhang
Repository: electron
Issue: [Upgrades Follow Up]: <webview>.capturePage() tests failing on Mac
Labels: component/webview,component/native-image,status/confirmed,has-repro-gist,upgrade-follow-up

### 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

main / nightly-31.x

### What operating system are you using?

macOS

### What arch are you using?

arm64 (including Apple Silicon)

### Actual Behavior

Since roughly PR #41337, the webview.CapturePage test suite has been failing consistenly on both main and branches, on Mac arm64 only. In the interest of continuing the Chrome roll, follow up and fix these tests so that main and rolls go green.

Example failed run here:
[<webview> tag methods <webview>.capturePage() returns a Promise with a NativeImage in the renderer](https://app.circleci.com/pipelines/github/electron/electron/78818/workflows/40d5d61a-6a61-4710-bae6-56f40391e236/jobs/1678008/tests#failed-test-1)
Repository: kubernetes
Issue: Presubmit jobs for image building for test/images
Labels: kind/feature,sig/testing,triage/accepted

### What would you like to be added?

Add the prow presubmit jobs for testing the changes in the test/images directory

### Why is this needed?

This is needed to test and confirm the changes made in the test/image directories
Repository: TypeScript
Issue: Private class field helpers throw a confusing error when in unbound method with undefined `this`
Labels: Suggestion,Awaiting More Feedback

### 🔎 Search Terms

this undefined bind private identifier class __classPrivateFieldSet __classPrivateFieldGet bound unbound

### 🕗 Version & Regression Information

- This is the behavior in every version I tried

### ⏯ Playground Link

https://www.typescriptlang.org/play?#code/MYGwhgzhAEBiD29oG8BQ0PQMQDcwgFcBTaAXmgEYAmAZgBYBudTAcyIBcA1fYgCgEoU0AE4cCwgHbR2ACwCWEAHS4eRBtAC+qLamDwJEdtABmiMtAlEA7nEQCmu-RHggiikPBa8ABqfiK2LlUBcwASZD8Ajm5CIgENb34HAHpk6AB5eAAHCAAaaABJaAATOWKJAHIjACM5CWKAQkcDI0CY4nNIttUUtIAVGWF4KwgALmgAYTAJCXgjUTBi6CzhOTx2EgBbIk3qomETIc3oaeh4aoArImAjKxl4CBJQSBhSpdmjYuvwUWg5dmazlc7k8Pm6sRC5HC4L4-AS-FQQA

### 💻 Code

```ts
class Foo {
    #value = 1234;
    getValue() { return this.#value; }
}

const foo = new Foo();

console.log(`foo.getValue() = ${foo.getValue()}`);

// Oops, I didn't bind!
const getValue = foo.getValue;

// Throws: Cannot read private member from an object whose class did not declare it
console.log(`getValue() = ${getValue()}`)

```


### 🙁 Actual behavior

Throws `Cannot read private member from an object whose class did not declare it`.

But the actual problem is that `this` is undefined and I had no idea!

### 🙂 Expected behavior

A special error for `this` when undefined; IIRC there's no possible way this would normally pass, so a special error would be a lot more clear.

### Additional information about the issue

_No response_
Repository: opencv
Issue: crash when run more times
Labels: bug,incomplete

### System Information

Python version: 3.8.18 
OpenCV python version: 4.9.0
Operating System / Platform: Windows-10-10.0.19045-SP0


### Detailed description

when you first or second time run it, it can output. but when you try multiple times, it will be crashed!
PLEASE TRY IT MORE TIME
```
Process finished with exit code -1073740940 (0xC0000374)

### Steps to reproduce

```
```
import cv2
import numpy as np

matrix1 = np.array([[1, 1, 1, 1],
                               [1, 1, 1, 1],
                               [1, 1, 1, 1]])

matrix1 = np.array(matrix1, dtype=np.float64)

matrix2 = np.array([[0.9, 0.9, 0.9, 0.9],
                               [0.9, 0.9, 0.9, 0.9],
                               [0.9, 0.9, 0.9, 0.9]])

points1 = np.array([[10 * i, 2 * i] for i in range(3)])
points2 = np.array([[10 * i, 2 * i] for i in range(3)])

output = cv2.triangulatePoints(matrix1, matrix2, points1.T, points2.T)

print(output)
```

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: flutter
Issue: [Impeller] TextureMTL::SetContents is unsynchronized and unsafe for updating existing texture.
Labels: P2,e: impeller,team-engine,triaged-engine

See https://developer.apple.com/documentation/metal/mtltexture/1515679-replaceregion

> This method runs on the CPU and immediately copies the pixel data into the texture. It doesn’t synchronize against any GPU accesses to the texture. Ensure all operations that write or render to the texture complete before reading the texture’s contents, using one of the following methods:

Instead if we need to synchronize we can use a blit pass: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400752-copyfrombuffer?language=objc

We could keep using setContents to populate the initial texture data, but any subsequent updates will need to use a blitpass to be safe.
Repository: PowerToys
Issue: PowerToys blocks GestureSign
Labels: Issue-Bug,Needs-Triage,Area-App Compat

### Microsoft PowerToys version

v0.78.0

### Installation method

Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

General

### Steps to reproduce

PowerToys blocks GestureSign on Microsoft surface pro 5 windows 10

### ✔️ Expected Behavior

PowerToys should not block GestureSign

### ❌ Actual Behavior

PowerToys Has to shut down to  nor  block GestureSign 

### Other Software

GestureSign 8.1.8090.42787
Repository: next.js
Issue: Adding 'firebase' package breaks SSR
Labels: bug

### Link to the code that reproduces this issue

https://github.com/nidegen/firebase-nextjs-mre

### To Reproduce

1. Check out latest commit
2. Deploy to firebase hosting
3. The SSRed /invite/<xyz> page will result in a 500 error.

The last commit only adds `firebase` to `packages.json`. Without that. no crash happen.




### Current vs. Expected behavior

Crashes with 500
<img width="1027" alt="Screenshot 2024-03-01 at 21 53 55" src="https://github.com/vercel/next.js/assets/8779423/90b425a9-9805-4e9a-b440-ac6de1f76856">

Expectedly, adding a package should not interfere with Next.js


I have been using `firebase-admin` without issues for SSR. Now I want to use `firebase` for client auth. It works fine on localhost `npm run dev`, but as soon the same code, just inluding the package `firebase`, is deployed it fails.

### Provide environment information

```bash
Next 14.1 on firebase hosting..
```


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

Not sure

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

Other (Deployed)

### Additional context

_No response_
Repository: ollama
Issue: Improvement suggestion: "Recommended" and brief explanation on ollama.com/library
Labels: feature request,ollama.com

Hi

Would you consider adding to the website some features like
- select your GPU (dropdown box). This can help filter suitable models. Personally I have 2x4090 so can run 70b models, so for me maybe a filter shows me the entire list (or close to) but would be more useful to someone with 8gb.
- also adding a brief explanation (at the top) of the models for those people who aren't deep into reading model blogs daily.

For example, I went to get pull phind-codellama.
Then I discovered on the tags tab, there are 49 options, and two of these are the same (latest and 34b). Also that v2 which reportedly has more training is not the default.

Do I need to care about all these other versions? Depends on my needs or GPU. Ok, can I filter by accuracy and VRAM? IE what's the most capable that I can run?
Or can I filter by speed and accuracy? Etc.

For a lot of pages I imagine this could just be a boilerplate reminder.
What does K, KM, KS mean? Etc. Is lower number better or higher? Honestly, I have a lot of models and have been playing with LLMs a lot and I still can't keep track of what abbreviation and quantize level is what.

Anyway I think this would be very helpful to a lot of people. I'd volunteer to help with this but clearly I don't have a deep understanding of the tradeoffs of all the quantized versions!
Repository: godot
Issue: `SubViewport` children of `SubViewportContainer` don't all receive mouse click input events due to being set to handled
Labels: enhancement,topic:input

### Tested versions

- Reproducible in: 4.2.2.rc1.official.c7fb0645a

### System information

Ubuntu 22.10, Vulkan, NVIDIA GeForce RTX™ 2060 / NVIDIA GeForce RTX™ 2060

### Issue description

Having a setup like:
```
- SubViewportContainer
  - SubViewport1
  - SubViewport2
  - ...
```
Only one `SubViewport` gets a mouse button pressed event (possibly other mouse events too). Probably because `SubViewportContainer` sets `SubViewport.handle_input_locally` to `false` and because the container itself sets the event as handled.

I tested the setup with an `Area2D._input_event()`. It might have to do with `Viewport.physics_object_picking` being set to `true` so that `Area2D` can interact with the mouse.

### Steps to reproduce

Open the Minimal Reproduction Project. Make sure to turn on *Debug > Vissible Collision Shapes*, run the project, and click on the `Area2D`s. Notice that only one print function is called, but the message should be printed twice.

The hack solution is to force `SubViewport.handle_input_locally` to `true`.

### Minimal reproduction project (MRP)

[godot-dbg.zip](https://github.com/godotengine/godot/files/14468200/godot-dbg.zip)
Repository: next.js
Issue: basePath is not included in request's URL of route handlers
Labels: bug,Runtime

### Link to the code that reproduces this issue

https://github.com/ThangHuuVu/reproduction-app-base-path-route-handler
https://reproduction-app-base-path-route-handler.vercel.app/custom

### To Reproduce

1. Pull the reproduction. Install deps: `pnpm i`
2. Start the dev server with `pnpm dev`
3. Go to "http://localhost:3000/custom/hello"

### Current vs. Expected behavior

Current: The `req.url` is returned as "http://localhost:3000/hello"
Expected: It should return "http://localhost:3000/custom/hello"
<img width="1017" alt="Screenshot 2024-03-02 at 13 27 01" src="https://github.com/vercel/next.js/assets/31528554/9f48f635-dc4f-4ce0-90df-1002350549c9">


### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020
  Available memory (MB): 16384
  Available CPU cores: 10
Binaries:
  Node: 20.8.0
  npm: 10.1.0
  Yarn: 1.22.21
  pnpm: 8.6.10
Relevant Packages:
  next: 14.1.1-canary.71
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

App Router, Middleware / Edge (API routes, runtime)

### Which stage(s) are affected? (Select all that apply)

next dev (local), Vercel (Deployed), Other (Deployed)

### Additional context

Seems that this is the behavior of pages router too. When I add a `pages/api/hello2` API route, it also returns the URL without the `basePath`.
Repository: godot
Issue: Not all sub-sub-resource properties of a `PackedScene` are saved when using the CLI with `godot --headless --script`
Labels: bug,topic:core

### Tested versions

- Reproducible in: v4.2.2.rc1.official.c7fb0645a

### System information

Ubuntu 22.10, Vulkan, NVIDIA GeForce RTX™ 2060 / NVIDIA GeForce RTX™ 2060

### Issue description

When saving a `PackedScene` with `ResourceSaver.save()` not all sub-sub-resource properties are properly saved when running Godot from CLI with `--headless`.

### Steps to reproduce

Open the Minimal Reproduction Project folder. Make sure to run `godot --headless --editor --quit` at least once so all resources are imported.

Run `godot --headless --script dbg.gd` and notice that the new file `saved.tscn` which should be a copy of `dbg.tscn` has the wrong *Material > Shader Parameters > Line Thickness* value. It should be `10`, but its `0`.

You'll also notice in the print statements that the values are loaded correctly so it most likely is the interaction between `ResourceSaver.save()` and `--headless`, because running `godot --script dbg.gd` properly saves all the properties. At least for this case.

A hack for now is to save `dbg.tscn`'s `ShaderMaterial` resource to disk instead of being internal. Then running `godot --headless --script dbg.gd` properly saves the *Material > Shader Parameters > Line Thickness* value as well in `saved.tscn`.

### Minimal reproduction project (MRP)

[godot-dbg.zip](https://github.com/godotengine/godot/files/14468323/godot-dbg.zip)
Repository: go
Issue: cmd/compile: loopvar doesn't trigger nocopy detection
Labels: NeedsInvestigation,compiler/runtime

### Go version

go version go1.22.0 linux/amd64

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

```shell
.
```


### What did you do?

```Go
package main

import (
	"fmt"
	"strings"
)

func foo() string {
	for b, i := (strings.Builder{}), byte('a'); ; i++ {
		b.WriteByte(i)
		if i == 'z' {
			return b.String()
		}
	}
}

func bar(callback func(*strings.Builder)) string {
	for b, i := (strings.Builder{}), byte('a'); ; i++ {
		b.WriteByte(i)
		callback(&b) // <-- difference here
		if i == 'z' {
			return b.String()
		}
	}
}

func main() {
	debugProcess := func(pb *strings.Builder) {
		// do nothing
	}
	fmt.Println("foo:", foo())
	fmt.Println("bar:", bar(debugProcess))
}
```

### What did you see happen?

Consistent behavior between `foo` and `bar` with 1.22 compiler.

### What did you expect to see?

Inconsistent behavior between `foo` and `bar` with 1.22 compiler.