sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: with-msw: Next.js doesn't show changed mock-data without a restart of dev server
Labels: examples

### Verify canary release

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

### Provide environment information

 Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000
    Binaries:
      Node: 16.19.0
      npm: 8.19.3
      Yarn: 1.22.18
      pnpm: 7.25.1
    Relevant packages:
      next: 13.1.6-canary.1
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0

### Which example does this report relate to?

with-msw

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

_No response_

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

_No response_

### Describe the Bug

Changes to msw mock files aren't displayed in next.js site.
Test to run `yarn dev`, look at the site (it displays the book "Lord of the Rings").
Go to `mocks/handlers.ts` and change the mock-data (like changing the title of the book).
In the terminal you'll see:

```sh
wait  - ccompiling...
event - compiled client and server successfully in 91 ms (370 modules)
```

But in the browser the old title is still being displayed. Even on a hard refresh of the browser.
The only way to get the updated mock data to be displayed is by stopping the dev-server and restart it with `yarn dev`.

We noticed this behaviour in some projects when we updated to Next.js 13. 
When we tested this example (`with-msw`) out, we noticed it had the same problem.

Is there some caching mechanism in Next.js 13 that is the problem here?

### Expected Behavior

We expect that changing mock-data while running the dev server should cause a fast refresh in the browser with the updated data being visible.
(Or at least that the data is updated when doing a refresh of the browser window). 

### To Reproduce

1. Install this example `npx create-next-app --example with-msw with-msw-app`
2. Start in dev-mode `yarn dev`
3. Edit `mocks/handlers.ts`, change like the title of the book.
4. The browser doesn't display this update
Repository: stable-diffusion-webui
Issue: [Bug]: Automatic1111 downloading a 4 GB file everytime I try to load the SD2.1 model
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Everytime I try to load the Stable Diffusion 2.1 ema pruned model a file of 4 GB is downloaded and I can't run A1111 offline.
I've already moved the .chache folder to C:\ but nothing changed.


### Steps to reproduce the problem

1. On A1111 models tab
2. Load SD2.1 ema pruned model
3. The A1111 launcher will start a download of 3.94 GB file.
4. I have to wait for the download to finish so I can start running SD


### What should have happened?

As all of needed files, modules and dependencies are downloaded the model should be loaded without downloading any extra files.

### Commit where the problem happens

webui-user

### What platforms do you use to access UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
venv "C:\Users\Tariq\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 4af3ca5393151d61363c30eef4965e694eeac15e
Installing requirements for Web UI
loading Smart Crop reqs from C:\Users\Tariq\stable-diffusion-webui\extensions\sd_smartprocess\requirements.txt
Checking Smart Crop requirements.

