sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: File nesting `expand: false` setting not respected in folders with a single child file nest
Labels: file-explorer,polish


Issue Type: <b>Bug</b>

1. Ensure you have the following in your settings:
```json
{ 
  "explorer.fileNesting.enabled": true,
  "explorer.fileNesting.expand": false,
  "explorer.fileNesting.patterns": { "*.ts": "${capture}.js" },
}
```
2. Create a new folder `foo`.
3. Create two files in the folder, `bar.ts` and `bar.js`
4. The `js` file should nest under the `ts` file, all good so far.
5. Collapse the `bar.ts` file nest, then collapse the folder `foo`
6. Now expand `foo`
7. `bar.ts` is (incorrectly) automatically expanded, despite the `"explorer.fileNesting.expand": false` setting.
8. Add a new file `baz.ts` in folder `foo`. Now when you repeat steps 5 and 6, step 7 no longer occurs - the bug is only present in folders with a single child file nest stack.

My guess would be this is related to how VSCode auto-expands single child folder stacks. This behaviour makes sense in single child folder stacks, but not in single child file stacks.

VS Code version: Code - Insiders 1.67.0-insider (57fd6d0195bb9b9d1b49f6da5db789060795de47, 2022-05-04T12:08:13.913Z)
OS version: Linux x64 5.4.0-109-generic
Restricted Mode: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz (6 x 3900)|
|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>oop_rasterization: disabled_off<br>opengl: enabled_on<br>rasterization: disabled_software<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: disabled_software<br>video_encode: disabled_software<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|1, 1, 2|
|Memory (System)|15.57GB (1.55GB free)|
|Process Argv|--disable-extensions --crash-reporter-id de191d6e-a836-4dac-a1ec-1dfbb45a3091|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|gnome|
|XDG_CURRENT_DESKTOP|GNOME|
|XDG_SESSION_DESKTOP|gnome|
|XDG_SESSION_TYPE|x11|
</details>Extensions disabled<details>
<summary>A/B Experiments</summary>

```
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30422396
pythontb:30258533
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscod805cf:30301675
pythonvspyt200:30323110
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30404738
wslgetstarted:30449409
pythonvspyt640:30438691
vscscmwlcmt:30465136
cppdebugcf:30475217
vsclangdf:30480126

```

</details>

<!-- generated by issue reporter -->
Repository: next.js
Issue: Hot reload dont work when you use docker
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in Next.js canary release

### Provide environment information

```
/app # yarn run info
yarn run v1.22.18
$ next info

    Operating System:
      Platform: linux
      Arch: x64
      Version: #1 SMP Wed Mar 2 00:30:59 UTC 2022
    Binaries:
      Node: 16.15.0
      npm: 8.5.5
      Yarn: 1.22.18
      pnpm: N/A
    Relevant packages:
      next: 12.1.7-canary.3
      react: 17.0.2
      react-dom: 17.0.2

Done in 2.07s.
```

### Which example does this report relate to?

https://github.com/vercel/next.js/tree/canary/examples/with-docker

### What browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_

### Describe the Bug

When I make changes in code app doesn't recompile itself. Hot reload doesn't work.

### Expected Behavior

When I make changes in for example `pages/index.js` app should recompile and browsers should refresh page.

### To Reproduce

I make this repo to show the problem: https://github.com/GorlikItsMe/next-js-docker-swc-hot-reload-dont-work

Steps:
1. Download repo https://github.com/GorlikItsMe/next-js-docker-swc-hot-reload-dont-work
2. `docker-compose up --build`
3. Make a change in `/src/pages/index.js`
4. Hot reload doesn't work
5. Manually refresh page also don't work


My environment:
windows 10 with Docker Desktop.
Repository: rust
Issue: Incorrect "implementation of `Send` is not general enough" error with lifetimed `Send` impl used in `async fn`
Labels: T-compiler,C-bug,A-coroutines,A-async-await,AsyncAwait-Triaged

I tried this code:

