sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: PowerToys
Issue: Enhanced Customization for PowerToys Run Context Switching
Labels: Idea-Enhancement,Product-PowerToys Run,Needs-Triage

### Description of the new feature / enhancement

I would like to request an enhancement for PowerToys Run that allows for a more customizable context switching button. Currently, only the Tab key is used for switching contexts. I propose adding the ability to use Ctrl+j and Ctrl+k to switch to the next and previous results respectively. Additionally, it would be efficient to assign numbers to the results using Ctrl+number for direct switching. These enhancements would greatly improve efficiency and productivity.

### Scenario when this would be used?

When using PowerToys Run to search and switch between documents or applications, the proposed customization options would provide a quicker and more intuitive experience. With Ctrl+j and Ctrl+k, users can easily navigate through search results. Alternatively, using Ctrl+number allows for direct switching to a specific result, avoiding the need to cycle through all of them. This enhanced customization would greatly streamline workflow and enhance productivity.

### Supporting information

_No response_
Repository: pytorch
Issue: Updating a slice on CPU with a slice from MPS results in an error
Labels: module: crash,triaged,module: mps

### 🐛 Describe the bug

On a recent iMac with M3 processor:

```python
import torch
x = torch.zeros(4, device='cpu', dtype=torch.bool)
y = torch.zeros(4, device='mps:0', dtype=torch.bool)
x[1:2].copy_(y[1:2])
```
results in 
```
Traceback (most recent call last):
  File "<string>", line 4, in <module>
RuntimeError: destOffset % 4 == 0 INTERNAL ASSERT FAILED at "/Users/runner/work/pytorch/pytorch/pytorch/aten/src/ATen/native/mps/operations/Copy.mm":107, please report a bug to PyTorch. Unaligned blit request
```


### Versions

Collecting environment information...
PyTorch version: 2.3.0.dev20240206
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 14.3 (arm64)
GCC version: Could not collect
Clang version: 15.0.0 (clang-1500.1.0.2.5)
CMake version: Could not collect
Libc version: N/A

Python version: 3.9.6 (default, Nov 10 2023, 13:38:27)  [Clang 15.0.0 (clang-1500.1.0.2.5)] (64-bit runtime)
Python platform: macOS-14.3-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Apple M3

Versions of relevant libraries:
[pip3] numpy==1.24.1
[pip3] torch==2.3.0.dev20240206
[pip3] torchaudio==2.2.0.dev20240206
[pip3] torchrl==0.4.0+5f82601
[pip3] torchvision==0.18.0.dev20240206
[conda] Could not collect

cc @kulinseth @albanD @malfet @DenisVieriu97 @jhavukainen @razarmehr
Repository: pytorch
Issue: Support nn.Module.to(..., copy=True)
Labels: module: nn,triaged

### 🚀 The feature, motivation and pitch

I am trying to do some offload work on a module. Take an example of a sequential module that have several children, I want to only have 1 children on GPU at a time, in order to save VRAM. So for each time a children is going to be used, I move it to GPU, and move the one that is already on GPU back to CPU. This is creating significant overhead as the moving effort is taking up half of the entire compute time. 

To mitigate that, I put the module moving to a separated CUDA thread and that brings a good performance boost. As the module is moving back and forth multiple times, I now think it is a good idea to only throw module from CPU to GPU, and then forget it (not taking it back) so it can just be garbage collected. This solution makes a lot of sense to me since to move tensors from CPU to GPU it is already a copy operation.

However, by using `.to('cuda')`, the module on the CPU is just gone. And I can find no easy way to avoid the module to retain on the CPU side. 

### Alternatives

I can think of deepcopying the module, but then the tensors is being copied on CPU first before it is copied on GPU, which is a huge waste.

### Additional context

I don't really have access to the constructor of the module so constructing it on GPU and then move data to it might not be an option.

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: next.js
Issue: Changes made to static methods do not get re-rendered on save
Labels: bug

### Link to the code that reproduces this issue

https://github.com/KritPaoIn/next-static-method-bug

### To Reproduce