Launching Web UI with arguments: --xformers
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading weights [625a2ba2] from C:\Users\Tariq\stable-diffusion-webui\models\Stable-diffusion\Anything-V3.0-pruned-fp32.safetensors
Applying xformers cross attention optimization.
Model loaded.
Loaded a total of 26 textual inversion embeddings.
Embeddings: AnalogFilm768, CharTurner, Cinema768-Digital, dblx, EMB_sksmakimatest, FloralMarble, InkPunk768, learned_embeds, mid512, midjourney, midjourney2, midjourney768, mj768, Neg_Facelift768, picoftaraj, pixelart-1, PlanIt, SCG768-Euphoria, SDA768, TungstenDispo, WEBUI
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Loading config from: C:\Users\Tariq\stable-diffusion-webui\models\Stable-diffusion\v2-1_768-ema-pruned.yaml
LatentDiffusion: Running in v-prediction mode
DiffusionWrapper has 865.91 M params.
Downloading: 100%|████████████████████████████████████████████████████████████████| 3.94G/3.94G [04:56<00:00, 13.3MB/s]
Loading weights [4bdfc29c] from C:\Users\Tariq\stable-diffusion-webui\models\Stable-diffusion\v2-1_768-ema-pruned.ckpt
Applying xformers cross attention optimization.
Model loaded.
```


### Additional information, context and logs

The model is also taking a long time to load even after the 3.94 G file is downloaded. (about extra 5 minutes)
I'm running it on **Windows 11** 
**RTX 2060**
Intel Core **i7-10750H**
**samsung mzvlb512hbjq-00000** (Supposed to be a fast SSD)

I've looked online for some solutions the only thing I've found was to move .cache folder to C:\ and that didn't work for me.
Repository: flutter
Issue: Updated scroll behaviour documentation
Labels: c: regression,framework,platform-windows,a: desktop,a: mouse,has reproducible steps,P2,found in release: 3.7,team-windows,triaged-windows

After updating flutter to 3.7.0 all scrolling widgets(Like ListView, GridView, SingleChild...) are scrolling much faster. I merely touch the mouse wheel and content is already scrolled to the end. The same effect happened to widgets like InteractiveViewer. 
### I did not find any notes in breaking changes part or in fixed issues list.

![image](https://user-images.githubusercontent.com/63228361/214527495-46214557-b7ff-4623-94cb-3c8f8c7cc02e.png)

Is this an issue or from now on this is the excepted behavior? How can I control this scrollFactor/scrollSpeed manually?

Platform: Windows. Flutter version: the latest from the stable channel.
Repository: next.js
Issue: 13.1.2 broke Next.js for custom serveres sending next config as argument
Labels: bug

### Verify canary release

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

### Provide environment information

    Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000
    Binaries:
      Node: 18.13.0
      npm: 8.19.3
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.1.5
      eslint-config-next: 13.1.5
      react: 18.2.0
      react-dom: 18.2.0

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

_No response_

### Link to the code that reproduces this issue

https://stackblitz.com/edit/vercel-next-js-ssfnpi?file=server.ts&startScript=dev

### To Reproduce

Run the `npm run dev` command, and observe that an exception is thrown and no compilation/server listening message is written to the console.

Note that I couldn't find a way to disable the `next dev` command to be run when opening the stackblitz site, so for a clean view of the error, run `npm run dev` separately.

### Describe the Bug

The bug occurs when using a custom server for next.js, and sending in any object to the conf-key for the argument to the next function. This leads to webpack not being initialized during the build, and an error message like `TypeError: Cannot read properties of undefined (reading 'DefinePlugin')` is instead thrown.

To fix this, one can do the following:
```
import { loadWebpackHook } from "next/dist/server/config-utils.js";

