sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: x/pkgsite: pkg.go.dev doesn't link imported types
Labels: NeedsInvestigation,pkgsite

### What is the URL of the page with the issue?

https://pkg.go.dev/github.com/rivo/tview#Box.SetBorderAttributes 

 
### What is your user agent?
 
[Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0](https://explore.whatismybrowser.com/useragents/parse/?analyse-my-user-agent=yes) 
 

 
### Screenshot
 
![image](https://github.com/golang/go/assets/8781107/ff76ea9e-5d88-4b4b-8eb2-de99f8b25b79)
 
 
 
### What did you do?
 
Visited https://pkg.go.dev/github.com/rivo/tview#Box.SetBorderAttributes 
 
 
### What did you expect to see?
 
 Expected to see `tcell.AttrMask` and other `tcell` types linked.
 
### What did you see instead?

They are not.
Repository: rust
Issue: let-else does not support `else if`
Labels: C-feature-request,F-let_else

```rust
fn main() {
    let Some(x) = Some(1)
    else if true {
        return;
    } else {
        return;
    }
}
```
results in the following error but should compile imo:
```
error: conditional `else if` is not supported for `let...else`
 --> src/main.rs:3:10
  |
3 |     else if true {
  |          ^^ expected `{`
  |
help: try placing this code inside a block
  |
3 ~     else { if true {
4 |         return;
5 |     } else {
6 |         return;
7 ~     } }
  |
```
the improved diagnostic has been added in #89974 which refers to https://github.com/rust-lang/rust/issues/87335#issuecomment-944888160 by @joshtriplett:

> `let ... else if` definitely isn't something the RFC specifies, and I don't think we should. A better error message might make sense, though ("cannot use `else if` with `let ... else`").

I personally disagree with "and I don't think we should". For me this not working was fairly surprising and conflicts with my intuition of `let else` as a shorthand for
```rust
let Some(var) = expr else { return; }

let var = if let Some(var) = expr {
    var
} else {
    return
}
```
or as stated in the RFC

> This is a counterpart to `if let` expressions, and the pattern matching works identically, except that the value from the pattern match is assigned to the surrounding scope rather than the block's scope.

I would like to add support for this myself or mentor someone adding this. I am not sure what process is required here. If not desired, please FCP close this.
Repository: TypeScript
Issue: Omitting a property from tuple breaks destruction
Labels: Bug,Help Wanted

# Bug Report

### 🔎 Search Terms

`tuple omit property`
Searched in Bing and Github issues but I found nothing

### 🕗 Version & Regression Information

- This is the behavior in every version I tried

### ⏯ Playground Link

[Link](https://www.typescriptlang.org/play?target=99#code/MYewdgzgLgBAZiEMC8MDaBGANDARAJlwF0YBDCGUSKAKCunVJwCMTUEkB6TmAUwDdeAJwCeUABYBLMAHMYAdxBCA1hXm8ANhpykYkimACuAW2bCyYACYxmeitCHSZNOuAbNSQlOmx5CJchgAeWNJKAAeNCNTYRwHJyIcXFIoXAA+V2p0YBxLNhtPGG5gkAAHCABCSgtra09eGHjZGAAfGGizLzAQeSA)

### 💻 Code

```ts
const foo = [1, "2"] as const
const [a, b] = foo // everything works well, a is number and b is string

const bar = [1, "2"] as Omit<[number, string], "at">
const [c, d] = bar // Oops! c and d are string | number now
```

### 🙁 Actual behavior

↑
`c` and `d` are both `string | number`

### 🙂 Expected behavior

a and b should have correct type
Repository: TypeScript
Issue: `autocapitalize` type is incorrect according to MDN
Labels: Bug,Help Wanted,Domain: lib.d.ts

# lib Update Request

In lib/dom.d.ts

https://github.com/microsoft/TypeScript/blob/main/src/lib/dom.generated.d.ts#L9992

the type for `HTMLElement.autocapitalize` is incorrectly typed as `string`. According to [the MDN article](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize), the `autocapitalize` attribute/property can only be set to certain keywords.

Therefore, the internal lib dom type should be:

`autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';`

## Sample Code

This issue affects proper typing in web components that extend HTMLElement that attempt to correctly type `autocapitalize`. TS errors because `string` and a union type are not compatible. Every reference to a web component class extending HTMLElement with a proper type for `autocapitalize` errors incorrectly.

## Documentation Link

[MDN article on autocapitalize](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize)
Repository: vscode
Issue: Better codicons for Open on GitHub and Open on vscode.dev in branch picker
Labels: feature-request,continue-working-on

We've added actions to the branch picker so that you can checkout a branch on vscode.dev when you're on a git repo on desktop:


https://user-images.githubusercontent.com/30305945/236271469-5e1ae6d5-6aee-4a2d-8432-525654807606.mp4


I'm using fairly generic existing icons at the moment (the GitHub and globe codicons). It would be great to have more specific codicons which denote an opening action.
Repository: godot
Issue: Using "change type" fails when the new type is defined by a script and current node already has a script attached
Labels: discussion,topic:editor

### Godot version

4.0.2.stable.official

### System information

Windows 10

### Issue description

I had a node with a 'class_name' script attached, call it `TypeA`. I tried to right-click to change to a different type: `TypeB`. I expected it to change the script, associated node icon (I was using the Beehave plugin), etc. Instead nothing changed.

I feel that if you have a script attached and it's the original class_name script, and you "change type", it should change the script and update the icon accordingly. Instead there are several conflicting behaviors as listed in the "Steps to Reproduce".

### Steps to reproduce

## Notes
My example has three script-defined types: `TypeA` which is a script that extends `Node`, `TypeB` which extends `Control`, and `TypeC` which extends `Node2D`. 

## Test 1
Test: Add Node2D without script. Try to "change type" to `TypeB`.

Result: Node icon changes and script is attached. Success.

## Test 2
Test: Add `TypeC`. Change Type to `TypeA`.

Result: Node icon changes to the parent of `TypeA`, but script does not. Reloading does not fix the wrong type and you get an error when running the scene as the actual node type doesn't match the type the script expects. Failure.

## Test 3
Test: Add `TypeB`. Remove the script from the node. Change Type to `TypeC`.

Result: Node type changes from `Control` to `Node2D` but `TypeC` script is NOT attached. Failure.

## Test 4
Test: Add `TypeB`. Remove the script. Save the scene. Reload the project. Change Type to `TypeC`.

Result: Node changes type to `Node2D` AND `TypeC` script is attached. Success-ish.


### Minimal reproduction project

[godot_change_type_bug_repro.zip](https://github.com/godotengine/godot/files/11556716/godot_change_type_bug_repro.zip)
Repository: terminal
Issue: System menu for Terminal shows up on wrong monitor
Labels: Help Wanted,Issue-Bug,Product-Terminal,In-PR,Area-Windowing

From MSFT:41390752, courtesy of @oldnewthing

> Open Terminal maximized on right-hand monitor of dual-monitor system. Press Alt+Space to open the system menu.
> 
> Expect: Menu appears at the top left corner of the window.
> Actual: Menu appears at the top right corner of the wrong monitor.
> 
> Screen shot shows menu opening on the wrong monitor.

> Maybe this has to do with monitor layout? I suppose each of my monitors are set up a little higher than the one on the left:
> ![image](https://github.com/microsoft/terminal/assets/18356694/a2a7aa0d-7b55-43bb-8e7a-eefc6abfab3e)
>
> Sure enough, this layout repros:
> ![image](https://github.com/microsoft/terminal/assets/18356694/98cfc266-0ce5-4d5a-a64d-41ab960a2f51)

> My monitors are nowhere near that exotically laid out.
> 
> ![image](https://github.com/microsoft/terminal/assets/18356694/a70e9319-87e1-4001-8b14-baca8428c706)
> 
> When maximized on monitor 3 (the primary monitor), the system menu appears in the upper right of monitor 2.
Repository: PowerToys
Issue: Peek option 1
Labels: Idea-Enhancement,Needs-Triage,Product-Peek

### Description of the new feature / enhancement

(I am loving the new peek powertoy. But it is need of some dynamic and options. this is ONE of FIVE ideas:)

a.   a choice to set peek's shortcut to hold only, which would mean the preview would self-close the moment the keys are released.  this option would be helpful when looking though a large quantity of files, or if the person is in a hurry and can't be bothered to stop and close the preview window. 

### Scenario when this would be used?

It would be used as stated above, or essentially any time during the tool's operation.

### Supporting information

Uh... well, if my verbal explanations aren't concise enough, let me know and I can mock up something in VS22 that demonstrates the ideas better.
Repository: PowerToys
Issue: Create an option of show Caps Lock/ Num Lock OSD 
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

There should be a feature to show Caps Lock/ Num Lock OSD and a small indicator at the taskbar. It will help to identify if my caps lock or num lock is on or off.

### Scenario when this would be used?

Scenario: My laptop doesn't have any indicator on the caps lock button. So, in a hurry suppose I was trying to type faster in MS word and in my absence mind, the caps lock button was pressed. I didn't know that my caps lock was on, I was typing in capital words. If it happens for couple of time, it's become annoying. 

It is more annoying when someone is entering a password..

### Supporting information

Here is an extension for gnome desktop to show visuals of caps lock/num lock indicators: https://extensions.gnome.org/extension/1532/lock-keys/
https://github.com/Notftw/gnome-shell-extension-LockKeysOSD
Repository: excalidraw
Issue: arabic font support 
Labels: font

When I write anything in Arabic, the font is bad. I want support for the Arabic font. You can use this font from [Google Fonts](https://fonts.google.com/specimen/Baloo+Bhaijaan+2?subset=arabic&noto.script=Arab)
Repository: vscode
Issue: profile name is ignored if VsCode is already running
Labels: feature-request,user-profiles

Type: <b>Bug</b>

I have two profiles (say: `default` and `text`)

If I open a file with some  profile from the CLI
   `> code --profile text b.txt`
... it works as expected.

But if I already have opened Code with the other profile

   `> code --profile default a.txt`
   `> code --profile text b.txt`

... then the second call reuses the opened window, (with profile: `default`), ignoring the passed profile

I need to force a new window with the ` -n ` option , which is not desirable

Expected behaviour: the default window-reusing mechanism should only apply if the profile matches.

VS Code version: Code 1.78.2 (b3e4e68a0bc097f0ae7907b217c1119af9e03435, 2023-05-10T14:39:26.248Z)
OS version: Windows_NT x64 10.0.22621
Modes: Restricted
Sandboxed: Yes

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz (6 x 2904)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<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>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|15.87GB (5.49GB free)|
|Process Argv|--disable-extensions --profile default a.txt --crash-reporter-id 01594e16-0b1e-4063-9cad-f316df121f86|
|Screen Reader|no|
|VM|0%|
</details>Extensions disabled<details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
3biah626:30602489
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
24365598:30736109
pythonfmttext:30731395
pythoncmv:30739700
fixhidewlkth:30730051
hidesbindicator:30730055
pythongtdpathcf:30739705

```

</details>

<!-- generated by issue reporter -->
Repository: opencv
Issue: Illegal hardware instruction when using cv::SIFT::detect with brew installation
Labels: bug,category: features2d,needs investigation

### System Information

OpenCV version: 4.7.0
Operating System / Platform: macOS Monterey 12.6.1
Compiler & compiler version: AppleClang 14.0.0

### Detailed description

When running a simple application that uses cv::SIFT

```
(base) user@MBP-di-user Project % ./app 
zsh: illegal hardware instruction  ./app
```

### Steps to reproduce

Install OpenCV4.7 with homebrew

```bash
brew install opencv
```

compile and execute the following code

```c++
#include <opencv2/opencv.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/features2d.hpp>
#include <vector>

int main() {
    cv::Mat img = cv::imread(pathname, 0);
    cv::imshow("image", img);

    cv::Ptr<cv::SIFT> siftPtr = cv::SIFT::create();
    std::vector<cv::KeyPoint> keypoints;
    siftPtr->detect(img,keypoints);

    cv::waitKey();
}
```

### 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: vscode
Issue: terminalTextSelected context key is false when text is selected in the active terminal but is not focused
Labels: bug,help wanted,terminal-input

See https://github.com/microsoft/vscode/issues/183279#issuecomment-1561600889

![image](https://github.com/microsoft/vscode/assets/2193314/9579c77a-6c6c-4197-b14c-9e36ef0960be)
Repository: vscode
Issue: Show outputs below cells during interactive sessions
Labels: feature-request,interactive-window

<!-- ⚠️⚠️ 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. -->

Currently, when a jupyter cell is run from a python source file the output is shown in a separate interactive window. 

When other cells are run previous output gets 'lost' higher up the interactive window, and you end up having to keep track of both the interactive window and the source code.

It would be nice if output was kept associated with the cell - e.g. directly below the cell in the same window. Perhaps this behavior could be an option people could enable.

(To be crystal clear, I am talking about using jupyter via a `.py` file, not an `.ipynb`.)

[Hydrogen](https://github.com/nteract/hydrogen) for atom behaves like this. E.g.:

![Hydrogen behaviour](https://cloud.githubusercontent.com/assets/13285808/20360886/7e03e524-ac03-11e6-9176-37677f226619.gif)
Repository: tensorflow
Issue: Incorrect gradient after divide operation when result contains inf
Labels: stat:awaiting tensorflower,type:bug,comp:ops,TF 2.13

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

Yes

### Source

binary

### Tensorflow Version

tf-nightly

### Custom Code

Yes

### OS Platform and Distribution

Ubuntu 20.04.5 LTS

### Mobile device

_No response_

### Python version

3.10.11

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

The gradient of `tf.experimental.numpy.divide` or simply `/` operator is incorrect when the division result contains `inf`. See example below, the gradient of `result[0]` with respect to `x1` should be `1/2` instead of `nan`.

### Standalone code to reproduce the issue

```shell
import tensorflow as tf
import numpy as np
x1 = tf.constant([3], dtype=tf.float32)
x2 = tf.constant([2, 3, 0, 1], dtype=tf.float32)
with tf.GradientTape() as tape:
  tape.watch(x1)
  tape.watch(x2)
  result = tf.experimental.numpy.divide(x1, x2)    # or result = x1 / x2
actual_grad = tape.jacobian(result, x1)
expected_grad = tf.constant([[1/2], [1/3], [np.inf], [1/1]])
print(actual_grad)
print(expected_grad)
actual_grad == expected_grad


See gist: https://colab.research.google.com/drive/1xbzvQ99nrEehhBabpgCSEiBMSh4qXojR?usp=sharing
```


### Relevant log output

```shell
tf.Tensor(
[[nan]
 [nan]
 [inf]
 [nan]], shape=(4, 1), dtype=float32)
tf.Tensor(
[[0.5       ]
 [0.33333334]
 [       inf]
 [1.        ]], shape=(4, 1), dtype=float32)
<tf.Tensor: shape=(4, 1), dtype=bool, numpy=
array([[False],
       [False],
       [ True],
       [False]])>
```
</details>
Repository: vscode
Issue: All dark color themes are broken after 1.78 update
Labels: bug,upstream,themes,gpu,chromium,electron-22-update,multi-monitor

<!-- ⚠️⚠️ 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.78.2
- OS Version: MacOS Ventura 13.3.1 (a)

Steps to Reproduce:

1. Download the latest (1.78) version of the VSCode
2. Set "Dark (Visual Studio)" or any other dark color theme
3. See brighter background around the code and darker in all other places. See the bright border around the terminal. Etc.

Before (1.77.3):

![Before (1.77.3)](https://github.com/microsoft/vscode/assets/57211433/b786c1cd-9152-438b-80f1-c839e2d8fae0)

After (1.78.2):

![After (1.78.2)](https://github.com/microsoft/vscode/assets/57211433/4388d922-fbe5-40f4-8373-f93956fa101e)

The problem seems to happen only for dark color themes, light ones still work as before.
Repository: vscode
Issue: Support `when` clause for `terminal.profiles` contribution point
Labels: help wanted,feature-request,terminal-profiles

I am in the process of implementing a virtual terminal using `ExtensionTerminalOptions` for my extension. The terminal can only be created if some conditions are met. I would like to hide the terminal profile from the menu if the conditions aren't true. Can you add support for a `when` clause in the `terminal.profiles` contribution point so this becomes possible? Thanks!
Repository: pytorch
Issue: torch/distributed/_spmd/api.py should aot_module_export instead of make_fx directly
Labels: oncall: distributed

### 🐛 Describe the bug

Self explanatory

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @bdhirsh @wanchaol @gmagogsfm 

### Versions

main
Repository: pytorch
Issue: Extend fake fast path to more situations
Labels: triaged,module: fakeTensor

### 🐛 Describe the bug

https://github.com/pytorch/pytorch/blob/d316a2dd5c8c89c1e0a18a0cce595a81dd9e52ab/torch/_subclasses/fake_tensor.py#L679-L824

Only applied to four ops right now. Apply it to more.

### Versions

main
Repository: PowerToys
Issue: Registry Preview - Add file header (Windows Registry Editor Version 5.00)
Labels: Needs-Triage

### Description of the new feature / enhancement

There should be an option to add `Windows Registry Editor Version 5.00` to the first line of a file (plus add a blank line after that).

Every valid `.reg` file has to contain the `RegistryEditorVersion`. ([In case someone needs proof](https://support.microsoft.com/en-us/topic/how-to-add-modify-or-delete-registry-subkeys-and-values-by-using-a-reg-file-9c7f37cf-a5e9-e1cd-c4fa-2a26218a1a23#:~:text=RegistryEditorVersion%0ABlank%20line))

For all people that can install PowerToys on their system `RegistryEditorVersion` will be `Windows Registry Editor Version 5.00`. There should be a button to add that to the first line of the file.

### Scenario when this would be used?

Every time I create a `.reg` file I have to either copy that from a different file or type it out manually. Would save a lot of time if I didn't have to do that. PowerToys checks if the line is there, but if it isn't, it just says "\<file> doesn't appear to be a valid registry file!".

### Supporting information

_No response_
Repository: godot
Issue: Built-in method on untyped value called without argument validation
Labels: bug,topic:gdscript

### Godot version

4.1 4c677c8

### System information

Windows 10 x64

### Issue description

This code:
```GDScript
extends Node2D

func _ready() -> void:
	$TileMap.set_pattern(0, Vector2i(), 0)
```
Produces this error:
```
Invalid type in function 'set_pattern' in base 'TileMap'. Cannot convert argument 3 from int to Object.
```
which makes sense. HOWEVER if you look at the errors tab you will see:
![image](https://github.com/godotengine/godot/assets/2223172/e0a67533-cada-4693-aa55-30d250a661ed)
The error comes from #77440 and it basically means that the pattern is null.

So what happened is that the function was called, passing 0 as Object, which was implicitly converted into nullptr. Which means that the invalid argument error was displayed after the function was already executed (which led to crash before the null check was added).

This only happens when calling the method on untyped variable. If called on a typed TileMap, the argument error appears before calling the mehtod.

### Steps to reproduce

1. Add some node
2. Add TileMap child
3. Add the above script to node

### Minimal reproduction project

N/A