sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: perf_tests_test.dart using the FLUTTER_LOGS_DIR rather than a mocked in memory location.
Labels: a: tests,team-infra,P2,triaged-infra

First failed roll is here: https://github.com/flutter/flutter/pull/145953

The failure: https://ci.chromium.org/ui/p/flutter/builders/try/Mac_arm64%20framework_tests_misc/3395/overview

Snippet of the failure:

```
00:09 +61: test/run_test.dart: run.dart script exits with code 1 when fails
00:09 +62: test/run_test.dart: run.dart script exits with code 0 when provided a valid device ID
00:10 +62 -1: test/run_test.dart: run.dart script exits with code 0 when provided a valid device ID
00:10 +62 -1: test/perf_tests_test.dart: runs perf tests, no crash if refresh rate percentage keys are not in the data [E]
  PathNotFoundException: Cannot open file, path = '/Volumes/Work/s/w/ir/x/w/recipe_cleanup/flutter_logs_dir/fake_result.json' (OS Error: No such file or directory, errno = 2)
  dart:io                                                  _File.readAsStringSync
  package:flutter_devicelab/tasks/perf_tests.dart 1403:77  PerfTest.internalRun.<fn>
  ===== asynchronous gap ===========================
  package:flutter_devicelab/framework/utils.dart 659:12    inDirectory
  ===== asynchronous gap ===========================
  test/perf_tests_test.dart 71:31                          main.<fn>
  
00:10 +62 -2: test/run_test.dart: run.dart script exits with code 0 when provided a valid device ID
00:10 +62 -2: test/perf_tests_test.dart: runs perf tests, successfully parse refresh rate percentage key-values from data` [E]
  PathNotFoundException: Cannot open file, path = '/Volumes/Work/s/w/ir/x/w/recipe_cleanup/flutter_logs_dir/fake_result.json' (OS Error: No such file or directory, errno = 2)
  dart:io                                                  _File.readAsStringSync
  package:flutter_devicelab/tasks/perf_tests.dart 1403:77  PerfTest.internalRun.<fn>
  ===== asynchronous gap ===========================
  package:flutter_devicelab/framework/utils.dart 659:12    inDirectory
  ===== asynchronous gap ===========================
  test/perf_tests_test.dart 124:31                         main.<fn>
  