```rust
struct Foo<'a, F> {
    func: F,
    data: &'a u32,
}
unsafe impl<'a, F: Send + Callback<&'a u32>> Send for Foo<'a, F> {}

trait Callback<I> {}

struct Implementor<'a>(&'a u32);
impl<'a> Callback<&'a u32> for Implementor<'a> {}

fn assert_send<T: Send>(v: T) -> T { v }

async fn async_function<'a>(data: &'a u32) {
    let data = assert_send(Foo {
        func: Implementor(data),
        data,
    });
    std::future::ready(5).await;
}

fn wrapper(data: &u32) {
    assert_send(async_function(data));
}
```

I expected to see this happen: No error

Instead, this happened:
```
error: implementation of `std::marker::Send` is not general enough
  --> src/main.rs:23:5
   |
23 |     assert_send(async_function(data));
   |     ^^^^^^^^^^^ implementation of `std::marker::Send` is not general enough
   |
   = note: `std::marker::Send` would have to be implemented for the type `Foo<'0, Implementor<'1>>`, for any two lifetimes `'0` and `'1`...
   = note: ...but `std::marker::Send` is actually implemented for the type `Foo<'2, Implementor<'_>>`, for some specific lifetime `'2`
```

### Meta

`rustc --version --verbose`:
```
rustc 1.60.0 (7737e0b5c 2022-04-04)
binary: rustc
commit-hash: 7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c
commit-date: 2022-04-04
host: x86_64-unknown-linux-gnu
release: 1.60.0
LLVM version: 14.0.0
```

Also happens with Nightly:

```
rustc 1.62.0-nightly (bed05e996 2022-05-02)
binary: rustc
commit-hash: bed05e996e37e44b1a3980b84754af621fd3c4ce
commit-date: 2022-05-02
host: x86_64-unknown-linux-gnu
release: 1.62.0-nightly
LLVM version: 14.0.1
```
Repository: kubernetes
Issue: [FG:InPlacePodVerticalScaling] Add E2E test case to revert resource resize patch
Labels: sig/node,kind/feature,help wanted,good first issue,needs-triage

### What would you like to be added?

Pod resize E2E tests need a test case to revert the applied patch and verify that the original values are restored.
PR discussion: https://github.com/kubernetes/kubernetes/pull/102884#discussion_r865662604

This should be done for both cases:
1. Fully actuated and resized resources are reflected in pod status.
2. Fully actuated but not yet reflected in pod status.

### Why is this needed?

This verifies that actual.resources == desired.resources in instances where a resize is backed out after it has been partially actuated.
Repository: neovim
Issue: `nvim_exec('source ...')` is not equivalent to `:source ...`
Labels: enhancement,api

### Feature already in Vim?

Yes, with basic `:source`

### Feature description

For most cases using `vim.cmd('source ...')` is fine. But it doesn't seem to be an exact replacement of `:source` when it comes to handling errors. The manual `:source` executes all commands from script, even after the error, while `vim.cmd()` stops on first error.

Example:
- Create 'init-error.vim' file with following contents:
```
let g:before_error=1
normal! zo
let g:after_error=1
```
- `nvim --clean -u NONE`
- Take one of two routes:
    - `:lua vim.cmd('source init_error.vim')` - throws error `E5108` with `E490` Vimscript error; `g:before_error` is 1 but `g:after_error` is absent.
    - `:source init_error.vim` - throws `E490`, but both `g:before_error` and `g:after_error` are 1.
Repository: create-react-app
Issue: Is "app" folder name reserved when aliasing in typescript?
Labels: needs triage

TS compiler says module not found when I added the app path alias in tsconfig file.

![image](https://user-images.githubusercontent.com/59693291/167432542-b7a54517-47db-4193-b08a-9d1f0d28ba3e.png)

 it works whenever there is no app folder in the paths.

```json
{
  "compilerOptions": {
    "target": "es5",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noFallthroughCasesInSwitch": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "react-jsx",
    "baseUrl": "./src",
    "paths": {
      "modules/*": ["modules/*"], //works fine
      "app_core/*": ["app/core/*"], //does not work
      "core/*": ["core/*"] //works fine
    }
  },
  "include": ["src"]
}

```
when I use the app_core module the compiler says module not found

```js
import TestModule from "app_core/test/Test.module"; //doesnot work
import TestModule1 from "core/test/Test.module"; //works fine

