sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: `Extract` not narrowing type union in mapped type passed as generic
Labels: Needs Investigation

### 🔎 Search Terms

Extract, type union

### 🕗 Version & Regression Information

- This changed between versions 5.33 and 5.4


### ⏯ Playground Link

https://www.typescriptlang.org/play?ts=5.4.2#code/C4TwDgpgBAysBOBLAdgcwNIRAZwDwBUA+KAXigFEAPBAQwGNhcBrLAewDMoBvAWACgogqAG0AClBRQWIDlHxQa2OWIC6UCNQjIAJkuwIUqKAH4oogFxRkEAG4R4KyzWQh+AXwA0UfUjSF+-HSsyPpQAEYANqysYKRQBB6EABQAXpZwvhhYeEQAlKTEvAJQQSHAUOyWPoZxKe4BfCjA9uz00Ira3PyCAI4A7hBVBmj1fPwREOU06cNZOLgd-nxAA

### 💻 Code

```ts
type StringKeys<T> = Extract<keyof {
    [P in keyof T as T[P] extends string ? P: never]: any
}, string>

const bloop = <T,>(z: StringKeys<T>) => {
  const f: string = z
}

interface asd {
  qwe: string
}

let a: StringKeys<asd>

```


### 🙁 Actual behavior

`z` is not assignable to `string` in the `bloop` function

### 🙂 Expected behavior

`z` should be assignable to `string`, because we extract string-extending keys

### Additional information about the issue

This was working just fine on 5.3.3, and continues to work when the generic is concretized (hence the `let` at the bottom of the example)
Repository: pytorch
Issue: Investigate torch.compile Windows support.
Labels: module: windows,triaged,oncall: pt2,module: inductor,upstream triton

### 🐛 Describe the bug

torch.compile is not supported on Windows. 
torch.compile has dependency triton: https://github.com/openai/triton/issues/1640

### Expected outcome
1. Document the requirements to fix torch.compile.
Repository: pytorch
Issue: No reduction of disk usage on slices of torch tensor
Labels: module: serialization,triaged,needs research

### 🐛 Describe the bug

I had a huge tensor that was stored on disk as a pickle file (shape (300,20000,15840)) and I wanted to slice the tensor in multiple files following the dimension 1:
```python
import pickle
import torch

# Loading my heavy tensor
with open("myBigFile.pk","rb") as pk_file:
    big_tensor=pickle.load(pk_file)

# Slicing it in multiple files
size_slice = big_tensor.shape[1]//20
for i in range(20):
    with open("mySmallFile_{}.pk".format(i),"wb") as pk_file:
        pickle.dump(big_tensor[:,size_slice*i:size_slice*(i+1)],pk_file)

```
This code works however each small files had the same size on disk than the big file although displaying the correct reduced shape when loading the small tensor from the "small" files.
Adding `.clone()` to the previous code solved the issue with disk usage that were close to 20 times smaller than the big file:
```python
import pickle
import torch

# Loading my heavy tensor
with open("myBigFile.pk","rb") as pk_file:
    big_tensor=pickle.load(pk_file)

# Slicing it in multiple files
size_slice = big_tensor.shape[1]//20
for i in range(20):
    with open("mySmallFile_{}.pk".format(i),"wb") as pk_file:
        # Adding the clone here reduces the size of the saved file
        pickle.dump(big_tensor[:,size_slice*i:size_slice*(i+1)].clone(),pk_file)

```



### Versions

I am not allowed to publish the full configuration  that I am using on github, here is the relevant informations that I can provide:


```
PyTorch version: 2.2.1
Is debug build: False
CUDA used to build PyTorch: 11.8
ROCM used to build PyTorch: N/A

Versions of relevant libraries:
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.24.4
[pip3] onnx==1.15.0
[pip3] torch==2.2.1
[pip3] torchaudio==2.2.1
[pip3] torchvision==0.17.1
[pip3] triton==2.2.0
[conda] blas                      2.116                    
[conda] blas-devel                3.9.0           
[conda] libblas                   3.9.0            
[conda] libcblas                  3.9.0            
[conda] liblapack                 3.9.0            
[conda] liblapacke                3.9.0            
[conda] libopenvino-pytorch-frontend 2023.3.0             
[conda] mkl                       2022.1.0          
[conda] mkl-devel                 2022.1.0           
[conda] mkl-include               2022.1.0          
[conda] numpy                     1.24.4                   
[conda] pytorch                   2.2.1           py3.11_cuda11.8_cudnn8.7.0_0   
[conda] pytorch-cuda              11.8                
[conda] pytorch-mutex             1.0                     
[conda] torch                     2.2.1                    
[conda] torchaudio                2.2.1                   
[conda] torchtriton               2.2.0                     
[conda] torchvision               0.17.1                  
[conda] triton                    2.2.0                  
```