00:11 +63 -2: test/run_test.dart: run.dart script exits with code 1 when results are mixed
00:13 +64 -2: test/run_test.dart: run.dart script prints a message after a few seconds when failing to connect (this test takes >10s)
00:24 +65 -2: test/run_test.dart: run.dart script runs A/B test
00:26 +66 -2: test/run_test.dart: run.dart script exits with code 0 when succeeds
00:28 +67 -2: test/run_test.dart: run.dart script fails to upload results to Cocoon if flags given
00:28 +68 -2: test/run_test.dart: run.dart script rejects invalid file paths
00:29 +69 -2: test/run_test.dart: run.dart script exits with code 1 when task throws
00:31 +70 -2: test/run_test.dart: run.dart script exits with code 1 when provided a bad device ID
00:33 +71 -2: Some tests failed.
```

Currently trying to figure out what is introducing this failure.
Repository: vscode
Issue: Centered Layout: Maintain editor width until space doesn't allow it
Labels: feature-request,layout,workbench-editor-grid

<!-- ⚠️⚠️ 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. -->

So, I just recently started using centered layout with a new ultrawide monitor and it's amazing... for one editor. Unfortunately, as soon as you add a second editor the editors are stretched to fill the width of the window and the benefits are totally lost.

What I'd really like to see is that the editors maintain their width until there's not enough room left to do so. The fixed width setting doesn't really solve for this at all because it maintains a fixed width no matter how many editors are added (I'd initially expected it to do what I described above), crunching your view significantly.

Here are some mocks to better explain what I mean. I think this aligns much more closely with the spirit of what the centered layout is trying to do.

### Current Behavior (no changes needed)
|One editor|Too many editors to fit|
|--|--|
|![Screenshot 2024-03-29 at 12 45 57 PM](https://github.com/microsoft/vscode/assets/4197029/80e072e3-edd6-4c6b-a0c9-a422332c6eeb)|![Screenshot 2024-03-29 at 12 47 34 PM](https://github.com/microsoft/vscode/assets/4197029/2538a7ee-942a-4023-85d0-61caee28dc8f)|

### Two editors
|Current|Requested change|
|--|--|
|![Screenshot 2024-03-29 at 12 46 31 PM](https://github.com/microsoft/vscode/assets/4197029/ecc8d61e-3ed1-4eb6-af7e-9d1b3ae1bb11)|![Screenshot 2024-03-29 at 12 46 14 PM](https://github.com/microsoft/vscode/assets/4197029/32db6c6e-c4fe-4f65-b3b5-e464f9036587)|
Repository: next.js
Issue: Jest/Vitest unit testing: TypeError: (0 , _reactdom.useFormStatus) is not a function
Labels: bug,TypeScript,Testing

### Link to the code that reproduces this issue

https://github.com/SunDevils0/with-jest-app

### To Reproduce

1. Followed Next js instructions on creating project with jest: https://nextjs.org/docs/app/building-your-application/testing/jest#optional-extend-jest-with-custom-matchers
2. In my app folder, created a very simple button component. Copied/pasted the same code from the Next JS documentation on useFormStatus.
3. Within the same components folder, added a test file and wrote my unit test: button.test.tsx. The only thing the test does is render the button (the only thing needed to recreate this issue).
4. Run tests; error received.

### Current vs. Expected behavior

**Current**
Receive error: TypeError: useFormStatus is not a function

**Expected**
No error received and rest of test able to be evaluated.

### Provide environment information

```bash
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Enterprise
Binaries:
  Node: 20.11.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.1.1
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: N/A
Next.js Config:
  output: N/A
