sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: PowerToys
Issue: Option to Group all PowerToys Windows 11 context menu items in one menu
Labels: Idea-Enhancement,Area-Setup/Install,Area-Runner

### Description of the new feature / enhancement

**1. Option on General Settings to Group (or not Group) all context menu items**

As the number of items grows, it would be good if we could have the option to keep all of the PowerToys menu items together in one PowerToys menu item on the Windows 11 and on the legacy Windows 10) right-click menu - maybe with separate options for both or just one option.

Then it would become easier to add new functions to be available from the main Windows 11 context menu without overloading this (from what I understand, part of the reason it was changed was to reduce such overload).

**2. More options for where the context menu items are displayed**

To provide users with control over which parts of the context menu structure the individual tools are displayed, and so that tools that are used regularly can be only the Windows 11 menu, whilst those used less frequently can be on the legacy menu, EACH item that can have a context menu should ideally have the following options [re-ordered from original post]:
* **Windows 11 menu only**, which would then not have it on the legacy or the extended menus
* **Legacy (Show More Options) menu only** which have it on both the legacy and extended menu
* **Both** which is effectively the same as the current "default and extended" option being used
* **Extended Only** mode which is as per the current "extended only" option being used

### Scenario when this would be used?

User wants to keep new Windows 11 menu just focussed on most used features and have lesser used features in the "Show More Options" menu.

User wants the Show More Options menu to only show those items (other than system commands) that are not available on the main Windows 11 menu.

User wants to group all PowerToys items together on the menu, so that the menu length does not grow too much and helps future proof the tool as more tools become available, can be used to avoid context menu overload :-)

### Supporting information

_No response_
Repository: flutter
Issue: FFI plugins should be able to access system dlls in sandbox
Labels: tool,platform-windows,c: proposal,P3,team-tool,triaged-tool

`flutter create --template plugin_ffi --platform=windows` + `flutter build windows --release` requires manually copying system dlls.

This is rather undesirable.

We should investigate how to allow opening system dlls from the sandbox.

