sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: 'static lifetime ignored when applied to GAT
Labels: A-lifetimes,A-associated-items,T-compiler,A-GATs

I tried [this code](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=9d6bf566b87dfd31acf4049377f34912):
```rust
#![feature(generic_associated_types)]

trait Table {
    type Blocks<'a>: Iterator where Self: 'a;

    fn blocks(&self) -> Self::Blocks<'_>;
}

fn box_static_block<T: 'static>(block: T) {
    let _any: Box<dyn std::any::Any> = Box::new(block);
}

fn clone_static_table<'a, T>(table: &'a T) 
where 
    T: Table,
    <<T as Table>::Blocks<'a> as Iterator>::Item: 'static,
{
    for block in table.blocks() {
        box_static_block(block);
    }
}
```

I expected this code to compile, but it doesn't. rustc suggests this:
```
error[E0310]: the associated type `<<T as Table>::Blocks<'_> as Iterator>::Item` may not live long enough
  --> src/lib.rs:19:9
   |
19 |         box_static_block(block);
   |         ^^^^^^^^^^^^^^^^
   |
   = help: consider adding an explicit lifetime bound `<<T as Table>::Blocks<'_> as Iterator>::Item: 'static`...
   = note: ...so that the type `<<T as Table>::Blocks<'_> as Iterator>::Item` will meet its required lifetime bounds...
note: ...that is required by this bound
  --> src/lib.rs:9:24
   |
9  | fn box_static_block<T: 'static>(block: T) {
   |                        ^^^^^^^

For more information about this error, try `rustc --explain E0310`.
error: could not compile `playground` due to previous error
```

But such bound already exists and does seemingly nothing.

### Meta
`rustc --version --verbose`:
```
rustc 1.59.0-nightly (db9d361a4 2021-11-28)
binary: rustc
commit-hash: db9d361a4731ca0bb48533fab6297a8fea75696f
commit-date: 2021-11-28
host: x86_64-unknown-linux-gnu
release: 1.59.0-nightly
LLVM version: 13.0.0
```
Repository: kubernetes
Issue: Add UDP NetworkPolicy tests for windows
Labels: kind/feature,sig/windows,help wanted,needs-triage

### What would you like to be added?

Right now our networkpolicy tests for windows dont test UDP connections.

### Why is this needed?

In some corner cases, adding UDP test coverage will round out our ability to conform Windows nodes to the broader networkpolicy conformance initiatives we have.
Repository: PowerToys
Issue: [Settings] Improvements for update UX
Labels: Idea-Enhancement,Product-Settings,Area-User Interface,Tracker

### Description of the new feature / enhancement

Just a small, nice to have, thing. Would like it if a progress bar is visible while downloads are ongoing.
Also file size and received MBs would be nice. (as mentioned specifically in #19706)

### Scenario when this would be used?

Updating. Sometimes I'm using a wifi that is slow or not very reliable, so with this I can see if progress is just slow or has stopped.
Repository: electron
Issue: [Feature Request]: Add WebContents.hideDevTools and WebContents.showDevTools APIs
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Problem Description

In my app I close the window like this: the window gets hidden -> an IPC message is sent to the window to tell it that it's about to closed (so that it can save stuff) -> the window sends an IPC message back to say that everything is saved -> if everything went alright the window is then closed for real. I haven't added this yet but I'd also like to add some way of detecting that something went wrong and then I'll show the window again.

IMO that's nice because the user gets instant feedback, the window gets all the time it needs to save its state, and if something happens the error is not just lost into the void, but the window gets shown again for debugging purposes.

The only minor detail that I can't take care of currently is doing the same with the devtools window, if the window had its devtools window open I should hide and potentially show that again, but to the best of my knowledge there are no APIs for doing that.	

### Proposed Solution

I think there should be 2 new APIs, `WebContents.hideDevTools` and `WebContents.showDevTools`, that would work like the analogous APIs for BrowserWindows basically, but for the devtools window.

### Alternatives Considered

Doing nothing, but the perfectionist in me wouldn't like that.

### Additional Information

_No response_
Repository: pytorch
Issue: Fusing module with multiple hooks causes `RuntimeError: OrderedDict mutated during iteration` in fuse_known_modules
Labels: oncall: quantization,low priority,triaged,Stale

## 🐛 Bug

if a module that is to be fused by `torch.quantization.fuse_modules.fuse_known_modules` has multiple hooks, then a `RuntimeError: OrderedDict mutated during iteration` will be raised since the loops iterate over the dict `items()` but delete from the dict during iteration.

## To Reproduce

```python
from torch.quantization.fuse_modules import fuse_known_modules
from torch.nn import Conv2d, ReLU