import PageModule from "modules/Page.module"; //works fine
import React from "react";
import "./App.css";

function App() {
  return (
    <div className="App">
      <TestModule />
      <TestModule1 />
      <PageModule />
    </div>
  );
}

export default App;

```

Edit:

Folder structure

![image](https://user-images.githubusercontent.com/59693291/167441672-86240604-416c-4b99-af49-ab12c5d55aed.png)

I don't know if the folder name is reserved or something. Can someone help me out?
Thank you in advance.
Repository: rust
Issue: Docs say --remap-path-prefix treats paths as strings during matching but compiler does not
Labels: T-compiler,C-bug,A-reproducibility

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

Our `--remap-path-prefix` documentation says ["The
replacement is purely textual, with no consideration of the current system's
pathname syntax."](https://github.com/rust-lang/rust/blob/e013f9e0ca4055930f931a30171c355de42f9f92/src/doc/rustc/src/command-line-arguments.md?plain=1#L372-L376). But that currently is not the case. Prefix matching is implemented via [Path::strip_prefix](https://doc.rust-lang.org/std/path/struct.Path.html#method.strip_prefix) which can behave [quite differently](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=2c02b36983155b9075419a344dfa65ab):

```
`abc` is a prefix of `abc/def`
`abc/.` is a prefix of `abc/def`
`ab` is NOT a prefix of `abc/def`
`abc` is NOT a prefix of `./abc/def`
`./abc` is NOT a prefix of `abc/def`
`./abc` is a prefix of `./abc/def`
```

It's unclear whether we should update the documentation or change the compiler's behavior. 

`rustc --version --verbose`:
```
rustc 1.60.0 (7737e0b5c 2022-04-04)
binary: rustc
commit-hash: 7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c
commit-date: 2022-04-04
host: x86_64-unknown-linux-gnu
release: 1.60.0
LLVM version: 14.0.0
```
Repository: PowerToys
Issue: Add an option in File Explorer to enable Preview of PowerShell files
Labels: Idea-Enhancement,Help Wanted,Product-File Explorer

### Description of the new feature / enhancement

I'd like you to add an option to view (or not) PowerShell files in Filer Explorer.

Proposed layout:

**>_**  Enable PowerShell preview (.ps1, .psm1, .psd1, .ps1xml, .pssc, .psrc, .cdxml)

### Scenario when this would be used?

IT Pros using PowerShell would appreciate a fast way to turn this on. 

YES: I know know you can do it manually (https://tfl09.blogspot.com/2021/12/viewing-powershell-files-in-preview.html) which should give you a heads up on the reg keys you need to set to achieve this!


### Supporting information

https://tfl09.blogspot.com/2021/12/viewing-powershell-files-in-preview.html
Repository: youtube-dl
Issue: Help with Twitter profile scraper command line
Labels: question,not-a-bug

Here is the line of code I enter in terminal. I put in my own username and password

>youtube-dl -u, --username USERNAME -p, --password PASSWORD https://twitter.com/mankoprincess

This is what I get:

[generic] Username: Requesting header
WARNING: Falling back on generic information extractor.
[generic] Username: Downloading webpage
[generic] Username: Extracting information
ERROR: Unsupported URL: https://twitter.com/Username

Any ideas? Thanks
Repository: vscode
Issue: Add an option to dismiss notifications with ESC instead of minimizing them
Labels: feature-request,workbench-notifications

<!-- ⚠️⚠️ 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. -->
I had always thought that pressing ESC had the same behavior as clicking the 'x' for the popup "toast" messages, but while investigating an issue with missing telemetry for an experiment we're doing in CMake Tools, I discovered that pressing ESC after calling `vscode.window.showErrorMessage` didn't return a result back to our code nor did it reject the promise.  The code just sat there until we shut down the extension host window.

This morning I had a thought that maybe the message had been minimized, and sure enough that's what it was.  This is a problem for extensions that want to log telemetry as a result of a dismissal.  Can we get an option in the API to make pressing ESC behave the same as clicking the 'x' button in certain toast messages?
Repository: excalidraw
Issue: Pen / Stylus Eraser support (on button hold)
Labels: enhancement,discussion

It would be amazing to have support to **activate eraser, when stylus / pen eraser button is pressed** and disable/switch back to previous tool, when button is released.

_Currently it is the only feature holding me back from switching from OneNote, since its dealbreaker for touchscreen/stylus._
Repository: TypeScript
Issue: Go to definition for TypeScript literal strings
Labels: Suggestion,Help Wanted,Experience Enhancement,Domain: Symbol Navigation

<!-- ⚠️⚠️ 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. -->


## Feature request

Go to definition for TypeScript literal strings.

### Example

Given the below code, I would really like to be able to jump to the definition of the `'foo'`:

```ts
const obj = {
  foo: 'bar' as const,
  hello: 'world' as const,
}

