sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: terminal
Issue: Duplicating tab is *significantly* slower than new tab
Labels: Needs-Repro,Issue-Bug,Needs-Triage,Needs-Attention,Product-Terminal,Priority-3,Area-Quality

### Windows Terminal version

1.21.3231.0

### Windows build number

10.0.26100.0

### Other Software

zsh 5.9 (x86_64-ubuntu-linux-gnu)

### Steps to reproduce

1. Set default profile to Ubuntu (might not be necessary, but I have only tested this on Ubuntu, with zsh as my shell)
2. Make sure that the PWD tracking is set up
    ```zsh
    if test -n "$WT_SESSION"; then
        # See https://learn.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory
        __keep_current_path() { printf "\e]9;9;%s\e\\" "$(wslpath -w "$PWD")" }
        precmd_functions+=(__keep_current_path)
    fi
    ```
4. Open new tab---this is always _practically_ instant
5. Duplicate the tab---this _sometimes_ takes 30s to even a minute; most of the times, this is roughly as fast as opening a new tab, but other times, it takes a _long_ time (obviously, this is not WSL spin-up time, because WSL it _already_ running, and even opening a new tab works immediately). No clear pattern to _when_ it is going take longer to duplicate a tab though.

### Expected Behavior

Duplicating a tab should not be faster than opening a new tab and running `cd {prev tab working directory}`

### Actual Behavior

Duplicating the tab (sometimes) literally takes longer than me re-typing the whole path out by hand.
Repository: deno
Issue: The `ng test` command fails in Angular when using Deno
Labels: bug,node compat

I'm trying to replace Node.js with Deno in my Angular project, but generating a new project (#27382) and running unit tests fails with Deno for the current/latest Angular version. With `ng test`, it runs with the Karma test runner, and it seems that the browser fails to load the test runner, and just stays loading. The `ng test` command will fail after restarting twice.


### Reproduction

```sh
> npx @angular/cli@latest new foo
> cd foo
> deno task --eval "rm -rf node_modules"
> deno install --allow-scripts
> deno task test

Task test ng test
✔ Browser application bundle generation complete.
16 12 2024 23:50:51.572:WARN [karma]: No captured browser, open http://localhost:9876/
16 12 2024 23:50:51.919:INFO [karma-server]: Karma v6.4.4 server started at http://localhost:9876/
16 12 2024 23:50:51.920:INFO [launcher]: Launching browsers Chrome with concurrency unlimited
16 12 2024 23:50:52.152:INFO [launcher]: Starting browser Chrome
16 12 2024 23:51:52.181:WARN [launcher]: Chrome has not captured in 60000 ms, killing.
16 12 2024 23:51:53.349:INFO [launcher]: Trying to start Chrome again (1/2).
16 12 2024 23:52:53.364:WARN [launcher]: Chrome has not captured in 60000 ms, killing.
16 12 2024 23:52:53.638:INFO [launcher]: Trying to start Chrome again (2/2).
16 12 2024 23:53:53.647:WARN [launcher]: Chrome has not captured in 60000 ms, killing.
16 12 2024 23:53:53.885:ERROR [launcher]: Chrome failed 2 times (timeout). Giving up.
```


Version: Deno 2.1.4
Repository: PowerToys
Issue: [PTRun] plugin activation commands in search results
Labels: Product-PowerToys Run,Needs-Triage,Run-Plugin

### Description of the new feature / enhancement

Add plugin activation commands in search results, searching plugin names will show them as one of the results. Use calculator for example, searching "Calculator" will give the activation command of calculator as one of the results, selecting this result will update the input by that command ("=") for further user input.

### Scenario when this would be used?

It's for those who have a lot of plugins enabled but cannot remember all the activation commands.

### Supporting information

_No response_
Repository: pytorch
Issue: An idea to improve Welford implementation in Inductor
Labels: triaged,oncall: pt2

### 🐛 Describe the bug

Inductor implements a one-pass Welford algorithm to compute variance. The basic idea is to maintain 3 metrics (weight, mean, m2) for each group of items, and implement a combine function to merge these metrics for two group of items.

- Weight represents the number of elements in the group
- mean represents the mean value of the elements in the group
- M2 represents $\sum(x_i - mean) ^ 2$  summing over each element within the group