cc @mruberry @mikaylagawarecki
Repository: flutter
Issue: [Impeller] refactor `Snapshot` to account for larger geometries
Labels: P2,e: impeller,team-engine,triaged-engine

https://github.com/flutter/engine/pull/51393 introduced a new clause that was required for rendering TiledTextureContents because `Snapshot` was unable to capture the proper semantics to render it correctly.  Specifically in that case the geometry has been expanded.  The way TileTextureContents works when rendering without the `Snapshot` optimization is that expanding the geometry should be counteracted by the texcoords, as per the effect transform math.  There is no way to represent this with the `Snapshot`.  This means we need to have some concept of the "source rect" or another matrix to capture the difference between vertices and texcoords.

I'm not sure if there are other places in the code where this would be beneficial but not having it forces us to have a render pass when we don't need one.

cc @jonahwilliams
Repository: godot
Issue: [4.x] Godot flies out when I hide the window
Labels: bug,topic:rendering

### Tested versions

Godot 4.1.3, Godot 4.2.1

### System information

Godot v4.1.3.stable - Windows 10.0.19045 - Vulkan (Mobile) - dedicated Radeon RX 560 Series (Advanced Micro Devices, Inc.; 31.0.14001.45012) - Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz (4 Threads)

### Issue description

When I click the "minimize" button in a running application, godot displays many errors in the console and crashes.
In the example, I use [this plugin](https://github.com/MizunagiKB/gd_cubism), it’s unlikely that this is the problem, since this happens in all modes except “compatibility”

Errors in Forward+:
![err](https://github.com/godotengine/godot/assets/130399274/ce8c34e8-e899-4bbd-ae9f-473d34263f7a)

Errors in Mobile:
![errMobile](https://github.com/godotengine/godot/assets/130399274/bfd1aafa-6707-44e0-a12e-5f28323b979f)


### Steps to reproduce

1. Run my example and run it in Forward+ or Mobile mode
2. Minimize a window
![w](https://github.com/godotengine/godot/assets/130399274/edf50b7d-5f1b-4f04-8f26-8285e6fd5401)
3. Wait about 15 seconds and you will see a huge number of errors

### Minimal reproduction project (MRP)
[demoGD.zip](https://github.com/godotengine/godot/files/14639407/demoGD.zip)
Repository: vscode
Issue: Weird looking Output selector menu
Labels: upstream,ux,accessibility,polish,electron,system-context-menu

- [ ] 1. The font size of the the menu log selector in the Output view is too small. This makes the text look uncentered vertically.
- [ ] 2. The separator is just a bunch of dashes "---" instead of a native separator. This is not good for accessibility. 
 
It's possible that a smaller font size was chosen to be able to see more items in this relatively long menu. But that doesn't work in this case on macOS as the menu item height is still the same, so there aren't more items displayed than before.

 If a more compact menu is desired, it's better to set the [NSControlSize](https://developer.apple.com/documentation/appkit/nscontrolsize) on macOS, instead of changing the font size. This will actually allow more menu items to be shown at the same time.

Here's a screenshot showing the text misalignment compared to a regular menu (right).

<img width="943" alt="image" src="https://github.com/microsoft/vscode/assets/103326/f23d81d3-e6d9-4932-b2ad-ad3da29a9953">


https://developer.apple.com/documentation/appkit/nscontrolsize


<!-- ⚠️⚠️ 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/No

<!-- 🪓 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.88.0-insider 
- OS Version: macOS

Steps to Reproduce:

1. On macOS, open the Panel and click the Output tab.
2. Notice misaligned text and non-native separator.
Repository: godot
Issue: GridMap's Navmesh rotation randomly changes for multiple tiles when one is modified.
Labels: bug,needs testing,topic:3d

### Tested versions

4.2.1.stable

### System information

mac os 14.3.1

### Issue description

I followed the documentation about gridmap with navmeshes and this tutorial
https://docs.godotengine.org/en/stable/tutorials/3d/using_gridmaps.html
https://youtu.be/KT06pv06Q1U

the navmesh didnt work out of the box, after i rotated them a few times the gridmap started to glich. It seems that if i change the rotation in one of the tiles then it randomly changes other tiles. Additionally, you can see that there are pink glitches in the editor for some reason. They showed up after i rotated the navmesh in one of the tiles.

### Steps to reproduce

1. create a scene with a gridmap and navmeshes build into the tiles

2. rotate the navmesh, gridmap and/or the root 3Dmesh in the tile library.
[godot-bug.mkv.zip](https://github.com/godotengine/godot/files/14639812/godot-bug.mkv.zip)


### Minimal reproduction project (MRP)

[godot_data.zip](https://github.com/godotengine/godot/files/14639868/godot_data.zip)
Repository: TypeScript
Issue: Add missing awaits when destructuring properties from a promisified type 
Labels: Suggestion,Help Wanted,Experience Enhancement

### 🔎 Search Terms

missing await destructuring codefix promise promisified members properties

### 🕗 Version & Regression Information

- This is the behavior in every version I tried

### ⏯ Playground Link

https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgKoGdrIN4ChnLAAmAXMumFKAOYDc+yIcAthGRVSHbgL665EICADZwoKGAFcQCMMAD2IZNQhgM0ABQBKMgAUo85sEwAedVAB89XHHQBPGciky5i5JAracDBIoqMWFABeZVVzbQA6AHoAKgBGGKjrAl8Qf2xkWIAmROQeZBCVNUwobXoeIA

### 💻 Code

```ts
interface User {
  id: string;
  name: string;
}

declare function getUser(): Promise<User>;

async function test() {
  const name = getUser()./*1*/;

  const { /*2*/  } = getUser();
}
```


### 🙁 Actual behavior

with `preferences.includeCompletionsWithInsertText` at marker 1 we get completions for `id` and `name` and the line gets auto-fixed for us:
```ts
const name = (await getUser()).name
```

Nothing like that happens at marker 2 - no completions, no auto-fixes

### 🙂 Expected behavior

It would be cool if the second would work like the first one in this regard. It could go from:
```ts
  const { /*2*/  } = getUser();
```
to
```ts
  const { name } = await getUser();
```

### Additional information about the issue

it's a feature request but the bug report template just worked the best here 😉
Repository: PowerToys
Issue: Remove certain applications or instances of application from alt-tab rotation
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

Introduce a PowerToys functionality that would allow users to exclude certain applications or instances of applications from alt-tab rotation.

### Scenario when this would be used?

In meetings if I don't want to accidentally alt-tab into something (or even show it in alt-tab preview).

**OR**

If there is something I have open but I would never want to alt-tab into - for example I have music playing and I don't want to accidentally alt-tab into it while working - I will pick it intentionally if I want to use it.

### Supporting information

This feature was actually introduced by Apple and is very well liked by developers in their ecosystem.
Repository: flutter
Issue: `gclient sync -D` spews logs about finding the iOS and macOS SDKs from the gclient hook
Labels: P2,team-engine,triaged-engine

On https://github.com/flutter/engine/commit/90c4d64d410fa8f3cd640d59b01ceb583d0ad13c
```
$ gclient sync -D
...
Running hooks:  88% (16/18) Find the iOS device SDKs
________ running 'python3 src/build/config/ios/ios_sdk.py --as-gclient-hook' in '/Users/m/Projects/engine'
2024-03-18 10:20:28.708 xcodebuild[70174:12050158] Requested but did not find extension point with identifier Xcode.DVTDeviceFoundation.Aspect for extension Xcode.IDEiOSSupportCore.Aspect.NBDD of plug-in com.apple.dt.IDE.IDEiOSSupportCore
2024-03-18 10:20:28.711 xcodebuild[70174:12050158] Requested but did not find extension point with identifier DVTProducts.ReleaseChannelNamer for extension DVTProducts.ReleaseChannelNamer.PV of plug-in com.apple.dt.IDEDistributionSupport
/Users/m/Projects/engine/src/flutter/prebuilts/SDKs/iPhoneOS17.4.sdk
2024-03-18 10:20:29.216 xcodebuild[70177:12050186] Requested but did not find extension point with identifier Xcode.DVTDeviceFoundation.Aspect for extension Xcode.IDEiOSSupportCore.Aspect.NBDD of plug-in com.apple.dt.IDE.IDEiOSSupportCore
2024-03-18 10:20:29.217 xcodebuild[70177:12050186] Requested but did not find extension point with identifier DVTProducts.ReleaseChannelNamer for extension DVTProducts.ReleaseChannelNamer.PV of plug-in com.apple.dt.IDEDistributionSupport
/Users/m/Projects/engine/src/flutter/prebuilts/SDKs/iPhoneSimulator17.4.sdk
Running hooks:  94% (17/18) Find the macOS SDK
________ running 'python3 src/build/mac/find_sdk.py --as-gclient-hook 10.14' in '/Users/m/Projects/engine'
2024-03-18 10:20:29.723 xcodebuild[70188:12050264] Requested but did not find extension point with identifier Xcode.DVTDeviceFoundation.Aspect for extension Xcode.IDEiOSSupportCore.Aspect.NBDD of plug-in com.apple.dt.IDE.IDEiOSSupportCore
2024-03-18 10:20:29.724 xcodebuild[70188:12050264] Requested but did not find extension point with identifier DVTProducts.ReleaseChannelNamer for extension DVTProducts.ReleaseChannelNamer.PV of plug-in com.apple.dt.IDEDistributionSupport
/Users/m/Projects/engine/src/flutter/prebuilts/SDKs/MacOSX14.4.sdk
14.4
Running hooks: 100% (18/18), done.
```

cc @zanderso https://github.com/flutter/engine/pull/50957
Repository: go
Issue: compress/flate: unrecognized failures
Labels: NeedsInvestigation,compiler/runtime

```
#!watchflakes
default <- pkg == "compress/flate" && test == ""
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/04a60237d084e983c7d57ca33dae747d058ac436)):

    SIGSEGV: segmentation violation
    PC=0x10022034c m=6 sigcode=2 addr=0x20
    
    goroutine 0 gp=0x140000848c0 m=6 mp=0x14000054408 [idle]:
    runtime.(*mspan).typePointersOfUnchecked(0x140006f0e80?, 0x14000380600?)
    	/tmp/buildlet/go/src/runtime/mbitmap_allocheaders.go:202 +0x3c fp=0x16ff36d90 sp=0x16ff36d70 pc=0x10022034c
    runtime.scanobject(0x14003542000, 0x1400002d258)
    	/tmp/buildlet/go/src/runtime/mgcmark.go:1439 +0x1c4 fp=0x16ff36e20 sp=0x16ff36d90 pc=0x10022c264
    runtime.gcDrain(0x1400002d258, 0x3)
    	/tmp/buildlet/go/src/runtime/mgcmark.go:1240 +0x1d4 fp=0x16ff36e90 sp=0x16ff36e20 pc=0x10022ba04
    ...
    r24     0x0
    r25     0x1400002d2a0
    r26     0xffffffffffffffff
    r27     0xffffffffffffffe8
    r28     0x140000848c0
    r29     0x16ff36d68
    lr      0x10022c264
    sp      0x16ff36d70
    pc      0x10022034c
    fault   0x20


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: flutter
Issue: Add a function to get the current mouse position in CustomPainter
Labels: framework,engine,c: proposal,a: mouse,P3,team-framework,triaged-framework

### Use case

Adding a way to retrieve the current mouse position may at first sound like something unneeded. After all, you can already use ``MouseRegion`` to get the exact same functionality. But there is a problem here. 
What if you want to use a ``CustomPainter`` that runs at a consistent frame rate using a ``Timer``. Then it's impossible for you to accurately get the mouse position from the ``MouseRegion`` widget because it will be desynchronized with the  current frame. This is a problem because as soon as you want something to follow the mouse or even replace the mouse cursor with a custom one, the object following the mouse is gonna flicker constantly.
For this reason, it would be really useful to have a custom method that enables the user to just retrieve the current mouse position in the window. It's gonna enable people to build more interactive experiences using the CustomPainter that aren't restricted to the default frame rate. For example, in my app, I have a tabletop simulation that runs in multiplayer. Currently, when you drag an object on the table, it doesn't follow the mouse properly.  Through the implementation of the method I suggested, I would then be able to make it follow the mouse better.

### Proposal

As said above, I would like a method to retrieve the current mouse position unrelated to the current frame. You should be able to call something like ``getMousePosition()`` inside of a ``CustomPainter`` widget and just get back the current position of the mouse, no extra widget required. I'm not all to familiar with the Flutter engine which is why I don't know where exactly such a method would fit. In my eyes, it should just be a global function from some class. It would be cool, if someone reading this would suggest a better place for such a function.
Repository: TypeScript
Issue: `javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces` has no effect in import autocomplete
Labels: Bug,Help Wanted,Domain: Formatter

<!-- ⚠️⚠️ 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.87.2
- OS Version: MacOS 14.4

Steps to Reproduce:

1. Set these options:

```json5
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
```

2. Enter `import xml<tab>` in a JS or TS file (change to a valid param import)
3. There should be no space after `{` and before `}`.

![spaces](https://github.com/microsoft/vscode/assets/115237/b8af7250-abc3-4942-a04b-16786b8f6e04)

(In case this issue is for the Typescript repo, let me know and I will open there)
Repository: next.js
Issue: Last version broke canonical URLs
Labels: bug

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/pensive-star-go8s7s?file=%2Fapp%2Fpage.tsx%3A1%2C62

### To Reproduce

set a canonical url look what happens

### Current vs. Expected behavior

<img width="402" alt="Screenshot 2024-03-18 at 17 44 30" src="https://github.com/vercel/next.js/assets/3705499/d11d6474-4658-4f13-981b-63043ad33ac0">
<img width="361" alt="Screenshot 2024-03-18 at 17 44 38" src="https://github.com/vercel/next.js/assets/3705499/7b5b12c8-b088-4758-a94b-f3652185fbe8">


### Provide environment information

```bash
every system
```


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

App Router

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

next dev (local), next build (local), next start (local), Other (Deployed)

### Additional context

why does with almost every minor release break something in the router :(