sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: deno
Issue: otel: automatically inject `ContextManager`, `MetricsProvider`, and `TraceProvider`
Labels: feat,otel

Right now you have to import `@deno/otel` to hook Deno's built in OpenTelemetry API into `@opentelemetry/api`. `@opentelemetry/api` however has code to read all three of these from the global object. This code is intended to ensure that multiple copies of `@opentelemetry/api` can still work correctly.

I propose we set this global on startup as follows:

```js
globalThis[Symbol.for("opentelemetry.js.api.1")] = {
  trace: new Deno.telemetry.TraceProvider(),
  context: new Deno.telemetry.ContextManager(),
  metrics: new Deno.telemetry.MetricsProvider(),
};
```

This may seem a bit unorthodox, but it is very useful because users do not have to import `@deno/otel` anymore. This is particularly helpful when using frameworks where you may not control the entrypoint (Next.js, Remix, etc).

I want to run this by the otel-js folks, but I don't think this is really very controversial - one could think of this as bundling `@opentelemetry/api` and automatically invoking `trace.setGlobalTraceProvider` and friends on startup.
Repository: react
Issue: Bug: Detached Elements Observed When Toggling Content with ReactDOM.createPortal()
Labels: Status: Unconfirmed

We observed a possible memory leak when using `ReactDOM.createPortal()` to render components. The issue occurs when toggling the portal content between a `RadioGroup` and the text `Loading...`. If the `RadioGroup` is interacted with before toggling, some DOM elements are not properly cleaned up, leaving detached nodes in memory.

However, if no interaction happens with the `RadioGroup`, the content toggles without any memory issues.

React version: 18.3.1

## Steps To Reproduce