There are 3 places this can be improved
1. instead of maintaining mean, we can just maintain sum. By maintaining mean, we need keep adapting the denominator when we combine two groups since the number of elements get changed
2. instead of maintaining M2, we can just maintain sum_of_square $\sum{x_i ^ 2}$ (i.e. equivalent to temporarily pretending the mean is 0). By maintaining M2, we need keep adapting for the fact that 'mean' get changed when we combining two groups.
3. By doing 1 & 2, we don't need track weight anymore. That means we use **LESS REGISTERS**.

The end result is equivalent to leveraging the following equation to compute variance:
$$BiasedVariance = \frac{\sum(x_i - mean) ^ 2}{n} = \frac{\sum{x_i ^ 2}}{n} - mean ^ 2$$

These optimization may not improve perf for every kernel. But I think it worth the effort for the following reasons
1. it simplifies the implementation quite a bit. 
2. if the kernel is fused with surrounding kernels and there is register pressure, using less registers indeed helps perf.

cc @chauhang @penguinwu @jansel @Chillee @eellison @peterbell10  for comments



### Error logs

.

### Versions

.
Repository: vscode
Issue: Strip characters from `"onEnterRules"` string
Labels: feature-request,editor-autoindent

currently only `brackets` are stripped before `"onEnterRules"` evaluates

> this could also lead to unintended side effects where a bracket was removed when it shouldn't have
> tho idk if there are any examples

it would be nice to manually define what characters via a set or regex
OR
an option to disable `"onEnterRules"` when inside a `string`/`comment`/`regex`/`other`

related https://github.com/microsoft/vscode/issues/209519#issuecomment-2198372691

Steps to Reproduce:

1. install pre-release [RedCMD.yaml-syntax](https://marketplace.visualstudio.com/items?itemName=RedCMD.yaml-syntax) extension
2. create YAML file with code snippet
```yaml
block-scalar:
  bracket:
    >9
  pipe:
    |9

string:
  bracket
    >9
  pipe
    |9

#comment
#  bracket
#    >9
#  pipe
#    |9

```
![Image](https://github.com/user-attachments/assets/17c811ea-4d26-48c3-93a5-f7288554cb63)

3. press enter on all lines ending with `9`

expected:
only the `block-scalar:` ones should indent with 9 spaces
![Image](https://github.com/user-attachments/assets/fef34160-548b-4828-be2d-5f69b6a73313)


actual:
all `|9` lines indent with 9 spaces
![Image](https://github.com/user-attachments/assets/e886b633-309c-4bd7-b0ea-90a44e836272)

this is because `>` is marked as a bracket and is removed from the string before `"onEnterRules"` evaluates
however `|` is not removed, because I cannot define it as a bracket without side affects

`"previousLineText"` won't fix it because previous lines can be blank in all contexts

```json
{
	// indent 9 spaces after block-scalar with indentation-indicator
	"action": {
		"appendText": "         ",
		"indent": "none",
	},
	"afterText": "^(?![ \t]*#)",
	"beforeText": "([ \t]+|^)[|>][+-]?9"
}
```

cc @aiday-mar 

Does this issue occur when all extensions are disabled?: Yes

- VS Code Version: 1.96.0
- OS Version: Windows 11
Repository: vscode
Issue: variable -> Rename symbol -> ctrl+enter (Preview); doesn't work, collides with Cell Execution shortcut
Labels: bug,notebook-commands

### Applies To

- [x] Notebooks (.ipynb files)
- [ ] Interactive Window and\/or Cell Scripts (.py files with \#%% markers)

### What happened?

When trying to Rename symbol (variable) in a cell, there is a CTRL+ENTER option for Preview.
This works in .py files,
but not in .ipynb files, since it obviously collides with Cell Execution shortcut...
🤔

### VS Code Version

Version: 1.95.3

### Jupyter Extension Version

v2024.10.0

### Jupyter logs

```shell

```

### Coding Language and Runtime Version

_No response_

### Language Extension Version (if applicable)

_No response_

### Anaconda Version (if applicable)

_No response_

### Running Jupyter locally or remotely?

None
Repository: vscode
Issue: CTRL+A randomly breaks in Jupyter notebooks
Labels: bug,notebook-commands

Sometimes, while using a Python jupyter notebook, my CTRL+A will randomly stop working. I won't be able to select all text in a code block. I will be able to CTRL+A in the output and actually, sometimes, doing that AND pasting it a code block with then 'free' CTRL+A, but sometimes it won't and the only way out is to close my notebook and open it again which is really quite disruptive and annoying since I have to run everything again.

This bug started maybe 1-2 months ago now.

My build is:
```
Version: 1.90.0 (user setup)
Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573
Date: 2024-06-04T19:33:54.889Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22621
```

My Jupyter version is `v2024.5.0`.
Repository: vscode
Issue: Command Center should shrink when not enough space
Labels: bug,titlebar,layout,command-center

When Vscode is in English the menu bar contains the items "file", "edit", "selection", "view", "go", "run", "terminal" and "help".
![Image](https://github.com/user-attachments/assets/ca2be6d6-b0a0-4bec-83f8-a3d495a9152e)
When I change the display language to Spanish it shows like this:
![Image](https://github.com/user-attachments/assets/46893226-fb7a-4bcc-8ccf-86cc0e0b7c45)

Best regards
Repository: angular
Issue: ADEV: formatting of APIs with long argument types
Labels: area: dev-infra

### Describe the problem that you experienced

Currently, when an API has a some complex types, those types are being displayed as a single line in API docs, for example: https://angular.dev/api/core/afterNextRender. It'd be great to find a way to represent those types in a more readable form.

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

https://angular.dev/api/core/afterNextRender
Repository: ui
Issue: [bug]: duplication of toast manual installation
Labels: bug

### Describe the bug

All the code for manual installation in toast is duplicated

![Screenshot 2024-12-17 031201](https://github.com/user-attachments/assets/fa077c4a-a491-4f24-8e2a-08c4d759f74f)


![Screenshot 2024-12-17 030635](https://github.com/user-attachments/assets/3406d5ab-1195-42d0-8bd4-3db152a6a8d0)

![Screenshot 2024-12-17 031014](https://github.com/user-attachments/assets/0b7c576b-453a-46a3-b52e-2c91dd1d10c3)


### Affected component/components

Toast

### How to reproduce

1. Go to the website https://ui.shadcn.com/docs/components/toast

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Windows, Chrome
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: deno
Issue: Deno Test Internal Data Access
Labels: suggestion,testing

I have a suite of tests that I am interested in running every 24H, but not earlier than that (unless the last run failed).

The reason for that is that they are expensive (both computationally and monetarily as they access paying services).

My current strategy is hacky:

1. On the last test of the suite, store the date on `localStorage` with `import.meta.filename` as the key
2. At the beginning of the test, check the date and if less than 24, set const `ignore` to `true`
3. Add `{ ignore: ignore }` to all tests so that they are ignored if 24H have not gone by
4. Not forget to add `--fail-fast` (so that the date is NOT stored on failure)

As you can see, many things can go wrong with this approach.

I know that I could set a scheduler to run it every 24H or something like that, but I do not want to reach for "cron" oriented solutions.

My ask is to have access to the current suite of tests. How many have passed? How many have failed? Having read-only access to this info in user land could enable me to not depend on `--fail-fast`. And it would be nice to have a `beforeAll` `afterAll` without the additional structure of building steps.

Cheers.
Repository: pytorch
Issue: [ROS Jazzy + WSL2] No module named 'torch' when launching a ROS node with virtualenv
Labels: module: windows,triaged,module: wsl

Hello, I am currently working on a ROS Jazzy project inside WSL2 (Ubuntu). I am using a Python virtual environment to install libraries like torch. However, when I launch my node using roslaunch, I encounter this error:

[ERROR] [launch]: Caught exception in launch (see debug for traceback): No module named 'torch'


---

System setup:

OS: WSL2 (Ubuntu 22.04)

ROS version: ROS 2 Jazzy

Python version: Python 3.10

Virtual Environment: Created with venv

Installed libraries:

torch 2.5.1

torchvision 0.20.1

torchaudio 2.5.1




---

Steps I followed:

1. Created a virtual environment:

python3 -m venv ~/.venv
source ~/.venv/bin/activate
pip install torch torchvision torchaudio


2. Edited the shebang line in my Python script to point to the virtual environment:

#!/home/nora/.venv/bin/python3


3. Tested torch manually inside the virtual environment, and it works fine:

python3 -c "import torch; print(torch.version)"


4. However, when I use roslaunch to run the node, the error appears:

No module named 'torch'




---

What I have tried so far:

1. Verified that the environment variables like PYTHONPATH and PATH are pointing to the virtual environment.


2. Added the virtual environment path to PYTHONPATH inside the launch file:

<env name="PYTHONPATH" value="/home/nora/.venv/lib/python3.10/site-packages"/>


3. Checked the default Python interpreter used by ROS using which python3.




---

Question:

How can I ensure that ROS uses the virtual environment’s Python interpreter and libraries (like torch) when launching nodes?

Is there a standard way to make roslaunch work with virtual environments?



---

Tags:

#ros2

#python

#virtualenv

#wsl2

#torch


cc @peterjc123 @mszhanyi @skyline75489 @nbcsm @iremyux @Blackhex
Repository: ant-design
Issue: 在 iPad 17.7 下的 table 横向滚动条在固定列的问题
Labels: help wanted,📱Mobile Device

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/antd-reproduction-template-forked-8cxn4d?file=%2Findex.js%3A18%2C16)

### Steps to reproduce

用 ipad 左滑右滑表格 看滚动条

### What is expected?

滚动条不被固定列挡住

### What is actually happening?

滚动条被固定列挡住


| Environment | Info |
| --- | --- |
| antd | 4.24.11 |
| React | 17.0.2 |
| System | iPad OS 17.7.1 |
| Browser | Chrome 131 |

---
可能是 ipad 17.7 的问题 ipad 17.6 无此问题

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: PowerToys
Issue: Counter overflow may need better tips.
Labels: Product-PowerToys Run,Needs-Triage


![Image](https://github.com/user-attachments/assets/322f61ba-92ae-45a5-8af7-9b99b83b0da1)
Repository: node
Issue: HTTP/1.0 responses missing Content-Length
Labels: http

### Version

v22.10.0

### Platform

```text
Darwin ... 24.2.0 Darwin Kernel Version 24.2.0: ...; root:xnu-11215.61.5~2/RELEASE_ARM64_T6000 arm64 arm Darwin
```

### Subsystem

http

### What steps will reproduce the bug?

Start a simple HTTP server.
```
import http from "node:http";
http.createServer(function (req, res) {
    res.end("hello");
}).listen(3000);
```
Send it an HTTP/1.0 request using cURL.
```
$ curl --http1.0 -XGET -I 127.0.0.1:3000
HTTP/1.1 200 OK
Date: Tue, 17 Dec 2024 03:26:02 GMT
Connection: close
```

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

Consistently reproducible.

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

I would expect the response to include a `Content-Length` header.

### What do you see instead?

The response does not include a `Content-Length` header.

### Additional information

If we instead send an HTTP/1.1 request (either with or without `Keep-Alive`), the `Content-Length` header is included.
```
$ curl --http1.1 -XGET -I 127.0.0.1:3000
HTTP/1.1 200 OK
Date: Tue, 17 Dec 2024 03:31:41 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Content-Length: 5

$ curl --http1.1 -H"Connection: close" -XGET -I 127.0.0.1:3000
HTTP/1.1 200 OK
Date: Tue, 17 Dec 2024 03:32:35 GMT
Connection: close
Content-Length: 5
```

This seems strange. I would expect to see a `Content-Length` header regardless of whether the request was HTTP/1.0 or HTTP/1.1.

Attaching a debugger, the HTTP/1.0 request triggers the former clause and the HTTP/1.1 request triggers the latter clause in the following HTTP server code.

https://github.com/nodejs/node/blob/2cd385ef6714b24b62edf22dd2ddd756eee9d16b/lib/_http_outgoing.js#L553-L559
Repository: vscode
Issue: Please improve the default style of the checkbox to make it more consistent with the custom theme style and keep the same theme appearance style.
Labels: feature-request,debug,themes

<!-- ⚠️⚠️ 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. -->

Please improve the default style of the checkbox to make it more consistent with the custom theme style and keep the same theme appearance style.

Hello friends! Please improve the default style of the checkbox to make it more consistent with the custom theme style and keep the same theme appearance style.

For example:

![Image](https://github.com/user-attachments/assets/689e03f9-52b2-4c85-889c-1ba78003b007)

![Image](https://github.com/user-attachments/assets/ca506f0b-d856-4dd3-87f7-ee6c0415b855)

![Image](https://github.com/user-attachments/assets/2ab01f3c-b0e6-425e-b0ed-541ab1b574d5)

The background color, foreground color, border color, checkbox size, checkbox rounded size and other styles of the checkbox need to be improved.
Repository: pytorch
Issue: Error in DTensor uneven shard view op
Labels: oncall: distributed,module: dtensor

### 🐛 Describe the bug

**Description**: 
There seems to be an issue when reshaping/viewing an unevenly sharded DTensor.

**Code to Reproduce:**
torchrun --nproc_per_node=4 test.py
In this test case has 512 elements on ranks 0-2 and 0 elements on rank 3. The error occurs during the view operation.
```
import torch
from torch.distributed._tensor import Replicate, Shard, distribute_tensor, DTensor
from torch.distributed.device_mesh import init_device_mesh
from datetime import timedelta
import torch.nn as nn

new_mesh = init_device_mesh("cuda", [4], mesh_dim_names=["tp"])
x=torch.randn((6,256),dtype=torch.float32,device="cuda")

def a(x):
    d_x = DTensor.from_local(x, device_mesh=new_mesh, placements=[Replicate()])
    d_x = d_x.redistribute(device_mesh=new_mesh, placements=[Shard(dim=0)]) 
    d_x = d_x.view(-1)
    return d_x

out=a(x)
```

**Error log:**
For ranks 0-2:
```
[rank0]:   File "/opt/tiger/test.py", line 13, in a
[rank0]:     d_x = d_x.view(-1)
[rank0]:           ^^^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.11/dist-packages/torch/_compile.py", line 31, in inner
[rank0]:     return disable_fn(*args, **kwargs)
[rank0]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.11/dist-packages/torch/_dynamo/eval_frame.py", line 600, in _fn
[rank0]:     return fn(*args, **kwargs)
[rank0]:            ^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.11/dist-packages/torch/distributed/_tensor/api.py", line 309, in __torch_dispatch__
[rank0]:     return DTensor._op_dispatcher.dispatch(
[rank0]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.11/dist-packages/torch/distributed/_tensor/_dispatch.py", line 205, in dispatch
[rank0]:     local_results = op_call(*local_tensor_args, **op_info.local_kwargs)
[rank0]:                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/usr/local/lib/python3.11/dist-packages/torch/_ops.py", line 667, in __call__
[rank0]:     return self_._op(*args, **kwargs)
[rank0]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]: RuntimeError: shape '[384]' is invalid for input of size 512
```
For rank 3:
```
RuntimeError: shape '[384]' is invalid for input of size 0
```


cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o @tianyu-l @XilunWu
Repository: pytorch
Issue: DISABLED test_disable_external_correlation (__main__.TestProfiler)
Labels: module: rocm,triaged,skipped

Platforms: rocm

This test was disabled because it is failing on main branch ([recent examples](https://torch-ci.com/failure?failureCaptures=%5B%22profiler%2Ftest_profiler.py%3A%3ATestProfiler%3A%3Atest_disable_external_correlation%22%5D)).

The test is failing on ROCm https://github.com/pytorch/pytorch/pull/143314

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd @sraikund16
Repository: rust
Issue: Error mentions invalid nested HRTB: `&mut for<'a> fn(for<'a> fn(&'a ()))`
Labels: A-pretty,A-diagnostics,T-compiler,D-incorrect,A-higher-ranked

### Code

```Rust
// Note: F1 and F2 are subtypes of each other. Not sure if relevant.
type F1 = fn(fn(&'static ()));
type F2 = for<'a> fn(fn(&'a ()));

fn foo(a: &mut F1) {
    let _: &mut F2 = a;
}
```

### Current output

```Shell
Compiling playground v0.0.1 (/playground)
error[E0308]: mismatched types
 --> src/lib.rs:6:22
  |
6 |     let _: &mut F2 = a;
  |                      ^ one type is more general than the other
  |
  = note: expected mutable reference `&mut for<'a> fn(for<'a> fn(&'a ()))`
             found mutable reference `&mut fn(fn(&()))`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `playground` (lib) due to 1 previous error
```

### Desired output

```Shell
Compiling playground v0.0.1 (/playground)
error[E0308]: mismatched types
 --> src/lib.rs:6:22
  |
6 |     let _: &mut F2 = a;
  |                      ^ one type is more general than the other
  |
  = note: expected mutable reference `&mut for<'a> fn(fn(&'a ()))`
             found mutable reference `&mut fn(fn(&()))`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `playground` (lib) due to 1 previous error
```

### Rationale and extra context

The error prints `&mut for<'a> fn(for<'a> fn(&'a ()))`, which has nested `for<'a>` HRTB binders, which is illegal syntax.

### Other cases

```Rust
// Using a *mut instead of &mut produces the correct error

type F1 = fn(fn(&'static ()));
type F2 = for<'a> fn(fn(&'a ()));

fn foo(a: *mut F1) {
    let _: *mut F2 = a;
}
```

### Rust Version

```Shell
Reproduced issue on the playground with stable rust `1.83.0` and nightly rust `1.85.0-nightly (2024-12-16 6d9f6ae36ae1299d6126)`
```

### Anything else?

_No response_