sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: REPL: veto extension host restart
Labels: feature-request,interactive-window

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->

Extension host can auto restart and can lead to the shutdown of live kernels, thus we veto the restart if there is a notebook open https://github.com/microsoft/vscode/pull/224178 . We might want to do the same for IW/REPL.
Repository: godot
Issue: Resource thumbnails don't update automatically when the resource is being edited (needs an inspector rebuild to show up)
Labels: bug,topic:editor,confirmed,usability

### Tested versions

4.3 RC1

### System information

Godot v4.3.rc1 - Windows 10.0.19045 - Vulkan (Forward+) - dedicated AMD Radeon RX 580 2048SP (Advanced Micro Devices, Inc.; 31.0.21912.14) - Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz (4 Threads)

### Issue description

Godot 4.3's material preview isn't always accurate. Quite often it displays a previously opened material's thumbnail which is often confusing. It's a small issue but can be quite bothersome.

### Steps to reproduce

I don't think anything triggers it, just happens very often on various different projects.

### Minimal reproduction project (MRP)

![image](https://github.com/user-attachments/assets/d2e6855b-ead0-4e09-af26-438d311bbf2f)
Repository: next.js
Issue: `reactProductionProfiling: true` isn't working when `experimental.reactCompiler: true`
Labels: bug

### Link to the code that reproduces this issue

https://github.com/sanity-io/nextjs-react-compiler-production-profiling-reproduction

### To Reproduce

1. Run `pnpm install` to get the same deps.
2. Run next in production mode `next build && next start`.

### Current vs. Expected behavior

When I try to run the profiler, I expect it to be available:
![image](https://github.com/user-attachments/assets/ca5ef4a7-1be3-4dc2-a637-123bcd4e332f)

Instead I see this warning:
![image](https://github.com/user-attachments/assets/2fa225f3-5bac-49a6-90ea-62299314bd38)

I also expect to be able to log `window.profileResults` and see data, instead it's undefined.

When running `next dev` I'm able to run the profiler, as well as see data on `window.profileResults`.

There is a test deploy you can use: https://nextjs-react-compiler-production-profiling-reproduction.sanity.dev/

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 20.11.1
  npm: 10.5.2
  Yarn: 1.22.19
  pnpm: 9.6.0
Relevant Packages:
  next: 15.0.0-canary.88 // Latest available version is detected (15.0.0-canary.88).
  eslint-config-next: 15.0.0-canary.88
  react: 19.0.0-rc-14a4699f-20240725
  react-dom: 19.0.0-rc-14a4699f-20240725
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Developer Experience, Documentation, Instrumentation

### Which stage(s) are affected? (Select all that apply)

next build (local), next start (local), Vercel (Deployed), Other (Deployed)

### Additional context

I've tested against different canaries and the RC of v15, and haven't found a version where `reactProductionProfiling: true` seem to be working 🤔
Repository: godot
Issue: Issue with copied scenes subnodes or collisions
Labels: bug,topic:editor,needs testing

### Tested versions

only used 4.2.2 windows for a (Forward+) application.


### System information

Windows 10 - Godot 4.2.2 Vulkan Forward+ AMD

### Issue description

save scenes as seems to reference or inherit same object from original scene.

My person opinion (disregard if needed):
from my experience this seems to be from object reference in memory maybe remedy this by having a deep copy when Save Scene As rather than referencing original object.

### Steps to reproduce

1. Reproduction first create scene tree
![image](https://github.com/user-attachments/assets/af4699ea-f051-4bcb-a2fd-c85a25a7d626)
2. save scene as foo.tscn
![image](https://github.com/user-attachments/assets/2666e6ba-c0af-41b4-8a84-162224dfc1d9)
3. change Collision shape or node (if other nodes are affected)
![image](https://github.com/user-attachments/assets/6945bd33-3d47-483f-8ccb-586377c39383)
4. switch back to original scene and see collision node (or node affected).
![image](https://github.com/user-attachments/assets/7f55adf2-1930-4c58-a516-7cbadeaf7c88)

### Minimal reproduction project (MRP)

[Test Scenes.zip](https://github.com/user-attachments/files/16416253/Test.Scenes.zip)
Repository: angular
Issue: [SSR]Failed request in server cannot be cached.
Labels: area: server,server: http cache

### Which @angular/* package(s) are the source of the bug?

platform-browser, router

### Is this a regression?

No

### Description

I have a LoginComponent ('/login'), when a user hits the page directly it will go through server-side render. the identity provider will return a 400 with some other information to indicate the browser has a valid session, the router will navigate to the HomeComponent ('/').

I observed that during the hydration, the browser replays the request without using HttpTransferCache. This causes a duplicate request. even the server renders a page with HomeComponent ('/') instead of LoginComponent ('/login'). 


### Please provide a link to a minimal reproduction of the bug

https://github.com/EverettSummer/ssr-example

### Please provide the exception or error you saw

```true
I made a simple project to reproduce this issue:
start the api server

npm run api
```
build angular
```
npm run watch
```
start ssr server
```
npm run serve:ssr:ssr-example
```

From the browser's dev-tool you can see the request with 400 status, or from the api-server's log, you can see 2 duplicate request to /api/login

Node Express server listening on http://localhost:5000
::ffff:127.0.0.1 - - [29/Jul/2024:16:33:54 +0000] "GET /api/login HTTP/1.1" 400 39 "-" "node"
::ffff:127.0.0.1 - - [29/Jul/2024:16:33:54 +0000] "GET /api/whoami HTTP/1.1" 200 16 "-" "node"
::ffff:127.0.0.1 - - [29/Jul/2024:16:33:54 +0000] "GET /api/login HTTP/1.1" 400 39 "http://localhost:3300/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
```


### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 18.1.2
Node: 20.16.0
Package Manager: npm 10.8.1
OS: linux x64

Angular: 18.1.2
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router, ssr

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1801.2
@angular-devkit/build-angular   18.1.2
@angular-devkit/core            18.1.2
@angular-devkit/schematics      18.1.2
@schematics/angular             18.1.2
rxjs                            7.8.1
typescript                      5.5.4
zone.js                         0.14.8
```


### Anything else?

I want to know if this is by design or a missing feature or bug.
Is there a workaround currently?
Repository: yt-dlp
Issue: Wrong formation of Base urls.
Labels: bug,incomplete,triage

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting a bug unrelated to a specific site
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Provide a description that is worded well enough to be understood

yt-dlp downloaders are parsing the base urls for the mpd fragments wrongly. Like if the the mpd url is having any of the query strings and relative base url is specified in the mpd file. Then it forms the base url for the fragments as `<MPD_URL>?<SOME_QUERY_STRINGS>/<BASE_URL_MENTIONED_IN_THE_MPD>`.

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2024.07.25 from yt-dlp/yt-dlp [f0993391e] (pip)
[debug] Python 3.10.13 (CPython x86_64 64bit) - Linux-6.5.0-1022-azure-x86_64-with-glibc2.31 (OpenSSL 1.1.1f  31 Mar 2020, glibc 2.31)
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.07.04, mutagen-1.47.0, requests-2.32.3, sqlite3-3.31.1, urllib3-2.0.7, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1829 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: stable@2024.07.25 from yt-dlp/yt-dlp
yt-dlp is up to date (stable@2024.07.25 from yt-dlp/yt-dlp)
```
Repository: PowerToys
Issue: On monitors with a scale setting different from 100% (for instance, 150%), certain applications do not fully occupy the designated zone, leaving gaps on the sides
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.82.1

### Installation method

GitHub, PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

FancyZones

### Steps to reproduce

1. Create a zone on a monitor that scales more than 100%.
2. Note that when some programs are placed in this zone, they do not fill the entirety of it, leaving a space on the right and left sides of it, but not above and below.
3. If the monitor scale is 100%, the same program fills the entire zone.

[PowerToysReport_2024-07-29-13-22-41.zip](https://github.com/user-attachments/files/16416603/PowerToysReport_2024-07-29-13-22-41.zip)

150% scale:
![escala 150](https://github.com/user-attachments/assets/4e2d9a09-ddd2-475f-adb6-b218bc4d9ad3)

100% scale:
![escala 100](https://github.com/user-attachments/assets/0dd02f87-f470-4854-9050-d6e228ad82ee)

### ✔️ Expected Behavior

- That, regardless of the chosen scale, the program filled the entirety of the chosen zone, without leaving gaps on the sides.

### ❌ Actual Behavior

When the monitor scale is at 125%, 150%, 175%, the program does not fill correctly, leaving gaps on the sides.

### Other Software

WindowManager 10.17.5
Repository: PowerToys
Issue: Measure the dimensions of objects in mm, cm, inches and add angle measurements
Labels: Needs-Triage

### Description of the new feature / enhancement

It would be useful to be able to choose to measure dimensions also in cm, mm, inches (for example 3.5 cm, 35 mm etc.), to be able to measure the distance between two points on the screen, to be able to measure the size of an angle identified by 3 points (of which the second is the vertex)

### Scenario when this would be used?

It can have different applications: in the educational field to create paper models starting from found figures or in 3D modelling starting from some images found on the internet or that are on the monitor, in the creation of images using the Microsoft Word shapes tool (in particular in the geometric field), to compose a book cover in order to take into account the size of the spine, the abundances, the margins and in general to simplify the layout.

### Supporting information

Teaching mathematics and general scientific subjects, 2D and 3D modeling, self-publishing books
Repository: go
Issue: go/version: IsValid reports false on inputs like "go1.8.5rc5", "go1.9.2rc2"
Labels: NeedsInvestigation,FixPending

### Go version

go version go1.22.5 windows/amd64

### Output of `go env` in your module/workspace:

```shell
$ go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=D:\work\libs\golang\mods\bin
set GOCACHE=D:\work\libs\golang\cache
set GOENV=D:\work\libs\golang\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=D:\work\libs\golang\mods\libs
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=D:\work\libs\golang\mods
set GOPRIVATE=
set GOPROXY=https://goproxy.cn,direct
set GOROOT=D:\work\libs\golang\root\go1.22.5
set GOSUMDB=sum.golang.org
set GOTMPDIR=D:\work\libs\golang\temp
set GOTOOLCHAIN=auto
set GOTOOLDIR=D:\work\libs\golang\root\go1.22.5\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.22.5
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=D:\work\libs\golang\temp\go-build838424048=/tmp/go-build -gno-record-gcc-switches
```


### What did you do?

When I try to sort go version list that got from below command 
```
git ls-remote -tags --sort=version:refname https://github.com/golang/go
```
I got an incredible result that the version `go1.8.5rc5` is the minimum version, even less than `go1`.
The reason is that `go/version.IsValid` do not consider prerelease patch as valid version, but some prerelease patch really do exist in history versions, such as `go1.8.5rc5`, `go1.8.5rc4`, `go1.9.2rc2` .The version `go1.9.2rc2` even could be discovered from https://go.dev/dl/?mode=json&include=all, and downloaded from https://dl.google.com/go/go1.9.2rc2.linux-amd64.tar.gz, it's very unreasonable to treat it as an invalid version.

Here is a snippset to prove this: https://go.dev/play/p/TBz7px5tMd_8

### What did you see happen?

```
fmt.Println(version.IsValid("go1.9.2rc2"))
```
output
```
false
```

### What did you expect to see?

```
fmt.Println(version.IsValid("go1.9.2rc2"))
```
output
```
true
```
Repository: TypeScript
Issue: `organizeImports` does not merge value and type imports
Labels: Suggestion,Awaiting More Feedback,Domain: Organize Imports

### 🔍 Search Terms

organizeImports type

### ✅ 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

Merge value and type imports into one import.

### 📃 Motivating Example

If I have the following code

```ts
import { CascadeFunction } from "@rcompat/async/cascade";
import cascade from "@rcompat/async/cascade";
```

And I run `organizeImports`, then it will be merged into

```ts
import cascade, { CascadeFunction } from "@rcompat/async/cascade";
```

However, if I have

```ts
import type { CascadeFunction } from "@rcompat/async/cascade";
import cascade from "@rcompat/async/cascade";
```

Running `organizeImports` will do nothing, although I would expect it to merge the imports into

```ts
import cascade, { type CascadeFunction } from "@rcompat/async/cascade";
```

### 💻 Use Cases

1. What do you want to use this for?
Keeping imports clean.
2. What shortcomings exist with current approaches?
Imports may be doubled, and I might not notice it despite running `organizeImports`.
3. What workarounds are you using in the meantime?
Merge manually if I notice it.
Repository: pytorch
Issue: Pickle loads torch tensor memory leak
Labels: module: serialization,triaged

### 🐛 Describe the bug

When loading pickled torch tensors, the memory is not fully freed after usage. The occupied memory increases incrementally over time, indicating that part of the object is not being properly garbage collected. Below is a minimal example demonstrating the issue:

```python
torch_mat_bytes = pickle.dumps(torch.zeros(1024, 1024))
for i in itertools.count():
    pickle.loads(torch_mat_bytes)
    gc.collect()
    if i % 5000 == 0:
        info = psutil.Process(os.getpid()).memory_info()
        print(f'vms={info.vms/1024/1024}MB rss={info.rss/1024/1024}MB')
```
The output is
```python
vms=27535.51171875MB rss=8534.03515625MB
vms=27536.01171875MB rss=8534.38671875MB
vms=27536.51171875MB rss=8534.92578125MB
vms=27537.26171875MB rss=8535.46875MB
vms=27537.76171875MB rss=8536.01171875MB
vms=27538.26171875MB rss=8536.5546875MB
vms=27538.76171875MB rss=8537.09375MB
vms=27539.26171875MB rss=8537.640625MB
vms=27540.01171875MB rss=8538.1796875MB
vms=27540.51171875MB rss=8538.7265625MB
vms=27541.01171875MB rss=8539.265625MB
vms=27541.51171875MB rss=8539.80859375MB
```

However, with numpy, the memory remains constant
```python 
np_mat_bytes = pickle.dumps(np.zeros((1024, 1024)))
for i in itertools.count():
    pickle.loads(np_mat_bytes)
    if i % 5000 == 0:
        info = psutil.Process(os.getpid()).memory_info()
        print(f'vms={info.vms/1024/1024}MB rss={info.rss/1024/1024}MB')
        if i > 50000:
            break
```
The output is 
```python
vms=27535.51171875MB rss=8534.03515625MB
vms=27535.51171875MB rss=8534.03515625MB
vms=27535.51171875MB rss=8534.03515625MB
vms=27535.51171875MB rss=8534.03515625MB
vms=27535.51171875MB rss=8534.03515625MB
vms=27535.51171875MB rss=8534.03515625MB
vms=27535.51171875MB rss=8534.03515625MB
vms=27535.51171875MB rss=8534.03515625MB
vms=27535.51171875MB rss=8534.03515625MB
vms=27535.51171875MB rss=8534.03515625MB
vms=27535.51171875MB rss=8534.03515625MB
vms=27535.51171875MB rss=8534.03515625MB
```

### Versions

```python
PyTorch version: 2.0.0a0+gite9ebda2
Is debug build: False
CUDA used to build PyTorch: 11.7
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.6 LTS (x86_64)
GCC version: (Ubuntu 8.4.0-1ubuntu1~18.04) 8.4.0
Clang version: Could not collect
CMake version: version 3.30.0
Libc version: glibc-2.27

Python version: 3.8.16 (default, Jul 18 2024, 01:22:33)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-5.4.0-1063-aws-x86_64-with-glibc2.2.5
Is CUDA available: False
CUDA runtime version: 11.7.99
```

cc @mruberry @mikaylagawarecki
Repository: svelte
Issue: Class state has a fundamental typing flaw
Labels: types / typescript

### Describe the bug

Consider the following example:

```ts
export class Foo {
  count: number; // Property 'count' has no initializer and is not definitely assigned in the constructor.(2564)

  constructor() {};
}
```

In with a Svelte class, there is no way I can find to declare class fields in this way:

```ts
export class Foo {
  count: number;

  constructor(initialCount) {
    this.count = $state(initialCount); // `$state(...)` can only be used as a variable declaration initializer or a class field
  }
}
```

Doesn't work, because `$state` can't be used in the constructor.

```ts
export class Foo {
  count: number = $state(); // typeof count === number | undefined, even though it's _not_ undefined-able. You also lose the constructor assignment analysis

  constructor(initialCount) {
    this.count = initialCount;
  }
}
```

This seems like a bit of a critical issue for typing classes; there's no way I can find to create a class state property that's assigned in the constructor without adding `undefined` to its type.

### Reproduction

See description.

### Logs

_No response_

### System Info

```shell
N/A
```


### Severity

annoyance