sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: inconsistent context menu on 'right' click
Labels: bug,file-explorer,confirmation-pending

<!-- ⚠️⚠️ 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

<!-- 🪓 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. -->
- VS Code Version: 1.89.1 (Universal)
- OS Version: Darwin arm64 23.5.0

Steps to Reproduce:

1. make sure the 'Open Editors' view is enabled in the 'Explorer' panel
2. create some file. 
3. "right click" on the file - a "context menu" will appear with a few items contributed.
4. click a file to open the corresponding editor. close the editor. 
5. repeat step No. 3 - a “context menu” will appear with other menu items (see attached video)

https://github.com/microsoft/vscode/assets/33512452/f727ba74-8624-45bd-88e4-063e060e75e3
Repository: next.js
Issue: Problem with postcss transformation when importing css with layer 
Labels: bug

### Link to the code that reproduces this issue

https://github.com/finnan444/nextjs-error-postcss-layer

### To Reproduce

1. Add frame.css file with some styles(for example `.foo {color: red}`)
2. In globals.css add `@import 'frame.css'` 
3. run `next dev` 
4. In browser in layout.css we see correct styles from frame.css (`.foo {color: red}`)
5. In globals.css add layer to import - `@import 'frame.css' layer(frame);`
6. The browser layout.css will have incorrect styling:
```
@media layer(frame) {
.foo {color: red}
}
```

### Current vs. Expected behavior

Following the steps of previous selection i expect the layout.css to have
```
@layer frame {
    .foo {
        color: red
    }
}
```
I suppose there is some problem with postcss-import-parser

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.5.0: Wed May  1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 20.12.2
  npm: 10.5.0
  Yarn: N/A
  pnpm: 9.1.1
Relevant Packages:
  next: 14.2.3 // Latest available version is detected (14.2.3).
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.4.5
Next.js Config:
  output: N/A
```


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

Not sure

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

next dev (local), next build (local)

### Additional context

_No response_
Repository: TypeScript
Issue: texSubImage2D missing WebGL2 syntax
Labels: Bug,Help Wanted,Domain: lib.d.ts

### 🔎 Search Terms

texSubImage2D WebGL2 

### 🕗 Version & Regression Information

- I was unable to test this on prior versions because I used `gl.texSubImage2D` with `ImageBitmap` as source only just now 


### ⏯ Playground Link

_No response_

### 💻 Code

```ts
gl.texSubImage2D(
  gl.TEXTURE_2D,
  0,
  0,
  0,
  100,
  100,
  gl.RGBA,
  gl.UNSIGNED_BYTE,
  data // <----- instanceof ImageBitmap
);
```


### 🙁 Actual behavior

Error:

Argument of type 'ImageBitmap' is not assignable to parameter of type 'ArrayBufferView'.
  Type 'ImageBitmap' is missing the following properties from type 'ArrayBufferView': buffer, byteLength, byteOffset



### 🙂 Expected behavior

The code actually works fine, but I expect TS to not complain about the type. 

### Additional information about the issue

I am using a worker to gradually create the texture by creating the tiles and sending them back. The data comes from `createImageBitmap` metod as `ImageBitmap` and then pass it to `texSubImage2D`
Repository: node
Issue: Relative `require()` in `commonjs` source not processed by ESM Loader 
Labels: confirmed-bug,loaders

### Version

v22.2.0

### Platform

Darwin mac.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:49 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6020 arm64

### Subsystem

_No response_

### What steps will reproduce the bug?

```js
'use strict';

require('node:module').register(
  'data:text/javascript,' + `
  import assert from 'node:assert';
  
  export ${encodeURIComponent(
    function resolve(specifier, context, nextResolve) {
      console.log({ specifier, context });
      return nextResolve(specifier, context);
    },
  )}
  
  export ${encodeURIComponent(
    function load(url, context, nextLoad) {
      if (url === 'custom:cjs') {
        return {
          format: 'commonjs',
          source: 'console.log(require("./relative"))',
          shortCircuit: true,
        };
      }
      return nextLoad(url, context);
    }
  )}
  `,
);

