sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: Middleware: location undefined
Labels: bug

### Verify canary release

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

### Provide environment information

```bash
Server Error
TypeError: Cannot read properties of undefined (reading 'hash')

This error happened while generating the page. Any console logs will be displayed in the terminal window.
Call Stack
<unknown>
webpack-internal:///(middleware)/./node_modules/@azure/identity/dist-esm/src/msal/browserFlows/msalAuthCode.js (18)
eval
webpack-internal:///(middleware)/./node_modules/@azure/identity/dist-esm/src/msal/browserFlows/msalAuthCode.js (18:36)
(middleware)/./node_modules/@azure/identity/dist-esm/src/msal/browserFlows/msalAuthCode.js
file:///C:/workspace/repo/next-pinpoint/.next/server/middleware.js (1349:1)
__webpack_require__
file:///C:/workspace/repo/next-pinpoint/.next/server/edge-runtime-webpack.js (37:33)
fn
file:///C:/workspace/repo/next-pinpoint/.next/server/edge-runtime-webpack.js (269:21)
eval
webpack-internal:///(middleware)/./node_modules/@azure/identity/dist-esm/src/credentials/interactiveBrowserCredential.browser.js (7:89)
(middleware)/./node_modules/@azure/identity/dist-esm/src/credentials/interactiveBrowserCredential.browser.js
file:///C:/workspace/repo/next-pinpoint/.next/server/middleware.js (1239:1)
__webpack_require__
file:///C:/workspace/repo/next-pinpoint/.next/server/edge-runtime-webpack.js (37:33)
fn
file:///C:/workspace/repo/next-pinpoint/.next/server/edge-runtime-webpack.js (269:21)
eval
webpack-internal:///(middleware)/./node_modules/@azure/identity/dist-esm/src/index.js (47:100)
(middleware)/./node_modules/@azure/identity/dist-esm/src/index.js
file:///C:/workspace/repo/next-pinpoint/.next/server/middleware.js (1338:1)
```
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

_No response_

### Link to the code that reproduces this issue or a replay of the bug

na

### To Reproduce

na

### Describe the Bug

na

### Expected Behavior

na

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

_No response_

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

_No response_
Repository: flutter
Issue: Add a test to the dart focal image smoke testing to prevent broken images
Labels: team-infra,P3,triaged-infra

Since we need to runs tests with emulators we need to make sure that the images we are using are able to do so to avoid problems with emulator testing.

Context: https://github.com/flutter/flutter/issues/126571
Repository: PowerToys
Issue: Mouse Without Borders - Clipboard file size limit increase
Labels: Idea-Enhancement,Needs-Triage,Product-Mouse Without Borders

### Description of the new feature/enhancement

