sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: PowerToys
Issue: Workspaces does not detect MATLAB
Labels: Issue-Bug,Needs-Triage,Product-Workspaces

### Microsoft PowerToys version

0.84.1

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Workspaces

### Steps to reproduce

Try to capture workspace that includes MATLAB. It will not be detected.

### ✔️ Expected Behavior

MATLAB is captured and properly launches as expected on workspace launch.

### ❌ Actual Behavior

MATLAB is not detected and cannot be saved as part of a workspace.

### Other Software

_No response_
Repository: TypeScript
Issue: Missing Handbook Content
Labels: Docs

### Acknowledgement

- [x] I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.

### Comment

Cleaned up from raw notes from @navya9singh:

### Handbook

 * [ ] Isolated declarations
 * [ ] Decorators
 * [ ] JSDOc: add `@overload` and `@import` to https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html
 * [ ] Add `satisfies` next to `as`
 * [ ] Add instantiation expressions to Generic Functions https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-7.html#instantiation-expressions
 * [ ] Add [extends constraints on infer](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-7.html#extends-constraints-on-infer-type-variables) to conditional types
 * [x] Variance annotations
 * [ ] Explain supported [dependent parameters](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-6.html#control-flow-analysis-for-dependent-parameters) in CFA
 * [ ] Add `ts-ignore` and `ts-expect-error` to Basics
 * [ ] Add more on striter generators [here](https://www.typescriptlang.org/docs/handbook/iterators-and-generators.html#handbook-content)
 * [ ] [Assertion functions](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions)
 * [ ] Discuss reverse inference of mapped types

### TSConfig

* [ ] Make a TSConfig 101 page with a short list of options, put it in the Handbook main flow
* [ ] `$configDir` [link](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-5.html#the-configdir-template-variable-for-configuration-files)
* [ ]  Multiple `extends` https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#supporting-multiple-configuration-files-in-extends

### Modules Reference

 * [ ] Resolution Mode (4.7, 5.3) [link](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-3.html#resolution-mode-supported-in-all-module-modes)
Repository: PowerToys
Issue: MWB Issues with windows open as another user
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.84.1

### Installation method

PowerToys auto-update, Microsoft Store

### Running as admin

No

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

This is all done on a remote machine.
Open a program such as Active Directory as another user.
Try to click on the window or type. nothing happens.
If the window is focused, no other window can be clicked on.
Any input device connected to the remote machine work normally. It's only remote inputs that don't work.
This used to work a month or so ago. Not sure if this was due to a Windows update (where you have to do an extra right-click on a taskbar icon before you can shift right-click to get the run as option.) or this program.

### ✔️ Expected Behavior

_No response_

### ❌ Actual Behavior

_No response_

### Other Software

_No response_
Repository: deno
Issue: Deno.chdir() breaks --watch reloading
Labels: bug

Version: Deno 1.46.3

When calling `Deno.chdir()` to any directory, and the code is reloaded using the `--watch` flag, the module will be looked for in the new directory, not in the original root directory.

More broadly, `Deno.chdir()` is a global which affects how `Deno` runs, which doesn't seem right.

Minimum example:

`main.ts`

```ts
import { sleep } from "https://deno.land/x/openai@v4.55.7/core.ts";
import { checkdir } from "./imported.ts";

console.log("Files reloaded");
Deno.mkdirSync("temp", { recursive: true });
Deno.chdir("temp");
for (let i = 0; i < 1000; i++) {
  await sleep(1000);
  checkdir();
}
```

`imported.ts`

```ts
export function checkdir() {
  console.log("Deno.cwd(): ", Deno.cwd());
}
```

Run this with 

```sh
deno run --allow-all --watch ./main.ts main.ts
```

Now save the `main.ts` file.

Expected output:

```
Watcher File change detected! Restarting!
Files reloaded
Deno.cwd():  /Users/user/test-watch-chdir
...
```

Actual output:

```
Watcher File change detected! Restarting!
error: Module not found "file:///Users/user/test-watch-chdir/temp/main.ts".
Watcher Process failed. Restarting on file change...
```
Repository: godot
Issue: Node::set_name and Node::get_name have inconsistent types
Labels: enhancement,topic:core

### Tested versions

- 4.3-stable

### System information

- Windows 10

### Issue description

Node::set_name is expecting a String parameter, while Node::get_name returns a StringName.
This is not an issue when using GDScript as the language can seamlessly use both, but it is for third party languages that can use properties. 
When generating bindings for the Kotlin language, the `name` property for Node doesn't compile because of the difference in type between getter and setter. The language doesn't have implicit conversion like C++ or GDScript. To bypass this, we use StringName for both and rely on the C++ Variant  ability to cast it back to String when calling `MethodBind::call`, but soon we will switch to `MethodBind::ptrcall` for optimization purposes and I think this won't work anymore.

### Steps to reproduce

-

### Minimal reproduction project (MRP)

-
Repository: godot
Issue: Editor window title and some button titles turn black when custom formatted tooltips are shown using Mobile/Forward+ renderer
Labels: bug,topic:rendering

### Tested versions

4.3.stable

### System information

macOS 14.6.1

### Issue description

When using the Mobile or Forward+ renderers the window title of the macOS editor window, (and unselected tab items to the left of the selected) turn black instead of white when the window loses focus. Interestingly, this also happens when you hover over FileSystem file items and get their tooltip popups (I guess these tooltips are implemented differently than other tooltips, causing the window to lose focus?).

The issue does not happen using the Compatibility renderer, which is also strange. 

Expected appearance (compatibility renderer):
![Screenshot 2024-09-10 at 19 01 30](https://github.com/user-attachments/assets/d2ec79f9-d3db-4a9d-9f75-cf0d08cfb492)

Mobile (same on Forward+):
![Screenshot 2024-09-10 at 19 02 20](https://github.com/user-attachments/assets/3434f35a-200f-40fe-8202-d40c2b5ae082)

Hover tooltip discrepancy. Notice effect when hovering over a file:
https://github.com/user-attachments/assets/ad464126-5de5-4ee8-b1c8-18160cab7bf1




### Steps to reproduce

- Run the Godot editor on macOS with a project using Mobile or Forward+.
- Open the About Godot or Settings window, causing the main window to lose focus.
- Or, try hovering a file in the file system.

### Minimal reproduction project (MRP)

Just editor required.
Repository: go
Issue: go/printer: CL 609077 causes unintended formatting changes
Labels: NeedsInvestigation

[go.dev/cl/609077](https://go.dev/cl/609077) causes a change in formatting. Reading the CL description and the test cases leads me to believe that this change is unintended.

Reproducer:
```
package main

import (
	"bytes"
	"fmt"
	"go/parser"
	"go/printer"
	"go/token"
)

const content = `package foo

type S struct {
//- comment
Name *string 
}`

func main() {
	fset := token.NewFileSet()
	file, err := parser.ParseFile(fset, "", content, parser.ParseComments)
	if err != nil {
		panic(err)
	}
	var out bytes.Buffer
	if err := (&printer.Config{Mode: printer.TabIndent | printer.UseSpaces, Tabwidth: 8}).Fprint(&out, fset, file); err != nil {
		panic(err)
	}
	fmt.Println(out.String())
}
```

Before go.dev/cl/609077, this printed:
```
package foo

type S struct {
        // - comment
        Name *string
}
```

After go.dev/cl/609077, this prints:
```
package foo

type S struct {
        //- comment
        Name *string
}
```
Repository: ui
Issue: [bug]: Input field outline color is not displayed on focus
Labels: bug

### Describe the bug

When focusing on an input field, the outline color is not appearing as expected. This issue affects the visual feedback when users interact with input elements, making it less clear that the field is active.

Feel free to add additional details, such as browser versions, operating system, or any steps to reproduce the issue, to make the report more comprehensive.

**Note: For latest version shadcn**

### Affected component/components

Input

### How to reproduce

:root {
  --background: #ffffff;
  --foreground: #171717;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

The main bug is here..... please fix it
if i use this 
:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 214, 219, 220;
  --background-end-rgb: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {
  :root {
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 0, 0, 0;
    --background-end-rgb: 0, 0, 0;
  }
}
My bug fix...
Repository: opencv
Issue: Difference in saturation behavior between single-channel and multi-channel matrix operations
Labels: bug,category: core

### System Information

OpenCV version 4.9.0
Operating System / Platform: Windows 10
Compiler & compiler version: MSVC2019

### Detailed description

For a single channel matrix `m`, an integer `c` and a cv::Scalar `b`, the operation
```
m = c*(m - b)
```
results in saturation being applied only after the right-hand-side has been fully evaluated. But for a multi-channel image, saturation is applied to `c*m` before subtracting `c*b`.

This leads to unexpected results. Let `c` be 4, let `m` be an 8-Bit 3-channel matrix (CV_8UC3) and have a value of 100 for all pixels and channels, and let `b` have a value of 70 for each channel. The result of `c*(m-b)` should be a matrix with values of `4*(100 - 70) = 120`. Instead it is a matrix of zeros because `4*100` was capped at 255 and after subtracting `4*70` we get -25 which becomes 0 after the final saturation operation. 

The accepted answer to this issue on SO (https://stackoverflow.com/a/78963620/5398144) traces this to `MatOp_AddEx::assign` in core/src/matrix_expressions.cpp (https://github.com/opencv/opencv/blob/4.x/modules/core/src/matrix_expressions.cpp#L1342). 
A 3-channel matrix operation, with the addition of a 3-channel scalar fall into the final `else` statement:
```
else
    {
        e.a.convertTo(dst, e.a.type(), e.alpha);
        cv::add(dst, e.s, dst);
    }
```
So the operations that are happening boil down to:
```
m.convertTo(dst, m.type(), c); // which applies saturation to c*m
cv::add(dst, -c*b, dst);
```

### Steps to reproduce

```
#include <iostream>
#include <opencv2/core/core.hpp>

int main()
{
  std::cout << "c m1 m3" << std::endl;
  for (int c = 1; c <= 9; c++){
    cv::Mat m1 = cv::Mat::zeros(1,1, CV_8UC1);
    cv::Mat m3 = cv::Mat::zeros(1,1, CV_8UC3);
    m1 += cv::Scalar(100);
    m3 += cv::Scalar(100,100,100);
    cv::Scalar b1 = cv::Scalar(70);
    cv::Scalar b3 = cv::Scalar(70,70,70);
    m1 = c*(m1 - b1);
    m3 = c*(m3 - b3);
    int m1_val = m1.at<uchar>(0,0);
    int m3_val = m3.at<cv::Vec3b>(0,0)[0];
    std::cout << c << " " << m1_val << " "  << m3_val << std::endl;
  }

  return 0;
}
```
Output:
```
c m1 m3
1 30 30
2 60 60
3 90 45 // For multi-channel 3*100 gets capped at 255. After subtraction of 3*70, result is 45
4 120 0 // For multi-channel 4*100 gets capped at 255. After subtraction of 4*70, result is 0
5 150 0
6 180 0
7 210 0
8 240 0
9 255 0 // The single-channel result is only capped once c*(30) is greater than 255
```

### 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
- [ ] 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: godot
Issue: `CSGShape3D` with collision but no visuals do not show gizmo
Labels: bug,topic:editor,topic:3d

### Tested versions

Reproducible in 4.3.stable and 4.4.dev

### System information

Godot v4.3.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1660 SUPER (NVIDIA; 32.0.15.6081) - Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz (16 Threads)

### Issue description

A `CSGShape3D` with `Use Collision` enabled, but set to invisible will not show any gizmos, as the gizmo visibility is linked to node visibility. This makes it impossible to visualize CSGs that are meant purely for collision purposes.

![CSG_Gizmo_Visibility](https://github.com/user-attachments/assets/6031567c-2fa1-4625-838f-98ab0fcf09b6)

The expected behaviour would be for all `CSGShape3D` gizmos to remain on if  _either_ the `Use Collision` property _or_ `Visible` property are true.

Note that this is a follow-up issue to a series of prior issues and fixes. You can find a summary of them here: #86699

### Steps to reproduce

- Make any `CSGShape3D` in any scene
- Enable its `Use Collision` property
- Toggle its `Visible` property.
- Note that the gizmo disappears when `Visible` is false.

### Minimal reproduction project (MRP)

N/A
Repository: tauri
Issue: [bug] use BUN package manager to create a project report "Error: cannot find module ... ...cli\tauri.js"
Labels: type: bug,status: needs triage

### Describe the bug

Same as the title ,additionally use npm can run normally.

### Reproduction

_No response_

### Expected behavior

_No response_

### Full `tauri info` output

```text
f:\tauri\new\BunTtV2>bun tauri info
$ tauri info
node:internal/modules/cjs/loader:1148
  throw err;
  ^

Error: Cannot find module 'F:\F:\tauri\new\BunTtV2\node_modules\@tauri-apps\cli\tauri.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at Module._load (node:internal/modules/cjs/loader:986:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.14.0
error: script "tauri" exited with code 1
```


### Stack trace

_No response_

### Additional context

_No response_
Repository: terminal
Issue: Introduce keyboard shortcut for Clear buffer command
Labels: Issue-Feature,Area-Settings,Product-Terminal

# Description of the new feature/enhancement

Introduce a default keyboard shortcut, such as Control + Shift + K, for the Clear buffer command to ease keyboard users clearing the buffer.
Repository: svelte
Issue: Svelte 5 TS: `class` property in template literal causes Unterminated template / Unexpected token!
Labels: bug

### Describe the bug

[Optional chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining) to a property named `class` inside a [template literal](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) in a TypeScript script breaks the Svelte 5 parser.

### Reproduction

```svelte
<script lang="ts">
  const str = `${obj?.class}`;
</script>
```
[Throws `Unterminated template`.](https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAAyWMQQrCMBBFrzIMLkX3sa14DlNoTKcSSZOQmQoScndTunyf91_BxXliVM-CwayECh8p4Rnll3bgL3mhxhy3bPelY5tdEvAmvHuNwhoHHQBsDCzAkqGH6VTi63O_WG-Y63TTobset6a22BpntziaUUneqI71D9lEj0KHAAAA)

```svelte
<script lang="ts">
  const str = `${obj?.class} ${42}`;
</script>
```
[Throws `Unexpected token`.](https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAAyWMQQrCMBAAv7IsPYqCeIqt4juM0JhuJZImIbsVJOTvpnicgZmCs_PEqO4Fg1kIFd5Swh3KN23AH_JCjTmu2W6mZ5tdEvAmvAaNwhovOgDYGFiAJcMAY1fi833dW2-YK3TldKzjWYf-8I9b0JZLnNzsaEIleaX6qD_ecy3KjQAAAA==)

### Severity

blocking an upgrade
Repository: vscode
Issue: [Feature Request] "Selection Highlight" max characters setting (currently hard-coded at 200)
Labels: feature-request,editor-core

<!-- ⚠️⚠️ 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. -->

[This issue from Nov 2020](https://github.com/microsoft/vscode/issues/111002) describes very clearly that the `editor.selectionHighlight` functionality works only for 200 characters or less. Computers are always getting faster - maybe this can be a setting?
Repository: ui
Issue: [bug]: Combobox should have similar focus to select and other inputs
Labels: bug

### Describe the bug

Currently when you focus on the combobox there is no focus ring. However, if you tab to the combobox (using focus-visible) there is a ring. The goal should be to make the combobox work like the select regarding focus rings.

The problem is that the trigger for the combobox is a button and buttons in shadcn don't have a ring on focus.

The Combobox example does not have the correct classes on the trigger (Button).

<img width="522" alt="image" src="https://github.com/user-attachments/assets/d509dd69-c1fe-475d-9d2f-f021190b2dfc">

The Select component has focus classes on the trigger (Button):

<img width="958" alt="image" src="https://github.com/user-attachments/assets/dee2baf8-02f7-48be-9f70-3d0e451ed02c">

When I add the tailwind focus classes to my combobox it seems to work ok, but not quite the experience as the Select.

```
<Popover open={open} onOpenChange={setOpen}>
        <PopoverTrigger asChild>
          <Button
            variant="outline"
            role="combobox"
            aria-expanded={open}
            className="w-[200px] justify-between ring-offset-background focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"
          >
```

<img width="329" alt="image" src="https://github.com/user-attachments/assets/3f8f4b68-ca67-4be0-acf2-f2fedd321f32">


but maybe you want to have more integrated solution.


### Affected component/components

Combobox

### How to reproduce

1. Click on combobox, is no focus ring.
2. Tab to combobox, there is focus ring.
3. Click on select, there is focus ring.
4. Tab to select, there is focus ring.

### Codesandbox/StackBlitz link

https://ui.shadcn.com/docs/components/combobox

### Logs

_No response_

### System Info

```bash
Chrome latest
Shadcn latest
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: pytorch
Issue: LLaMA v3.1 on MPS backend breaks in BinaryOp mps::add_sub_lerp_template
Labels: high priority,triaged,module: mps

### 🐛 Describe the bug

Error: `failed assertion `[MPSNDArray initWithDevice:descriptor:isTextureBacked:] Error: total bytes of NDArray > 2**32'`

Requires similar tiling approach to BinaryOp that was done for the batch matmul op here: PR #133430

Reproduces with running LLaMA v3.1 on the current nightly PyTorch.

Script to repro

```python
import torch
import transformers

if not torch.backends.mps.is_available():
    raise RuntimeError(
        "Please enable MPS on your machine. See https://pytorch.org/docs/stable/backends.html#torch-multiprocessing-mp"
    )
_TORCH_DEVICE = "mps"

pipeline = transformers.pipeline(
    "text-generation",
    model="meta-llama/Meta-Llama-3.1-8B-Instruct",
    device=_TORCH_DEVICE,
    torch_dtype=torch.bfloat16
)

needle = "needle"
hay = "hay"  # 3 + 1 chars per element

target_num_tokens_approximate = 20_000
haystack = [hay] * target_num_tokens_approximate
test_index = 42
haystack[test_index] = needle
haystack_list = list(haystack)
prompt = f"""
Please return the index of the needle in the haystack as an integer.
Return only the integer number index.
<BEGIN HAYSTACK>
{" ".join(haystack_list)}
<END HAYSTACK>
"""

messages = [
    {"role": "system", "content": prompt},
]
result = pipeline(
    messages,
    max_new_tokens=200,
)
messages = result[0]["generated_text"]
completion = messages[-1]["content"]

print("successful inference")
print(f"completion: {completion}")
print(f"test_index: {test_index}")

```

### Versions

Collecting environment information...
PyTorch version: 2.5.0.dev20240909
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 15.0 (arm64)
GCC version: Could not collect
Clang version: 15.0.0 (clang-1500.3.9.4)
CMake version: version 3.30.2
Libc version: N/A

Python version: 3.11.9 (main, Apr 19 2024, 11:43:47) [Clang 14.0.6 ] (64-bit runtime)
Python platform: macOS-14.6-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Apple M1 Ultra

Versions of relevant libraries:
[pip3] numpy==2.0.1
[pip3] torch==2.5.0.dev20240909
[pip3] torchaudio==2.5.0.dev20240909
[pip3] torchvision==0.20.0.dev20240909
[conda] numpy                     2.0.1                    pypi_0    pypi
[conda] torch                     2.5.0.dev20240909          pypi_0    pypi
[conda] torchaudio                2.5.0.dev20240909          pypi_0    pypi
[conda] torchvision               0.20.0.dev20240909          pypi_0    papi

cc @ezyang @gchanan @zou3519 @kadeng @msaroufim @kulinseth @albanD @malfet @DenisVieriu97
Repository: PowerToys
Issue: Keyboard Manager support through RDP
Labels: Needs-Triage

### Description of the new feature / enhancement

In a remote desktop session (specifically Windows), the keys typed follow the layout from the remote desktop's settings. It would be helpful for the custom key mapping made with Keyboard Manager to carry over to the remote desktop.

### Scenario when this would be used?

I use the Colemak keyboard layout. This is not a Windows default, so I had to download and install a custom layout file for it. When I use an RDP, this layout setting on my host machine does not carry over, so I still type in QWERTY. I do not have the permissions to download things to some of the RDPs I use, so I have to look at my keyboard whenever I type. If I was able to have my host machine layout set to QWERTY, but use Keyboard Manager to remap the keys to Colemak, and then have that remapping still apply across an RDP session, that would be incredibly helpful. I could also imagine this would be helpful for anyone using custom shortcuts and not specifically 1-1 key remapping.

### Supporting information

_No response_