import('custom:cjs').then(console.log, console.error);
```

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

Consistently

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

The `load` hook doc says:
> When a source is provided, all require calls from this module will be processed by the ESM loader with registered resolve and load hooks

https://nodejs.org/api/module.html#resolvespecifier-context-nextresolve:~:text=When%20a%20source,will%20not%20apply.

### What do you see instead?

`require()` calls with relative path are still processed by the CommonJS loader

```
Error: Cannot find module './relative'
Require stack:
- custom:cjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1186:15)
    at require (node:internal/modules/esm/translators:195:30)
    at Object.<anonymous> (custom:cjs:1:13)
    at loadCJSModule (node:internal/modules/esm/translators:223:3)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:258:7)
    at ModuleJob.run (node:internal/modules/esm/module_job:262:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:475:24) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'custom:cjs' ]
}
```

### Additional information

_No response_
Repository: ollama
Issue: Introduce regular support releases
Labels: feature request

The actual test case install base seems to be too small and bugfixes are recurring again and again
- with Nvidia driver constellations
- on single and multiple GPU installations
- on platforms Windows/Linux on x86_64 and arm64 and on Mac
- with version updates
- ++

A regular support release model makes communicating accountability easier.

Introducing regular support releases e.g. for a lifetime of 6 months would help to refer to Ollama's accountability with respect to 2025++ plannings.
Repository: tauri
Issue: [feat][NSIS] add option to install for all users / current user without being admin
Labels: type: feature request

### Describe the problem

I use `nsis` in `Windows` and currently there's [nsisinstallermode](https://v2.tauri.app/reference/config/#nsisinstallermode) configuration for provide a way to install for all users.
The problem is that if I use `both` option which let the user choose to install for all users / current user - it will always ask for admin privileges even if I choose to install only for local user.
I would like to provide a way for users to choose install mode but if they choose local user it will allow install without admin rights.



### Describe the solution you'd like

It may be nsis [limitation](https://github.com/electron-userland/electron-builder/issues/4042) but there's possible solution in [github.com/Drizin/NsisMultiUser](https://github.com/Drizin/NsisMultiUser)

### Alternatives considered

Maybe there's better solution with msi?

### Additional context

_No response_
Repository: opencv
Issue: findContours inner holes has problems with their corners
Labels: bug,category: imgproc

### System Information

opencv-python-headless==4.9.0.80
Operating System / Platform: Ubuntu 22.04 in docker
Python version: 3.11.9

### Detailed description

ploting a square with square hole:
![image](https://github.com/opencv/opencv/assets/16686924/9554e1f0-b752-4ad5-9e10-a9f5c0b2fcb2)

using this code:
```python
    # Create a binary mask with several polygons, some with holes
    im = np.zeros((100, 100), dtype=np.uint8)

    # Polygon (square with a hole)
    im[30:50, 30:50] = 1
    im[35:45, 35:45] = 0
    fig, ax = plt.subplots()
    plt.imshow(im)
    plt.show()

    contours_tuple_of_Nx1x2_uv_arrays, hierarchy_1xNx4 = cv2.findContours(im, cv2.RETR_CCOMP, cv2.CHAIN_APPROX_SIMPLE)
    for x in contours_tuple_of_Nx1x2_uv_arrays:
        print(x.shape)
# result of print:
# (4, 1, 2)
# (8, 1, 2)
```
 running this will give us the inner hole contour with bad corners  - as you can see the inner hole should be square but we get 8 points in the contour and it looks like this:
 
![image](https://github.com/opencv/opencv/assets/16686924/fff1398f-c1bc-4989-8c88-b68017297334)


### Steps to reproduce

above

### 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: kubernetes
Issue: The APIServer memory usage is high.
Labels: kind/bug,sig/scalability,sig/api-machinery,help wanted,triage/accepted

### What happened?

![image](https://github.com/kubernetes/kubernetes/assets/54977497/2541c771-b727-4031-8cfd-f093ecbeea3c)
The apiserver memory usage is high. The pprof command output shows that the processEvent method occupies a large amount of memory.The processEvent method takes up about 40% of the memory

### What did you expect to happen?

The APIServer memory usage is not high when the number of requests is stable.

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

I don't know how it happened.

### Anything else we need to know?

_No response_

### Kubernetes version

<details>

```console
$ kubectl version
# paste output here
```
1.28
</details>


### Cloud provider

<details>

</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: react
Issue: [DevTools Bug]: devtools does not works on null origin(sandbox)
Labels: Type: Bug,Status: Unconfirmed,Component: Developer Tools

### Website or app

none

### Repro steps

## How to reproduce?
Using the development version of React on a local server with sandbox specified in the Content-Security-Policy header reproduces this problem.
For example, in webpack-dev-server, apply the following configuration: 
```ts
  devServer: {
    headers: {
      "Content-Security-Policy": "sandbox allow-scripts",
      "Access-Control-Allow-Origin": "*",
    },
  },
