sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: hrtb + infer types break auto traits with return type notation 
Labels: T-compiler,C-bug,A-auto-traits,F-return_type_notation,A-higher-ranked

I tried [this code](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=0203af0a817618bc8fae81732ef23e4d):

```rust
#![feature(async_fn_in_trait)]
#![feature(return_type_notation)]

trait Foo {
    async fn bar(&self);
}

struct Bar;
impl Foo for Bar {
    async fn bar(&self) {}
}

fn build<T>(_: T) where T: Foo<bar(..): Send> {}

fn main() {
    build(Bar);
}
```

I expected it to compile, instead:

```
error[E0277]: `impl Future<Output = ()>` cannot be sent between threads safely
  --> src/main.rs:16:11
   |
16 |     build(Bar);
   |     ----- ^^^ `impl Future<Output = ()>` cannot be sent between threads safely
   |     |
   |     required by a bound introduced by this call
   |
   = help: the trait `for<'a> Send` is not implemented for `impl Future<Output = ()>`
note: required by a bound in `build`
  --> src/main.rs:13:41
   |
13 | fn build<T>(_: T) where T: Foo<bar(..): Send> {}
   |                                         ^^^^ required by this bound in `build`

For more information about this error, try `rustc --explain E0277`.
```

---

This error message is not super clear, but it's essentially equvialent to this code:

```rust
trait Foo {
    type Bar<'a> where Self: 'a;

    fn bar(&self) -> Self::Bar<'_>;
}

struct Bar;
impl Foo for Bar {
    type Bar<'a> = ();

    fn bar(&self) {}
}

fn build<T>(_: T) where T: Foo, for<'a> T::Bar<'a>: Send {}

fn main() {
    build(Bar);
}
```

Which results in:

```
error[E0277]: `<_ as Foo>::Bar<'a>` cannot be sent between threads safely
  --> src/main.rs:17:11
   |
17 |     build(Bar);
   |     ----- ^^^ `<_ as Foo>::Bar<'a>` cannot be sent between threads safely
   |     |
   |     required by a bound introduced by this call
   |
   = help: the trait `for<'a> Send` is not implemented for `<_ as Foo>::Bar<'a>`
note: required by a bound in `build`
  --> src/main.rs:14:53
   |
14 | fn build<T>(_: T) where T: Foo, for<'a> T::Bar<'a>: Send {}
   |                                                     ^^^^ required by this bound in `build`
```

So this is related to other higher-ranked projection normalization problems.
Repository: go
Issue: cmd/cgo/internal/testsanitizers: failures with `signal: segmentation fault` or `exit status 66`
Labels: Builders,NeedsFix,compiler/runtime

```
#!watchflakes
post <- pkg == "cmd/cgo/internal/testsanitizers" && (`exited with signal: segmentation fault` || `exited with exit status 66`)
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/c2cc3d2c08ab4c35eb614b170d75033b451027bf)):

    --- FAIL: TestMSAN (9.00s)
        --- FAIL: TestMSAN/msan2_cmsan (1.23s)
            msan_test.go:78: /workdir/tmp/TestMSAN1393420030/msan2_cmsan exited with signal: segmentation fault
    go tool dist: Failed: exit status 1


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: PowerToys
Issue: FancyZones CLI / API to allow scripting (example: .bat file) to auto-snap specific apps to specific zones
Labels: Idea-Enhancement,Product-FancyZones

### Description of the new feature / enhancement

I use VDesk to launch specific apps in specific desktops. 
For one of these virtual desktops, i use FancyZones, so that I can see my Outlook calendar, My Outlook Tasks and Microsoft Todo side by side in a 3-column layout. 




### Scenario when this would be used?

