sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: NextURL strips trailing slashes, even when config is set to manual trailing slash handling
Labels: bug,Middleware

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/optimistic-thunder-myctyc?file=%2Fmiddleware.ts%3A4%2C15

### To Reproduce

1. Start the application
2. Open the preview
3. Go to `/foo` in the preview

### Current vs. Expected behavior

Current: redirects to `/bar`.
Expected: redirects to `/bar/`.

Why: `config.skipTrailingSlashRedirect` is set to `true` and the middleware redirect explicitly specified `/bar/`. 


### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 15.0.0-canary.25 // Latest available version is detected (15.0.0-canary.25).
  eslint-config-next: N/A
  react: 19.0.0-beta-04b058868c-20240508
  react-dom: 19.0.0-beta-04b058868c-20240508
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


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

Middleware

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

next dev (local), next build (local), next start (local), Vercel (Deployed), Other (Deployed)

### Additional context

`NextURL` is the canonical way of using URLs in middleware, but `NextURL.href` ignores `config.skipTrailingSlashRedirect` and only uses `config.trailingSlash`. The issue is in [format-next-pathname-info.ts@L32](https://github.com/vercel/next.js/blob/8bac76a5b3073319cf8d4449fc8a26e7c8dc6104/packages/next/src/shared/lib/router/utils/format-next-pathname-info.ts#L32) (at the time of writing), called via `NextURL.formatPathname` -> `formatNextPathnameInfo`. The code there only checks `info.trailingSlash` but ignores `config.skipTrailingSlashRedirect` or the associated env var `__NEXT_MANUAL_TRAILING_SLASH`.

For applications with manual trailing slash handling, this is a nasty pitfall.

It is possible to work around the problem by building your own `URL`. As `NextUrl` exists and does *some* trailing slash handling already, it should do it correctly and consistently with the rest of the framework.
Repository: ui
Issue: [bug]: Alert Dialog behaves differently on certain devices, despite the same code.
Labels: bug

### Describe the bug

<img width="833" alt="Screenshot 2024-06-11 at 10 23 23" src="https://github.com/shadcn-ui/ui/assets/34481394/9af4a013-f66d-4ab1-a79f-3261f4ea63a0">

![IMG_93898350AE49-1](https://github.com/shadcn-ui/ui/assets/34481394/d604ee48-7d48-41b2-9150-b1be8438b43c)


I've tested the following:

1) check with another internet connection
2) check that all the content is available
3) check other browsers
4) check other issues on gh (yes I've asked perplexity alr)
5) compare the raw HTML between the working ver/broken ver. - there is no difference.

More over, only causes this issue on my iPad, viewing the same content on my computer/laptop/phone works fine. I've tried the different screen sizes also. I've tested it on: macos/ipad [platform with the bug - safari, chrome]/windows/ios.

### Affected component/components

Alert Dialog

### How to reproduce

Alert Dialog with scrollable content - specifically, overflow-y-auto causes this issue. - In the process of creating a repro on codesandbox.

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Macos (M1)
iPad (ipadOS)
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: godot
Issue: `.gitignore` written by the editor's Version Control Metadata functionality is incomplete
Labels: discussion,topic:editor,topic:codestyle

### Tested versions

- Reproducible in v4.2.2

### System information

Windows 10.0.19045 - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 1650 SUPER (NVIDIA; 31.0.15.5152) - Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 Threads)

### Issue description

.gitignore doesn't include the same number of files that the official gitignore repository has. For comparison, creating a project with Version Control Metadata set to Git will contain the following .gitignore:

```gitignore
# Godot 4+ specific ignores
godot/
```