```


### How often does this bug happen?

Every time

### DevTools package (automated)

_No response_

### DevTools version (automated)

_No response_

### Error message (automated)

_No response_

### Error call stack (automated)

_No response_

### Error component stack (automated)

_No response_

### GitHub query string (automated)

_No response_
Repository: TypeScript
Issue: Non-exported recursive type alias is inlined until it falls back to any in declarations
Labels: Bug,Help Wanted

### 🔎 Search Terms

declarations recursive types

### 🕗 Version & Regression Information

- This is the behavior in every version I tried (before 4.4 it was either a stack overflow crash or an error on the recursive type)

### ⏯ Playground Link

[Playground Link](https://www.typescriptlang.org/dev/bug-workbench/?ts=4.4.4&ssl=11&ssc=1&pln=1&pc=1#code/PTAEAEBMFMGMBsCGAnRAXAlgewHYC5Q1kBXaAKBAgDMN5odEBbaA4zeAZwDo0PQyyaAJ4AHaKABKcYsg4YAbtAA8AFQB8oUAF5NK0NAAeaepD4BBZKiFKMOKtGSgAamoD8k6bIXKXBFQG4BQxEsZDRQWFwOcKptUFU1AAoASgIpWBk5RQTtDQBvUGRoNBkcUBxieHgAQlAAX34KMHAaOgZmAlsYAx4+MgxGELDQAtiGqmQsRlAAci5gNloOGcDg0PDInGjQRDiqQKA)

### 💻 Code

```ts
// @declaration: true
// @filename: utils.ts 

type Recursive<T>  =  T extends Array<infer V>? Recursive<V>: T;

export const f = <T>(): Recursive<T> => { return null! } 

// @filename: index.ts 
import { f } from './utils';
export const a = f;