The reason i do this is since Microsoft has yet to allow seamless drag and drop between Todo and Outlook Calendar in the desktop Outlook App. 
So I use a method of a DASL Today filter in my Outlook Tasks viewer so that any Todo MyDay shows up in my Outlook Tasks, and from there I can drag and drop onto the calendar.
(Note: This Kludgy approach is entirely avoidable, if Microsoft either replaces TASKS completely by ToDo and /or allows seamless drag and drop from ToDo onto Outlook Calendar. I really cant fathom why Microsoft is acting stubborn about this. A ToDo List is useless unless tightly coupled/integrated with a Calendar, i.e. it Should be Outlook Calendar in a Microsoft-only world. And not via the Browser only, but also in the native Outlook App. 

### Supporting information

_No response_
Repository: PowerToys
Issue: Mouse Wheel Features
Labels: Idea-New PowerToy,Needs-Triage

### Description of the new feature / enhancement

Honestly, this might be more complicated than I imagine it in my head but here we go... I think a feature where the mouse wheel controls the volume on video players when hovering over the player would be incredible. Also, the ability to instantly mute and unmute by clicking the mouse wheel down while hovering over a video player would be a huge quality-of-life feature as well. I know that it is possible with some websites and 3rd party chrome extensions(i.e. twitch.tv and the FFZ extension). However, I don't know if this is possible universally with all video players. 

### Scenario when this would be used?

Not having to constantly find the manual volume slider on different types of video players like Vimeo, YouTube, and Twitch would be extremely useful, more efficient, and natural feeling. 

### Supporting information

https://i.imgur.com/HCU7k7H.png

https://i.imgur.com/m2FXLck.png
Repository: vscode
Issue: GTK+ module libcanberra-gtk-module.so cannot be loaded
Labels: bug,help wanted,verification-found,linux,snap,confirmed

Hello guys,

I'm using _OpenCV_ in VSCode (Ubuntu Software installation) and everything worked fine, until I updated my libraries (`sudo apt-get update/upgrade/full-upgrade`) I guess. But now VSCode or rather _OpenCV_ can't find the _GTK_ library. 

I've tested this succesfully:
 `GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-2.0 ./test` --> works

But when I specify the version gtk-3.0:
`GTK_PATH=/usr/lib/x86_64-linux-gnu/gtk-3.0 ./test` --> fails

 Normally the loaded version without using GTK_PATH is gtk-3.0 and then it shows me this error:
![image](https://user-images.githubusercontent.com/62354721/229435079-a85c5ff1-a8c3-4870-9340-bdc9404e595b.png)


I verified that the in `/usr/lib/x86_64-linux-gnu/gtk-3.0/modules` is:

![image](https://user-images.githubusercontent.com/62354721/229059188-4171f730-d2d9-4b6c-b103-447ca8ee727b.png)

Would appreciate to solve this warning and to understand why the .so cannot be loaded.

Thanks in advance


**UPDATE:** the example code can be executed without warnings in the normal gnome terminal, but VSCode seems to habe problems to find the specific libraries, so it's definitely _VSCode_.
Repository: vscode
Issue: Make history not remove entries for files that are quickly deleted and then restored
Labels: feature-request,workbench-history,keep

Type: <b>Bug</b>

1. Invoke Go To Definition on anything, then invoke Go Back
3. Go Forward is enabled now, but after several seconds, it got disabled.
4. Press Go Back again, the cursor doesn't move

https://user-images.githubusercontent.com/1330321/229702958-a47d1f45-0f26-4d7b-bd71-eef927d817d0.mp4

(it can still reproduce with sticky scroll disabled)

VS Code version: Code - Insiders 1.78.0-insider (2da5a0024fe2ca407f741f19340f1a10f4d692af, 2023-04-03T05:21:34.222Z)
OS version: Windows_NT x64 10.0.25330
Modes:
Sandboxed: Yes

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 5 5600X 6-Core Processor              (12 x 3700)|
|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.91GB (13.41GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|
</details>Extensions: none
<!-- generated by issue reporter -->
Repository: ant-design
Issue: Cascader组件支持类似于Select组件的分组功能
Labels: 💡 Feature Request,Inactive

### What problem does this feature solve?

可以将里面的数据进行分组，用户看起来更加清晰

### What does the proposed API look like?

```
const options = [
  {
    label: '监控中心',
    options: [
      {
        label: '监控策略',
        value: 'monitor-strategy',
      },
      {
        label: '静默策略',
        value: 'silent-strategy',
      },
      {
        label: '监控设置',
        value: 'monitor-setting',
        children: [
          {
            label: '告警级别设置',
            value: 'alert-level',
          },
          {
            label: '节假日管理',
            value: 'date-manage',
          },
        ],
      },
    ],
  },
  {
    label: '指标中心',
    options: [
      {
        label: 'Bamboo',
        value: 'bamboo',
        children: [
          {
            label: 'Little',
            value: 'little',
            children: [
              {
                label: 'Toy Fish',
                value: 'fish',
              },
              {
                label: 'Toy Cards',
                value: 'cards',
              },
              {
                label: 'Toy Bird',
                value: 'bird',
              },
            ],
          },
        ],
      },
    ],
  },
]
```

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: PowerToys
Issue: [Feature] Keyboard manager working with key state
Labels: Needs-Triage

### Description of the new feature / enhancement

This feature will introduce a way to have keybinds according to the key states of `Caps Lock`, `Scroll Lock` and `Num Lock`



### Scenario when this would be used?

This would be useful in places where a keyboard has scroll lock, when enabled this could act as media keys, and when disabled it would work as usual.

### Supporting information

This is particularly useful for controlling the media player while using the calculator and switching between the two with a press of a button.
Repository: storybook
Issue: [Bug]: Cannot read properties of undefined (reading 'custom') in Next.js project
Labels: bug,help wanted,nextjs,sev:S3

### Describe the bug

The issue started in https://github.com/storybookjs/storybook/releases/tag/v7.0.0-beta.29 and I suspect it might be related to https://github.com/storybookjs/storybook/pull/20615

<img width="1288" alt="image" src="https://user-images.githubusercontent.com/1671563/229736218-64f6b7b9-d0e9-457d-829d-edfb2f561770.png">


### To Reproduce

Check https://github.com/storybookjs/status-page
Go to `feat/upgrade-storybook`

### This has a workaround

The way to work around this issue is to customize webpack to mock out `assert`:

```ts
import type { StorybookConfig } from '@storybook/nextjs';
const config: StorybookConfig = {
  // ...
  webpackFinal: async (config) => {
    config.resolve = config.resolve || {};
    config.resolve.alias = {
      ...config.resolve.alias,
      // Mock assert to avoid issues like Cannot read properties of undefined (reading 'custom')
      assert: false,
    };
    return config;
  },
};
export default config;
```

### System

_No response_

### Additional context

_No response_
Repository: rust
Issue: Tracking Issue for `transmute_generic_consts`
Labels: T-lang,C-tracking-issue

<!--
NOTE: For library features, please use the "Library Tracking Issue" template instead.

Thank you for creating a tracking issue! 📜 Tracking issues are for tracking a
feature from implementation to stabilisation. Make sure to include the relevant
RFC for the feature if it has one. Otherwise provide a short summary of the
feature and link any relevant PRs or issues, and remove any sections that are
not relevant to the feature.

Remember to add team labels to the tracking issue.
For a language team feature, this would e.g., be `T-lang`.
Such a feature should also be labeled with e.g., `F-my_feature`.
This label is used to associate issues (e.g., bugs and design questions) to the feature.
-->

The feature gate for the issue is `#![feature(transmute_generic_consts)]`.

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

### Steps
<!--
Include each step required to complete the feature. Typically this is a PR
implementing a feature, followed by a PR that stabilises the feature. However
for larger features an implementation could be broken up into multiple PRs.
-->

- [] Implement the RFC (cc @rust-lang/XXX -- can anyone write up mentoring
      instructions?)
- [ ] Adjust documentation ([see instructions on rustc-dev-guide][doc-guide])
- [ ] Stabilization PR ([see instructions on rustc-dev-guide][stabilization-guide])

[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs

### Unresolved Questions
<!--
Include any open questions that need to be answered before the feature can be
stabilised.
-->

- Maybe feature gate should be `generic_const_array_size`?


XXX --- list all the "unresolved questions" found in the RFC to ensure they are
not forgotten

### Implementation history

Implemented in #106281

<!--
Include a list of all the PRs that were involved in implementing the feature.
-->
Repository: PowerToys
Issue: Open in wsl
Labels: Idea-New PowerToy,Product-File Explorer,Needs-Triage,Product-File Actions Menu

### Description of the new feature / enhancement

The feater should make it possible to open folders or files directly in linux. So that you can work directly on the files.

### Scenario when this would be used?

There are always tasks that are easier to handle in Linux, but it is always a big effort to find the files under Linux. Being able to just right click and open the file would make things a lot easier. An example is that I am currently testing how a certain Java program behaves under Linux and I have to go the long way to find the file again and again.

### Supporting information

I think it would be good if you have to select in the settings in which WSl environment you open the folder. It's less flexible, but faster.
Repository: godot
Issue: Documentation is missing example how to format arrays with string interpolation
Labels: discussion,topic:core,documentation

### Godot version

ef025711a

### System information

ArchLinux x11

### Issue description

```gdscript
var array := ["a", "r", "r", "a", "y", "s"]
print("fstrings dont work with %s anymore" % array)
```
results in: 
```c++
ERROR: not all arguments converted during string formatting
   at: validated_evaluate (core/variant/variant_op.h:947)
```
I expect it to result in `fstrings dont work with ["a", "r", "r", "a", "y", "s"] anymore`.

### Steps to reproduce

run mrp or run example code


### Minimal reproduction project

[bug.zip](https://github.com/godotengine/godot/files/11147352/bug.zip)
Repository: rust
Issue: Tracking Issue for `x suggest`
Labels: T-compiler,T-bootstrap,C-tracking-issue,T-libs,E-needs-design

Tracking issue for `x suggest` subcommand and implementation of recommendations. Note that this isn't a traditional tracking issue for a feature but just a place to keep track of implementation. 

See the [zulip stream](https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/tool.20to.20suggest.20subset.20of.20tests) and the [initial issue](https://github.com/rust-lang/rust/issues/97339) for more information and rationale about this change.

- [x] Initial PR (#106249)
- [x] `rustc-dev-guide` (rust-lang/rustc-dev-guide#1660)
- [ ] `tidy` lint for suggestion tests, do we want this?
- [ ] Further suggestions

cc @albertlarsan68 @jyn514
Repository: create-react-app
Issue: How to get very concise env variable names as I could if I was using DefinePlugin directly
Labels: needs triage

I'm moving from Next.js to CRA and my application contains a lot of debug calls which need to be removed at compile time (using dead code elimination). Since there are a lot of these calls across the application, I'm looking for the most concise and clean way of writing them. Currently a call looks like this:

`DEV && trace("message")`

where `DEV` is defined at compile time using DefinePlugin, thus enabling the compiler to remove it in non development environments.

I'm looking for the same behavior in CRA (where access to DefinePlugin is not directly available), since writing `process.env.REACT_APP_DEV && trace("message")` a lot of times would be more time consuming and it would make the code a lot harder to read.

Thanks
Repository: flutter
Issue: Extended `NavigationRail` vs Standard Navigation Drawer
Labels: c: new feature,framework,f: material design,P3,team-design,triaged-design

This is a discussion issue for `NavigationRail`

Regular `NavigationRail` matches M3 [specs](https://m3.material.io/components/navigation-rail/overview).

However, there is no extended `NavigationRail` in the M2 or M3 specs. 
This was a custom behavior added in  https://github.com/flutter/flutter/pull/49574.

![75568918-039c4580-5a09-11ea-8f71-7c6c959529f0](https://user-images.githubusercontent.com/48603081/229777417-e3bc0b12-5040-4942-ad76-eec198a49393.gif)



It seems the current extended `NavigationRail` doesn't really match any M3 specs. Where you can hover on the item and only see the regular indicator hover size since the indicator is the same size as the regular one when using extended.




https://user-images.githubusercontent.com/48603081/229777411-097e15ea-37ea-4da2-89ec-88639873a8ed.mov


______________________________________


### Update the `NavigationRail` indicator style.
Match screenshot I found in https://m3.material.io/get-started
![Screenshot 2023-04-04 at 14 11 37](https://user-images.githubusercontent.com/48603081/229779280-2a53b613-b074-4837-a32d-8cf95efa3ca7.png)



### or 

### Deprecate `NavigationRail.extended` for M3, in favor of [Standard Navigation Drawer](https://github.com/flutter/flutter/issues/123113)  which visually looks similar.
Repository: material-ui
Issue: [Select] Menu opens above input with lots of options in v5 without a maxHeight
Labels: bug 🐛,component: select,package: material-ui

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

_No response_

### Current behavior 😯

See expected behavior first.
in v5 this does not work, and I tried a lot of different props and it does not work. Behavior in v5:
![select v5](https://user-images.githubusercontent.com/3062698/229815305-c029e405-305b-460d-95e9-05da033d8426.gif)

This popover over the input also happens when we have a lot of options that does not fit into screen, it's not just with resizing. I can live without the resizing part, but when I click on the input to open the menu, the popover should open always below the input.

### Expected behavior 🤔

In v4 we could use this props in `Select` to have the menu always below the input: 
```
MenuProps={{
            anchorOrigin: {
              vertical: "bottom",
              horizontal: "left"
            },
            getContentAnchorEl: null
          }}
```

![select v4](https://user-images.githubusercontent.com/3062698/229778929-e543ff68-c95c-4cff-b987-62fe7d1f0629.gif)


### Context 🔦

I want the same behavior as in v4

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: PowerToys
Issue: [FancyZones] Make it possible to have any zone size
Labels: Needs-Triage

### Description of the new feature / enhancement

Remove minimum size limitations

### Scenario when this would be used?

I use the laptop monitor (14'') as a place for chat, time tracking and issue tracking. One of the apps I use can have a very tiny portion of the window visible and still be useful. I want to be able to snap it into its smallest useful size while fitting other stuff around that need more space

### Supporting information

This is the space I need for it:

![image](https://user-images.githubusercontent.com/14339291/229789850-0fcbfdb0-8194-4a47-8f7e-c1ff846eb339.png)

And this is the minimum size available:

![image](https://user-images.githubusercontent.com/14339291/229790334-d3ec6056-8169-48a1-bd09-5602702fc3aa.png)
Repository: storybook
Issue: [Bug]: Vite Storybook's fails silently with a blank screen if globs target `.mdx` files but `addon-docs` is not configured.
Labels: bug,addon: docs,mdx

### Describe the bug

In the following scenario:

1. Uses a Vite based framework
2. Stories globs targets `.mdx` somehow (like the default)
3. `@storybook/addon-docs` is not configured in main, both not explicitly and the `@storybook/addon-essentials` must also not be there.

Storybook starts up "fine", but shows a blank screen without content, no error in the terminal. The browser console has a React error.

### To Reproduce

https://stackblitz.com/edit/github-g8fqna?file=.storybook/main.js

### System

_No response_

### Additional context

Webpack-based projects will instead fail to start with:

```
ModuleParseError: Module parse failed: Unexpected token (11:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import StackAlt from './assets/stackalt.svg';
|
> <Meta title="Example/Introduction" />
|
| <style>
    at handleParseError (/Users/jeppe/dev/temp/sb-no-addons-wp/node_modules/webpack/lib/NormalModule.js:741:23)
    at /Users/jeppe/dev/temp/sb-no-addons-wp/node_modules/webpack/lib/NormalModule.js:843:9
    at processResult (/Users/jeppe/dev/temp/sb-no-addons-wp/node_modules/webpack/lib/NormalModule.js:597:14)
    at /Users/jeppe/dev/temp/sb-no-addons-wp/node_modules/webpack/lib/NormalModule.js:646:9
    at /Users/jeppe/dev/temp/sb-no-addons-wp/node_modules/loader-runner/lib/LoaderRunner.js:368:5
    at iterateNormalLoaders (/Users/jeppe/dev/temp/sb-no-addons-wp/node_modules/loader-runner/lib/LoaderRunner.js:213:12)
    at /Users/jeppe/dev/temp/sb-no-addons-wp/node_modules/loader-runner/lib/LoaderRunner.js:205:7
    at /Users/jeppe/dev/temp/sb-no-addons-wp/node_modules/webpack/lib/NormalModule.js:626:20
    at Array.eval (eval at create (/Users/jeppe/dev/temp/sb-no-addons-wp/node_modules/tapable/lib/HookCodeFactory.js:28:14), <anonymous>:12:1)
    at runCallbacks (/Users/jeppe/dev/temp/sb-no-addons-wp/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:18:17)
    at /Users/jeppe/dev/temp/sb-no-addons-wp/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:149:7
    at /Users/jeppe/dev/temp/sb-no-addons-wp/node_modules/graceful-fs/graceful-fs.js:123:16
    at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)

WARN Broken build, fix the error above.
WARN You may need to refresh the browser.
```