sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: Use router.push in _app will render wrong component
Labels: bug,Navigation

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/youthful-cartwright-5mszhf

### To Reproduce

1. use this [codesandbox](https://codesandbox.io/p/devbox/youthful-cartwright-5mszhf)
2. visit the demo's home



### Current vs. Expected behavior

Current: you will find it compose home page's content  and hello's content together.
![image](https://github.com/vercel/next.js/assets/8402589/0c206588-14f6-469d-a0e3-9d66176c5c1d)

Expected: should only render hello's content in path `hello`
![image](https://github.com/vercel/next.js/assets/8402589/857f61f0-be61-4156-b5db-f2f3ded53d16)


### Verify canary release

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

### Provide environment information

```bash
Operating System:
      Platform: linux
      Arch: x64
      Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
    Binaries:
      Node: 20.9.0
      npm: 9.8.1
      Yarn: 1.22.19
      pnpm: 8.10.2
    Relevant packages:
      next: 13.0.8-canary.0
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
```


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

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

### Additional context

_No response_
Repository: material-ui
Issue: [base-ui][material-ui] Uncontrolled Select component do not fully reset when inside a <form> with a reset button
Labels: waiting for 👍,component: select,package: material-ui,package: base-ui,enhancement

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

Link to live example without using state: https://codesandbox.io/p/sandbox/youthful-bash-w5sq9t

Link to live example using state: https://codesandbox.io/p/sandbox/mystifying-fire-lkdm86

### Current behavior 😯

When using Select component, Pressing the reset button in a form does not revert value of the Select to its default value.

If I use Select with state then it will work properly.

### Expected behavior 🤔

Changes in the value of the Select will get reset while clicking on the reset button when we are not using the state (for the first codesandbox).

### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  System:
    OS: Windows 10 10.0.19045
  Binaries:
    Node: 20.9.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.1.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Chromium (120.0.2210.77)
  npmPackages:
    @emotion/react: ^11.11.1 => 11.11.1
    @emotion/styled: ^11.11.0 => 11.11.0
    @mui/base:  5.0.0-beta.28
    @mui/core-downloads-tracker:  5.15.1
    @mui/material: ^5.15.1 => 5.15.1
    @mui/private-theming:  5.15.1
    @mui/styled-engine:  5.15.1
    @mui/system:  5.15.1
    @mui/types:  7.2.11
    @mui/utils:  5.15.1
    @types/react: ^18.2.45 => 18.2.45
    react: ^18.2.0 => 18.2.0
    react-dom: ^18.2.0 => 18.2.0
    typescript: ^4.9.5 => 4.9.5
```
</details>
Repository: vscode
Issue: When closing editors in the "Open Editors" view, the cursor should not move all the way up
Labels: bug,confirmation-pending,open-editors


Type: <b>Feature Request</b>

My usecase: I have 20 or so YAML files open that I all want to close. These files are somewhere down my very long list of open editor windows. I scroll down that long list to find the first YAML file. I click on the X to the left of the file name in the list of open editors. In that moment, the list is rendered again, which takes me all the way up to the start of the long list. I have to scroll down again and find where the other YAML files are, which is time-consuming.
It would be a much nicer user experience if that closed editor just disappeared from the list, all the items below move up, but the scroll bar position does not change.

VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:49:37.021Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.0-91-generic


<!-- generated by issue reporter -->
Repository: create-react-app
Issue: M1的 macbook pro， npx create-react-app my-app
Labels: needs triage

M1的 macbook pro，
npx create-react-app my-app


jianguo@jianguodeMacBook-Pro test % npx create-react-app my-app                           

Creating a new React app in /Users/jianguo/Desktop/test/my-app.

/Users/jianguo/node_modules/npm/node_modules/osenv/osenv.js:49
  return os.tmpDir()
            ^

TypeError: os.tmpDir is not a function
    at /Users/jianguo/node_modules/npm/node_modules/osenv/osenv.js:49:13
    at exports.<computed> [as tmpdir] (/Users/jianguo/node_modules/npm/node_modules/osenv/osenv.js:14:15)
    at Object.<anonymous> (/Users/jianguo/node_modules/npm/lib/config/defaults.js:89:18)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at Object.<anonymous> (/Users/jianguo/node_modules/npm/lib/config/core.js:4:18)

Node.js v18.17.1
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

/Users/jianguo/node_modules/npm/node_modules/osenv/osenv.js:49
  return os.tmpDir()
            ^

TypeError: os.tmpDir is not a function
    at /Users/jianguo/node_modules/npm/node_modules/osenv/osenv.js:49:13
    at exports.<computed> [as tmpdir] (/Users/jianguo/node_modules/npm/node_modules/osenv/osenv.js:14:15)
    at Object.<anonymous> (/Users/jianguo/node_modules/npm/lib/config/defaults.js:89:18)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at Object.<anonymous> (/Users/jianguo/node_modules/npm/lib/config/core.js:4:18)

Node.js v18.17.1

Aborting installation.
  npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts@0.9.x has failed.

Deleting generated file... package.json
Deleting my-app/ from /Users/jianguo/Desktop/test
Done.
jianguo@jianguodeMacBook-Pro test %
Repository: pytorch
Issue: [DTensor] Support API to shard to parent mesh
Labels: triaged,module: dtensor

**Context**
To compose per-parameter-sharding FSDP with `DTensor`-based tensor parallelism, we need to reshard an existing `DTensor` to its parent mesh and include the FSDP dim-0 sharding.

The current prototype does this manually. See here for the logic for deriving the global (i.e. parent) mesh metadata:
https://github.com/pytorch/pytorch/blob/ceb5797909d789866ad67778fe67e3dedc780d11/torch/distributed/_composable/fsdp/_fsdp_param.py#L201
However, this manual logic is not general, as it assumes only up to 2D parallelism. Preferably, this logic can exist outside of FSDP.

**Proposal**
One option is to directly use the `DTensor` constructor and run this resharding logic when the passed-in `local_tensor` is already a `DTensor`. This would check that the `local_tensor: DTensor` and the passed-in mesh share a parent mesh and perform the appropriate resharding.




cc @wanchaol @wz337 @XilunWu @tianyu-l
Repository: flutter
Issue: Incorrect flag of golden file change in my PR
Labels: team-infra,P2,triaged-infra

### Type of Request

bug

### Infrastructure Environment

Flutter golden checker

### What is happening?

See [comment](https://github.com/flutter/engine/pull/49201#issuecomment-1862167712) left by `flutter-dashboard`. It flags a golden change against my PR but when I look at the [golden](https://flutter-engine-gold.skia.org/search?issue=49201&crs=github&patchsets=2&corpus=flutter-engine) it is from a Safari test for Flutter Web.

My PR changes some Android code and that has no impact on Safari.

### Steps to reproduce

No idea how to reproduce this.

### Expected results

I expect to not have my PR flagged with an incorrect golden change.
Repository: PowerToys
Issue: A proxy list which can easily switch my proxy config
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

when I need to change the proxy settings. Just one click to change from a proxy list preseted.

### Scenario when this would be used?

I have serval proxy setting and sometimes need to change to match different network environment.
So I can input all my proxy settings and make a proxy list onetime
Choose one of them when i needed.

### Supporting information

_No response_
Repository: godot
Issue: DDS with implicit first mipmap size fails to import
Labels: bug,discussion,topic:import

### Tested versions

Reproducible in v4.3.dev.custom_build [07677f0f5]

### System information

Godot v4.3.dev (07677f0f5) - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Tue Nov 28 20:37:45 UTC 2023 - X11 - Vulkan (Forward+) - dedicated AMD Radeon RX 6700 XT (RADV NAVI22) () - AMD Ryzen 9 5900X 12-Core Processor (24 Threads)

### Issue description

Compressed DDS images fail to import, if they do not have the `DDSD_LINEARSIZE` flag set in their header. This flag is not required to be set in compressed DDS images, per Microsoft's [format specification](https://learn.microsoft.com/en-us/windows/win32/direct3ddds/dds-header), but Godot's importer aborts loading the images if it is not.

This flag (and the associated `dwPitchOrLinearSize`) field are not essential to the image-loading process; the sizes of all the mipmaps are already correctly calculated by Godot's loader code. If it simply continued to load the image despite the flag being absent, and the linear size being advertised as 0, I believe it would end up loading the correct data from the DDS.

### Steps to reproduce

Open the MRP, observe errors in the console about the image `tmp.dds` failing to import.

### Minimal reproduction project (MRP)

[reproducer.zip](https://github.com/godotengine/godot/files/13717912/reproducer.zip)
Repository: PowerToys
Issue: Freeze when using screen ruler
Labels: Issue-Bug,Needs-Triage,Product-Screen Ruler

### Microsoft PowerToys version

Originally noticed on 0.76.2 but still found on v0.78.0

### Installation method

WinGet

### Running as admin

Yes

### Area(s) with issue?

Screen ruler

### Steps to reproduce

#### Config:
The issue only occurs when using multiple monitors. It appears to work fine on a single screen.
The resolution doesn't appear to matter.

#### Scenario:

1) Start powertoys.
2) Press win + shift + M 
3) Click the spacing button.
(Sometimes it just freezes up at this point but not usually).
4) The mouse lines appear and it's possible to measure things.
5) Click the screen. The mouse lines disappear.
6) Click the spacing button again.
7) It completely freezes and needs powertoys needs to be restarted.


### ✔️ Expected Behavior

Step 4) of the reproduction can be done repeatedly.

### ❌ Actual Behavior

It freezes up so it's basically unusable for me.

### Similar issues found 

- #31118
- #31283
- #32205
Repository: godot
Issue: I want to navigate the viewport with the Animation Tab open, but the shortcuts are active.
Labels: discussion,topic:editor,needs testing,topic:3d

### Tested versions

4.2.1

### System information

Windows 11 - 4.2.1

### Issue description

I want to select and edit bones while the animation tab is open, but when I try to navigate with w-a-s-d in the viewport while the animation selection is open, the animation shortcuts are active and I start the animation in a way I don't want.

https://github.com/godotengine/godot/assets/100702845/6efe4255-7868-4db6-a1bb-2a6dbe835feb



### Steps to reproduce

Open 3D viewport.
Add AnimationPlayer.
With the Animation tab open at the bottom, try moving around the viewport with W-A-S-D.

### Minimal reproduction project (MRP)

It is not related to the project but a general problem.
Repository: storybook
Issue: [Bug]: Error when upgrading SB
Labels: bug,addon: controls

### Describe the bug

I upgraded Storybook from 6 to 7. Some of the controls look like this:

<img width="538" alt="image" src="https://github.com/storybookjs/storybook/assets/82541208/13d90038-a1c0-483a-94ed-d099c752b9c0">

Besides, some of the Documentation throws me this error:

<img width="549" alt="image" src="https://github.com/storybookjs/storybook/assets/82541208/42bd2f1b-8c13-4bce-bb5a-4f3e2284f054">


This is my preview config

`
export default {
  parameters: {
    actions: { argTypesRegex: '^on[A-Z].*' },
    controls: {
      matchers: {
        color: /(background|color)$/i,
        date: /Date$/i,
      },
    },
    docs: {
      toc: true, // 👈 Enables the table of contents
    },
  },
  decorators: [
    withThemeFromJSXProvider({
      themes: {
        light: lightTheme,
        dark: darkTheme,
      },
      defaultTheme: 'light',
      Provider: ThemeProvider,
    })]
};
`

### To Reproduce

Upgrading. To versions:

`
 "@storybook/addon-a11y": "^7.6.5",
    "@storybook/addon-actions": "^7.6.5",
    "@storybook/addon-essentials": "^7.6.5",
    "@storybook/addon-interactions": "^7.6.5",
    "@storybook/addon-links": "^7.6.5",
    "@storybook/addon-onboarding": "^1.0.10",
    "@storybook/blocks": "^7.6.5",
    "@storybook/builder-webpack5": "^7.6.5",
    "@storybook/manager-webpack5": "^6.5.16",
    "@storybook/react": "^7.6.5",
    "@storybook/react-webpack5": "^7.6.5",
    "@storybook/test": "^7.6.5",
`
Repository: flutter
Issue: Calculate effort required to migrate from Win 10 to Win 11.
Labels: team-infra,P3,triaged-infra

Flutter Windows build/tests are currently running on Windows 10 which is 8 years all. We would like to investigate the required effort to migrate to a newer version of Windows. As a first step we should start collecting the following information:

- [ ] Is Windows 11 supported in GCP?
- [ ] Are there any chromium images that can be reused?
- [ ] Does the current toolchain supports Win 11?
- [ ] Which version of Windows is Dart using?
Repository: pytorch
Issue: Profiler Documentation
Labels: module: docs,oncall: profiler

### 📚 The doc issue

Are there any plans to update the documentation of the profiler codebase?  Currently, there is a [placeholder](https://github.com/pytorch/pytorch/tree/main/torch/csrc/profiler) for codebase structure -- hoping to better understand how `torch` hooks into `libKineto` and other tools to enable `CPU` / `GPU` memory profiling and other performance metrics in order to extend these tools to frameworks outside of `pytorch`.  Thanks!

### Suggest a potential alternative/fix

_No response_

cc @svekars @brycebortree @robieta @chaekit @aaronenyeshi @nbcsm @guotuofeng @guyang3532 @gaoteng-git @tiffzhaofb @dzhulgakov @davidberard98
Repository: vscode
Issue: allow letter key navigation of status bar / activity bar items
Labels: feature-request,accessibility,workbench-status

When using the keyboard to navigate the status bar/ activity bar, many key presses might be necessary to reach the desired one. 

@jooyoungseo suggested that using letter key navigation could improve this experience.
Repository: pytorch
Issue: WeightedRandomSampler doesnt keep expected ratio betwen samples
Labels: module: dataloader,triaged

### 🐛 Describe the bug

WeightedRandomSampler doesnt keep the expected ratio between categories

```
# WeightedRandomSampler doesnt work as is exhausting. This should not be happening!
import torch
import pandas as pd
import numpy as np

size = 100
prob_A = 0.2
prob_B = 1 - prob_A

test = pd.DataFrame({'labels' : np.concatenate((np.repeat('A',prob_A*size),np.repeat('B',(prob_B)*size)))})
test['weights'] = np.where(test['labels'] == 'A', prob_A, prob_B)

for per in [1,.75, .5, .25]:
    idx = sorted(list(torch.utils.data.WeightedRandomSampler(test['weights'], int(test.shape[0]*per), replacement = False)))
    test2 = test.loc[idx]
    print('Percentage:', per, ' - Ratio:', round(sum(test2['labels'] == 'A')/(test2.shape[0]),3))
```
gives: 
```
Percentage: 1  - Ratio: 0.2
Percentage: 0.75  - Ratio: 0.107
Percentage: 0.5  - Ratio: 0.1
Percentage: 0.25  - Ratio: 0.16
```

it should be give similar relationships independent of the size of the sample no?


### Versions

torch version = `2.1.1+cpu`

cc @SsnL @VitalyFedyunin @ejguan @dzhulgakov
Repository: ollama
Issue: Add support for RWKV
Labels: model request

Not sure if this RNN counts as a LLM, but if so would be nice to have it, let me know what needs to be done with packaging.

https://www.rwkv.com/
Repository: godot
Issue: FileAccessCompressed defaults to Zstd in its configure() method, but FileAccess' open_compressed() defaults to FastLZ
Labels: bug,topic:core

### Tested versions

- Reproducible in https://github.com/godotengine/godot/commit/1f5d4a62e9e9a8227ad63155b080fbbfac899571

### System information

Macos, m2 mac mini

### Issue description

> Calinou7:17 AM
I just noticed FileAccessCompressed defaults to Zstd in its configure() method, but FileAccess' open_compressed() defaults to FastLZ :|

### Steps to reproduce

Not sure how @Calinou got here.

### Minimal reproduction project (MRP)

> If the reproduction steps are not project dependent (e.g. the bug is visible in a brand new project), you can write "N/A" in the field.
Repository: flutter
Issue: [webview_flutter_wkwebview] Callback methods shouldn't assert error is null
Labels: p: webview,team-ecosystem,P2,triaged-ecosystem

### Use case

This was created because of the discussion from: https://github.com/flutter/packages/pull/5455#discussion_r1409703645

`webview_flutter_wkwebview` handles error received from Flutter callback methods by asserting that there wasn't an error:

```objc
  [self.navigationDelegateAPI didFailNavigationForDelegate:self
                                                   webView:webView
                                                     error:error
                                                completion:^(FlutterError *error) {
                                                  NSAssert(!error, @"%@", error);
                                                }];
```

This would cause a crash whenever there was an error and the app was ran with asserts enabled (e.g. in debug mode). This was done because if an unexpected error was thrown on the Dart side, the `NSAssert` would print the error and stacktrace, but will be ignored in released mode. But as stated by @stuartmorgan 

> I guess the question here is: if a plugin client throws an exception in their own Dart code that implements the handler, do we want the entire application to crash?

Is it reasonable that if a client **intentionally** throws an exception in a callback method, that the app would crash in debug mode, but the error would be ignored in release mode. If not, we should find an alternative handling.

### Proposal

Alternatively, we could switch this to an `NSLog` to still receive the error.
Repository: pytorch
Issue: DISABLED test_dunder_round_edgecases_val_2147483647_ndigits_-1 (__main__.TestNonarrayArgs)
Labels: triaged,module: numpy,skipped,oncall: pt2,module: dynamo

Platforms: dynamo

This test was disabled because it is failing on main branch ([recent examples](http://torch-ci.com/failure/torch_np%2Fnumpy_tests%2Fcore%2Ftest_numeric.py%3A%3ATestNonarrayArgs%3A%3Atest_dunder_round_edgecases_val_2147483647_ndigits_-1)).

cc @mruberry @rgommers @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @amjames @ezyang @msaroufim @wconstab @bdhirsh @anijain2305
Repository: pytorch
Issue: aot_export_module doesn't work with out_dtype HOO
Labels: oncall: pt2,module: higher order operators,oncall: export,module: pt2-dispatcher

### 🐛 Describe the bug

```
from torch._functorch.aot_autograd import aot_export_module
from torch._higher_order_ops.out_dtype import out_dtype
class M(torch.nn.Module):
    def __init__(self, weight):
        super().__init__()
        self.weight = weight

    def forward(self, x):
        y = x + 2
        y.add_(5)
        return (out_dtype(
            torch.ops.aten.mm.default, torch.int32, y, self.weight
        ),)

weight = torch.randint(-128, 127, (5, 5), dtype=torch.int8)
mod = M(weight)
inp = torch.randint(-128, 127, (5, 5), dtype=torch.int8)

gm, _ = aot_export_module(mod, [inp], trace_joint=False)
```
Errors with:
```
Please convert all Tensors to FakeTensors first or instantiate FakeTensorMode with
```

### Versions

main

cc @ezyang @msaroufim @bdhirsh @anijain2305 @chauhang @zou3519 @ydwu4 @avikchaudhuri @gmagogsfm @zhxchen17 @angelayi @suo
Repository: terminal
Issue: Windows Terminal Chat does not consistently detect commands in responses from Azure OpenAI
Labels: Issue-Bug,Product-Terminal,Needs-Tag-Fix,Area-Chat

### Windows Terminal version

1.20.3491.0

### Windows build number

10.0.22631.0

### Other Software

Fedora Remix for WSL 39
Terminal Chat enabled with gpt-35-turbo Deployment

### Steps to reproduce

Ask Terminal Chat: `How do I install node on Fedora?`

### Expected Behavior

The AI assistant returns an answer with clickable commands.

### Actual Behavior

Answers will vary, but occasionally the AI assistant will return an answer with code blocks that are not properly detected as commands that are then clickable: 

![image](https://github.com/microsoft/terminal/assets/33820650/c4e38fd8-2e74-42f8-8b16-fda12b4dd0a0)
Repository: terminal
Issue: Clicking a command in Terminal Chat that contains sudo produces a sudo error
Labels: Issue-Bug,Product-Terminal,Needs-Tag-Fix,Priority-3,Area-Chat

### Windows Terminal version

1.20.3491.0

### Windows build number

10.0.22631.0

### Other Software

Fedora Remix for WSL 39

### Steps to reproduce

Ask Terminal chat for a command that will produce a multiline sudo command, for example: `How do I install Kubernetes on Linux?`

### Expected Behavior

When clicking sudo commands in Terminal Chat to run them in a WSL instance, Terminal allows the user to enter the sudo password either before continuing passing more commands and/or without causing a sudo error.

### Actual Behavior

When clicking multiline sudo commands in Terminal Chat to run them in a WSL instance, Terminal passes something to the initial sudo that causes a password error. 


https://github.com/microsoft/terminal/assets/33820650/b4ee2648-486f-4bc0-b330-9729f635005f