1. Visit the [JSFiddle example](https://jsfiddle.net/egz6jbx5/2/#&togetherjs=hoy8etANLl).
2. Click on the Load Content button to render the `RadioGroup`.
3. Interact with the `RadioGroup` by selecting the Other option. (eg: option B)
4. Click on the Unload Content button to remove the `RadioGroup`.
5. Open the Memory tab in the browser developer tools and trigger Garbage Collection.
6. Select the **Detached Elements** profiling type and take a snapshot of the memory to observe detached nodes.

Link to code example: [JSFiddle example](https://jsfiddle.net/egz6jbx5/2/#&togetherjs=hoy8etANLl)

## The current behavior
Detached elements are present in the memory snapshot after interacting with the `RadioGroup` and toggling it off. This indicates a potential memory leak caused by `ReactDOM.createPortal()`.
![image](https://github.com/user-attachments/assets/9dc8fdf2-fb68-4089-9f9c-5d5198c1f95f)


## The expected behavior
Detached nodes should not be present after toggling the `RadioGroup` and triggering garbage collection, regardless of interactions.
Repository: kubernetes
Issue: When a pod is removed, running execs stay open but frozen
Labels: kind/bug,sig/node,triage/needs-information,triage/not-reproducible,needs-triage

### What happened?

When a pod is removed, running execs stay. Their standard streams are not closed.

### What did you expect to happen?

The root processes of the execs are killed, so the running exec should be terminated by the kubeapi-server, or at least the stdout/stderr streams should be closed.

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

- create a pod with a single container
- exec into that container with `kubectl exec` an interactive command (like a shell)
- remove that pod
- the `kubectl exec` is still running but is `frozen`

### Anything else we need to know?

_No response_

### Kubernetes version

<details>

```console
$ kubectl version
Client Version: v1.31.0
Kustomize Version: v5.4.2
Server Version: v1.31.0
```

</details>


### Cloud provider

<details>
minikube or GKE
</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: deno
Issue: Compile a workspace
Labels: bug,compile,workspaces

Version: Deno 2.1.3

Hi,

Let's say I have the following code (you can also find it here https://github.com/tjoskar/deno-workspace-bug-maybe ):
```ts
// lib-a/main.ts
export const a = "Hello from lib-a";
```
```json
// lib-a/package.json
{
  "name": "@my-scope/lib-a",
  "type": "module",
  "version": "1.0.0",
  "main": "main.ts",
  "exports": "./main.ts"
}
```
```ts
// lib-b/main.ts
import { a } from "@my-scope/lib-a";

console.log(a);
```
```json
// lib-b/package.json
{
  "name": "@my-scope/lib-b",
  "type": "module",
  "version": "1.0.0",
  "main": "main.ts",
  "exports": "./main.ts"
}
```
```
// deno.json
{
  "workspace": ["./lib-a", "./lib-b"]
}
```

Running `deno run lib-b/main.ts` works fine but if I run `deno check lib-b/main.ts` I get the following error:
```
error: Failed resolving types. [ERR_TYPES_NOT_FOUND] Could not find types for 'file:///deno-compile-workspace/lib-a/index.js' imported from 'file:///deno-compile-workspace/lib-b/main.ts'
    at file:///deno-compile-workspace/lib-b/main.ts:1:19
```

And if I run `deno compile --no-check --output test lib-b/main.ts` and then `./test` I get the same error (ish):
```
error: [ERR_MODULE_NOT_FOUND] Cannot find module 'file:///var/folders/n3/3d2w2d152hb6fs7d1hkwyvjc0000gn/T/deno-compile-test/deno-compile-workspace/lib-a/index.js' imported from 'file:///var/folders/n3/3d2w2d152hb6fs7d1hkwyvjc0000gn/T/deno-compile-test/deno-compile-workspace/lib-b/main.ts'
```

Am I missing something? Or isn't this supported?

It works fine if I replace both `package.json` with corresponding deno.json files, but I can't do that for several reasons right now. 

Thanks! And only love to Deno!
Repository: terminal
Issue: [Terminal Chat] Unable insert command using keyboard
Labels: Product-Terminal,Issue-Task,Needs-Tag-Fix,Area-Chat

### Description of the new feature

There are two things:

1. I'm not able to hit Enter or Space to trigger insert command into Terminal.
2. The mouse cursor should change to ![Image](https://github.com/user-attachments/assets/649fa5a7-936f-43ed-87dc-d2a6a16b056a) (pointer) when mouse hover on the button.

![Image](https://github.com/user-attachments/assets/cdeb67f5-a533-4916-8fa8-80d02d8925b8)


### Proposed technical implementation details

_No response_
Repository: three.js
Issue: GLTFLoader: meshes with multiple primitives and multiple instances have non-unique name
Labels: Loaders

### Description

The GLTF loader (to my understanding) attempts to assign unique names to all nodes it parses.
However I noticed that duplicated names can appear in meshes created for nodes in certain cases. When a GLTF mesh has multiple primitives the GLTF loader will create one THREE.Mesh per mesh primitive under a THREE.Group. When instantiating this GLTF mesh multiple times, the THREE.Group seems to usually receive a unique name, but the meshes under the group have the same names in each instance.

This can be problematic in software that manipulates parts of 3D scenes based on mesh names (e.g. user selected mesh names).

I'm not sure what the intended behaviour from the THREE.js maintainers here is, so apologies if this should have been a feature request.

### Reproduction steps

1. Open https://threejs.org/editor/
2. Import this GLB test file: [MultiInstanceMultiPrimitiveCube.glb.zip](https://github.com/user-attachments/files/18080898/MultiInstanceMultiPrimitiveCube.glb.zip)
3. Inspect the scene hierarchy, particularly the mesh names under `Cube` and `Cube001`


### Code

```js
// code goes here
```


### Live example

* [jsfiddle-latest-release WebGLRenderer](https://jsfiddle.net/3mrkqyea/)
* [jsfiddle-dev WebGLRenderer](https://jsfiddle.net/gcqx26jv/)
* [jsfiddle-latest-release WebGPURenderer](https://jsfiddle.net/mnqr9oj0/)
* [jsfiddle-dev WebGPURenderer](https://jsfiddle.net/xno7bmw0/)


### Screenshots

<img width="354" alt="Bildschirmfoto 2024-12-10 um 15 25 12" src="https://github.com/user-attachments/assets/62e75d82-70b5-4611-bdd3-2443acb74452">


### Version

r171

### Device

_No response_

### Browser

_No response_

### OS

_No response_
Repository: pytorch
Issue: Stop special-casing einops in Dynamo
Labels: triaged,oncall: pt2,module: dynamo

Imports can have unwanted side effects. See https://github.com/pytorch/pytorch/blob/fb529c2c84f876b4897e2a0d7405c00ff94b29b5/torch/_dynamo/decorators.py#L611

Internal xref: https://fb.workplace.com/groups/257735836456307/posts/804793021750583/?comment_id=805229281706957&reply_comment_id=805232695039949&notif_id=1733795290072385&notif_t=work_group_comment_mention

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames
Repository: vscode
Issue: Extensions:  `workbench.extensions.installExtension(...)` should prompt for confirmation
Labels: under-discussion

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

The `workbench.extensions.installExtension(...)` API should prompt for user confirmation.

CC @isidorn
Repository: pytorch
Issue: Stop importing arbitrary third-party libraries in Dynamo
Labels: triaged,oncall: pt2,module: dynamo

The problem is that arbitrary third-party libraries can have side effects on import. Instead, we should check if the libraries have already been imported. Example of what we should do: https://github.com/pytorch/pytorch/blob/34127fc6880e25e71c62daf8fc8f909a4efddd2d/torch/_dynamo/variables/dicts.py#L712

Also, part of this issue is figuring out how to add a lint rule (against `import <third_party_library>` in torch/_dynamo) so that this doesn't happen again.

cc @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @amjames
Repository: vscode
Issue: Editor over cuts off markdown content in backticks when it exceeds the length of the line
Labels: bug,editor-hover

![Image](https://github.com/user-attachments/assets/34f7d7ef-af2d-4ab9-9489-9a483e5eebc9)

Expanded:

![Image](https://github.com/user-attachments/assets/f1961ec9-0a7f-4ad5-ba6b-02876a1f1a18)

Can we tweak `whitespace` for this?
Repository: vscode
Issue: triage for issue #7102
Labels: bug,menus,confirmation-pending


Type: <b>Bug</b>

reference case:

https://github.com/code/code-server/issues/7102

triage reson: verify if help report points to the same repo


VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.22631
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|12th Gen Intel(R) Core(TM) i7-12650H (16 x 2688)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|63.71GB (44.99GB free)|
|Process Argv|--crash-reporter-id 68bdc46b-dc78-4e71-8d99-08fc2ab4c4ab|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (1)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-language-pack-es|MS-|1.95.2024102309


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

```

</details>

<!-- generated by issue reporter -->
Repository: pytorch
Issue: Custom ops are not logged to dynamo_compile/TORCH_TRACE when an error occurs
Labels: module: logging,triaged,oncall: pt2

### 🐛 Describe the bug

Sample internal log where this happens: https://manifold.edge.x2p.facebook.net/v0/read/tree/logs/aps-shuaiyang-25071ebc0f/attempt_0/version_0/rank_0/index.html?bucketName=tlparse_reports&apiKey=tlparse_reports-key&withPayload=1&timeoutMsec=100If you compare 13/0 with 13/1, 13/0 reports custom ops, but 13/1 reports nothing. It should be obvious what the problem is from inspecting where we log to dynamo_compile/tlparse.

How to fix? I believe we accumulate the set of custom ops in some global mutable state, so we just need to also consult it in the failure case too.

cc @chauhang @penguinwu @masnesral 

### Versions

main
Repository: PowerToys
Issue: Allow customization of shortcut icons for Worspaces
Labels: Idea-Enhancement,Needs-Triage,Product-Workspaces

### Description of the new feature / enhancement

Currently, when creating an Workspace shortcut in PowerToys, the shortcut icon is automatically set to the first letter of the shortcut's name. While functional, this default icon may not align with the user's preferences or the applications represented by the Workspace.

It would be beneficial to allow users to customize the shortcut icon when creating or editing an Workspace. This feature could include options such as:

* Uploading a custom image file (e.g., PNG, JPEG, ICO) as the icon.
* Selecting from a predefined set of icons.

This enhancement would improve user experience and make it easier to visually identify specific shortcuts, especially when managing multiple Workspaces.

### Scenario when this would be used?

This feature would be used in scenarios where users manage multiple Workspaces with distinct purposes, such as development, testing, or specific tasks like video editing or design. Customizing the icon helps quickly and visually identify the correct Workspace without relying solely on the shortcut name, saving time and reducing errors.

As a power user, having visually distinct icons streamlines my workflow by allowing me to quickly locate and launch the appropriate Workspace. It enhances organization, reduces cognitive load, and ensures a more efficient multitasking experience, especially when juggling several Workspaces throughout the day.

### Supporting information

_No response_
Repository: PowerToys
Issue: Right clic menu reshuffle each time
Labels: Issue-Bug,Needs-Triage,Area-Context Menu

### Microsoft PowerToys version

0.86.0

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

General

### Steps to reproduce

Hi. Great tool you did. There is just something annoying at use. Whenever I use the right mouse clic on an item (file, folder, etc.) the menu reshuffles each time taking a fraction of second to build itself. That slows down productivity and makes me wait to be shure that everything is in place.

### ✔️ Expected Behavior

Right clic menu should be as fast as windows 11 shows it

### ❌ Actual Behavior

As written above, right mouse clic menu reshuffles each time 

### Other Software

_No response_
Repository: godot
Issue: GPU Particles with Damping set dissapear when Scene Tree is Paused
Labels: bug,topic:particles

### Tested versions

- Reproducible in 4.3

### System information

Godot v4.3.stable.mono - Pop!_OS 22.04 LTS - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Ti - AMD Ryzen 7 7700X 8-Core Processor (16 Threads)

### Issue description

When creating blood splatters that stay for a long period of time, I noticed that when the game is paused they would disappear.

Feels related to https://github.com/godotengine/godot/issues/83258

### Steps to reproduce

1. Create a GPU Particle effect
2. Set Gravity to 0,0,0
3. Set Damping to [1, 1]
4. Make a script to pause the scene tree
5. When paused, the particles disappears
6. The particles will re-appear if the lifetime is set to a small number, if it's set to something like 300, no new particles will appear.

### Minimal reproduction project (MRP)

[gpuParticleCheck.zip](https://github.com/user-attachments/files/18082412/gpuParticleCheck.zip)
Repository: next.js
Issue: dnyamicParams = true doesnt work with "output: export" config
Labels: bug,Output (export/standalone),Navigation,Pages Router

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/heuristic-hooks-cndpsr

### To Reproduce

The CodeSandbox from NextJS to create minimal reproductions is broken, so my linked sandbox is too

use the output: export config,

create a page with a dynamic path: `/assessment/results/[id]/page.tsx`

add these contents:

```
export const dynamicParams = true

export function generateStaticParams() {
  return [{ params: { id: '1' } }]
}

export default function Page () .... // (doesnt matter what this is)
```

Run dev server and visit `http://localhost:3000/assessment/results/6

### Current vs. Expected behavior

it should render the page dynamically, instead I get the following error:

```
Error: Page "/assessment/results/[id]/page" is missing param "/assessment/results/6" in "generateStaticParams()", which is required with "output: export" config.
```

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Education
  Available memory (MB): 32700
  Available CPU cores: 8
Binaries:
  Node: 18.17.1
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.2.3 // An outdated version detected (latest is 15.0.4), upgrade is highly recommended!
  eslint-config-next: 14.0.4
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: export
```


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

Navigation, Output (export/standalone), Pages Router

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

next dev (local)

### Additional context

_No response_
Repository: pytorch
Issue: Improve `docstring_linter`
Labels: module: docs,module: lint,triaged,better-engineering

### 🚀 The feature, motivation and pitch

The docstring_linter is very useful but here are some practical features that make it more so (after discussion with @amjames).

## "Grandfather list" of existing failures instead of numeric limits

The Issue with the numeric limits is that we can create all sorts of cruft lower than the initially very high limits for undocumented classes and functions (over 1000 lines right now).  Instead, if we just write a list of all the existing undocumented functions, and keep the numeric limits low, then new undocumented functions can't be written.

## Don't count "local functions"

Functions local to a function might be very long but not need documentation.

## Either or both of `__init__` and the class might have a docstring

The issue is that if you write copious documentation on the class, you don't need documentation on `__init__` and vice versa, so it's "unfair" to force the programmer to add them.

----

The plan is to add all these three features as options controlled by command line flags, so we can experiment between the old and new behavior.

cc @svekars @brycebortree @sekyondaMeta @AlannaBurke
Repository: excalidraw
Issue: "glyf: empty gid 410 used as component in glyph 16" right after loading the dev environment in Firefox
Labels: bug

![Image](https://github.com/user-attachments/assets/8b7cdabc-4878-4312-9991-e6ff7bb4d6a5)
Repository: react
Issue: Bug: `react-hooks/rules-of-hooks` does not allow `_Component` names underscore prefix for 'private naming convention'
Labels: Type: Discussion,Component: ESLint Rules

<!--
  Please provide a clear and concise description of what the bug is. Include
  screenshots if needed. Please test using the latest version of the relevant
  React packages to make sure your issue has not already been fixed.
-->

Latest version `eslint-plugin-react-hooks@5.1.0`

## Steps To Reproduce

```
export function _SomeComponentWeNotWantUsedOutsideThisDirectory() {
  const result = useSomeHook();
}
```

## The current behavior
Produces eslint error

> React Hook "useSomeHook" is called in function "_SomeComponentWeNotWantUsedOutsideThisDirectory" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". eslint([react-hooks/rules-of-hooks](https://reactjs.org/docs/hooks-rules.html))


## The expected behavior

No eslint warning, because we have clearly indicated it is a component using the uppercase letter after the underscore prefix.

## Proposed solution

https://github.com/facebook/react/blob/4a8fc0f92e0f75257962522b51a938bf4dfda77a/packages/eslint-plugin-react-hooks/src/RulesOfHooks.js#L49

could be easily changed to

```ts
  return node.type === 'Identifier' && /^_?[A-Z]/.test(node.name);
```

I have thought about whether it should be a config option but I'm leaning towards 'less is more'. Either  way, I'm willing to make PR for this and test coverage but need confirmation you guys will take this into consideration before I put in the work.
Repository: vscode
Issue: Unable to resize window on wayland when native titlebar used
Labels: bug,upstream,electron,wayland

<!-- ⚠️⚠️ 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.95.3 (Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813)
- OS Version: Linux x64 6.11.10-200.fc40.x86_64 (Fedora Workstation 41)

Also tested on insiders build

- VS Code Version: 1.96.0-insider (Commit: 475acb4b9bdd77d4204224990bf288ed5bfe6b0e)
- OS Version: the same

Steps to Reproduce:

1. Change TitleBar style to `native`;
2. Start VS Code with command `code --ozone-platform=wayland`. With or without options `--ozone-platform-hint` and `--enable-features` it does not matter;
3. Try to resize window with mouse;
4. You don't see any changes in cursor appearance when pointer close to application window edge or right above the edge.

The only ways to change window size are

1. Double click on titlebar to maximize window;
2. By calling `window.resizeTo(w, h);` from developer tools.