sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: `editor.action.inlineSuggest.commit` doesn't commit when suggestWidget visible
Labels: bug,inline-completions

Version: 1.80.0-insider (Universal)
Commit: db6bcdf309cc1565c502a54b73c33a63bdabfbd8
Date: 2023-06-09T05:22:41.121Z
Electron: 22.5.5
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin arm64 20.6.0

ProductName:	macOS
ProductVersion:	11.7.7
BuildVersion:	20G1345

`keybinding.json`

```json
// Place your key bindings in this file to overwrite the defaults
[
    {
        "key": "tab",
        "command": "-tab",
        "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
    },
    {
        "key": "tab",
        "command": "editor.action.inlineSuggest.commit"
    }
]
```

`settings.json`

```json
{
    "workbench.colorTheme": "Default Light+",
    "window.zoomLevel": 1,
    "editor.inlineSuggest.enabled": true,
}
```


Steps to Reproduce:

1. Install GitHub Copilot
2. Open a TypeScript file
3. Type code.
4. Type `tab` when both inline suggestion and suggest widget are visible.
5. The inline suggestion isn't committed although  shortcuts troubleshooting says `Invoking command editor.action.inlineSuggest.commit.`

https://github.com/microsoft/vscode/assets/10665499/85ec373c-d54b-4456-8051-48aa8a7a815d

I'd like to use different shortcuts to accept suggestions: the tab button for inline suggestions and the enter key for items on the suggestion widget. Is it possible to configure these shortcuts accordingly?
Repository: PowerToys
Issue: [Peek] Peek.UI persists as a media player
Labels: Issue-Bug,Help Wanted,Cost-Small,Product-Peek

### Microsoft PowerToys version

0.70.1

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

Peek

### Steps to reproduce

1. Start PowerToys with Peek enabled
2. Preview a video file that it is capable of playing (not audio)
3. Close the peek window through `x` on top right corner
4. Check media player status by clicking the bottom-right corner of taskbar, where the network/volume/battery icons are
5. Check volume mixer in settings, find `PowerToys.Peek.UI`

### ✔️ Expected Behavior

1. Peek leaves the media player panel when the playback is stopped by the `x` button on the top-right corner of the window
2. Peek does not register itself in the volume mixer when it is not in playback of a media file

### ❌ Actual Behavior