function get<T, K extends keyof T>(obj: T, path: K): T[K] {
  return obj[path]
}

const val = get(obj, 'foo')
//                   👆👆👆 Is there a way of make jump to definition work here?
//                         I really want to CMD+click `'foo'` and jump to line #2
```

[**Link to TypeScript playground**](https://www.typescriptlang.org/play?ts=4.6.2#code/MYewdgzgLgBCBGArGBeGBvAsAKBjAZiCAFwwDk8AhgE5kyUQyiRQA0OeAFgKYA2vJcgHcQ1XgBM6DJuGjtsAXxw58AVzDAoAS3AwA5tygAeACqsYAaRjcAHlG5hxjANbcAniHwwTAPgAUCIikZjAADpRQnKQWAJTBANoWALoYHDDUhqrUYHBI8eGRSThK2DjM0DAAbpS8qPqGAUjmZIQgZDE4APSdeL19-f2AvBuAYjsjIzAAkoyR3Bn0MEKUbnBeALaUrjCIqquhMFAgMOLc+FpgWtq6ItTOMDwZAPxdPQOvb70T6dw1vMuLYLADjAAMIAWQAIgBqYC8LTAW4AAxaRDICPoji2Oz2QNhYG4MAAxAAmZTYcogXjcAB0Aj0fmqvA62G67xgAD0HkA).

### WebStorm Demo of the same code

In WebStorm, it actually works how I wish that VSCode worked, here's a video:

https://user-images.githubusercontent.com/459267/167470744-80bdd8af-b7fa-444a-84d5-7e3f83e7e003.mov
Repository: material-ui
Issue: [a11y] Add first class support for REM
Labels: new feature,accessibility

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

As of today MUI does a terrific job with Accessibility, including default REM support for Typography.

This feature request intends to raise the issue with limiting REM support to just Typography and Iconography.

For example, using default MUI I go to my browser settings and I change the font size to "Very Large" in Chrome and here is how the Stepper component looks like:

![Screen Shot 2022-05-09 at 11 43 26 AM](https://user-images.githubusercontent.com/1207250/167476596-1fa6c5aa-1d9d-44e8-a9d7-2f8dd0958366.png)

Notice that just changing the font size in the Browser makes MUI change the font size of the stepper text and now things are not centered


### Examples 🌈

### Button
Here is what I've done to change the button defaults to use rems

https://codesandbox.io/s/mui-rem-overrides-0cntz9

### Stepper 
This one seems more complicated to fix given that the centering of the SVG text is done in Javascript I believe

https://codesandbox.io/s/mui-rem-overrides-stepper-bl1f0s?file=/index.js



### Motivation 🔦

I intend to use MUI out of the box and have REM support across the board where changing the Browser font size will not result in default MUI components looking weird and not aligned well
Repository: create-react-app
Issue: Doesn't work refresh page on react app
Labels: needs triage

Hi React Team,
I have one question.
I am building react app with "react-scripts": "4.0.3".
After uploaded and built on netlify, when refresh the page with param (https://corsac-v2-marketplace.netlify.app/collection/0x5ac4c0970a00e89944e7e69d6e27efc1e65ac4d8), it returns white blank page. (will attach screenshot with console)
But, on local dev(yarn start), it does work (http://localhost:3000/collection/0x5ac4c0970a00e89944e7e69d6e27efc1e65ac4d8).
So, I googled for a few hours in order to fix this issue, but, I couldn't get any solutions.
I tried added /_redirects file and .htaccess file. (it doesn't work)

How can I fix this issue?
Hope your quick help.

Best,,,

![image](https://user-images.githubusercontent.com/82189148/167477183-d523a3d1-0d29-4602-a6a8-07d7143fd83c.png)
Repository: flutter
Issue: Reference project files in integration tests
Labels: framework,c: proposal,f: integration_test,P3,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

As a developer, I want to able to reference files in the project directory (e.g. outside of the simulator file system) and use them within the simulator file system. This currently doesn't work because integration tests operate in the context of the simulator's file system.

For example: I'm writing an integration test which displays text on a screen. I'd like to load some "sample text files" from my project and inject them into the simulator's file system. This would allow me to write a test to see if the app UI displays appropriately based on the configuration in the "sample text files".

Alternative solutions:
- Load the files into the flutter assets section in `pubspec.yaml`. Then load the bytes using `rootBundle`. This works, but is not ideal because it increases the app build size.

The golden file system doesn't work here, since it can only compare/update golden files. In the particular case I'm dealing with, I need to reference project files (images) and use them in my integration tests.

## Proposal

I would like to be able to get the path to the `integration_test` folder. I could then use this to reference a local file.

```dart
// This file is in `my_project/integration_test/my_project_file_image.jpg`
final projectFilePath = path.join(integration_test_directory, 'my_project_file_image.jpg');
final imageBytes = await File(projectFilePath).readAsBytes();