Meanwhile, the official Godot .gitignore [found here](https://github.com/github/gitignore/blob/main/Godot.gitignore) is:

```gitignore
# Godot 4+ specific ignores
.godot/
 
# Godot-specific ignores
.import/
export.cfg
export_presets.cfg

# Imported translations (automatically generated from CSV files)
*.translation

# Mono-specific ignores
.mono/
data_*/
mono_crash.*.json
```

Note that the above quote is strangely formatted due to GitHub. Please click the link above to see what it should actually look like.

The official one should be the one created with Godot.

### Steps to reproduce

1. Create a new project with the Godot Project Manager
2. Set Version Control Metadata to Git

### Minimal reproduction project (MRP)

Not necessary. Any project created with version control metadata set to Git will contain the incomplete .gitignore file.
Repository: material-ui
Issue: [docs][Snackbar] Stop recommending the usage of notistack, the library is seemingly no longer (properly) maintained
Labels: docs,component: snackbar,package: material-ui,support: docs-feedback

### Related page

https://mui.com/material-ui/react-snackbar/

### Kind of issue

Other

### Issue description

The current documentation page for react-snackbar mentions notistack for third-party integrations. However, the author of the notistack seems to have gone MIA with an ever-piling stack of unaddressed issues and PRs. I also created an issue querying if the project is still maintained, which thus far has gone unanswered: https://github.com/iamhosseindhv/notistack/issues/602.

It would be best for MUI to stop directing people to use an unmaintained library as that is asking for trouble sooner or later.

### Context

Notistack should be removed from third-party integrations on the relevant page, and the whole block should be removed as it is the last one remaining. Possibly the documentation could link to contemporary projects such as [react-toastify](https://github.com/fkhadra/react-toastify). A project like react-toastify does not use MUI, but it is a good alternative to achieve stateful imperative snackbar API.

**Search keywords**: notistack, snackbar
Repository: ollama
Issue: Error: pull model manifest: Get 
Labels: bug

### What is the issue?

Ollama is not able to pull the models.

ollama run moon dream

pulling manifest 
Error: pull model manifest: Get "https://ollama.com/token?nonce=F_Rh4t6Jrv-EM0eRltrU-Q&scope=repository%!A(MISSING)library%!F(MISSING)moondream%!A(MISSING)pull&service=ollama.com&ts=1718102949": read tcp 10.1.38.47:51154->34.120.132.20:443: read: connection reset by peer

### OS

macOS

### GPU

Apple

### CPU

Apple

### Ollama version

_No response_
Repository: ollama
Issue: qwen2-72b start to output gibberish at some point if i set num_ctx to 8192
Labels: bug

### What is the issue?

qwen2-72b start to output gibberish like this:
`.5"5.F9(CB;6@FC9!DC:$B$D60G5",3B+2;1-*,@%=876E0;5*:.98G4!980+D`
at some point if i set num_ctx to 8192.
Normal output from llm was expected.

Issue persist when using `ollama run`, or when using api (Silly Tavern)

qwen2-72b works fine with num_ctx 2048

### OS

Linux

### GPU

Nvidia

### CPU

Intel

### Ollama version

0.1.42
Repository: godot
Issue: Project manager window resizes then moves during startup
Labels: bug,topic:editor,usability

### Tested versions

- Reproducible in 4.3.beta (a0bbd398ee72f8c8e49d50d2e47e9fd36aa9b337)
- Reproducible in 4.2.2-stable
- Partially reproducible (one move, no resize) in 4.2.1-stable and earlier

### System information

Fedora Linux 40 (KDE Plasma) - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7600M XT (RADV NAVI33) () - AMD Ryzen 7 7840HS w/ Radeon 780M Graphics (16 Threads)

### Issue description

I noticed that at least on my Linux system on KDE, when starting the project manager, the following happens:

- The window is shown with the splash screen centered and window size 1154x677
- The window is resized and the splash screen is now off center, with window size 1026x629
- The window is moved towards the top left when showing the project manager, still with window size 1026x629

This is how it looks like in action:

https://github.com/godotengine/godot/assets/4701338/4faeeb92-a5dc-4edc-8282-ba9ad7d3e9a3

Screenshots to compare sizes and positions:

![Screenshot_20240611_131927](https://github.com/godotengine/godot/assets/4701338/279c7fa3-c4e1-432a-a659-2c376040b333)
![Screenshot_20240611_131957](https://github.com/godotengine/godot/assets/4701338/0a74ad81-da13-42ef-bedf-284412574669)
![Screenshot_20240611_131940](https://github.com/godotengine/godot/assets/4701338/a7f78438-e0ae-4de7-90d9-46c0b6dcc152)


### Steps to reproduce

- Start the project manager on Linux / KDE

### Minimal reproduction project (MRP)

n/a
Repository: terminal
Issue: Snippets & useCommandline don't account for grapheme clusters quite right
Labels: Issue-Bug,Product-Terminal,Needs-Tag-Fix,Area-Suggestions

* [ ] `ActionMap.cpp@_filterToSendInput`
  * Generates backspaces based on the number of characters in the commandline, which isn't quite right
* [ ] `Terminal::PreviewText` (after #17386 )
  * Similarly, pads out spaces on the right side of the preview, but using the string length, not string columns
Repository: vscode
Issue: [css] look for variables in all open documents
Labels: feature-request,css-less-scss

I have 2 .css files. In the first one are 3 root level custom properties --color-1: red; / --color-2: green; and --color-3: blue; in the second .css file I reference them using #myelement { background-color: var(--color-1); } and everything is fine, HOWEVER if I add a second reference, for example { color: var(--color-3);} ,then intellisense no longer shows the 3 variables when I type var(--?), at best it shows only 1 of the 3. If I remove the second reference then it works correctly again. The problem also occurs if I add a second element so maybe #mysecondelement { background-color: var(--color-1);} 

**File primary.css**
:root {
--color-1: red;
--color-2: green;
--color-3: blue;
}

**File secondary.css**
#myelement {
background-color: var(--color-1);
color: var(--color-2);
}

Here is a screen recording to show the issue (in the video there is a 3rd .css file, but it is empty and unrelated

https://github.com/microsoft/vscode/assets/172342943/4fe68b93-1ca2-4255-b3fa-b669aa722cfc

A complete removal and reinstall of VS code was performed and there are NO EXTENSIONS 

Version: 1.90.0 (user setup)
Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573
Date: 2024-06-04T19:33:54.889Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22631
Repository: pytorch
Issue: A Permute Layer for torch.nn.Sequential
Labels: module: nn,triaged

### 🚀 The feature, motivation and pitch

Since I use torch.nn.Sequential, I had a need for a permute layer in combination with the layernorm.  
Here is the code I used:


```
import torch


class PermuteLayer(torch.nn.Module):
    dims: tuple[int, ...]

    def __init__(self, dims: tuple[int, ...]) -> None:
        super().__init__()
        self.dims = dims

    def forward(self, input: torch.Tensor) -> torch.Tensor:
        return input.permute(*self.dims)
```

### Alternatives

_No response_

### Additional context

_No response_

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: pytorch
Issue: How to enable XNNPACK instead of NNPACK/MKLDNN in Windows?
Labels: module: windows,triaged,module: xnnpack,module: arm

### 🚀 The feature, motivation and pitch

I'm trying to compile PyTorch for Windows on ARM64 device. I've got one workable version, but NNPACK/MKLDNN doesn't work in ARM64 windows. May I know how to enable XNNPACK as the default 'PACK' to improve the performance?
Thanks in advance!

### Alternatives

_No response_

### Additional context

_No response_

cc @peterjc123 @mszhanyi @skyline75489 @nbcsm @vladimir-aubrecht @iremyux @Blackhex @cristianPanaite @malfet @snadampal
Repository: next.js
Issue: Page is remounted when params change in (optional) catch all routes
Labels: bug,Navigation

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/dreamy-firefly-4nsplp

### To Reproduce

Start the provided application https://codesandbox.io/p/devbox/dreamy-firefly-4nsplp
1. click `+` link
3. loading page is triggered
3. locale state is reseted

### Current vs. Expected behavior

It looks like the page is remounted,
but I actually expected the page to be the same, with changing props. Keeping local state and not triggering the loading page.

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 15.0.0-canary.25 // Latest available version is detected (15.0.0-canary.25).
  eslint-config-next: N/A
  react: 19.0.0-rc.0
  react-dom: 19.0.0-rc.0
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Navigation

### Which stage(s) are affected? (Select all that apply)

next dev (local), next start (local)

### Additional context

The change in behaviour was introduced in https://github.com/vercel/next.js/releases/tag/v14.3.0-canary.27 and still exists in the latest canary.

I suspect that the behavior was introduced in https://github.com/vercel/next.js/pull/65063


When using parallel routes with a catch all segment on the main route it will retrigger loading boundaries when navigation is only relevant for the parallel route slot.
Repository: react
Issue: [React 19] `use` is significantly slower in some scenarios than throwing a Promise
Labels: React 19

## Summary

This is something I noticed when I applied the Apollo Client test suite to React 19 - we had one test that was timing out.

I first thought that the test was broken, but it turns out it was just really slow. 

Cranking the test that finished in React 18 in under 200 milliseconds to a timeout of 10 **seconds** for React 19 made it pass (6 seconds would still consistently fail, 7 seconds started to pass on localhost).

Further I noticed that if we use our [`__use`](https://github.com/apollographql/apollo-client/blob/8e3edd4f5e5191453ba3ca1a1cc4fc4a02b936e8/src/react/hooks/internal/__use.ts#L15-L26) polyfill that throws a Promise instead of `use`, the test finishes in under 500 milliseconds - still slower than React 18, but *significantly* faster than React 19 with native `use`.

This is the test in question:

https://github.com/apollographql/apollo-client/blob/8e3edd4f5e5191453ba3ca1a1cc4fc4a02b936e8/src/react/hooks/__tests__/useSuspenseQuery.test.tsx#L9519-L9615

I'd be happy to work with you on further identifying the root cause for this, but I'll be moving houses in a few days, and I just don't have the time to create an isolated reproduction for this within the next 1-2 weeks, I'm really sorry.

Still, I assume this might be important for you, so I'll at least open a ticket to let you know :)
Repository: next.js
Issue: Middleware URL normalization does not respect `skipTrailingSlashRedirect`
Labels: bug,Middleware,Pages Router

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/vigorous-wilson-25ycfg

### To Reproduce

1. Start the application
2. Click the 2 links
3. Observe the console output

### Current vs. Expected behavior

Current: always returns pathname `/foo`
Expected: returns `/foo` or `/foo/` depending on the link

### Provide environment information

```bash
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.9.0
  npm: 9.8.1
  Yarn: 1.22.19
  pnpm: 8.10.2
Relevant Packages:
  next: 15.0.0-canary.25 // Latest available version is detected (15.0.0-canary.25).
  eslint-config-next: N/A
  react: 19.0.0-beta-04b058868c-20240508
  react-dom: 19.0.0-beta-04b058868c-20240508
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Middleware, Pages Router

### Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), next start (local), Vercel (Deployed), Other (Deployed)

### Additional context

The issue turns up in conjunction with `config.skipTrailingSlashRedirect` being set to `true`.

The issue leads to all client-side navigation locking up in an infinite redirect loop when using middleware to redirect to trailing slash variants of the same url, e.g. from `/foo` to `/foo/`. In the middleware the pathname is still `/foo` even after the redirect, which starts the loop.

The issue (most likely) stems from the URL normalization that Next.js applies to `/_next/data/*` urls. The respective `.json` URLs are always normalized to whatever `config.trailingSlash` is set to, disregarding the setting of `config.skipTrailingSlashRedirect`.

This seems related, but not identical, to #66738. The source of the error could be close to the source of #58320 as well.

From the looks of it, this doesn't affect the app router. Here the `pathname` looked correct in both cases in a quick sandbox repro.
Repository: ant-design
Issue: 范围时间选择器支持跨日时间段选择！
Labels: 💡 Feature Request,Inactive,unconfirmed

### What problem does this feature solve?

对于夜间选择时段场景，经常遇到跨日时段选择。比如选择值班场景：通宵 22点 ~6 点。

再比如本地生活夜宵场景：选择 晚上22点~凌晨2点 进行调节配送费，发放优惠券等。

### What does the proposed API look like?

```
  <TimePicker.CrossRangePicker
    value={{
      // 标识当前是否为跨日时段，如果是，`end` 的时间标识次日的时间点；如果否，则表示为 `[start, end]` 同一天的时段。
      crossDate: boolean,
      // 开始时间点
      startTime: '22:00:00',
      // 结束时间点
      endTime: '6:00:00',
    }}
  />
```

<img width="326" alt="image" src="https://github.com/ant-design/ant-design/assets/26050644/fbc3da52-4434-4674-aec5-01f1ef0cce33">


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vscode
Issue: Refactor the virtual model creation logic inside of the moveLinesCommand file
Labels: debt,polish,editor-autoindent

We create the virtual model three times within the move lines command file, and this should be refactored so we need to extract this logic into one method

cc @hediet
Repository: vscode
Issue: [054] potential listener LEAK detected, having 401 listeners already. MOST frequent listener (43):
Labels: error-telemetry

```javascript
Error
at a.create in src/vs/base/common/event.ts:900:15
at ie.q in src/vs/base/common/event.ts:1107:34
at L.fb in src/vs/platform/actions/browser/menuEntryActionViewItem.ts:279:24
at L.render in src/vs/platform/actions/browser/menuEntryActionViewItem.ts:168:9
at <anonymous> in src/vs/base/browser/ui/actionbar/actionbar.ts:378:9
at Array.forEach (<anonymous>)
at g.push in src/vs/base/browser/ui/actionbar/actionbar.ts:353:11
at <anonymous> in src/vs/base/browser/ui/toolbar/toolbar.ts:201:19
at Array.forEach (<anonymous>)
at s.setActions in src/vs/base/browser/ui/toolbar/toolbar.ts:200:23
at s.setActions in src/vs/platform/actions/browser/toolbar.ts:185:9
at d.F in src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.ts:258:11
at d.value in src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.ts:239:9
at D.B in src/vs/base/common/event.ts:1209:13
at D.fire in src/vs/base/common/event.ts:1240:9
at D.resume in src/vs/base/common/event.ts:1388:12
at <anonymous> in src/vs/base/common/event.ts:1427:10
```
[Go to Errors Site](https://errors.code.visualstudio.com/card?ch=6facfe23b300eb448c35d07291cad7ad98625302&bH=ca0586ee-5e93-33cd-5d6a-4a3b5f4bc239)
Repository: go
Issue: build: build failure on x_vulndb-go1.21-darwin-amd64_13
Labels: NeedsInvestigation

```
#!watchflakes
default <- builder == "x_vulndb-go1.21-darwin-amd64_13" && repo == "vulndb" && mode == "build"
```

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8745500017462742289)):

    [I2024-06-10T09:54:13.484620-07:00 4074 0 sink.go:276] SinkServer: warm-up started
    [I2024-06-10T09:54:13.484842-07:00 4074 0 sink.go:346] SinkServer: starting HTTP server...
    [I2024-06-10T09:54:13.492652-07:00 4074 0 sink.go:281] SinkServer: warm-up ended
    [I2024-06-10T09:54:13.493009-07:00 4074 0 cmd_stream.go:487] rdb-stream: starting the test command - ["/Users/swarming/.swarming/w/ir/cache/tools/bin/result_adapter" "go" "-v=false" "-dump-json" "/Users/swarming/.swarming/w/ir/x/w/go.testjson" "--" "/Users/swarming/.swarming/w/ir/x/w/goroot/bin/go" "test" "-json" "-short" "./..."]
    ../goroot/src/crypto/internal/edwards25519/doc.go:5:5: illegal UTF-8 encoding
    [I2024-06-10T09:54:15.264905-07:00 4074 0 cmd_stream.go:483] rdb-stream: the test process terminated
    [I2024-06-10T09:54:15.265165-07:00 4074 0 sink.go:371] SinkServer: shutdown started
    [I2024-06-10T09:54:15.266514-07:00 4074 0 sink.go:349] SinkServer: HTTP server stopped with "http: Server closed"
    [I2024-06-10T09:54:15.266561-07:00 4074 0 sink_server.go:96] SinkServer: draining TestResult channel started
    [I2024-06-10T09:54:15.266648-07:00 4074 0 sink_server.go:98] SinkServer: draining TestResult channel ended
    [I2024-06-10T09:54:15.266660-07:00 4074 0 sink_server.go:100] SinkServer: draining Artifact channel started
    [I2024-06-10T09:54:15.266760-07:00 4074 0 sink_server.go:102] SinkServer: draining Artifact channel ended
    [I2024-06-10T09:54:15.266795-07:00 4074 0 sink.go:374] SinkServer: shutdown completed successfully
    [I2024-06-10T09:54:15.267159-07:00 4074 0 cmd_stream.go:415] rdb-stream: exiting with 1


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: PowerToys
Issue: Feature Request: Mouse utilities - Emulated/Forced Horizontal Scroll
Labels: Needs-Triage

### Description of the new feature / enhancement

Hello there,

some applications support horizontal scrolling using Shift + "regular scrolling", however, some (e.g. MS Excel/Word) only recognize horizontal scrolling when the mouse offerse special horizontal scroll/tilt buttons. 

For these softwares it would be neat to "force" horizontal scroll when pressing Shift (or any selectable key) while scrolling (using the regular mouse wheel). I imagne that it should be possible to "emulate" horizontal scroll.

regards
Muffexx

### Scenario when this would be used?

This would be useful when using software that does not allow horizontal scroll without special mouse buttons.

### Supporting information

I'm not alone. :)

[Microsoft - Answers - Word](https://answers.microsoft.com/en-us/msoffice/forum/all/how-to-enable-horizontal-auto-scroll-in-word-2013/6a09233f-88ae-431f-a202-36af889dbdc2)
[Microsoft - Answers - Excel](https://answers.microsoft.com/en-us/msoffice/forum/all/excel-how-to-scroll-horizontally/5f9fb0ae-4675-4e1c-8418-5a6f4e0cddbb)
[Microsoft - Techcommunity](https://techcommunity.microsoft.com/t5/excel/please-help-excel-horizontal-scroll-not-working/m-p/1172082)