sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: NavigatorObserver and Router API
Labels: framework,f: routes,P2,team-framework,triaged-framework

**The Problem**

The NavigatorObserver was original built for Navigator API. After the Router API is introduced, we started to face several issues

1.  It can only work with one Navigator.

It is common to have nested navigators( or even no navigator) with Router API. A single navigation in Route API may trigger 0~n navigators to push/pop routes. Even if we somehow listen to all navigators, it may still be impossible to piece the notifications together.

2. NavigatorObserver API is too opinionated

Router can achieve things like complete replace route stack in one navigation, there isn't a corresponding API in NavigatorObserver to record the event. It may produce a bunch of didPush/didPop/didReplace that are hard to make sense.

One extreme cases is something like CupertinoTabScaffold. The navigations in between tabs are achieved by using IndexedStack to move different screens around. In this cases, none of the NavigatorObserver will fire. We encounter this issue when we implements https://github.com/flutter/packages/pull/2650

**Proposal**

A new observing system that based Router API. I don't have much detail yet, one initial idea is to have an observer that observe the [Configuration](https://api.flutter.dev/flutter/widgets/RouterDelegate/currentConfiguration.html)

We can set the generic Type to [Diagnotics](https://api.flutter.dev/flutter/foundation/DiagnosticsNode-class.html). so that other third_party router package would need to make sure their Configuration implements the subtype in order to use the observer.

**Things to consider**

1. HeroController should be migrated away from NavigatorObserver https://github.com/flutter/flutter/issues/54200
2. Existing analytics tools needed to be migrated
3. Possible backward compatibility with NavigatorObserver
Repository: pytorch
Issue: Segfault when using torch.ops.* to access de-registered op
Labels: module: crash,triaged,module: dispatch,module: library

### 🐛 Describe the bug

We register an operator (foo::sum), call torch.ops.foo.sum, de-register it (by deleting the Library object), and then call torch.ops.foo.sum again. This segfaults.

```python
import torch
from torch.library import Library

my_lib1 = Library("foo", "DEF")
my_lib1.define("sum(Tensor self) -> Tensor")

@torch.library.impl(my_lib1, "sum", "CPU")
def my_sum(*args, **kwargs):
    return args[0] * 2

x = torch.tensor([1, 2])
torch.ops.foo.sum(x)

import sys
assert sys.getrefcount(my_lib1) == 2
del my_lib1

x = torch.tensor([1, 2])
torch.ops.foo.sum(x)
```

It should not segfault

### Versions

master

cc @anjali411
Repository: PowerToys
Issue: FancyZones: Make min. zone sizes adjustable OR add a setting to remove "Space around zones" in the screen corners
Labels: Idea-Enhancement,FancyZones-Layouts,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

Two options I can think of:
Option 1: Have a setting for the minimum size of zones. This seems to currently be 100+<Space around zones>.
Option 2: Make the "Space around zones" toggleable for the corners of the screen, so there is only space between zones, but not between a zone and the corner of the screen.

### Scenario when this would be used?

I don't want to use the "Space around zones" since it wastes space at the corners of the screen, therefore I want to create some custom spaces between zones that can be used or not. (Additionally, it would enable having different spaces between different zones.)
Alternatively, if you could toggle the spacing at the corners of the screen, it would help with my scenario.


### Supporting information

The spaces I want to make smaller:
![image](https://user-images.githubusercontent.com/13102251/230489259-472e4f03-5dc4-4728-a7c0-08a6615f6563.png)
Repository: pytorch
Issue: Memory corruption using torch.ops.* to access re-registered operator
Labels: module: internals,triaged

### 🐛 Describe the bug

We register an operator (foo::sum), call torch.ops.foo.sum, de-register it (by deleting the Library object), re-register it, and then call torch.ops.foo.sum again. This causes memory corruption (and leads to segfaults).

Repro: Run the following under an asan build.
```python
class TestTesting(TestCase):
    def test_AAA(self) -> None:
        from torch.library import Library

        my_lib1 = Library("foo", "DEF")
        my_lib1.define("sum(Tensor self) -> Tensor")

        @torch.library.impl(my_lib1, "sum", "CPU")
        def my_sum(*args, **kwargs):
            return args[0]

        x = torch.tensor([1, 2])
        self.assertEqual(torch.ops.foo.sum(x), x)

        import sys
        assert sys.getrefcount(my_lib1) == 2
        del my_lib1

        my_lib1 = Library("foo", "DEF")
        my_lib1.define("sum(Tensor self) -> Tensor")

        @torch.library.impl(my_lib1, "sum", "CPU")
        def my_sum(*args, **kwargs):
            return args[0]

        x = torch.tensor([1, 2])
        self.assertEqual(torch.ops.foo.sum(x), x)
```
Likely related to https://github.com/pytorch/pytorch/issues/98537, unsure if same exact issue.

### Versions

master

cc @ezyang @bhosmer @smessmer @ljk53 @bdhirsh
Repository: stable-diffusion-webui
Issue: [Feature Request]: Queue-extensive
Labels: enhancement,extension-request

### Is there an existing issue for this?

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

### What would your feature do ?

Like when opening a new Tab, i want a new Button in the UI, which allows me to skip the task of opening a new Tab, putting in my settings and then queuing.
Maybe a button that i can press and my prompt/settings will just be put in the current queue

### Proposed workflow

1. Press "queue" button while a generation is already running

### Additional information

<3
Repository: PowerToys
Issue: PowerRename UI / UX improvement suggestion
Labels: Idea-Enhancement,Product-PowerRename,Needs-Triage

### Description of the new feature / enhancement

I am currently using a program and until this works the same way or becomes similarily simple to use, I shall continue using said program.
This program is called "Advanced Renamer" from advancedrenamer.com by Kim Jensen.

What I like about this program is it is very simple and straight forward to understand, with suggestions and explanations of what each tag do.
You add a "method" of naming, you add tags for instance "< Inc Nr >" for Incrementing numbers or "< Inc NrDir >" for incrementing numbers per directive. You will see this on the left side under methods on the picture.
I use this program for work and I mainly use it for naming all files inside a folder to be named after the folder and incrementing number.

The interface is very easy to understand. You open the program, find the folder you want, add selected and start implementing.
For this PowerRename feature, I highly suggest trying out the free program Advanced Renamer and taking notes. For when it comes to this specific feature of PowerToys, I don't find it to be quite there yet, however, I will not rule out user error.
It's a highly effective tool and I would absolutely love to see this baked in to PowerToys.

![UI_UX_ARen](https://user-images.githubusercontent.com/35894601/230505186-1b20fd09-17bc-4377-b648-01ae4c4bceb9.jpg)


### Scenario when this would be used?

User interface and user experience change which will improve the usage every single time it's being used.

### Supporting information

Adding picture and website here as an easier way to find the information.
I would love an answer regardless of the outcome, but I understand if I don't get one.
If I'm missing something, please feel free to correct or otherwise guide me in the right direction.
https://www.advancedrenamer.com/
The first picture is taken from me, the second is the one posted on the website.
![UI_UX_ARen](https://user-images.githubusercontent.com/35894601/230506408-651beb53-366b-46a3-b0af-367cd2cdf730.jpg)
![UI_UX_ARen_TakenFromWebsite](https://user-images.githubusercontent.com/35894601/230506670-53d05690-0c60-4c41-944a-b37e25f062cf.jpg)
Repository: terminal
Issue: "Checking for Updates" followups
Labels: Help Wanted,Area-UserInterface,Product-Terminal,Issue-Scenario

```[tasklist]
### Tasks
- [ ] Add a button to install updates via [`StoreContext.RequestDownloadAndInstallStorePackageUpdatesAsync`](https://docs.microsoft.com/en-us/uwp/api/windows.services.store.storecontext.requestdownloadandinstallstorepackageupdatesasync?view=winrt-22621#windows-services-store-storecontext-requestdownloadandinstallstorepackageupdatesasync(windows-foundation-collections-iiterable((windows-services-store-storepackageupdate))))
- [ ] Display a badge on the new tab dropdown/menu item for About
```

```[tasklist]
### Discussions
- [ ] Discuss with team - display an info bar if the update is more than 3 days old?
```

_Originally posted by @zadjii-msft in https://github.com/microsoft/terminal/issues/13437#issuecomment-1497791645_
            
            
            
other notes:

* When we opt for updates off (#6726), the button will have to manually Quit the Terminal
* There's a internal thread with subject line "Re: AppInstaller Updates (was - RE: Updating Canary)" for more deets
Repository: pytorch
Issue: torch.jit.script codegen warning with cuda and vmap
Labels: oncall: jit,triaged,module: functorch

### 🐛 Describe the bug

I'm getting the following warning which hints at suboptimal speed, and doesn't look like it should happen at any point.

```... site-packages\torch\_functorch\vmap.py:619: UserWarning: FALLBACK path has been taken inside: torch::jit::fuser::cuda::runCudaFusionGroup. This is an indication that codegen Failed for some reason.
To debug try disable codegen fallback path via setting the env variable `export PYTORCH_NVFUSER_DISABLE=fallback`
 (Triggered internally at C:\cb\pytorch_1000000000000\work\third_party\nvfuser\csrc\manager.cpp:340.)
  batched_outputs = func(*batched_inputs, **kwargs)```

This can be reproduced with the following code:

```import torch
from torch import vmap
import torch.jit

@torch.jit.script
def test(params):
    x0 = params[0]
    y = torch.arange(0, 64, dtype=torch.float32, device=params.device)
    return torch.cos(x0)*y

params = torch.zeros((200, 4), dtype=torch.float32, device='cuda')
torch.vmap(test, chunk_size=100)(params)
```

It seems to occur only when erf is passed an array instead of scalar.
I tested this both on pytorch 2.0 and on the nightly build (version is collected below), and on windows and ubuntu (see collected environments)

### Versions

[windows_env.txt](https://github.com/pytorch/pytorch/files/11175006/windows_env.txt)
[linux_env.txt](https://github.com/pytorch/pytorch/files/11175007/linux_env.txt)


cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel @zou3519 @Chillee @samdow @soumith @kshitij12345 @janeyx99
Repository: vscode
Issue: SCM - Tab refresh on every keypress on editor
Labels: feature-request,scm


Type: <b>Bug</b>

The issue is reproducible when connected to remote env via SSH and there is an active SCM system recognised.

Every keypress on the editor shows the SCM tab refreshing for a split second. This also somehow makes the code completion and suggestion popups appear after that SCM refresh is done. This causes an overall delay in working with the editor and getting suggestions.

VS Code version: Code 1.77.1 (b7886d7461186a5eac768481578c1d7ca80e2d21, 2023-04-04T23:21:11.906Z)
OS version: Windows_NT x64 10.0.22000
Modes:
Sandboxed: No
Remote OS version: Linux x64 5.4.17-2136.317.5.3.el8uek.x86_64
Remote OS version: Linux x64 5.4.17-2136.317.5.3.el8uek.x86_64

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 1805)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|undefined|
|Memory (System)|31.73GB (19.81GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|SSH: anaray-dev|
|OS|Linux x64 5.4.17-2136.317.5.3.el8uek.x86_64|
|CPUs|AMD EPYC 7J13 64-Core Processor (4 x 2445)|
|Memory (System)|31.08GB (20.67GB free)|
|VM|0%|

|Item|Value|
|---|---|
|Remote|SSH: anaray-dev|
|OS|Linux x64 5.4.17-2136.317.5.3.el8uek.x86_64|
|CPUs|AMD EPYC 7J13 64-Core Processor (4 x 2445)|
|Memory (System)|31.08GB (20.67GB free)|
|VM|0%|
</details><details><summary>Extensions (37)</summary>

Extension|Author (truncated)|Version
---|---|---
Bookmarks|ale|13.3.1
tsl-problem-matcher|amo|0.6.2
chalice-icon-theme|art|1.2.22
beardedicons|Bea|1.10.0
LogFileHighlighter|emi|2.16.0
intellij-idea-keybindings|k--|1.5.9
feather-vscode|mel|1.0.1
fluent-icons|mig|0.0.18
theme-monokai-pro-vscode|mon|1.2.0
JetBrainsIcons|Mos|1.0.5
remote-ssh|ms-|0.98.0
remote-ssh-edit|ms-|0.84.0
remote-explorer|ms-|0.4.0
rose-pine|mvl|2.8.0
back-n-forth|nic|3.1.1
material-icon-theme|PKi|4.25.0
material-product-icons|PKi|1.5.0
vscode-icons|vsc|12.2.0
wvsc-serendipity|wic|0.105.0
material-theme|zhu|3.15.8
ade-source-control|Ana|0.0.36
java-project-stup|Ana|4.0.3
vscode-eslint|dba|2.4.0
svg|joc|1.5.2
symbols|mig|0.0.9
vscode-filesize|mkx|3.1.0
vscode-dotnet-runtime|ms-|1.6.0
java|red|1.16.0
intellicode-api-usage-examples|Vis|0.2.7
vscodeintellicode|Vis|1.2.30
vscode-java-debug|vsc|0.49.1
vscode-java-dependency|vsc|0.21.2
vscode-java-pack|vsc|0.25.10
vscode-java-test|vsc|0.38.2
vscode-maven|vsc|0.41.0
jar-viewer|wma|1.2.0
change-case|wma|1.0.0

(17 theme extensions excluded)

</details>
<!-- generated by issue reporter -->
Repository: transformers
Issue: Open AI GPT Model Implementation in Flax
Labels: New model

### Model description

https://huggingface.co/openai-gpt today supports tf and pytorch but not flax. I'd like to implement the support to enhance the current gpt offering by hugging face

### Open source status

- [X] The model implementation is available
- [X] The model weights are available

### Provide useful links for the implementation

Given that the model is already implemented in other two frameworks, I'll try to infer the model from there. Please feel free to provide additional resources that can help me wrap this up better and faster
Repository: stable-diffusion-webui
Issue: [Feature Request]: Add the Exactly Steps to Generate Info when Interrupt
Labels: enhancement

### Is there an existing issue for this?

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

### What would your feature do ?

Add the exactly running steps to generate info when interrupt the process, it should be written down to the PNG info too. It is quite annoying when I can't reproduce other's image due to incorrect setting logged in the PNG info. It is caused by the author interrupted the generate process and posted the mid-process image with original steps setting, which is completely wrong.

### Proposed workflow

1. Start to generate image
2. Click the interrupt butt when the process is still running
3. It stop with current results, and the logged info is the steps actually run but not the original settings

### Additional information

_No response_
Repository: vscode
Issue: Every time the vscode is gets update in any way, the windows shortcut key is replaced, making it the default
Labels: bug,help wanted,install-update,windows

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: Version: 1.77.1 (user setup)
Commit: b7886d7461186a5eac768481578c1d7ca80e2d21
Date: 2023-04-04T23:21:11.906Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Windows_NT x64 10.0.19043
Sandboxed: No

Steps to Reproduce:
1.  Vsocde shortcut loctaion `C:\Users\{username}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Visual Studio Code`
2.  Vscode Properties
Repository: PowerToys
Issue: PowerToys Run: do not close typing window while focus follows mouse is active
Labels: Idea-Enhancement,Product-PowerToys Run,Needs-Triage

### Description of the new feature / enhancement

New option(s) while focus follow mouse is on:
- move mouse cursor into typing window area while it opens (so focus is not lost and typing window does not close)
- do not allow to steal focus of typing window for defined period of time or wait until user moves mouse cursor by himself

Don't need both, they are just my ideas how this can be achieved. Maybe there are some better ones.

### Scenario when this would be used?

I use Focus Follow Mouse on daily basis with dirty registry hacks for Win 11. Current setup is to follow mouse and focus window under mouse pointer after 200ms **without** rising window up.

I run PowerToys Run with keyboard shortcut in the centre of same monitor where mouse cursor is active. Up to now everything is perfect, but when I start to type and search results kicks in and show suggestions PowerToys Run window loses focus and closes (because of focus follow mouse option on and pointer may be i.e. in top right corner of the screen) before I finish typing or chose one of the search results. 

Now to be sure that typing window does not close before I run command I need to manually move mouse pointer into typing area (or under typing area where suggestions will open).

Option with closing typing windows when it loses focus is perfect. With focus follow mouse scenario either moving cursor into typing window while it's activated or wait until mouse is moved by user would make it brilliant and really usable though.

### Supporting information

rofi is quite good example how it should work (there is even no need to move cursor into typing window position): https://github.com/davatorium/rofi
Repository: excalidraw
Issue: Generalise storage and collaboration backends
Labels: enhancement

I would like to propose the excalidraw app gets a abstraction layer for firebase and socket.io.

While this will also provide a good abstraction for testing and future development, my primary intent is to implement alternative backends for storing sessions/files/scenes and for real-time collaboration. 

My proposal is to refactor all mentions of firebase and socket.io into a class type and expose it via a property, that defaults to the current behaviour to preserve existing features.

A good start was made here for the storage part: https://github.com/alswl/excalidraw/pull/2/files

References:
- https://github.com/excalidraw/excalidraw/issues/1772
- https://github.com/excalidraw/excalidraw/issues/4038
Repository: next.js
Issue: Image not scaling down in verison 13.3.1-canary.0
Labels: bug

### Verify canary release

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

### Provide environment information

```bash
Operating System:
      Platform: win32
      Arch: x64
      Version: Windows 10 Pro
    Binaries:
      Node: 18.15.0
      npm: N/A
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.3.1-canary.0
      eslint-config-next: 13.3.0
      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://github.com/mycallCampbell/infowaveFrontend/

### To Reproduce

open inspect and view in mobile version. The Image does not scale down. 

### Describe the Bug

I have previously built a website (www.robdiamond.co.uk) using NEXT JS version 12.1.0 and the 'Hero' image scales down when viewed in mobile device. I set the image using the 'next Image component' with a width and height value. In this example, the hero imaged used is 3360px by 2240px (quite large) and scales down correctly on any mobile device keeping all of the image in view.

I have now started a new project using the latest versioin of Next JS with Canary updated and the 'Hero' image is not scaling down as the expected behavior seen in my previous project (see domain above). Instead, when viewed on mobile, the image does not scale down. 

I have set the 'Hero' image using the same principles as in the above example. 

### Expected Behavior

I wish for the 'Hero' image to scale down and keep the same aspect ratio when viewed on mobile device. 

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

Chrome Version 111.0.5563.147 (Official Build) (64-bit)

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

Vercel
Repository: next.js
Issue: Get a timeout when calling an API route which is matching in the Middleware
Labels: bug

### Verify canary release

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

### Provide environment information

```bash
Operating System:
      Platform: darwin
      Arch: x64
      Version: Darwin Kernel Version 21.6.0: Wed Aug 10 14:25:27 PDT 2022; root:xnu-8020.141.5~2/RELEASE_X86_64
    Binaries:
      Node: 18.14.0
      npm: 9.3.1
      Yarn: 1.22.19
      pnpm: 8.1.1
    Relevant packages:
      next: 13.3.1-canary.0
      eslint-config-next: 13.2.4
      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://github.com/vercel/next.js/

### To Reproduce

Create the middleware file (middleware.ts)
```
import { NextRequest, NextResponse } from 'next/server';

export async function middleware(req: NextRequest) {
  return NextResponse.next();
}

export const config = {
    matcher: ['/api/auth']
};
```

Create the API route in the APP folder (/app/api/auth/route.ts)
```
import { NextResponse } from 'next/server';

export async function POST() {
  return NextResponse.json({status: 'ok'});
}
```

### Describe the Bug

[500] error (30s): error during Next.js routing for /api/auth

Caused by:
- router evaluation failed: received error from javascript stream
- timeout while receiving message from process
- deadline has elapsed

Debug info:
- Execution of get_from_source failed
- Execution of resolve_source_request failed
- Execution of NextRouterContentSource::get failed
- error during Next.js routing for /api/auth
- router evaluation failed: received error from javascript stream
- timeout while receiving message from process
- deadline has elapsed

### Expected Behavior

Get the JSON response instantly. 
This is how it works when the API route doesn't match in the middleware.

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

Version 1.49.132 Chromium: 111.0.5563.147 (Official Build) (x86_64)

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

_No response_