conv = Conv2d(10, 10, (3,3))
relu = ReLU()

# register any forward hooks to relu or pre forward hooks to conv
relu.register_forward_hook(lambda x: None)
relu.register_forward_hook(lambda x: None)

fuse_known_modules([conv, relu])
```

A quick fix would be unwrapping the `.items()` iterations into lists



cc @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel
Repository: go
Issue: os: Environ doc comment does not describe keys containing "="
Labels: ExpertNeeded,Documentation,OS-Windows,NeedsInvestigation

In investigating #49882, I noticed some other suspicious environment variables from `os.Environ()`. I'll write a regression test demonstrating the bug and then update here.
Repository: flutter
Issue: FlutterFragment should support owning the engine across configuration change
Labels: c: new feature,platform-android,engine,customer: google,P2,team-android,triaged-android

Currently, the FlutterFragment can create and own its own engine or have one injected into it. 

The FlutterFragment creating its own engine can have a problem when the engine should outlive the instance of the FlutterFragment. This can happen on configuration change (https://developer.android.com/guide/topics/resources/runtime-changes) such as rotating the screen. When the FlutterFragment is destroyed and recreating with the new configuration, the same FlutterEngine instance should be preserved. 

This isn't a problem generally because we instruct Android to not change configuration on the FlutterActivity https://github.com/flutter/flutter/blob/361d416e6abb66bf601c5a6600fbc37706bb6c14/packages/flutter_tools/templates/app_shared/android.tmpl/app/src/main/AndroidManifest.xml.tmpl#L12. But this isn't possible in hybrid apps where native UI also exist alongside the FlutterFragment. In that case, the native UI relies on the other fragments in the activity being destroyed and recreated to adjust to the new configuration. But the FlutterFragment should be destroyed and recreated with the FlutterEngine it owns also being destroyed and recreated. 

This can be done either by temporarily saving the owned FlutterEngine instance in the FlutterEngineCache or by using Android's https://developer.android.com/reference/androidx/lifecycle/ViewModel mechanism, as long as that AndroidX mechanism is already part of the Flutter engine https://github.com/flutter/engine/blob/master/tools/androidx/files.json#L3 and we're not paying more size cost for it.
Repository: storybook
Issue: Conflicting exports in `@storybook\components` and `@storybook\addon-docs`
Labels: bug,addon: docs

**Describe the bug**
A clear and concise description of what the bug is.
When building storybook with `storybook-builder-vite` (rollup) a warning about conflicting namespaces is produced:

```
➤ YN0000: Conflicting namespaces: "..\..\node_modules\@storybook\components\dist\esm\index.js" re-exports "components" from both "..\..\node_modules\@storybook\components\dist\esm\index.js" and "..\..\node_modules\@storybook\components\dist\esm\typography\DocumentFormatting.js" (will be ignored)
➤ YN0000: Conflicting namespaces: "..\..\node_modules\@storybook\addon-docs\dist\esm\blocks\index.js" re-exports "SourceState" from both "..\..\node_modules\@storybook\addon-docs\dist\esm\blocks\Canvas.js" and "..\..\node_modules\@storybook\addon-docs\dist\esm\blocks\Source.js" (will be ignored)
```

I don't think this is a major issue but thought it was be nice to flag it.

**To Reproduce**
Please create a reproduction by running `npx sb@next repro` and following the instructions. Read our [documentation](https://storybook.js.org/docs/react/contribute/how-to-reproduce) to learn more about creating reproductions.
Paste your repository and deployed reproduction here. We prioritize issues with reproductions over those without.
Building `storybook-builder-vite` will show the warnings but you can see them here:
https://github.com/eirslett/storybook-builder-vite/runs/4230945422?check_suite_focus=true

**System**
Please paste the results of `npx sb@next info` here.

**Additional context**
Add any other context about the problem here.
Repository: pytorch
Issue: DISABLED test_remote_timeout_to_here_in_jit (__main__.FaultyJitFaultyAgentRpcTest)
Labels: high priority,triage review,oncall: distributed,oncall: jit,module: flaky-tests,module: rpc,skipped

Platforms: mac

Example:
- https://github.com/pytorch/pytorch/runs/4373039878?check_suite_focus=true



cc @ezyang @gchanan @zou3519 @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang @jjlilley @mrzzd @bdhirsh @jbschlosser
Repository: pytorch
Issue: DISABLED test_builtin_remote_message_dropped_timeout_to_self (__main__.FaultyFaultyAgentRpcTest)
Labels: high priority,triage review,oncall: distributed,module: flaky-tests,module: rpc,skipped

Platforms: mac
Example:
https://github.com/pytorch/pytorch/runs/4373313738?check_suite_focus=true

cc @ezyang @gchanan @zou3519 @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang @jjlilley @mrzzd @bdhirsh @jbschlosser
Repository: tauri
Issue: add url rewrite support
Labels: type: feature request

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
i have few front end projects, write by vue, react, and angular, when build to assert and place to the dist folder, it works well, but i found an debug warn that
Asset `xxx` not found; fallback to index.html
the xxx is the html5 push url, front url, the taruri search the xxx/index.html, when it not exist then fall back to index.html
the behavior is strange，the brower work well with the html5 push api, the tauri treat it as a local assert,

**Describe the solution you'd like**
A clear and concise description of what you want to happen.
provider the url rewrite module, like apache httpd, for example:
![image](https://user-images.githubusercontent.com/5616997/144160428-355fe48c-382f-4d2c-a523-d55c4f0615ce.png)


**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

when the url rewrite mod is on ready for use, i could simple pack many front projects in my package, the request could routed to the correct front assert,

**Additional context**
Add any other context or screenshots about the feature request here.
Repository: PowerToys
Issue: [Mouse utilities: Mouse highlighter] Suggestion: highlight double/triple click in different colours
Labels: Idea-Enhancement,Product-Mouse Utilities

### Description of the new feature / enhancement

Currently at v0.51.0 it is hard, but not impossible, for the mouse highlighter to tell from a single or double mouse-click.
It would be great if user can set a different colour for double/triple left/right click.
(An even crazier idea: add a counter near the cursor to show how many clicks there are before the highlighter starts to fade out.)

The video below shows the highlighter with multiple clicks with `Fade delay` and `Fade duration` set to the minimum amount (`100ms`):

https://user-images.githubusercontent.com/771216/144170805-e4e781eb-d86d-4dc3-9c58-74cf07d7bd46.mp4





### Scenario when this would be used?

Sometimes it is important to show that a user is actually double-clicking something. Imagine when a user reports a bug where an app stops highlighting a word with a double-click.

### Supporting information

_No response_
Repository: godot
Issue: [Bullet] Rigid Bodies "floating" if CollisionShape is a Created Convex Collision Sibling
Labels: bug,confirmed,topic:physics,topic:3d

### Godot version

3.4

### System information

Windows 10

### Issue description

Besides the peculiarities already on scaling physics bodies correctly without causing collision issues. I seem to have stumbled upon something.

If you use Create Single, Simplified, or Multiple Convex Collision Siblings versus a basic collision shape; The meshes will float when touching other rigid bodies if they have had their Collision Shape made this way.

Here are some cubes using the above methods of CollisionShape creation.
![case_of_the_floaties](https://user-images.githubusercontent.com/30809120/144170799-2a68aaa1-5ff0-4b0b-bf10-1fe16173c3ba.gif)

Then here are some using basic cube shapes on the right, compared to the same convex collision stack on the left.
![image](https://user-images.githubusercontent.com/30809120/144170987-46c43e02-a8b5-4336-917c-321d49b676b9.png)

### Steps to reproduce

Upon running or opening and running my provided minimal reproduction project, you'll see we have 8 cubes in 4 colored groups of 2. (Example gif of what you'll observe below)

![ConvexPolyIssue](https://user-images.githubusercontent.com/30809120/144174153-acc15790-1787-4bbb-9a7e-ec811b83e888.gif)

Each color representing a "team" or "group" based on what collision shape method they use.

- Group Red is using a CollisionShape(BoxShape) and work as intended and do not "float" on other bodies
- Group Blue is using a CollisionShape(ConvexPoly) created with the "Create Single Convex Collision Sibling" button
- Group Green is using a CollisionShape(ConvexPoly) created with the "Create Simplified Convex Collision Sibling" button
- Group Yellow is using a CollisionShape(ConvexPoly) created with the "Create Multiple Convex Collision Siblings" button

All three of the latter do not work as intended when colliding or resting atop another RigidBody. This is the case even though each has an almost identical collision box scale visually in the editor. Visually from this issue, you could surmise that ConvexPolys have a larger scale during physics calculation than the editor shows.

### Minimal reproduction project

[ConvexCollisionIssue.zip](https://github.com/godotengine/godot/files/7630888/ConvexCollisionIssue.zip)
Repository: vscode
Issue: Disassembly editor is not getting closed automatically after debug session ended
Labels: feature-request,debug,debug-disassembly

<!-- ⚠️⚠️ 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. -->
VSCode Version: 1.62.3
OS: Windows_NT x64 10.0.19042

Steps to Reproduce:

1. Import any c/c++ project and start debugging
2. Open disassembly View and terminate the session

Currently we have to close the disassembly editor manually but it should be closed automatically once the debug session ends.
Repository: material-ui
Issue: Lot's of Warnings when using Webpack Module Federation
Labels: core

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

In our project, we're using Webpack Module Federation with the following share:

        new ModuleFederationPlugin({

            shared: {
                ...deps,

                "@mui/private-theming": {singleton: true},
                "@mui/material/styles": {singleton: true},
                "@mui/styles": {singleton: true},

                "react": {singleton: true},
                "react-dom": {singleton: true},


When building our project we've a lot of warnings like the following:

```
WARNING in shared module @mui/material/styles
No required version specified and unable to automatically determine one. Unable to find required version for "@mui/material" in description file (/home/mpo/icCube/gh/icCubeReportingMF/ic3-reporting/node_modules/@mui/lab/CalendarPicker/package.json). It need to be in dependencies, devDependencies or peerDependencies.