loadWebpackHook();
```

However, this is undocumented and relies on next.js internals, so it doesn't feel like something we should do?

This bug appeared in version 13.1.2-canary.2 by the commit fa1731e44c34777d239fe351f39a8bd3b3860b27, where calls to loadWebpackHook in [packages/next/server/config.ts](https://github.com/vercel/next.js/commit/fa1731e44c34777d239fe351f39a8bd3b3860b27#diff-207ae8f32dbb5c5e77b18e26589b6121f92a0d423479f03c523a7a01bc184cb5) is disabled if any customConfig was sent in.

### Expected Behavior

next should compile and start as normal, even if we send in arguments to the conf-key of the arguments to the next function.

This could be fixed in several ways:
- Document the need for calling `loadWebpackHook`
- Remove the if-check and call `loadWebpackHook` like before
- Maybe split the `loadWebpackHook` into two new functions, `initWebpack` and `setupWebpackRequireHooks`?

However, I can't see the rationale for the change from the commit or the PR, and I can't say I have enough knowledge about the next.js codebase to decide on what route to choose. If someone can point me in the right direction, or say which of the above fixes would be the correct one, I'd gladly submit a PR.

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

_No response_

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

_No response_
Repository: next.js
Issue: Links to base path "/" force hard navigation when trailingSlash true with rewrite
Labels: bug,stale

### Verify canary release

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

### Provide environment information

▶ npx --no-install next info

    Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103
    Binaries:
      Node: 16.13.0
      npm: 8.1.0
      Yarn: 1.21.1
      pnpm: N/A
    Relevant packages:
      next: 13.1.6-canary.1
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0

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

Routing (next/router, next/navigation, next/link)

### Link to the code that reproduces this issue

https://github.com/benknight/next-bug-rewrites-trailing-slash

### To Reproduce

1. Navigate to https://next-bug-rewrites-trailing-slash.vercel.app/team/
2. Open the browser console
3. Click the "Back Home" link
4. Observe that clicking the link forces a hard navigation to the homepage.
5. Observe the following error in the browser console: `Error: Failed to lookup route: /`

### Describe the Bug

When trailing slashes are turned on, and a rewrite configured on the base path `/`, links to the homepage force a hard navigation to the homepage and show an error in the console.

I did an extensive investigation already and determined the cuase to be the rewrite configuration is incorrectly resolving to the wrong path matcher for the base path:

https://github.com/vercel/next.js/blob/canary/packages/next/src/shared/lib/router/utils/resolve-rewrites.ts#L37

`getPathMatch` function is called with first parameter value of `/(/)?` which resolves to the following Regex: `/^(?:\/(\/))?$/i`, which does not match `/`.


### Expected Behavior

Links to the homepage should use soft navigation.

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

NR

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

NR
Repository: tauri
Issue: [feat] Electron to Tauri
Labels: type: feature request

### Describe the problem

I am interested in finding a solution for migrating a live application from Electron to Tauri, in order to provide a seamless experience for current users and eliminate the need for manual downloads. Is this something that can be easily achieved?


### Describe the solution you'd like

I think Tauri should make the transition from Electron easier for the current applications which uses Electron with auto update.



### Alternatives considered

_No response_

### Additional context

This is the auto update package for most of the Electron applications
https://www.electron.build/auto-update.html
Repository: godot
Issue: In the _ready() function of the parent node, calling the location information of the child node under the ui container gets the wrong result
Labels: enhancement,topic:gui

### Godot version

4.0Beta14

### System information

Windows10，Vulkan

### Issue description

In the _ready() function of the parent node, calling the location of the sub node in the ui container gets an error result. For example, child nodes (such as labels) after Custom Constans is set in MarginContainer. In this case, getting the global_position of the Label in their parent _ready() function only gives the Global Position of the MarginContainer

### Steps to reproduce

Enter the Test project file and run it directly.

### Minimal reproduction project

[Test.zip](https://github.com/godotengine/godot/files/10498269/Test.zip)
Repository: rust
Issue: Bad advice given for arr[0i32.into()]
Labels: A-diagnostics,T-compiler,A-suggestion-diagnostics,D-incorrect

### Code

```Rust
fn main() {
    let arr: [u32; 3] = [0, 1, 2];
    let idx = 0i32;
    println!("{}", arr[idx.into()]);
}
```


### Current output

```Shell
error[E0282]: type annotations needed
 --> src/main.rs:4:20
  |
4 |     println!("{}", arr[idx.into()]);
  |                    ^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the associated function `new_display`
  |
  = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider specifying the generic argument
  |
4 |     println!("{}", arr[idx.into()]::<T>);
  |                                   +++++

For more information about this error, try `rustc --explain E0282`.
```


### Desired output

I'm too new to Rust to say exactly, but:
- It should explain where the problem is (the issue is the `idx.into()` expression, not the outer expression it is highlighting
- It should not suggest a "fix" of adding `::<T>`, which is not syntactically valid here

### Rationale and extra context

Naively, one one expect that the requirement of array access being `usize` means an `into()` would work here. Clearly, that's not the case but I'm still not sure why.

### Other cases

```Rust
fn main() {
    let arr: [u32; 3] = [0, 1, 2];
    let idx = 0i32;
    let val = arr[idx.into()];
    println!("{}", val);
}
```

*still* gives bad advice, although less catastrophically:
```
error[E0282]: type annotations needed
 --> src/main.rs:4:9
  |
4 |     let val = arr[idx.into()];
  |         ^^^
  |
help: consider giving `val` an explicit type
  |
4 |     let val: _ = arr[idx.into()];
  |            +++

For more information about this error, try `rustc --explain E0282`.
```

Only when you take that bad advice, but with an explicit type instead of _, do you get a useful message:
```rust
fn main() {
    let arr: [u32; 3] = [0, 1, 2];
    let idx = 0i32;
    let val: u32 = arr[idx.into()];
    println!("{}", val);
}
```

```
error[E0282]: type annotations needed
 --> src/main.rs:4:28
  |
4 |     let val: u32 = arr[idx.into()];
  |                            ^^^^
  |
help: try using a fully qualified path to specify the expected types
  |
4 |     let val: u32 = arr[<i32 as Into<T>>::into(idx)];
  |                        +++++++++++++++++++++++   ~