> > The flutter create --template=ffi_plugin --platform=windows does work in the sandbox?
>
> So I created a plugin using this command, `cd` to the example folder, ran `flutter build windows --release`, and then copied the `Release` folder that contains the executable into the sandbox, and see for yourself that it complains first about system32 dlls:
![image](https://user-images.githubusercontent.com/49842031/199929880-002ede67-a984-4e4b-a34c-670a1c922b4d.png)
> 
> Now I will copy the dlls and run the app again:
>
> ![image](https://user-images.githubusercontent.com/49842031/199931025-c91e6178-037c-4dd5-b5af-a15d08455e1c.png)

_Originally posted by @Haidar0096 in https://github.com/flutter/flutter/issues/114641#issuecomment-1303132940_
Repository: PowerToys
Issue: FancyZones for windows without title bars.
Labels: Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

Electron js with the following, creates a cool feature where the window can be dragged by clicking anywhere on the window.

`-webkit-app-region: drag;`

However, it is typical they will then hide the title bar

`titleBarStyle=hidden`

Without a title bar, holding shift while dragging does not activate FancyZones.


### Scenario when this would be used?

I have verified that holding Windows key along with left or right arrow key, does activate moving between Fancy zones.

Would love to understand if fixing this, is better in the app using `-webkit-app-region: drag;` or if can be addressed in FancyZones.

### Supporting information

App where this can be reproduced is video stream playing in MultiViewer for F1.  But a subscription is needed in order to login, etc.
Repository: rust
Issue: Lint for destructuring a unit struct without binding to a value
Labels: A-lints,C-feature-request

Sourced from @dtolnay's [Rust Quiz #25](https://dtolnay.github.io/rust-quiz/25).

```rust
use std::fmt::{self, Display};

struct S;

impl Display for S {
    fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
        formatter.write_str("1")
    }
}

impl Drop for S {
    fn drop(&mut self) {
        print!("2");
    }
}

fn f() -> S {
    S
}

fn main() {
    let S = f();
    print!("{}", S);
}
```

Prints `212` because the `let S = f();` actually performs an infallible destructuring. This wouldn't be a problem in the case that S was anything but a unit struct, since then you'd have to be explicit about dropping the destructured value. (i.e. `let ComplexStruct (_) = t();`)

But since unit structs don't contain anything, destructuring them is ambiguous with direct variable assignment.

Adding a lint to detect this should help. 

PS. Yes, I checked with `#[clippy::all]`.
Repository: godot
Issue: Constants not inferred in a class hierarchy
Labels: bug,topic:gdscript,confirmed

### Godot version

3.5.1.stable

### System information

all

### Issue description

Hi,

In a class hierarchy A -> B -> C, the parser complains about constants defined in C referring to constants of the class A. Variables in C referring to constants of A are accepted.
```
class A:

extends Node
const ONE = 1

class B:

extends A
const THE_ONE = ONE # ok

class C:

extends B
var top_one = ONE # ok
const A_ONE = A.ONE # ok
const TOP_ONE = ONE # nok
```
What am I missing something here?

![image](https://user-images.githubusercontent.com/40200623/199973949-d15584d6-9734-4e4b-bcb7-5826f5f3decc.png)


### Steps to reproduce

MRP

### Minimal reproduction project

[Contants.zip](https://github.com/godotengine/godot/files/9938256/Contants.zip)
Repository: terminal
Issue: Backspace deletes whole word instead of character
Labels: Needs-Repro,Area-Input,Issue-Bug,Product-Terminal

### Windows Terminal version

1.15.2874.0, 1.16.2641.0

### Windows build number

 10.0.19043.0

### Other Software

_No response_

### Steps to reproduce

type several word in shell command line and press backspace.

### Expected Behavior

Backspace deletes character left unstead od whole words

### Actual Behavior

In Power Shell or Cmd running in Windows Terminal, pressing backspace deletes whole word left instead of character left. It's interesting, once ssh to remote linux host from that powershell window, backspace behavior becomes normal. I found it on my home PC and on at workplace's PC.
Repository: PowerToys
Issue: Improve the mouse highlithing feature
Labels: Idea-Enhancement,Needs-Triage

### Description of the new feature / enhancement

Mouse highlighting is a very useful feature for me as I have a mix of 4K and 1080p monitors on my PC. Every time I move the mouse to the 4K monitor, depending on the image on the screen, it can be very difficult to identify the mouse pointer right away.
If the lines used to indicate the position of the mouse had different colors, for example, the top and the left ones in one color and the bottom and the right ones in another, it would make it much easier to quickly locate the mouse pointer.
This is my suggestion to improve this tool.

### Scenario when this would be used?

Cases where the PC has different resolution screens, such as is my case.

### Supporting information

_No response_
Repository: rust
Issue: impl_trait_in_fn_trait_return breaks with ref params
Labels: T-compiler,C-bug,requires-nightly,F-impl_trait_in_fn_trait_return

I tried the new `impl_trait_in_fn_trait_return` feature tracked at https://github.com/rust-lang/rust/issues/99697

```rust
#![feature(impl_trait_in_fn_trait_return)]

// Having the closure take any kind of reference as parameter results in a
// compilation error. Turning "&()" into "()" fixes it.

fn allowed_in_ret_type() -> impl Fn(&()) -> impl Into<u32> {
    |_| 0u32
}

// This compiles just fine:
// fn allowed_in_ret_type() -> impl Fn(()) -> impl Into<u32> {
//     |_| 0u32
// }
```

I expected to see this happen: 

The code should compile.

Instead, this happened:

```
error: concrete type differs from previous defining opaque type use
--> src/main.rs:4:9
    |
4 |     |_| 0u32
    |         ^^^^ expected `impl Into<u32>`, got `u32`
    |
note: previous use here
    --> src/main.rs:4:5
    |
4 |     |_| 0u32
    |     ^^^^^^^^

    error[E0720]: cannot resolve opaque type
    --> src/main.rs:3:45
    |
3 | fn allowed_in_ret_type() -> impl Fn(&()) -> impl Into<u32> {
    |                                             ^^^^^^^^^^^^^^ recursive opaque type
        4 |     |_| 0u32
        |     -------- returning here with type `[closure@src/main.rs:4:5: 4:8]`

        For more information about this error, try `rustc --explain E0720`.
```

### 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.67.0-nightly (edf018221 2022-11-02)
```
Repository: PowerToys
Issue: Remenber window placement for different monitor setups
Labels: Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

Have windows remember where they were for each monitor used and automatically snap to the correct zones when attached to each monitor.

### Scenario when this would be used?

For hybrid work many of us have an office setup and an home setup and they are likely not identical.  When we work from a different location, it'd be great to not have to drag windows to the correct zones for that setup.

### Supporting information

DisplayFusion does this a bit but is a paid app and I have inconsistent results using it.
Repository: PowerToys
Issue: Zone corners not rounded when activating (with shift key)
Labels: Issue-Bug,Product-FancyZones,Priority-3

### Microsoft PowerToys version

0.64.0

### Installation method

Microsoft Store

### Running as admin

No

### Area(s) with issue?

FancyZones

### Steps to reproduce

Make a layout, and see the expected vs actual behaviour below when dragging windows using shift key.

### ✔️ Expected Behavior

When using shift key to enable FancyZones, the corners of the defined zones should be rounded to fit in with the Windows 11 design (like in the layout editor).

![image](https://user-images.githubusercontent.com/49895442/200003185-ae3cc344-f63f-4898-8467-b18e929f480e.png)


### ❌ Actual Behavior

![Screenshot_20221105_014120](https://user-images.githubusercontent.com/49895442/200003413-65204e69-d018-49ec-bf81-fd4147205a1d.png)

Instead, the corners are sharp.

### Other Software

_No response_
Repository: PowerToys
Issue: Each desktop allowed a Custom Image
Labels: Idea-Enhancement,Needs-Triage

### Description of the new feature / enhancement

When you switch desktops, the background / desktop image switches to a custom one assigned to that desktop.

More generally, display something so user can identify which desktop they are on without having to interact or change it.


### Scenario when this would be used?

This would allow the user to more easily determine which desktop/page they were on - without having to think about it.  

If a user keeps certain windows on certain desktops, then being able to identify which desktop you are on makes it easier to not get lost, and to jump to the desktop you want.

### Supporting information

_No response_
Repository: PowerToys
Issue: PowerToys Run does not use the correct Edge profile when performing a search
Labels: Issue-Bug,Product-PowerToys Run,Priority-2

### Microsoft PowerToys version

0.64.0

### Installation method

WinGet

### Running as admin

Yes

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

I have several Edge profiles, and have configured Edge to use a specific profile when opening new URLs:

![image](https://user-images.githubusercontent.com/12860484/200015575-6c3a2480-7141-4e5b-bda3-5d46325958a9.png)

![image](https://user-images.githubusercontent.com/12860484/200015976-4d4adb59-eafb-45a9-9508-61cceb0b0c43.png)

I would therefore expect that searching via PowerToys Run uses *that* Edge profile.

Instead, it seems that PowerToys Run uses whatever profile was last active.


### ✔️ Expected Behavior

Searching the web using PowerToys Run should use the configured Edge profile.

### ❌ Actual Behavior

The most recently used Edge profile is used.


### Other Software

Windows 10 build 10.0.19045.2130.amd64fre.vb_release.191206-1406
Edge Version 107.0.1418.26 (Official build) (64-bit)
Repository: PowerToys
Issue: File Locksmith - Unlock file
Labels: Idea-Enhancement,Product-File Locksmith

### Description of the new feature / enhancement

Many of the existing similar tools offer to unlock the file, rather than killing the target process. In many cases this is successful. I don't know how this technically works but it is possible and should be added here too.

Tool where this is possible:
Unlocker
IObit Unlocker

### Scenario when this would be used?

A file is locked by process but can be unlocked without killing the process.

### Supporting information

_No response_
Repository: go
Issue: x/tools/gopls: support "go to implementation" (textDocument/implementation) for function types
Labels: Documentation,help wanted,NeedsInvestigation,FeatureRequest,gopls,Tools

As of gopls v0.10.1, the go to implementation feature of the LSP supports finding all of the types which implement an interface via the "Go to Implementation" feature in VS Code and Neovim etc.

This is a feature request to add the same support for named function types, and anonymous functions.

# Current behaviour

https://user-images.githubusercontent.com/1029947/200022424-960e463d-7581-47af-ac34-113a2b894fbf.mov

Go also allows you to define function types and also accept functions as a parameter. This is seen in the standard library, e.g. https://pkg.go.dev/net/http#HandlerFunc and https://pkg.go.dev/strings#IndexFunc but here's a simple example.

```go
type FunctionType func(s string, i int)
```

Any function that has the same signature implements that function type.

```go
func ImplementationOfFunctionType1(s string, i int) {
}

func ImplementationOfFunctionType2(s string, i int) {
}
```

So, you can use it like this:

```go
func TestFunctionType(f FunctionType) {
	f("s", 0)
}
```

The current behaviour of `gopls` does not allow you to go to the implementation of `f` from within the function body of the `TestFunctionType` function.

https://user-images.githubusercontent.com/1029947/200023200-f1bb4f6e-17d5-4806-a0f4-ebfe348f95e3.mov

And this same behaviour is true of anonymous functions:

https://user-images.githubusercontent.com/1029947/200023283-dfb77b4b-f5d4-45b1-9306-569008d5a0bb.mov

# Expected behavior

It should be possible to go the functions which implement the signature, as per this example.

https://user-images.githubusercontent.com/1029947/200023352-e230dae8-ce32-48bc-809e-8db7ca622c1b.mov

I've also tested the same behaviour with my modified version of the `gopls` Language Server running with Neovim.

# Implementation

I've got an implementation of the functionality to contribute.
Repository: PowerToys
Issue: Mouse Utilities: Draw Crosshairs In Place With Hotkey Toggle
Labels: Idea-Enhancement,Product-Mouse Utilities

### Description of the new feature / enhancement

The crosshairs should be able to be locked in place with a hotkey, then jump back to the mouse when the hotkey is once again toggled.

### Scenario when this would be used?

In scenarios where one is entering data from a row in a large table, the crosshairs could remain in place to guide the user, while allowing interaction with another window. 

![image](https://user-images.githubusercontent.com/94139233/200039270-edea9ce4-5774-4d84-a22c-07c0168e62c6.png)

### Supporting information

_No response_
Repository: create-react-app
Issue: Add support for default expansion of environment variables by bumping dotenv-expand dependency
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

<!--
  Provide a clear and concise description of what the problem is.
  For example, "I'm always frustrated when..."
-->

Sometimes you may depend on environment variables in some way and may want to provide a default value in case one is not set. For instance, we have an API gateway that we need to configure locally and it's based on the current URL. In `.env` we set it up as follows:

```env
REACT_APP_API_GATEWAY_BASE_URL=localhost:${PORT}
```

This works as long as `PORT` is set. `create-react-app` defaults to port `3000` in case it's not set. Ideally, we'd like to express that in our `.env` file using default expansion:

```env
REACT_APP_API_GATEWAY_BASE_URL=localhost:${PORT:-300}
```

Unfortunately, this doesn't work as the current version of [dotenv-expand](https://www.npmjs.com/package/dotenv-expand) does not support it. Default expansion was introduced in `6.0.0`.

### Describe the solution you'd like

<!--
  Provide a clear and concise description of what you want to happen.
-->

Consider bumping [dotenv-expand](https://www.npmjs.com/package/dotenv-expand) (and by extension, [dotenv](https://www.npmjs.com/package/dotenv)) to at least version `6.0.1` to add support for [default expansion](https://github.com/motdotla/dotenv-expand/pull/39) (e.g., `${VAR:-DEFAULT}`. This is helpful when you want to provide a default value in case an environment variable isn't set.

### Describe alternatives you've considered

<!--
  Let us know about other solutions you've tried or researched.
-->

None.

### Additional context

<!--
  Is there anything else you can add about the proposal?
  You might want to link to related issues here, if you haven't already.
-->

None.
Repository: go
Issue: cmd/pprof: TestDisasm failures
Labels: help wanted,OS-Linux,NeedsFix,compiler/runtime

```
#!watchflakes
post <- pkg == "cmd/pprof" && test == "TestDisasm"
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/9ff5f209aadd5a0a166517de2fffcec21a974b62)):

    --- FAIL: TestDisasm (1.41s)
        pprof_test.go:118: pprof failed: exit status 2
            no matches found for regexp: main.main


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: go
Issue: sync: TestMutexFairness failure on openbsd-arm64-jsing
Labels: NeedsInvestigation,compiler/runtime

```
#!watchflakes
post <- pkg == "sync" && test == "TestMutexFairness"
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/8ef98da260668748eb1591709daaec855d9d7252)):

    --- FAIL: TestMutexFairness (10.02s)
        mutex_test.go:227: can't acquire Mutex in 10 seconds


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: go
Issue: net/http: test timeout in TestCancelRequestWhenSharingConnection
Labels: NeedsInvestigation

```
#!watchflakes
post <- pkg == "net/http" && (test == "TestCancelRequestWhenSharingConnection" || log ~ `^\s+TestCancelRequestWhenSharingConnection.* \(\d+m.*\)`) && log ~ `panic: test timed out`
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/0a57dc6342ac2a1b04f2aa8665a8749ae85e34e6)):

    2022/11/03 23:02:53 http2: server: error reading preface from client 127.0.0.1:36996: bogus greeting "CONNECT golang.fake.tld:"
    2022/11/03 23:02:53 http2: server: error reading preface from client 127.0.0.1:58574: bogus greeting "CONNECT golang.fake.tld:"
    2022/11/03 23:02:53 http: TLS handshake error from 127.0.0.1:42806: write tcp 127.0.0.1:33837->127.0.0.1:42806: i/o timeout
    2022/11/03 23:02:53 http: TLS handshake error from 127.0.0.1:60338: EOF
    2022/11/03 23:02:53 http: TLS handshake error from 127.0.0.1:51204: EOF
    2022/11/03 23:02:54 http: TLS handshake error from 127.0.0.1:54592: read tcp 127.0.0.1:33065->127.0.0.1:54592: use of closed network connection
    2022/11/03 23:02:54 http: TLS handshake error from 127.0.0.1:54594: read tcp 127.0.0.1:33065->127.0.0.1:54594: use of closed network connection
    2022/11/03 23:02:54 http: TLS handshake error from 127.0.0.1:54588: read tcp 127.0.0.1:33065->127.0.0.1:54588: use of closed network connection
    2022/11/03 23:02:54 http: TLS handshake error from 127.0.0.1:54602: read tcp 127.0.0.1:33065->127.0.0.1:54602: use of closed network connection
    2022/11/03 23:02:54 http: TLS handshake error from 127.0.0.1:54586: read tcp 127.0.0.1:33065->127.0.0.1:54586: use of closed network connection
    ...
    panic: test timed out after 3m0s
    running tests:
    	TestCancelRequestWhenSharingConnection (2m58s)
    	TestCancelRequestWhenSharingConnection/h1 (2m57s)
    
    goroutine 24537 [running]:
    panic({0x841b80, 0xc000612370})
    	/tmp/workdir-host-linux-amd64-wsl/go/src/runtime/panic.go:987 +0x3bb fp=0xc000694f10 sp=0xc000694e50 pc=0x437ebb
    testing.(*M).startAlarm.func1()
    	/tmp/workdir-host-linux-amd64-wsl/go/src/testing/testing.go:2223 +0x3b9 fp=0xc000694fe0 sp=0xc000694f10 pc=0x503259
    runtime.goexit()
    	/tmp/workdir-host-linux-amd64-wsl/go/src/runtime/asm_amd64.s:1594 +0x1 fp=0xc000694fe8 sp=0xc000694fe0 pc=0x46d041
    created by time.goFunc
    	/tmp/workdir-host-linux-amd64-wsl/go/src/time/sleep.go:176 +0x32


— [watchflakes](https://go.dev/wiki/Watchflakes)