After the steps provided above:
![Screenshot 2023-06-09 092102](https://github.com/microsoft/PowerToys/assets/8340896/f558d253-96ab-4a37-82a3-2f4039e21aa7)
![Screenshot 2023-06-09 092225](https://github.com/microsoft/PowerToys/assets/8340896/1f1eaf34-90fc-4f8f-a311-b12fd29e7e97)

Note that in volume mixer, `PowerToys.Peek.UI` persists on the moment PowerToys starts up, regardless of whether you have previewed media files or not. I think it is not a good implementation, only apps that are actually outputting audio should appear there.

### Other Software

_No response_
Repository: next.js
Issue: `404.html` not generated in static export when defining custom error with trailing slash enabled
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: 16.19.1
      npm: N/A
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 13.4.5-canary.9
      eslint-config-next: 13.3.1
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.0.4
```


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

Static HTML Export (output: "export")

### Link to the code that reproduces this issue or a replay of the bug

https://github.com/allboatsrise/nextjs-export-404-bug/commit/0b4155b08f95ca9e98bf9b57e5bff5a7b8c920ec

### To Reproduce

1. `next.config.js` - configure static export with trailing slash
```javascript
/** @type {import("next").NextConfig} */
module.exports = {
  reactStrictMode: true,
  output: 'export',    // static export
  trailingSlash: true, // enable trailing slash
}
```

2. `pages/404.tsx` - add custom 404 error with `getStaticProps`
```typescript
export const getStaticProps = async () => {
  return {
    props: {}
  }
}

export default () => {
  return <h1>404 - Page Not Found</h1>
}
```

3. Run: `npm run build`

### Describe the Bug

Once the static build is run, it should generate `404.html`, but it only generates `404/index.html`.

![2023-06-09_101751](https://github.com/vercel/next.js/assets/983644/24316b2e-5871-460d-8158-21801ee7e98f)


### Expected Behavior

`404.html` should be created during static export.
![2023-06-09_102059](https://github.com/vercel/next.js/assets/983644/c3370634-2c6f-4bf9-8d40-352ff00d87d9)

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

_No response_

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

_No response_
Repository: PowerToys
Issue: [Peek] Allow preview of unknown file endings when file is text-encoded
Labels: Idea-Enhancement,Help Wanted,Product-Peek

### Description of the new feature / enhancement

Peek should allow preview of files with unknown file endings when they are text-encoded, and probably under a certain file size.

### Scenario when this would be used?

Countless scenarios. There are many proprietary (or basically unknown) file endings used to store text, especially in context of programming languages or configuration files. Being able to quickly glance at these files would be very nice.

### Supporting information

_No response_
Repository: create-react-app
Issue: New maintainers?
Labels: issue: proposal,needs triage

Hellos 👋 

1. Are the admins open to new maintainers?
2. Anyone interested in being a maintainer or continuing to use CRA? Please emoji this post.
Repository: stable-diffusion-webui
Issue: [Bug]: AMD GPUs not running on with updated
Labels: bug-report,platform:amd

### Is there an existing issue for this?

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

### What happened?

When I try to generate an image I get the error below. It is related to the pytorch version as I can get it to work if I roll back the version.

MIOpen(HIP): Error [Compile] 'hiprtcCompileProgram(prog.get(), c_options.size(), c_options.data())' naive_conv.cpp: HIPRTC_ERROR_COMPILATION (6)
MIOpen(HIP): Error [BuildHip] HIPRTC status = HIPRTC_ERROR_COMPILATION (6), source file: naive_conv.cpp
MIOpen(HIP): Warning [BuildHip] /tmp/comgr-bafe6d/input/naive_conv.cpp:39:10: fatal error: 'limits' file not found
#include <limits> // std::numeric_limits
         ^~~~~~~~
1 error generated when compiling for gfx1030.
terminate called after throwing an instance of 'miopen::Exception'
  what():  /long_pathname_so_that_rpms_can_package_the_debug_info/data/driver/MLOpen/src/hipoc/hipoc_program.cpp:304: Code object build failed. Source: naive_conv.cpp
Aborted (core dumped)

### Steps to reproduce the problem

Try to generate an image

### What should have happened?

image is generated

### Commit where the problem happens

1.3.2

### What Python version are you running on ?

Python 3.10.x

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

Linux

### What device are you running WebUI on?

AMD GPUs (RX 6000 above)

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

Google Chrome

### Command Line Arguments

```Shell
No
```


### List of extensions

No

### Console logs

```Shell
MIOpen(HIP): Error [Compile] 'hiprtcCompileProgram(prog.get(), c_options.size(), c_options.data())' naive_conv.cpp: HIPRTC_ERROR_COMPILATION (6)
MIOpen(HIP): Error [BuildHip] HIPRTC status = HIPRTC_ERROR_COMPILATION (6), source file: naive_conv.cpp
MIOpen(HIP): Warning [BuildHip] /tmp/comgr-bafe6d/input/naive_conv.cpp:39:10: fatal error: 'limits' file not found
#include <limits> // std::numeric_limits
         ^~~~~~~~
1 error generated when compiling for gfx1030.
terminate called after throwing an instance of 'miopen::Exception'
  what():  /long_pathname_so_that_rpms_can_package_the_debug_info/data/driver/MLOpen/src/hipoc/hipoc_program.cpp:304: Code object build failed. Source: naive_conv.cpp
Aborted (core dumped)
```


### Additional information

If I modify webui.sh to install the older version of pytorch I can get it to run

i```
f echo "$gpu_info" | grep -q "AMD" && [[ -z "${TORCH_COMMAND}" ]]
then
    # AMD users will still use torch 1.13 because 2.0 does not seem to work.
#    export TORCH_COMMAND="pip install torch==2.0.1+rocm5.4.2 torchvision==0.15.2+rocm5.4.2 --index-url https://download.pytorch.org/whl/rocm5.4.2"
    export TORCH_COMMAND="pip install torch==1.13.1+rocm5.2 torchvision==0.14.1+rocm5.2 --index-url https://download.pytorch.org/whl/rocm5.2"
```

GPU 
Name:                    gfx1030
Marketing Name:          AMD Radeon RX 6800
Repository: pytorch
Issue: RuntimeError: torch.vmap a function that includes in-place arithmetic operations on a zero-initialized tensor, an error "vmap: inplace arithmetic(self, *extra_args) is not possible" is raised.
Labels: triaged,module: functorch

### 🐛 Describe the bug

When using torch.vmap to batch-process a function that includes inplace arithmetic operations on a zero-initialized tensor, an error "vmap: inplace arithmetic(self, *extra_args) is not possible" is raised.
Specifically, an error is raised when initializing the zero tensor using torch.zeros(x.shape), but no error is raised if using torch.zeros_like(x). 


```
import torch

def func(x, y):
    mat = torch.zeros(x.shape)  # Error occurs on this line
    # mat = torch.zeros_like(x)  # No error occurs on this line
    mat[0, 0] = mat[0, 1] + x[0, 0]
    return mat

input = torch.ones((10, 5, 6))
inputy = torch.ones((10, 5, 6))

batched_func = torch.vmap(func, in_dims=(0, 0))
batched_func(input, inputy)

```

```
Error message:
RuntimeError: vmap: inplace arithmetic(self, *extra_args) is not possible because there exists a Tensor `other` in extra_args that has more elements than `self`. This happened due to `other` being vmapped over but `self` not being vmapped over in a vmap. Please try to use out-of-place operators instead of inplace arithmetic. If said operator is being called inside the PyTorch framework, please file a bug report instead
```

### Versions

PyTorch version: 2.0.1
Operating system: Mac Monterey 12.6.2
Python version: 3.10.4

cc @zou3519 @Chillee @samdow @kshitij12345 @janeyx99
Repository: godot
Issue: Can not change size of child control inside ConfirmationDialog
Labels: discussion,documentation,topic:gui

### Godot version

4.1-beta1

### System information

Godot v4.1.beta1.mono - Ubuntu 23.04 23.04 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 6GB (nvidia; 515.105.01) - Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 Threads)

### Issue description

Nodes like Button, LineEdit inside Confirmation Dialog can not be resized.

https://github.com/godotengine/godot/assets/6362922/6527be88-2921-4950-89ae-29e38ec68331



### Steps to reproduce

Create a ConfirmationDialog Node
Add Child(Button) to ConfirmationDialog
Resize the child from editor
Run the project


### Minimal reproduction project

[ConfirmationDialogReproduce.zip](https://github.com/godotengine/godot/files/11708035/ConfirmationDialogReproduce.zip)
Repository: pytorch
Issue: Improve `_group_tensors_by_device_and_dtype`
Labels: module: optimizer,triaged,better-engineering,actionable,module: mta

follow-up https://github.com/pytorch/pytorch/pull/100007

https://github.com/pytorch/pytorch/blob/6fa2d41dc7dfcbff37df7fb5517e6644eb3d74ab/torch/csrc/Module.cpp#L1745-L1746 should be able to be cleaner by implementing an appropriate type caster for `at::ScalarType`

cc @vincentqb @jbschlosser @albanD @janeyx99 @mcarilli
Repository: godot
Issue: WebRTCPeerConnection.set_default_extension not working
Labels: bug,topic:network

### Godot version

v4.0.3.stable.official

### System information

Ubuntu 22.04

### Issue description

Right now, to use `WebRTCMultiplayerPeer` you have to create a server and a client. When creating a client, you have to create a `WebRTCPeerConnection`. To do so, you have to call the static method `WebRTCPeerConnection.set_default_extension`.

Looks to me that the way this is intended to work is that you create a custom class extending `WebRTCPeerConnectionExtension`, and then pass its name to the `WebRTCPeerConnection.set_default_extension` method. This is not working, the error message is:

`Can't make CustomWebRTCExtension the default WebRTC extension since it does not extend WebRTCPeerConnectionExtension.`

I was looking into the code and seems like this happens because `ClassDB` doesn't work with GDScript custom classes, and the verification is:
```cpp
ERR_FAIL_COND_MSG(!ClassDB::is_parent_class(p_extension, WebRTCPeerConnectionExtension::get_class_static()), vformat("Can't make %s the default WebRTC extension since it does not extend WebRTCPeerConnectionExtension.", p_extension));
```

I think the best way to correct it is to use the same strategy used on `MultiplayerAPIExtension`, where you just instanciate the object and passes to the `get_tree().set_multiplayer()` method. I've created a branch doing it, and looks like it works. The commit is this one: https://github.com/godotengine/godot/commit/936fe05ca4571d232f7d8fb4bfa2f4c523171498

Then, the new way would be something like this:
```gdscript
WebRTCPeerConnection.set_default_extension(CustomWebRTCExtension.new())
```

Instead of:
```gdscript
WebRTCPeerConnection.set_default_extension("CustomWebRTCExtension")
```


I'm not sure with it makes sense to create a pull request though, as it seems that the `WebRTCMultiplayerPeer` has a lot more errors down the line, and maybe it makes more sense to review it all.




### Steps to reproduce

In a new project, create a single Node and add this script:
```gdscript
extends Node


func _ready():
	WebRTCPeerConnection.set_default_extension("CustomWebRTCExtension")
	var peer = WebRTCMultiplayerPeer.new()
	peer.create_client(2)
	var peer_connection = WebRTCPeerConnection.new()
	peer.add_peer(peer_connection, 1)
```

Create the `CustomWebRTCExtension` class in another file:
```gdscript
extends WebRTCPeerConnectionExtension
class_name CustomWebRTCExtension

func _get_connection_state():
	return WebRTCPeerConnection.ConnectionState.STATE_NEW
```

Run the project. You will see the error `Can't make CustomWebRTCExtension the default WebRTC extension since it does not extend WebRTCPeerConnectionExtension.`

I'm also attaching this example in a zip.

### Minimal reproduction project

[poc_error_webrtc.zip](https://github.com/godotengine/godot/files/11708435/poc_error_webrtc.zip)
Repository: flutter
Issue: Screenshot on physical device does not work with iOS 17 / Xcode 15
Labels: platform-ios,tool,t: xcode,e: OS-version specific,P2,team-ios,triaged-ios

`flutter screenshot` is broken with new iOS 17 / Xcode 15. This is due to essentially the same issue as https://github.com/flutter/flutter/issues/128531.

```
Error taking screenshot: ProcessException: Process exited abnormally:
Could not start screenshotr service! Remember that you have to mount the Developer disk image on your device if you want
to use the screenshotr service.
  Command: /path/toflutter/bin/cache/artifacts/libimobiledevice/idevicescreenshot . --udid xxxx
```

There's already an issue with libimobiledevice: https://github.com/libimobiledevice/libimobiledevice/issues/1465, https://github.com/libimobiledevice/libimobiledevice/issues/1452
Repository: stable-diffusion-webui
Issue: [Feature Request]: Override builtins.__import__ instead of manipulating sys.path
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 ?

For the convenience of extension developers, the code loading the extension temporarily modifies `sys.path`.

https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/2b91251637078e04472c91a06a8d9c4db9c1dcf0#diff-e4bc1c55946593391fac69500badc7f35ca9efb23ced1064856ce79fd53f29ceR123-R149

This solution is highly problematic:

1. It only works within a limited timeframe. For example, it doesn't work for imports made by callbacks.
2. It doesn't allow importing modules from other extensions.
3. It causes name clashes in `sys.modules`. https://github.com/Mikubill/sd-webui-controlnet/issues/943

An alternative approach that overrides [`builtins.__import__`](https://docs.python.org/3/library/functions.html#import__) should solve these issues.

### Proposed workflow

Here's an example code reflecting the current solution:

```python3
import builtins

_old_import = builtins.__import__

def _new_import(name, globals=None, locals=None, fromlist=(), level=0):
    if level == 0 and globals is not None and (package := globals.get("__package__")) is not None:
        match package.split(".", 2):
            case ["extensions", ext_name, *_]:
                try:
                    return _old_import(f"extensions.{ext_name}.{name}", globals, locals, fromlist, level)
                except ModuleNotFoundError:
                    pass
    return _old_import(name, globals, locals, fromlist, level)

builtins.__import__ = _new_import
```

(If the import is absolute and called from the extension module, try importing the name with the prefix `extensions.{extension_name}.`. Otherwise, or if the module is not found, fallback to the default approach.)

### Additional information

_No response_
Repository: flutter
Issue: Cache extent supports caching by number of items
Labels: c: new feature,framework,f: scrolling,P2,customer: samehere,team-framework,triaged-framework

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

Right now, you can set cache extent style by pixel or viewport. There should be a way to cache by number of items.

### Proposal

Find a way to support this use case. One idea is to add a new enum  to CacheExtentStyle.
Repository: godot
Issue: Using the 4.x Android editor with a Samsung S Pen stylus and "hold to right click" mode causes scrolling to get stuck on release, then scrolls when hovering
Labels: bug,platform:android,topic:editor,usability,needs testing,topic:input

### Godot version

4.0.3 (Android, side-loaded from official apk)

### System information

Android 13, Samsung Galaxy S21 Ultra with S Pen stylus

### Issue description

The editor touchscreen setting to simulate a right click on hold seems to cause some scrolling actions (eg, scrolling the inspector) to get "locked" into the scrolling behaviour on releasing the stylus touch. This then causes any subsequent hover over (S Pen supports hover to show position of cursor and reveal tooltips) or touch/drag on that element to "snap" the scroll amount of the element to the cursor's new location and continue scrolling. This "locked" scrolling continues until the user single-taps somewhere on the element.

Disabling the hold to right click functionality resolves the issue. Annoyingly, though the stylus has a secondary button, there's no way to use it to send a right click, necessitating the hold to right click behaviour.

### Steps to reproduce

[Video capture of the issue](https://imgur.com/OVQYaGX.mp4)

Enable the hold to right click setting in the editor settings (on by default).

Use the galaxy s pen to scroll eg the inspector pane.

Release the scroll and then hover the pen over the inspector again, eg to try to press an inspector property field to edit it.

In the video, when there is a small, open circle on the screen, that represents the stylus hovering, the large filled circle represents touch. So scrolling the inspector via the scrollbar or the inspector UI itself can cause this behaviour, as you can see the touch and drag initial scroll works as expected, after releasing the touch and then subsequently hovering, the element continues to scroll unexpectedly.

Sometimes scrolls do not cause the issue, it's intermittent - you can see my initial scroll via the scrollbar causes the issue, then a couple of attempts scrolling via dragging the inspector pane work fine, then another drag of the inspector pane causes the issue again. The relationship with the right click to hold behaviour (again, disabling this setting fixes the issue) makes me wonder if it's something to do with whatever movement/time threshold is being used to determine if a hold is a right click or not. The UI doesn't normally respond to hovers, so I wonder if the element in question is not receiving the "touch ended" signal or is somehow not processing it (maybe due to a simulated right click occuring during scroll?)
Repository: PowerToys
Issue: A tool that helps quickly select an alternative program to run a file 
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

![New video](https://github.com/microsoft/PowerToys/assets/43500097/c7ebe648-d7c0-4eac-a566-386252af146e)
A tool that helps to quickly select an alternative application to open or edit a file without going to context menu and searching a desired option. Menu would shows after clicking on a file with pressed certain key combination on a keyboard (e.g. Control+Windows). I am not satisfied with standard Windows solution where I have to search for  "Open with" option in long context menu and then open another popup to select an app that I want to use.

### Scenario when this would be used?

Faster option to edit a file or use another program

### Supporting information

_No response_
Repository: flutter
Issue: Migrate the frontend server to a persistent compilation daemon with an easier to maintain protocol
Labels: c: new feature,team,tool,dependency: dart,P2,team-tool,triaged-tool

The frontend_server currently communicates with tooling using a text-based protocol over stdin/stdout.

This makes evolving the API with a soft-transition difficult. For example, the hard transition needed to move past https://github.com/flutter/engine/pull/42568, would probably have been fine by itself, but it happened to land during a week with two other roll-blockers in the Dart SDK.

We could reduce the risk of roll-blockers in this area by migrating the frontend_server to an easier-to-evolve RPC protocol over a socket, for example, but I'm sure there are also other solutions in this space.

cc @eyebrowsoffire @aam FYI @christopherfujino