```

It seems the CalendarPicker/package.json file is missing the following:

```
  "peerDependencies": {
    "@mui/material": "^5.0.0"
  }
```

With this peerDependencies the warning disappear. There's a lot as well with 'react' dependency missing..

Does anybody experience the same issue?
Am I missing something with my setup?

If not would it be possible to update the package.json in the MUI project?

Let me know if you need more info.

### Expected behavior 🤔

No such warnings.

### Steps to reproduce 🕹

Steps:

1. Build a project with Webpack Module Federation as shown in the description of this issue.
2.
3.
4.


### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: neovim
Issue: remove attributes from highlight groups
Labels: enhancement,core,highlight

### Feature already in Vim?

no

### Feature description

In [indent-blankline](https://github.com/lukas-reineke/indent-blankline.nvim) which uses virtual text to show line indents there's a tension between needing to suppress gui options that set italics/underline to avoid fudging the indention's virtual text while also wanting to allow mixing other gui elements that could have been set by the theme (f.ex. gui=reverse used for block selections).

This came up in this bug where the need to suppress the italics/bold conflicted with the theme: https://github.com/lukas-reineke/indent-blankline.nvim/issues/328

The [plugin author suggests](https://github.com/lukas-reineke/indent-blankline.nvim/issues/328#issuecomment-983345907) neovim could add negative gui options e.g. `noitalic` to resolve this tension and allow correctly expressing what indent-blankline is trying to accomplish without breaking theming.

> So a highlight group can set this, all gui options get combined, but `noitalic` overwrites if the underlying highlight group had `italic`
Repository: PowerToys
Issue: FindMyMouse is behind start menu
Labels: Issue-Bug,Priority-3,Product-Mouse Utilities

### Microsoft PowerToys version

0.51.0

### Running as admin

- [ ] Yes

### Area(s) with issue?

Mouse Utilities

### Steps to reproduce

1. Open the start menu
2. Press <kbd>Left Ctrl</kbd> twice

### ✔️ Expected Behavior

The *Find My Mouse* spotlight should appear in front of everything, including the start menu

### ❌ Actual Behavior

The spotlight goes behind the start menu and taskbar

Screenshot:
![findmymouse_behind_startmenu](https://user-images.githubusercontent.com/23175424/144190009-88a1419a-3a8a-45f7-b3af-3e37b6fee98b.png)

Possibly related to #14338

### Other Software

Windows 10 Prro 21H1 (Build 19043.1348)
Repository: excalidraw
Issue: Multiple opened  PWA windows all named Excalidraw
Labels: enhancement,good first issue

I have 4 opened documents leveraging PWA which results in this list on macOS:

![image](https://user-images.githubusercontent.com/4130973/144193721-ea171fc1-1bf0-4828-b272-cbb3ecfe66fb.png)

May I propose to use the filename as a window's title, so that several windows can be distinguished better?
In terms of length, you may need or want to show the beginning end of the filename similar to Finder's behavior.
I have not tested the behavior on windows.
Repository: flutter
Issue: [video_player] m3u8 video format, stops the current video error at wrong place.
Labels: platform-android,p: video_player,package,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,team-android,triaged-android

When video_player is playing a video in m3u8 format, if there is an error in a certain segment of the video, the player cannot skip the current error, and it will become uncontrollable, and the replay will still stop at the wrong place.
Repository: pytorch
Issue: CPU only mode with cudatoolkit 11.3
Labels: module: binaries,triaged

Hello@All!

I have tried to install cudatoolkit 11.3 with `conda install -c pytorch pytorch=1.9.0 torchvision cudatoolkit=11.3`. After successful installing pytorch, my GPU is not available anymore: torch.cuda.is_available=**False** 

my package list: [package-list_v18.txt](https://github.com/pytorch/pytorch/files/7632306/package-list_v18.txt)

Is there anyone, who can help me to run cudatoolkit 11.3 with pytorch 1.9.0? Thank you!


 

cc @ezyang @seemethere @malfet
Repository: create-react-app
Issue: Overlay didn't disappere in firefox
Labels: stale

Overlay doesn't disappear in firefox
I feel it's because "onload" handler doesn't called in firefox.

https://github.com/facebook/create-react-app/blob/c7627ce96c4674f327081f101dd0e2771be4d045/packages/react-error-overlay/src/index.js#L141
Repository: ant-design
Issue: table tree拖动排序dragIndex，hoverIndex返回错误
Labels: Inactive

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/quirky-ully-8bis9?file=/src/App.js)

### Steps to reproduce
在二级类目下拖动item，观察console里面dragIndex与hoverIndex的输出

### What is expected?
在二级类目下拖动item，以二级类目作为基数，比如拖动'国产ACG'，dragIndex应该是0，拖动到'日本动漫'位置，hoverIndex应该是1

### What is actually happening?
一级类目下拖动item，moveRow函数返回的dragIndex，hoverIndex正确。
但是在二级类目下拖动，dragIndex，hoverIndex并不是以二级类目做为基数，而是以整个表格树展开的行数作为基数，具体可以看console.log的输出

| Environment | Info |
|---|---|
| antd | 4.17.2 |
| React | 17.0.2 |
| System | mac |
| Browser | 谷歌浏览器 |

---
第一个一级类目是收起状态，第二个一级类目打开状态，拖动下面的二级类目，返回的dragIndex，hoverIndex，与两个一级类目全部打开的状态下拖动二级类目返回的dragIndex，hoverIndex不同，导致无法准确的更新list里面data的数据，因为更新列表的原理是在data里面把拖动的item删除，在hoverIndex位置插入拖动的item，如果dragIndex，与hoverIndex返回不正确就无法准确的删除与插入了

4.16.3版本则没有这个问题


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->