1. npm install
2. npm run dev
3. change the return value of the static method inside `lib/static-class.ts` and save
4. observe that the text does not get updated

### Current vs. Expected behavior

**Current Behavior:** 
Changing the static method's return value does not update the text on save. The page must be refreshed for the change to apply.

**Expected Behavior:**
It should get updated.

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.1.0: Mon Oct  9 21:33:00 PDT 2023; root:xnu-10002.41.9~7/RELEASE_ARM64_T6031
Binaries:
  Node: 20.10.0
  npm: 10.2.3
  Yarn: N/A
  pnpm: 8.15.1
Relevant Packages:
  next: 14.1.0
  eslint-config-next: 14.1.0
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


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

Not sure

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

next dev (local)

### Additional context

_No response_
Repository: three.js
Issue: Material: It's currently not possible to determine if a material failed to compile
Labels: Enhancement

### Description

In working on [three-gpu-pathtracer](https://github.com/gkjohnson/three-gpu-pathtracer/) I've frequently run into platform-specific shader compilation issues that cause the shader to crash even though all syntax is correct. On DirectX, for example, a shader will fail to compile if an array of float parameters is passed to a function (see https://github.com/gkjohnson/three-gpu-pathtracer/pull/350). In order to prevent crashes for the user in these unforeseeable scenarios I'd like to be able programmatically determine whether a shader was able to compile and enable the application to display a note. This isn't currently possible. I'm planning to use `compileAsync` for the detection since compilation for such a large shader can be extremely slow on Windows.

Here's a list of some of the behavior that's not conducive to this:

- You cannot provide multiple `onShaderError` callbacks so any helper functions provided by a library must overwrite existing functions which is error prone.
- `onShaderError` does not provide any information about which mesh and material caused the failure.
- When calling "compile" or "compileAsync" while `checkShaderErrors` is true, no errors are checked. The shader error is only fired on first use which is already too late.
- As far as I know it's not possible to get the WebGLProgram or Vertex / FragmentShader objects associated with a Material / Mesh whether they've been compiled successfully or not.

### Solution

- Provide a function to retrieve the Vertex / Fragment Shaders and program associated with a Mesh and Material to check the compilation status (ideal because there's no need to set the flag to check shader errors)
- Fire an "on error" and / or "on compile" event on the Material and / or itself with both material and object as arguments so the compilation status can be checked.

### Alternatives

None afaik

### Additional context

_No response_
Repository: rust
Issue: `(..=0 | 2)` in macro does not compile without parentheses but generates warning for unnecessary parentheses
Labels: A-lints,A-macros,T-compiler,C-bug,A-suggestion-diagnostics,D-invalid-suggestion,A-patterns,L-unused_parens

I tried this code:

```rust
matches!(2, ..=0 | 2)
```
```rust
matches!(2, (..=0 | 2))
```

I expected to see this happen: At least one of the expressions should compile without warning.

Instead, this happened: The first expression does not compile. The second expression generates a warning asking you to remove the parentheses.

This happens with any macro with a pattern matcher that ends up used. Skipping the parentheses does compile if the unstable [exclusive range patterns](https://github.com/rust-lang/rust/issues/37854) are used, so I imagine this should work as well.

```
   Compiling playground v0.0.1 (/playground)
error: no rules expected the token `..=`
   --> src/lib.rs:2:17
    |
2   |     matches!(2, ..=0 | 2);
    |                 ^^^ no rules expected this token in macro call
    |
note: while trying to match meta-variable `$pattern:pat`
   --> /playground/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/macros/mod.rs:430:24
    |
430 |     ($expression:expr, $pattern:pat $(if $guard:expr)? $(,)?) => {
    |                        ^^^^^^^^^^^^

warning: unnecessary parentheses around pattern
 --> src/lib.rs:3:17
  |
3 |     matches!(2, (..=0 | 2));
  |                 ^        ^
  |
  = note: `#[warn(unused_parens)]` on by default
help: remove these parentheses
  |
3 -     matches!(2, (..=0 | 2));
3 +     matches!(2, ..=0 | 2);
  |

warning: `playground` (lib) generated 1 warning
error: could not compile `playground` (lib) due to previous error; 1 warning emitted
```

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.75.0 (82e1608df 2023-12-21)
binary: rustc
commit-hash: 82e1608dfa6e0b5569232559e3d385fea5a93112
commit-date: 2023-12-21
host: x86_64-unknown-linux-gnu
release: 1.75.0
LLVM version: 17.0.6
```
Repository: ant-design
Issue: Table with expandable whitespace pre-wrap acts awkward.
Labels: Inactive,unconfirmed

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/antd-reproduction-template-forked-cx3882)

### Steps to reproduce

click on row with window width 1300px.
![expandableTable](https://github.com/ant-design/ant-design/assets/42234614/2e6f07b7-037a-49a2-8eb8-40ae01bcbd02)

### What is expected?

The column width should be fixed.

### What is actually happening?

The column width is changed.

| Environment | Info |
| --- | --- |
| antd | 5.14.0 |
| React | 18.2.0 |
| System | macOS 14.2.1(23C71) |
| Browser | Naver Whale 3.24.223.24 |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: PowerToys
Issue: Keyboard drops connection in mouse without borders in last update
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.78.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

No bug report

### ✔️ Expected Behavior

Keyboard command following the mouse. 

### ❌ Actual Behavior

When switching the computer, the keyboard commands don't seem to work together with the mouse.
After refreshing the connection, it works on the computer where the connection was renewed, but no longer on the other computer, and vice versa

### Other Software

_No response_
Repository: next.js
Issue: Fetch request in Not Found page (404) is unexpectedly called multiple times on every page request
Labels: bug

### Link to the code that reproduces this issue

https://github.com/orinokai/test-next-404-fetch

### To Reproduce

1. Observe the count (persisted in a backend database) at https://kounter.vercel.app/get/h3ZJ97ra9Q
2. Start the repro in dev mode (or with `next start` or deployed to Vercel)
3. Observe that the count has incremented by an arbitrary amount
4. Request a page, e.g. [/posts/post-1](https://github.com/orinokai/test-next-404-fetch/blob/main/app/posts/post-1/page.js)
5. Observe that the count has incremented, again by a random number (the upper limit seems to be the number of pages on the site?)

### Current vs. Expected behavior

The counter is incremented via a `fetch` request in the [Not Found page](https://github.com/orinokai/test-next-404-fetch/blob/main/app/not-found.js). The fetch request should only be made when the Not Found page is rendered, but is currently seen to happen multiple times during build and at runtime when requesting _any page_ on the site (even statically rendered pages).

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: 1.22.21
  pnpm: 8.9.0
Relevant Packages:
  next: 14.1.0
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: N/A
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

App 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

This bug seems to occur with or without the `{ cache: "no-store" }` on the fetch call in the Not Found page
Repository: flutter
Issue: Support RegExp in path GoRoute
Labels: c: new feature,package,c: proposal,P3,p: go_router,workaround available,team-go_router,triaged-go_router

### Use case

Navigate packages are made to make it easier to handle routing, and now GoRouter has completely ignored this principle by making it difficult and removing a variety of commonly used methods.
In the Velocity_x package, I have the possibility to insert the route as a RegExp, and now this is not possible in GoRouter, and only the 
parameters are handled through the RegExp!

Expected RegExp path:
```
static const resetPasswordScreen = "\/(resetPasswordProfile|profile)(\/password)?";
```
The above RegExp should support the following four paths:
```
---> resetPasswordScreen = "/resetPasswordProfile"
---> resetPasswordScreen = "/resetPasswordProfile/password"
---> resetPasswordScreen = "/profile"
---> resetPasswordScreen = "/profile/password"
```
```
GoRoute(
  name: 'resetPasswordScreen',
  path: resetPasswordScreen,
  parentNavigatorKey: rootNavigatorKey,
  pageBuilder: (context, state) => _transitionPageBuilder(context, state, const ResetPasswordProfile()),
)
```

I want to know this feature exist or not, and if not, can you implement it?
        

### Proposal

```
static const resetPasswordScreen = "\/(resetPasswordProfile|profile)(\/password)?";
```

```
GoRoute(
  name: 'resetPasswordScreen',
  path: resetPasswordScreen,
  parentNavigatorKey: rootNavigatorKey,
  pageBuilder: (context, state) => _transitionPageBuilder(context, state, const ResetPasswordProfile()),
)
```
Repository: PowerToys
Issue: [Screen Ruler]: Add "Anchor", "Zoom", "Hold" and "Screenshot" features to the ruler
Labels: Needs-Triage

### Description of the new feature / enhancement

"Anchor" feature would help with counting the amount of pixels between two fixed points. 
![image](https://github.com/microsoft/PowerToys/assets/82095491/b1d39128-bddd-4415-b609-7cfdcf746f28)
Currently I have to create a screenshot of the place where I want to check the distance, draw the "anchors" manually and then use the ruler to see the distance.
The feature would make the process very easy and quick.

"Zoom" feature would zoom into a portion of screen, so that you could put an "Anchor" (from above) much more precisely on 1080p, 1440p and 4K screens

"Hold" feature would save the position and number that is appearing on the tooltip, so that it appears all the time. You could then check the distance in the other place and compare both of the distances.
Useful for making comparisons

"Screenshot" feature would make a screenshot of what is appearing on the screen, including the "Anchors", "Zooms", "Holds" and other tooltips with their pixel distance counts

### Scenario when this would be used?

Being a software tester, we often used MS Paint to point out any inconsistencies in padding and in centering of UI elements. This would make our work and work of many UI-related workers much easier.

### Supporting information

None
Repository: go
Issue: proposal: archive/zip: extend the visibility of the countWriter
Labels: Proposal

### Proposal Details

We're currently using a custom build zip writer to "flush" zip headers and the EOCD footer, which naturally for 90% looks identical to the one in `writer.go`. The use-case for this custom zip writer is to "prepare a zip file" without the need for having the actual data of a file in the actual zip file yet, which allows for streaming of a zip file. 

We currently can't use the standard golang zip library because we can't forward the position of the `countWriter` by hand. Ideally, we'd be able to set `w.cw.count` without the restriction of the data being written beforehand (so `SetOffset()` can't be used, unfortunately). 

The suggestion here would be to add the following helpers, or some similar functionality to forward the `w.cw.count` variable without the restriction of `SetOffset()`, and to read out its value with the following public functions:

```go
// pseudo code:
func (w *Writer) AdvanceOffset(n int64) {
	w.cw.count += n
}

func (w *Writer) GetOffset() int64 {
	w.cw.count
}
```

This would make the use of the standard golang zip-library useful for our use-case. We would use the `Flush()` functions as they exist now to get out the intermediate headers and the EOCD footer.
Repository: tauri
Issue: [feat] Disable opening new window on ctrl/shift-click
Labels: type: feature request

### Describe the problem

Clicking on a link while holding ctrl or shift in Windows will open a new window. This is the default behavior for most browsers, but on a desktop app it's not what users expect. It will also not even work on production builds, since it opens a new webview window which can't access `tauri.localhost`.

### Describe the solution you'd like

I believe this should be disabled by default, so that holding ctrl/shift makes no difference. It should just open the link on the same window as usual.

### Alternatives considered

It could also open a new Tauri controlled window, but I've ever seen this kind of behavior on any native app. If someone wanted this, they should probably handle it themselves with javascript.

### Additional context

I'm moving this issue here as suggested by @FabianLars on Discord.
Repository: PowerToys
Issue: Fancy Zones Shortcut Windows + PgUp/PgDn (add toggle to desktop as well)
Labels: Needs-Triage

### Description of the new feature / enhancement

Fancy Zones Shortcut Windows + PageUp toggles between windows snapped to a zone.  Can Desktop be added to the toggle?

### Scenario when this would be used?

I would find it useful for icons on my desktop I need to reach sometimes.  Or stacks of e-mails I leave behind the main zone to remember what I need to reply to, in which case toggling to desktop would expose those e-mails.

### Supporting information

Shortcut to desktop
Repository: ollama
Issue: [FEATURE]`search` command for the CLI app.
Labels: feature request

Currently, one has to look for the models available in the website (https://ollama.ai/library) so that it can be installed using
```bash
ollama run <MODEL>
```
OR 
```bash
ollama pull <MODEL>
```
It would be better if there is a `search` command in the CLI app itself such that it can be used to search for models in the repository, similar to `pacman -Ss` command in arch linux.
Repository: tauri
Issue: [bug] MacOS crash when trying to use menubar if no windows exist
Labels: type: bug,status: needs triage

### Describe the bug

This is pretty common in MacOS if you have the app set to stay open after all windows are closed. But essentially, if I have closed all windows, and go to the menu bar on MacOS, and try to use any of the menu items, the app crashes due to the way that the menu event handler works. It looks like its trying to get at least one window to fire the menu event to, but obviously there are no windows.

### Reproduction

Setup the app to stay open on `ExitRequested` using api.prevent_exit() (see example). Then attempt to execute any custom menu item. It'll crash ;)

https://github.com/tauri-apps/tauri/blob/b02fc90f450ff9e9d8a35ee55dc1beced4957869/examples/api/src-tauri/src/main.rs#L240-L244

### Expected behavior

Trigger a menu event without the need for Windows.

### Full `tauri info` output

```text
[✔] Environment
    - OS: Mac OS 14.0.0 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.75.0 (82e1608df 2023-12-21)
    ✔ cargo: 1.75.0 (1d8b05cdd 2023-11-20)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 18.19.0
    - pnpm: 8.8.0
    - yarn: 1.22.19
    - npm: 10.2.3

[-] Packages
    - tauri [RUST]: git+https://github.com/tauri-apps/tauri?branch=fix/macos-idle-crash#64eefc5ebc158f0ff0aca7eb26c7b43c211fbdf1 (1.5.4)
    - tauri-build [RUST]: 1.5.1
    - wry [RUST]: 0.24.7
    - tao [RUST]: 0.16.7
    - tauri-cli [RUST]: 1.4.0
    - @tauri-apps/api [NPM]: 1.5.1
    - @tauri-apps/cli [NPM]: 1.5.6

[-] App
    - build-type: bundle
    - CSP: style-src 'unsafe-inline' 'self'; default-src 'self'; img-src 'self' asset: https://asset.localhost; connect-src 'self' asset: https://asset.localhost
    - distDir: ../dist
    - devPath: http://localhost:3010/
```


### Stack trace

```text
thread 'main' panicked at /Users/tr3ysmith/.cargo/git/checkouts/tauri-9dcc2f9152472c1a/64eefc5/core/tauri-runtime-wry/src/lib.rs:2886:12:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error Command failed with exit code 101.
```


### Additional context

_No response_
Repository: terminal
Issue: Windows Terminal does not Launch when "Run as Administrator" on Windows Server 2022 Datacenter
Labels: Needs-Repro,Issue-Bug,Product-Terminal,Needs-Tag-Fix,Culprit-Centennial

### Windows Terminal version

1.19.2401.30002

### Windows build number

10.0.20348.0

### Other Software

_No response_

### Steps to reproduce

Log in as administrator account
Right click on Windows Terminal Icon
Run as Administrator

### Expected Behavior

Windows Terminal launches with admin rights

### Actual Behavior

Nothing appears, in event log, this error appears.

Faulting application name: WindowsTerminal.exe, version: 1.19.2401.30002, time stamp: 0x65b9ada4
Faulting module name: Windows.UI.Xaml.dll, version: 10.0.20348.51, time stamp: 0xda2580b1
Exception code: 0xc000027b
Fault offset: 0x0000000000813b28
Faulting process id: 0x1bb4
Faulting application start time: 0x01da59c833d6d40e
Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.19.10302.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll
Report Id: 76bcc0f0-01e5-4f01-910f-275f22e2efa2
Faulting package full name: Microsoft.WindowsTerminal_1.19.10302.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: App