```


### 🙁 Actual behavior

In declarations, the type for `a` is printed as `a: () => T extends (infer V)[] ? V extends (infer V)[] ? V extends (infer V)[] ? V extends (infer V)[] ? V extends (infer V)[] ? V extends (infer V)[] ? V extends (infer V)[] ? V extends (infer V)[] ? V extends (infer V)[] ? V extends (infer V)[] ? V extends (infer V)[] ? any : V : V : V : V : V : V : V : V : V : V : T;`

### 🙂 Expected behavior

`Recursive` can't be represented without falling back to `any` (as seen above) so it should just be an error instead of silently to `any`

### Additional information about the issue

Related to #55832
Repository: go
Issue: proposal: runtime: add option to specify seed for `globalRand`
Labels: Proposal,compiler/runtime

## Proposal Details

> [!NOTE]
> This proposal is not concerned with the `globalRand` in the user-facing `math/rand` packages, rather the [`globalRand`](https://github.com/golang/go/blob/13c49096fd3b08ef53742dd7ae8bcfbfa45f3173/src/runtime/rand.go#L26) struct used to (AFAICT) seed the per-M rngs which in turn seed the `runtimeSource`s the `rand` packages use as well as provide randomness for runtime decisions via `cheaprand` and its variants.

### Proposal
Add a `GORANDSEED` environment variable or an equivalent option to seed runtime randomness. This environment variable will be observed in `randinit` roughly like so: https://github.com/polarsignals/go/blob/ea083ca4892a62eb229c1886517e1cdb575ee19a/src/runtime/rand.go#L44-L51. This effectively replaces seeding via e.g. reading `/dev/urandom` on unix systems and `random_get` in WASM.

### Use case
The use case for a user-specified seed it to provide a certain level of determinism and reproducibility when testing Go programs. Throughout Go's history, *accidental* determinism has been avoided as much as possible by randomizing select case selection, map iteration, and even goroutine scheduling (on the local run queue only AFAICT) when running with the race detector. However, *purposeful* determinism is a useful property to have when testing Go programs. A `GORANDSEED` environment variable would be a step towards letting users control and reproduce runtime randomness.

I recently [wrote a blog post](https://www.polarsignals.com/blog/posts/2024/05/28/mostly-dst-in-go) that achieves purposeful determinism (or close to it) for testing. Having a way to seed the runtime's randomness was a key ingredient.

### Shortcomings
`GORANDSEED` by itself is not enough for purposeful determinism. One also needs to control the number of OS threads, among other things, so that random number generation order is stable across test runs. However, it is a key ingredient that the developer cannot currently control. Time, for example, can be controlled via `-tags=faketime`, and the number of OS threads by e.g. running the test on WASM.

### Alternatives
An alternative to providing a seed via an environment variable is to intercept the os-specific `readRandom` implementations. One could, for example, use [hermit](https://github.com/facebookexperimental/hermit?tab=readme-ov-file#how-it-works) to control `/dev/urandom` reads on unix systems. On WASM, some runtimes also seem to allow users to intercept `random_get` calls. However, these solutions are per-arch while something like `GORANDSEED` would work across architectures.
Repository: vscode
Issue: The empty editor hint should be easily toggled by right clicking on the hint
Labels: feature-request,verification-needed,chat

Can this support right click to toggle the setting to hidden?

![image](https://github.com/microsoft/vscode/assets/2193314/f314f95c-92d8-431b-b6ac-32301950c278)
Repository: go
Issue: x/net/http2: TestServerWritesTrailers_WithoutFlush failures
Labels: NeedsInvestigation,arch-wasm,OS-JS

```
#!watchflakes
default <- pkg == "golang.org/x/net/http2" && test == "TestServerWritesTrailers_WithoutFlush"
```

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8746655739835343793)):

    === RUN   TestServerWritesTrailers_WithoutFlush
        http2_test.go:66: 2024/05/28 22:42:13 ignoring invalid trailer "Range"
        http2_test.go:66: 2024/05/28 22:42:13 ignoring invalid trailer "Transfer-Encoding"
        http2_test.go:66: 2024/05/28 22:42:13 ignoring invalid trailer "Content-Length"
        http2_test.go:66: 2024/05/28 22:42:13 ignoring invalid trailer "Trailer"
        server_test.go:641: Error while expecting a HEADERS frame: i/o timeout
    --- FAIL: TestServerWritesTrailers_WithoutFlush (0.02s)


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: PowerToys
Issue: a client side image upscaler
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

Description:  This feature would allow users to upscale images directly within the application, utilizing the processing power of their device.

### Scenario when this would be used?

Faster Upscaling: Client-side processing avoids the need to upload images to a server and wait for processing, resulting in faster upscaling.
Privacy Concerns: For users with sensitive images, client-side upscaling ensures the images never leave their device.
Offline Functionality: The feature would allow upscaling even without an internet connection.


### Supporting information

Performance Considerations: Offer options for different upscaling levels (e.g., 2x, 4x) with clear indications of processing time and potential impact on device performance.
User Interface: Design a user-friendly interface for selecting images, choosing upscaling levels, and displaying the results.
Repository: godot
Issue: Scale is applied after orienting the ring emitter shape in Particles making it skew the shape
Labels: discussion,breaks compat,topic:3d,topic:particles

### Tested versions

Reproduced in 4.2.2.stable and v4.3.dev.custom_build [8bf8f41fc]

### System information

Godot v4.3.dev (8bf8f41fc) - Windows 10.0.22631 - Vulkan (Forward+) - dedicated AMD Radeon RX 7800 XT (Advanced Micro Devices, Inc.; 31.0.24019.1006) - AMD Ryzen 9 7900X 12-Core Processor (24 Threads)

### Issue description

When applying a non uniform scale to a ring emission shape, you can see that the scaling it performed after orienting the ring to the axis, causing it to skew the shape, rather than scale it along it's local axis. Position is also applied afterwards, which is probably also undesireable. Note CPU particles do not have the scale option, so the issue does not exist there.

https://github.com/godotengine/godot/assets/4955051/5bd68086-b592-4841-a806-325838428473

### Steps to reproduce

Create a GPU particles system with a ring emitter and an axis of 1, 1, 0 and scale the x axis.

### Minimal reproduction project (MRP)

NA
Repository: flutter
Issue: Android: Text slightly shifted downwards when TextStyle height is set (TextLeadingDistribution is `proportional`)
Labels: platform-android,a: typography,has reproducible steps,P2,team-android,triaged-android,found in release: 3.22,found in release: 3.23

### Steps to reproduce

1. Wrap an icon and a text in a Row with `crossAxisAlignment: CrossAxisAlignment.center`
2. Set a height in the TextStyle

### Expected results

Same result in Android and iOS.

On iOS, the result is ok:

<img width="176" alt="image" src="https://github.com/flutter/flutter/assets/16262904/701662a9-9b28-4f30-8277-0e20d0f17882">


### Actual results

On Android, the text is not vertically centered:

<img width="157" alt="image" src="https://github.com/flutter/flutter/assets/16262904/2bd9861e-85af-476f-825b-b01872af576d">


### Code sample

<details open><summary>Code sample</summary>

```dart
Row(
      mainAxisSize: MainAxisSize.min,
      crossAxisAlignment: CrossAxisAlignment.center,
      children: [
        const SomeIcon(),
        const SizedBox(width: 4),
        Text("Hello",
          style: TextStyle(
            height: 1.3,
            // leadingDistribution: TextLeadingDistribution.even
            // ^ modifies the issue on Android
            // seems to shift the text a bit upwards compared to iOS
		  ),
        ),
      ],
    );