```


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

Jest (next/jest), TypeScript (plugin, built-in types)

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

next dev (local)

### Additional context

- If I modify the button component and remove the useFormStatus hook, the test will pass.
- When creating the next with jest project, many of the packages were not at the latest version. Error occurs in this "initial" state, with all packages updated (environment information was taken at this point), and when upgrading next to latest canary.
- To be clear, I have no problems with these hooks when I run my application. Such issues have been previously reported and, from what I found in my Internet searches, resolved. But none of those issues I found were specific to testing.
- I am new to NextJs/React/TypeScript, and my first project is using Vitest as the test framework. To eliminate user error - my initial thought - this morning I created as bare-bones projects as possible, one using jest (the repo linked in this issue) and the other Vitest: [https://github.com/SunDevils0/next-poc-for-unit-testing-error](url). The Vitest had a few more manual steps in setting up. I get this issue in both. These are the only testing frameworks I have tried in recreating the issue.
- I also get the same error in my work Vitest project with useFormState. (I know this is being replaced with useActionState.)
Repository: vscode
Issue: VSCode Web - Safari - File drag and drop in explorer panel
Labels: bug,workbench-dnd,list-widget,confirmed,web,safari

<!-- ⚠️⚠️ 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: Version: 1.88.0-insider
Commit: 46b756b8434730593b3c911fd1ca43366b29eb03
Date: 2024-03-28T10:07:27.849Z
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
- OS Version: MacOS Sanoma - 14.2.1 

NOTE: This happens both in 1.87.2 and latest insiders build

Steps to Reproduce:

1. Run `code serve-web`
2. Open VSCode Web in Safari
3. Attempt to drag a file from explorer and drop in a folder
4. In Chrome - there is a drag handle that shows the file name., In Safari - the drag handle is blank, but the target gets hi-lites, this indicated that the file is being moved, but the visual hints are missing.

Please see the  chrome vs. safari screen cast:

[Screencast: chrome]( https://github.com/microsoft/vscode/assets/31135452/f77071ab-5273-46d6-a293-5d69bcddc90b)


[Screencast: safari](https://github.com/microsoft/vscode/assets/31135452/07ee22fd-bca3-4831-b3a8-a32861c8f785)
Repository: next.js
Issue: unable to read cookie in a server action from client component call in chrome 56
Labels: bug

### Link to the code that reproduces this issue

https://github.com/yanv1991/cookies-issue/commit/186d01e7076d3fcc742db7bb5017b4ecb58888cf

### To Reproduce

- open app in index page
- click on "call my server action" btn

### Current vs. Expected behavior

current:

undefined is printed in the console

<img width="1055" alt="Screenshot 2024-03-29 at 2 18 12 PM" src="https://github.com/vercel/next.js/assets/3800032/682eb1d9-2dbf-4d2a-92ca-270e35647f1e">


expected:

cookie value should be obtained and printed as it is in chrome 123
<img width="685" alt="Screenshot 2024-03-29 at 2 17 34 PM" src="https://github.com/vercel/next.js/assets/3800032/2727a53b-1221-42f1-aa07-0fd649642be3">



### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: x64
  Version: Darwin Kernel Version 22.6.0: Mon Feb 19 19:48:53 PST 2024; root:xnu-8796.141.3.704.6~1/RELEASE_X86_64
  Available memory (MB): 32768
  Available CPU cores: 12
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: 1.22.19
  pnpm: N/A
Relevant Packages:
  next: 14.2.0-canary.48 // Latest available version is detected (14.2.0-canary.48).
  eslint-config-next: 14.2.0-canary.48
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

App Router

### Which stage(s) are affected? (Select all that apply)

next start (local)

### Additional context

_No response_
Repository: vscode
Issue: QuickPick gets in a bad state if `canSelectMany` is set after it is visible and has items
Labels: bug,quick-pick

If we show a quickpick and set its items and then set `canSelectMany` to `true` the quickpick gets into a semi-corrupted state. Checkboxes aren't rendered correctly util items are scrolled out of view and the checked state seems to get wonky too.

https://github.com/microsoft/vscode/assets/641685/d0ae35b4-eaa7-4dec-bfde-d8926c6797f6

Here is a repo that reproduce the problem: https://github.com/eamodio/vscode-simple/tree/bug/quickpick-selection

Refs: https://github.com/gitkraken/vscode-gitlens/issues/3179

/cc @TylerLeonhardt
Repository: vscode
Issue: Cannot programmatically change notebook cell language to a specific language
Labels: feature-request,notebook-api

Version: 1.86.2 (Universal)
Commit: 903b1e9d8990623e3d7da1df3d33db3e42d80eda
Date: 2024-02-13T19:42:13.651Z
Electron: 27.2.3
ElectronBuildId: 26908389
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.4.0

### Steps to Reproduce:

From an extension, with a notebook with several cells open: 

```
import * as vscode from 'vscode';
vscode.commands.executeCommand('notebook.cell.changeLanguage( {range: {start: 1, end: 2}}, language: "javascript");
```

Expected behavior: cell 1 changes language mode to 'javascript'

Actual behavior: the prompt for selecting a language opens


As far as I can tell, the arguments are always ignored. In the vscode codebase I can't find any uses of this command that pass in a range and a language, only the no-arguments form is used.
Repository: vscode
Issue: Consider notebook status `window.title` property
Labels: feature-request,accessibility,notebook

Screen reader users navigate to the window title for important information.

As events occur within a notebook, the toolbar is updated with actions that are noticeable from a visual standpoint.

Some events, such as kernel inactivity, result in important actions, like the interrupt cell action, appearing there.

We could indicate this in the `window.title` for SR users, which would be better than navigating through the toolbar.

cc @jooyoungseo
Repository: vscode
Issue: Include more notebook toolbar actions in accessibility help dialog
Labels: feature-request,notebook-accessibility

Some actions, such as go to failed cell, appear dynamically in the toolbar, which is clear from a visual standpoint. 

We should include this information in the notebook accessibility help dialog.

cc @jooyoungseo
Repository: vscode
Issue: Add a new event on a QuickPick after filtering is applied with the set of items filtered
Labels: feature-request,quick-pick

This type of event could be very useful to a few different workflows.

First is detecting that the entered value resulted in a filtering of items and there are no more items visible. GitLens utilizes this pattern to offer additional actions that could be valuable or performs a deeper evaluation of the value to see if it can be found elsewhere -- for example, when creating a new branch, we offer a picker of branch/tag names, but you can also enter a SHA (which won't match anything) and we will show the commit for that SHA to be picked.

Another use-case is to implement another way to provide the basic functionality of https://github.com/microsoft/vscode/issues/90521. If we had a callback once the filter was applied, we could provide additional filtering on those items, or even re-add items that might not have met that filter (and set `alwaysShow` to true) to provide the functionality of custom filtering.

Maybe something like:

```ts
export interface QuickPick<T extends QuickPickItem> extends QuickInput {
    ...
    readonly onDidFilter: Event<{ value: string; filteredItems: T[] }>;
}
```

Technically you don't need the `value` there since it can be grabbed from the `quickpick.value`, but if there as debouncing, etc involved I think it would be important to keep them coupled so you wouldn't end up with a set of filteredItems for a different value based on timing.
Repository: flutter
Issue: [test_runner] runDartTest, runFlutterTest and runFlutterWebTest should parse metrics.json file
Labels: a: tests,c: proposal,team-infra,P2,triaged-infra

Metrics.json file contains the events triggered by the package:test runner. These files will be parsed and aggregated to provide a summary of test results in the github UI and exported to resultsdb.

The metrics.json have to be generated in a temporary folder and deleted once they are parsed.
Repository: flutter
Issue: `SquareAvatar`, `RectAvatar`, or `RRectAvatar` widget
Labels: c: new feature,framework,f: material design,would be a good package,P3,team-design,triaged-design

### Use case

I would like a `SquareAvatar`, `RectAvatar`, or `RRectAvatar` widget with similar or identical features as [`CircleAvatar`](https://api.flutter.dev/flutter/material/CircleAvatar-class.html) except it renders the shape as a square/rectangle instead of a circle. Currently no widget in the Flutter SDK exists for this.

### Proposal

Create a `SquareAvatar`, `RectAvatar`, or `RRectAvatar` widget.
Repository: pytorch
Issue: [AOTI] error: template a rgument 2 is invalid
Labels: triaged,oncall: pt2,module: aotinductor

### 🐛 Describe the bug

How to repro:

comment out the line below:

https://github.com/pytorch/pytorch/blob/57a9a64e10b84fa8d932482ae9417aa3fc3fbf44/test/inductor/test_aot_inductor.py#L2293

and run the following command:

```
$ python test/inductor/test_aot_inductor.py -k test_fft_c2c_abi_compatible_cpu_with_stack_allocation_and_minimal_arrayref_interface
...
error: template a
rgument 2 is invalid                                                                                                                                               
  588 |       outputs = model->run_impl_minimal_arrayref_interface<AOTInductorModelInputs, AOTInductorModelOutputs>(                                               
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^                                               
  589 |           inputs,                                                                                                                                          
      |           ~~~~~~~                                                                                                                                          
  590 |           (torch::aot_inductor::DeviceStreamType)nullptr,                                                                                                  
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                  
  591 |           nullptr);                                                                                                                                        
      |           ~~~~~~~~                                                                                                                           
```

### Versions

PyTorch version: 2.3.0a0+git57a9a6
Is debug build: True
CUDA used to build PyTorch: 12.0
ROCM used to build PyTorch: N/A

cc @ezyang @msaroufim @bdhirsh @anijain2305 @zou3519 @chauhang @desertfire
Repository: vscode
Issue: Outline view stuck with "Loading document symbols for " on large notebook
Labels: bug,notebook-toc-outline


Type: <b>Bug</b>

I can't reproduce stably but I often ran into this while working on my notebooks, they have cells that are 50 lines long.

I'm wondering if code cells / symbols fetching can block it.

VS Code version: Code - Insiders 1.88.0-insider (aa25485166449aa0f9eb8ebd8d0b70376108633c, 2024-03-28T22:10:25.599Z)
OS version: Windows_NT x64 10.0.22631
Modes:

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

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 5 7600X 6-Core Processor              (12 x 4700)|
|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|
|Load (avg)|undefined|
|Memory (System)|31.16GB (5.68GB free)|
|Process Argv|--enable-proposed-api ms-vscode.dscopilot-agent --enable-proposed-api ms-toolsai.datawrangler --crash-reporter-id acfa600b-65c9-4131-81cf-ad8200ffb7d3|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (27)</summary>

Extension|Author (truncated)|Version
---|---|---
esbuild-problem-matchers|con|0.0.3
vscode-eslint|dba|2.4.4
vscode-deno|den|3.36.0
gitlens|eam|2024.3.2805
EditorConfig|Edi|0.16.4
prettier-vscode|esb|10.4.0
copilot|Git|1.176.0
copilot-chat|Git|0.14.2024032701
vscode-pull-request-github|Git|0.85.2024032704
vscode-mocha-test-adapter|hbe|2.14.1
vscode-test-explorer|hbe|2.21.1
vscode-dotnet-runtime|ms-|2.0.3
black-formatter|ms-|2024.1.10861010
debugpy|ms-|2024.2.0
isort|ms-|2023.10.1
python|ms-|2024.3.10871011
vscode-pylance|ms-|2024.3.102
datawrangler|ms-|0.29.6
jupyter|ms-|2024.3.2024032701
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.17
vscode-jupyter-cell-tags|ms-|0.1.8
vscode-jupyter-slideshow|ms-|0.1.5
remote-containers|ms-|0.353.0
extension-test-runner|ms-|0.0.6
test-adapter-converter|ms-|0.1.9
vscode-github-issue-notebooks|ms-|0.0.130


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

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
vsaa593:30376534
py29gd2263:30784851
vscaat:30438846
c4g48928:30535728
962ge761:30841072
pythongtdpath:30726887
welcomedialogc:30812479
pythonidxpt:30768918
pythonnoceb:30776497
asynctok:30898717
dsvsc013:30777762
dsvsc014:30777825
dsvsc015:30821418
pythontestfixt:30866404
pythonregdiag2:30926734
pyreplss1:30879911
pythonmypyd1:30859725
pythoncet0:30859736
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30870582
dsvsc016:30879898
dsvsc017:30880771
dsvsc018:30880772
bf62j303:30968145
cppperfnew:30980852
d34g3935:30961436
fegfb526:30952798
bg6jg535:30979844
ccp2r3:30958153
pythonait:30973460
gee8j676:30988845
g1icg217:30999571

```

</details>

<!-- generated by issue reporter -->
Repository: pytorch
Issue: [AOTI] test_multi_device Segmentation fault (core dumped)
Labels: triaged,oncall: pt2,module: aotinductor

### 🐛 Describe the bug

How to repro:

comment out the line below:

https://github.com/pytorch/pytorch/blob/57a9a64e10b84fa8d932482ae9417aa3fc3fbf44/test/inductor/test_aot_inductor.py#L2301

and run the following command:

```
$ python test/inductor/test_aot_inductor.py -k test_multi_device_abi_compatible_cpu_with_stack_allocation_and_minimal_arrayref_interface
...
Segmentation fault (core dumped)
```


### Versions

PyTorch version: 2.3.0a0+git57a9a6
Is debug build: True
CUDA used to build PyTorch: 12.0
ROCM used to build PyTorch: N/A

cc @ezyang @msaroufim @bdhirsh @anijain2305 @zou3519 @chauhang @desertfire
Repository: vscode
Issue: Issue reporter doesn't allow the issue body to be the template body
Labels: bug,issue-reporter

Should the reporter not allow filing issues where the body contain the body template, eg "ADD ISSUE DESCRIPTION HERE"? 

To prevent issues like this https://github.com/microsoft/vscode/issues/209119