For more information about this error, try `rustc --explain E0282`.
```


### Anything else?

_No response_
Repository: vscode
Issue: Search bar remains focused on Firefox when switching tabs even after clicking on the editor
Labels: bug,editor-core,firefox

<!-- ⚠️⚠️ 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. -->

<!-- 🪓 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. -->

The search bar remains focused thus, it's impossible to click on enter even after clicking the editor manually.

The video below shows the behaviour on Chrome vs the behaviour on Firefox. Reproducible also locally using [monaco-editor](https://github.com/microsoft/monaco-editor).

<details><summary>Example video</summary>

https://user-images.githubusercontent.com/47744264/214560144-8b122202-96cd-4d4f-adae-cd73929a48bf.mov


</details>

- VS Code Version: [https://vscode.dev/](https://vscode.dev/)
- OS Version: MacOS Ventura 13.1
- Chrome Version: 109.0.5414.87
- Firefox Version: 108.0.2

Steps to Reproduce:

<details>
<summary>
Example files
</summary>

### index.jsx

```
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
import reportWebVitals from './reportWebVitals';


ReactDOM.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
```

### index.css

```
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

```


</details>

1. Open two files.
2. Open search bar on one file by pressing CMD/CTRL+F.
3. Switch to the other file.
4. Switch back to the first file.
5. Clicking on enter will go to the next match.
6. Clicking on the editor won't let you add a new line when pressing enter.
7. Refreshing the page resolves the issue.
Repository: godot
Issue: GDExtension overriden functions are not accessible from GDScript
Labels: bug,topic:gdscript,topic:gdextension

### Godot version

v4.0.beta14.official

### System information

Debian GNU/Linux 11 (bullseye), Intel Core i3-8130U CPU, Mesa Intel UHD Graphics 620 (KBL GT2)

### Issue description

Built-in functions like `_ready`, `_process` and `_physics_process` are not accessible from GDScript if overriden in GDExtension custom class.

### Steps to reproduce

1. Create a GDExtension custom class.
2. Override any built-in function (for example, `_ready`)
3. Create an instance of this class.
4. Attach a script to it.
5. Try to call `super._ready()`.
6. Get `Invalid call. Nonexistent function _ready()`

### Minimal reproduction project

[test_project.zip](https://github.com/godotengine/godot/files/10499343/test_project.zip)
Repository: PowerToys
Issue: File indexing
Labels: Needs-Triage

### Description of the new feature / enhancement

Using Power Toys Run, I tried to search the name of a directory on my PC and all I could do was search step by step from the disk root. The new feature could be the possibility to index a disk or a folder to give the option to search for it directly from the Power Toys Run.

### Scenario when this would be used?

1. Working on something, I want to open a specific folder within the file explorer.

2. Starting coding, I want to open a specific folder in the terminal.

### Supporting information

_No response_
Repository: vscode
Issue: Terminal ... menu doesn't promote action when there's only one action 
Labels: feature-request,workbench-actions

Testing https://github.com/microsoft/vscode/issues/170991

I would expect that when there's only 1 item in the ... menu that it gets promoted to the action bar and the ... menu goes away.

![image](https://user-images.githubusercontent.com/38270282/214577159-09eea6b6-62cd-42a8-b806-54cb157f7b0a.png)
Repository: next.js
Issue: Links within same dynamic route do not work after seeing a 404
Labels: Navigation

### Verify canary release

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

### Provide environment information

    Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000
    Binaries:
      Node: 16.14.2
      npm: 9.2.0
      Yarn: 1.22.18
      pnpm: N/A
    Relevant packages:
      next: 13.1.6-canary.1
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0

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

App directory (appDir: true), Routing (next/router, next/navigation, next/link)

### Link to the code that reproduces this issue

https://github.com/dyerc/nextjs-404-issue

### To Reproduce

In my [example repository](https://github.com/dyerc/nextjs-404-issue) there is a dynamic route `test/[slug]` which I mocked up as though two pages exist. `/test/test-1` and `/test/test-5`.

If you visit a 404'ing page within this dynamic route such as `/test/test-2`, you will see the correct not found page. If you then click on the `<Link>` tag at the top pointing to either of the actual pages, the URL updates but the 404 page is still shown.

### Describe the Bug

After hitting a 404 route within a dynamic route. Clicking on a `next/link` to a working route within that same dynamic section continues to show a 404 not found.

### Expected Behavior

I would expect the actual working page to be shown, as it doesn when attempting to navigate directly to it.

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

_No response_

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

_No response_