// Now use my project file bytes to configure how the app behaves in the integration test
await mockedBackendOrSomething.setImageBytes(imageBytes);
```

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching something showing what you are imagining:
      * images
      * videos
      * code samples

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: PowerToys
Issue: Preview of All Unregistered Files as Text or possibly Hex Dump
Labels: Idea-Enhancement,Product-File Explorer,Needs-Triage

### Description of the new feature / enhancement

There are a lot of file extensions which are not registered and do not show on preview. I would suggest an option to view these as text by default. Maybe an additional option would be to detect files with non-ASCII content and preview them as a hex dump instead of text.

### Scenario when this would be used?

As a developer, I have a .reg file for adding "PerceivedType"="Text" to about 50 different file types and am constantly having to add more to this .reg key file and then run it to update the registry.

### Supporting information

Possible Hex Dump Format:
AAAAAAAA HH HH HH HH HH HH HH HH - HH HH HH HH HH HH HH HH %%%%%%%% - %%%%%%%%
A is the address in the file beginning with 00000000
HH is the Hex Code for the byte value
% is the ASCII character for the corresponding Byte.  "." for non printable ASCII character.

I know this does not take into consideration unicode.
Repository: ant-design
Issue: PlusOutlined Icon losing lines while zooming in / out
Labels: Inactive

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/icon-antd-4-20-3-forked-hziscl?file=/demo.js)

### Steps to reproduce

Zoom out on your browser to 75% and watch the plusoutlined icons horizontal line disappear. If you zoom out even further, both vertical and horizontal lines will disappear. 

### What is expected?

The icon remains visible while scaling. 

### What is actually happening?

The icon is no longer visible once the user zooms out.

| Environment | Info |
| --- | --- |
| antd | 4.20.3 |
| React | React |
| System | Windows  |
| Browser | Chrome |

---
I've traced it down to being related to the shape-rendering: optimizeSpeed css property. However upon unsetting this, the plusoutlined icon loses a lot of it's font-weight almost appearing disabled it's so faint.

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: kubernetes
Issue: [Test] integration tries to connect to non-existent address
Labels: sig/api-machinery,kind/flake,triage/accepted

The integration tests for the apiextensions-apiserver generates a fake kubeconfig with a non-existing server `127.1.2.3:12345`

https://github.com/kubernetes/kubernetes/blob/42f1e81488d8599c6874e467fe39b91a23654886/staging/src/k8s.io/apiextensions-apiserver/test/integration/fixtures/server.go#L34-L42

However, the integration logs show that there are a lot of connections refused trying to use that IP

```
grep "connection refused" junit_20220509-144043.stdout  | grep 127.1.2.3:12345   | wc
   1120   21280  570063
```