```

Android Screenshot with `leadingDistribution: TextLeadingDistribution.even`

<img width="153" alt="image" src="https://github.com/flutter/flutter/assets/16262904/18521afb-8623-40b5-b352-490e346417b5">


</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.4, on macOS 14.5 23F79 darwin-arm64, locale en-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.3.2)
[✓] VS Code (version 1.89.1)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!
```

</details>
Repository: tauri
Issue: [bug] IOS pop-up keyboard causes webview to move outside the screen
Labels: type: bug,priority: 2 medium,status: needs triage,platform: iOS

### Describe the bug

IOS pop-up keyboard causes webview to move outside the screen

### Reproduction

Place an input element on the page, click on the element, and wake up the keyboard

### Expected behavior

The webview height changes to screen height minus keyboard height

### Full `tauri info` output

```text
[✔] Environment
    - OS: Mac OS 14.5.0 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.78.0 (9b00956e5 2024-04-29)
    ✔ cargo: 1.78.0 (54d8815d0 2024-03-26)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-apple-darwin (default)
    - node: 20.12.0
    - yarn: 1.22.22
    - npm: 10.5.0

[-] Packages
    - tauri [RUST]: 2.0.0-beta.20
    - tauri-build [RUST]: 2.0.0-beta.16
    - wry [RUST]: 0.40.0
    - tao [RUST]: 0.28.0
    - @tauri-apps/api [NPM]: 2.0.0-beta.12
    - @tauri-apps/cli [NPM]: 2.0.0-beta.18

[-] App
    - build-type: bundle
    - CSP: img-src 'self' data:; style-src 'self' 'unsafe-inline'; connect-src 'self' http://ipc.localhost; default-src 'self'; font-src 'self' data:
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite

[-] iOS
    - Developer Teams:
```


### Stack trace

_No response_

### Additional context

https://github.com/tauri-apps/tauri/assets/19303058/5cf1b708-9d20-466d-a6f1-9af9951fe8fe

_No response_
Repository: vscode
Issue: Run Task command silently does nothing in serverless
Labels: bug,tasks

Found while testing https://github.com/microsoft/vscode/issues/212047

1. Open insiders.vscode.dev/github/microsoft/vscode
2. Command "Tasks: Run Task"
3. The quick pick closes and nothing seems to happen. There's no indication that there are no runnable tasks.