The infamous 100MB clipboard limit in MWB is implemented [here](https://github.com/microsoft/PowerToys/blob/main/src/modules/MouseWithoutBorders/App/Class/Common.Clipboard.cs#L39). Increasing/lifting this limit would be a great improvement. It would be great if @Truong-Do could shed some light on why is this arbitrarily set to 100MB and if that can be increased now (given the original limit is fairly old) or whether there are any blockers.

### Scenario when this would be used?

Often I find myself in need to ctrl+c->ctrl+v a file over 100MB and have to do that via dnd instead which is an inconvenience.

### Supporting information

_No response_
Repository: angular
Issue: [Feature]: Allow for lazy loading of each route config
Labels: feature,area: router,feature: under consideration

### Which @angular/* package(s) are relevant/related to the feature request?

router

### Description

Currently, you can eagerly load an entire route config, but if you include providers, guards, and other tokens they will be included in the main bundle even for a lazy loaded component/routes.

```ts
[
  {
    path: 'page',
    canActivate: [authGuardFunction, permissionsGuardFunction],
    loadChldren: () => import('features/page')
  },
  {
    path: 'other-page',
    canActivate: [authGuardFunction, permissionsGuardFunction],
    loadComponent: () => import('about.component')
  }
]
```

This feature would allow you to provide a route config with a `path` and a `loadConfig/loadRoute` that resolves to the rest of the route configuration, and would be resolved on the matching of that path before proceeding. This would reduce the main bundle size for route-level configuration, while allowing the entire routing tree to be defined eagerly.

### Proposed solution

Allow lazy loading of the entire route config except for the path

```ts
// features/page.ts
const config: RouteConfig =  {
  canActivate: [authGuardFunction, permissionsGuardFunction],
  component: FeatureHome,
  children: [
    // more lazy loaded routes
  ]
}

export default config;
```

```ts
[
  {
    path: 'page',
    loadConfig: () => import('features/page')
    // or
    loadRoute: () => import('features/page')
  }
]
```

### Alternatives considered

In Analog, file-based routing is used along with `loadChildren` to lazy load the entire route config

```ts
[
  {
    path: 'page',
    loadChildren: () => import('features/page').then(m => {
      return [
       {
          path: '',
          component: m.default,
          ...m.routeMeta
       }
      ];
    })
  }
]
```
Repository: storybook
Issue: [Bug]: Focus outline getting lost in high contrast black/white
Labels: bug,needs triage

### Describe the bug

In High Contrast Black/White mode, focus visible indicator is not visible while navigating using tab key on 'Copy' button present.

![CleanShot 2023-05-23 at 13 54 41@2x](https://github.com/storybookjs/storybook/assets/120223553/a3058eca-3ede-4b6e-b81e-d309acb39927)


https://github.com/storybookjs/storybook/assets/120223553/8b042951-557a-4469-9efb-9bbe8f0cacce

**Expected Result:**

- In High Contrast Black/White mode, focus visible indicator should be properly visible while navigating using tab key on 'Copy' button.

### To Reproduce

**Repro steps:**

- Step 1:  Set the system in High Contrast Mode 
- Step 2: Setting->Accessibility->Contrast themes->High Contrast (Desert/Night Sky) 
- Step 3: Use 'Right arrow key' to navigate from the 'Overview' tab to the 'Code' tab and invoke on it using 'Enter' key.
- Step 4: 'Code' tab will be displayed.
- Step 5: Change the display setting as per above mentioned Pre-Requisite steps.
- Step 6: Verify whether in High Contrast Black/White mode, keyboard focus on 'Copy' button is visible or not.

### System

```shell
**Test Environment:**

- OS: Windows 11 21H2 (OS Version 22621.1555)  
- Browsers: New Edge Version 113.0.1774.35 (Official build) (64-bit)
```


### Additional context

_No response_
Repository: PowerToys
Issue: Space to activate peek view. 
Labels: Idea-Enhancement,Help Wanted,Product-Peek

### Description of the new feature / enhancement

Please, is more easy to activate the fast view of the elemente using only the space key, just like a a Mac system. 

### Scenario when this would be used?

When i like to determinate the shortcut, use only space is not posible. 

### Supporting information


![image](https://github.com/microsoft/PowerToys/assets/111072818/4eb97860-eddb-4baa-852b-669786073aeb)
Repository: node
Issue: Implement parallel Happy Eyeballs as described in RFC 8305
Labels: net,feature request,never-stale

### What is the problem this feature will solve?

`autoSelectFamily` is enabled by default in Node.js 20. However, it does not properly implement parallel connection attempts, which are an integral part of the Happy Eyeballs algorithm. This can cause timeouts to occur that did not occur in versions prior to Node.js 20. See, for example, [this discussion](https://github.com/orgs/nodejs/discussions/48028).

### What is the feature you are proposing to solve the problem?

Implement the algorithm as described in Section 5 of [RFC 8305](https://www.rfc-editor.org/rfc/rfc8305.txt):

> Starting a new connection attempt does not affect previous attempts, as multiple connection attempts may occur in parallel.

### What alternatives have you considered?

Disabling `autoSelectFamily` and restoring the pre-20 behavior, see https://github.com/nodejs/node/issues/47644#issuecomment-1554440759.
Repository: PowerToys
Issue: Peek doesn't work for files in a ZIP archive.
Labels: Issue-Bug,Priority-2,Status-Reproducible,Product-Peek

### Microsoft PowerToys version

0.70

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

General

### Steps to reproduce

Ctrl-space while a file (foo.h) was selected from w/in a ZIP archive being viewed w/Exploerer.

### ✔️ Expected Behavior

Exxtract file and display in viewer.

### ❌ Actual Behavior

Error in viewer.

### Other Software

_No response_
Repository: PowerToys
Issue: Mouse Without Borders "Use Service" disconnects Win 10 client from cross-border mousing
Labels: Issue-Bug,Needs-Triage,Product-Mouse Without Borders

### Microsoft PowerToys version

0.70.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Mouse Utilities

### Steps to reproduce

1. Set up Windows 11 system to use Mouse Without Borders as a "director", for lack of a better word. As part of this, set new security key that the Windows 10 system "client" will connect to.
2. Run MWB as a service on the Win 11 (director) system.
3. Set up Win 10 system on same network to use MWB as a client. Connect to Win 11 system's (director) key.  Mousing across the screens work as expected.
4. Run MWB as a service on the Win 10 (client) system. It gets outlined in red on the director system, and it can't be moused to from the Win 11 (director).
5. Activate my hard switch to use Win 10 system, and stop running MWB as a service - now mousing between systems works again.

### ✔️ Expected Behavior

Running MWB as a service on the Win 10 client shouldn't have stopped the cross-border mousing capability. (Or should it have? Am I missing something?)

### ❌ Actual Behavior

Cross-border mousing stopped working per step 4 above.

### Other Software

Windows 11 Home 22H2 Build 22621.1776 (director)
Windows 10 Home 22H2 Build 19045.3030 (client)
Repository: rust
Issue: rustdoc is confusing for `use Foo as Bar` types
Labels: T-rustdoc,C-bug

While examining API docs for [`ipfs_api_backend_hyper::IpfsClient`](https://docs.rs/ipfs-api-backend-hyper/0.6.0/ipfs_api_backend_hyper/struct.IpfsClient.html) I was confused about the relationship between the symbol `IpfsClient` and `HyperBackend`:

![Screenshot 2023-05-23 11 09 19](https://github.com/ferristseng/rust-ipfs-api/assets/4369700/c3dbb1fb-331c-4882-beb2-5eec13532280)

I knew that rustdoc explicitly annotates type aliases, but that wasn't what I was seeing, so I fetched the code to examine and find a statement similar to `use my_path::HyperBackend as IpfsClient`. Ok, but could rustdoc have helped me know this was happening?

**I expected to see this happen:**

I hope to see some explicit indication that the two symbols refer to the same item. The actual approach might be tricky to get right in a manner that is explicit but not too much clutter.

I've seen rustdoc explicitly annotate that when re-exporting across crate boundaries. Is there some way to do this for intra-crate renaming re-exports so that the crate-level doc would move `IpfsClient` out of the structs section and into a re-exports section with a crate-local path? It currently looks like this:

![image](https://github.com/rust-lang/rust/assets/4369700/13bce4db-ad45-424c-a41d-5ff93e5b7744)

With this proposed approach, the rendering for the type interface would consistently use `HyperBackend`.

### Related Tickets

I searched this issue tracker with [`is:issue is:open use as label:A-rustdoc-ui`](https://github.com/rust-lang/rust/issues?page=2&q=is%3Aissue+is%3Aopen+use+as+label%3AA-rustdoc-ui) to find these tickets both of which rename to `_` which is distinct from my issue:

- https://github.com/rust-lang/rust/issues/97615
- https://github.com/rust-lang/rust/issues/92379

I filed [this PR](https://github.com/ferristseng/rust-ipfs-api/pull/131) against [rust-ipfs-api](https://github.com/ferristseng/rust-ipfs-api) which replaces `use foo as bar` with explicit type aliases as a work-around. That PR has more screenshots of the difference in doc rendering between the two approaches.
### Meta

`rustc --version --verbose`:

Whatever https://docs.rs used to render https://docs.rs/ipfs-api-backend-hyper/0.6.0/ipfs_api_backend_hyper/index.html
Repository: flutter
Issue: Flutter_markdown throws assertion for footnotes with latest `markdown`
Labels: c: crash,package,a: error message,team-ecosystem,has reproducible steps,P3,p: flutter_markdown,found in release: 3.10,found in release: 3.11,triaged-ecosystem

Hello,

I updated our project to 3.10 and noticed that some of our tests failed which I tracked down to some specific syntax that we have in some test widgets to test markdown. Namely the following:

```
Footnote 1 link[^first].
[^first]: Footnote **can have markup**
```

Now I am quite certain that footnotes aren't supported, but at least there shouldn't be an assertion. Full markdown source is here: https://sarveshh.github.io/markdownerr/

![image](https://github.com/flutter/flutter/assets/95936504/f587f898-6b2f-42bf-92df-eb44e20af903)
![image](https://github.com/flutter/flutter/assets/95936504/057ddddf-6214-4d55-a45d-348ea528492e)

I looked to see if this was elsewhere reported but I couldn't find it, if it was already reported please close this one :)

Steps to reproduce:

Create a widget and add:
```
MarkdownBody(
        data: text,
);
```
Text being the above text or a copy paste from the URL referenced.

Thanks for any input you can have on this!
Repository: godot
Issue: Navigation buttons in Android not working
Labels: bug,platform:android,needs testing,topic:input

### Godot version

4.0.3

### System information

Android Asus ROG phone 5s

### Issue description

During using app I see message in Whatsapp, click in notification, but, use controls navigation for movement and when return the app these movement controls don't function

### Steps to reproduce

Use movement buttons and exit of the application and return, during use buttons

### Minimal reproduction project

Need Godot in Android
Repository: TypeScript
Issue: Fix ternary formatting for all cases.
Labels: Help Wanted,Domain: Formatter,Possible Improvement

<!-- ⚠️⚠️ 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. -->

Ternary formatting currently only supports a single syntax, and it's not the ideal one.

These are the possibilities:

### Case 1, current behavior:
```js
const result =
  some_long_expression === 'a'
    ? 1
    : some_long_expression === 'b'
      ? 2
      : some_long_expression === 'c'
        ? 3
        : some_long_expression === 'd'
          ? 4
          : some_long_expression === 'e'
            ? 5
            : some_long_expression === 'f'
              ? 6
              : 7
```

This is clearly not the ideal formatting when doing a long ternary chain as the indentation is increasing continuously and unnecessary. The rule here is **always indent an expression spanning next line**.

### Case 2

```js
const result =
  some_long_expression === 'a'
    ? 1
    : some_long_expression === 'b'
    ? 2
    : some_long_expression === 'c'
    ? 3
    : some_long_expression === 'd'
    ? 4
    : some_long_expression === 'e'
    ? 5
    : some_long_expression === 'f'
    ? 6
    : 7
```

Here we no longer indent with the rule **if the expression branch comes from a ternary's else branch, skip indent**. Better. Still not very readable because the expression match result is all the way to the left, which makes it hard to read when you have many such chained, depending on the distance you have to move your eyes, you can easily skip a line, so you have to constantly look all the way to the right and all the way to the left multiple times to make sense of the positive branches.

Here's the two ideal cases,

### Case 3:

```js

const result =
  some_long_expression === 'a' ? 1 : 
  some_long_expression === 'b' ? 2 : 
  some_long_expression === 'c' ? 3 :
  some_long_expression === 'd' ? 4 :
  some_long_expression === 'e' ? 5 :
  some_long_expression === 'f' ? 6 :
  7
```

### Case 4

```js
const result =
  some_long_expression === 'a' ? 1
  : some_long_expression === 'b' ? 2  
  : some_long_expression === 'c' ? 3 
  : some_long_expression === 'd' ? 4 
  : some_long_expression === 'e' ? 5 
  : some_long_expression === 'f' ? 6 
  : 7
```

Either of the two latter are a significant improvement over the current formatting behavior. The output is closer to the expression being tested, it also resembles the "match" syntax found in Rust. Much faster to read/scan/make sense of.

This has been suggested before by @fqborges in https://github.com/microsoft/vscode/issues/28560 but was dismissed, but I believe it should be reexamined.
Repository: terminal
Issue: Vim in MS Terminal mistakes color of ctermfg=7
Labels: Issue-Docs,Product-Conpty,Area-Server,Issue-Task

### Windows Terminal version

1.18.1241.0

### Windows build number

10.0.22621.1702

### Other Software

Vim 9.0.1472

### Steps to reproduce

I have the following colorscheme in MS Terminal:

```
        {
            "background": "#FAFAFA",
            "black": "#383A42",
            "blue": "#0184BC",
            "brightBlack": "#4F525D",
            "brightBlue": "#61AFEF",
            "brightCyan": "#56B5C1",
            "brightGreen": "#98C379",
            "brightPurple": "#C577DD",
            "brightRed": "#DF6C75",
            "brightWhite": "#FAFAFA",
            "brightYellow": "#E4C07A",
            "cursorColor": "#383A42",
            "cyan": "#0997B3",
            "foreground": "#383A42",
            "green": "#50A14F",
            "name": "Yellowish",
            "purple": "#A626A4",
            "red": "#E45649",
            "selectionBackground": "#61AFEF",
            "white": "#FCF4DC",
            "yellow": "#C18301"
        }
```

With this colorscheme activated, run vim as follows.

```
vim --clean -c 'se ls=2 | hi StatusLine cterm=none ctermbg=8 ctermfg=7'
```

You'll see a statusline with black blacground, which is expected with `ctermbg=8`, and brightBlack foreground, whereas you should expect a white foreground with `ctermfg=7`.

### Expected Behavior

With help of colortool, I modified Console Host to have the same colorscheme as MS Terminal.  Here is the .ini scheme for easy reproduction:

```
[info]
name = Custom
author = enan

[table]
DARK_BLACK     = 56,58,66
DARK_BLUE      = 1,132,188
DARK_GREEN     = 80,161,79
DARK_CYAN      = 9,151,179
DARK_RED       = 228,86,73
DARK_MAGENTA   = 166,38,164
DARK_YELLOW    = 193,131,1
DARK_WHITE     = 252,244,220
BRIGHT_BLACK   = 79,82,93
BRIGHT_BLUE    = 97,175,239
BRIGHT_GREEN   = 152,195,121
BRIGHT_CYAN    = 86,181,193
BRIGHT_RED     = 223,108,117
BRIGHT_MAGENTA = 197,119,221
BRIGHT_YELLOW  = 228,192,122
BRIGHT_WHITE   = 250,250,250

[screen]
FOREGROUND = DARK_BLACK
BACKGROUND = BRIGHT_WHITE

[popup]
FOREGROUND = DARK_MAGENTA
BACKGROUND = DARK_WHITE
```


If you run the same command to start Vim, you'll now see a statusline with white foreground, which is what's expected from `ctermfg=7`.
![expected](https://github.com/microsoft/terminal/assets/32037751/f965ddab-15a1-471f-bb23-f27aa8b967bb)



### Actual Behavior

In MS Terminal, `ctermfg=7` does NOT use the white color defined in the color table/scheme.

![actual](https://github.com/microsoft/terminal/assets/32037751/7c52b17e-652c-476a-8dc5-22540be62b28)

In Console Host, `ctermfg=7` DOES use the white color defined in the color table/scheme.
Repository: pytorch
Issue: Can't vmap over a slice expression
Labels: triaged,module: functorch

Code:
```
def foo(a, ind, len):
    ind2 = ind + len
    return a[ind:ind2]

torch.vmap(foo, in_dims=(0, 0, None))(a, c, 2)
```
RuntimeError: vmap: It looks like you're calling .item() on a Tensor. We don't support vmap over calling .item() on a Tensor, please try to rewrite what you're doing with other operations. If error is occurring somewhere inside PyTorch internals, please file a bug report.

cc @zou3519 @Chillee @samdow @kshitij12345 @janeyx99
Repository: PowerToys
Issue: Mouse Without Borders: Information about transport encryption needed to evaluate whether it can be used
Labels: Issue-Docs,Needs-Triage,Product-Mouse Without Borders

### Provide a description of requested docs changes

So far I don't see any security related information. I need to understand potential risks to evaluate whether it can be used.

 Think about a typical small business network with many people in the same network. 

Especially  clipboard content and keyboard input can be very dangerous to share unencrypted in a network. Even in a local network. 

Thanks
Repository: vscode
Issue: Multiline problem-matcher with empty line breaks when re-run in same terminal
Labels: bug,tasks

<!-- ⚠️⚠️ 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 - ran with `env HOME=/tmp/empty-home code --disable-extensions vscode-repro-problemmatcher/`

<!-- 🪓 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.77.3
- OS Version: NixOS, GNOME, Linux 6.1.29

I have a command output like this
```
error: attempt to call something which is not a function but a set

   at /nix/store/vdz0n3i2yszb2l8q9vsnnmdh3kbscsam-source/home/manu/parts/vscodium.nix:248:8:
```

So I tried this problem matcher to match the newline:
```
{  "regexp": "^error: (.+)$" },
{  "regexp": "^$" },
{  "regexp": "^\\s+at ...$" }
```
(simplified this for brevity - but the full code is of course in the [reproduction repo](https://github.com/tennox/vscode-repro-problemmatcher/blob/master/.vscode/tasks.json))

And after some very annoying troubleshooting I found the pattern works - but only if it is not run multiple times in the same terminal.

## Steps to Reproduce:

1. Clone https://github.com/tennox/vscode-repro-problemmatcher
2. Run task `BROKEN`
3. See problem in **Problems** panel
4. Run task `BROKEN` again
5. See problem disappear

### Workaround 1: remove the empty line
Try same with `WORKING` task (which is the same but with the newline removed and also the pattern entry that matches the newline) and the problem stays after running multiple times

### Workaround 2: Close terminal after running
1. Run `BROKEN` - see problem appear
2. close terminal (or set `presentation.close = true` in task)
3. Run `BROKEN` again - problem stays :confused: 

### Screencast
[Screencast from 2023-05-23 21-52-24.webm](https://github.com/microsoft/vscode/assets/2084639/e4299568-0fe5-4ba5-b751-e4b6fbeef1bc)