sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Future not Iterator. Diagnostic could say: FuturesExt needed
Labels: A-diagnostics,T-compiler

(1.53 nightly 2021-04-04 )

Given the following code: 
(futures_timer isn't on playground :-( )

```rust
use std::time::Duration;
use futures_timer::Delay;
//Uncomment to make compile:
//use futures::FutureExt;

 fn main() {
    let d  = Delay::new(Duration::from_secs(3));
    let df = d.fuse();
 }
```

The current output is:

```
error[E0599]: the method `fuse` exists for struct `Delay`, but its trait bounds were not satisfied
  --> src/main.rs:8:16
   |
8 |     let df = d.fuse();
   |                ^^^^ method cannot be called on `Delay` due to unsatisfied trait bounds
   | 
  ::: /snip/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-timer-3.0.2/src/native/delay.rs:26:1
   |
26 | pub struct Delay {
   | ---------------- doesn't satisfy `Delay: Iterator`
   |
   = note: the following trait bounds were not satisfied:
           `Delay: Iterator`
           which is required by `&mut Delay: Iterator`
```

I struggled with this and other compiler output suggested adding Pin and Box which as it turned out wasn't helpful.
(In particular it would suggest adding `Pin<Box<>>` , I did that and then it was suggesting `Pin<Box<Pin<Box<>>>>` - you can never have too many pinned boxes :-P )

Ideally a hint about making futures iterable by importing FuturesExt would have shortcutted a lot of head scratching:

```
Did you know Futures can be Iterable if you import FuturesExt?
```

Big kudos to some of the other targetted diagnostics that helped me out when I got into other problems.
Repository: opencv
Issue: Can't Create layer of type "Less" in function cv::dnn::dnn4_v20201117::LayerData::getLayerInstance - OpenCV 4.5.1 (4.5.2 as well)
Labels: feature,category: dnn,effort: few weeks,category: dnn (onnx)

##### System information (version)
- OpenCV => Tried on 4.5.1 and 4.5.2
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2019


##### Detailed description

Hi, I'm currently working on image sequence classification deep learning model on python, and trying to convert tensorflow keras model to onnx, in order to use them in c++ environments. For that, I would like to load my model by using 'cv2.dnn.readNetFromONNX'.
To briefly introduce the model, it is consisted of TimeDistributedLayer, followed by GRU, and Dense Layers. It takes 5 consecutive images (numpy array) as an input image sequence, and makes an inference on classification. The model works perfectly fine on python environments.

Takes an input numpy array, size of (1, 5, 224, 224, 3), and has an output value of float tensor, size of (1, 2).

![image](https://user-images.githubusercontent.com/50217906/116056573-e587af00-a6b8-11eb-9beb-026efc5953da.png)

According to the visualization of the model, I am guessing the problematic 'Less' layer should be the one in following picture.

![image](https://user-images.githubusercontent.com/50217906/116057032-5dee7000-a6b9-11eb-847e-12ef5ab04a6e.png)

I have tried with different opsets, including 9, 12, 13, etc, but the results were same.

Please feel free to leave an advice.
Thanks in advance for advices!

Will attach an ONNX model with random weights, "model_weights.onnx"
[model_weights.onnx.zip](https://github.com/opencv/opencv/files/6375768/model_weights.onnx.zip)
Repository: create-react-app
Issue: Error using aliases : compilerOptions.paths must not be set (aliased imports are not supported)
Labels: stale,needs triage,issue: bug report

Hi!

i create that on ts with cra
I what to use typescript aliases in project
To to that I create tsconfig.paths.json
```
{
    "compilerOptions": {
        "baseUrl": "src",
        "paths": {
          "@components/*" : ["components/*"]
        }
    }
}
```
And import it in tsconfig.json:
```
{
  "extends": "./tsconfig.paths.json",
....
}
```

Then i install tsconfig-paths-webpack-plugin
And create webpack.config.js
```
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');

module.exports = {

    resolve: {
        plugins: [new TsconfigPathsPlugin({/* options: see below */ })]
    }
}
```

But on yarn start i got an error
```
  - compilerOptions.paths must not be set (aliased imports are not supported)

```
Repository: thefuck
Issue: EOL (end of line) issue on windows
Labels: help wanted,windows

<!-- If you have any issue with The Fuck, sorry about that, but we will do what we
can to fix that. Actually, maybe we already have, so first thing to do is to
update The Fuck and see if the bug is still there. -->

<!-- If it is (sorry again), check if the problem has not already been reported and
if not, just open an issue on [GitHub](https://github.com/nvbn/thefuck) with
the following basic information: -->

The output of `thefuck --version` (something like `The Fuck 3.1 using Python
3.5.0 and Bash 4.4.12(1)-release`):

    The Fuck 3.30 using Python 3.8.3 and ZSH 5.8

Your system (Debian 7, ArchLinux, Windows, etc.):

    Windows 10 1909, cygwin and conemu

How to reproduce the bug:

In my environment, the commands generated by thefuck ends with "^M". It seems it's because all the output of thefuck ends with "\r\n" on windows. However, the zsh can only process commands end with "\n".

For example, when I run eval $(thefuck --alias), the error message is 

    zsh: parse error near `^M'

Any idea about this issue? Thank you.
Repository: rust
Issue: Equal CTFE function pointers are unequal after codegen
Labels: A-codegen,C-bug,A-const-eval

```console
$ cat a.rs 
pub static F: fn() = f::<u32>;
pub fn f<T>() {}
$ cat b.rs 
static F: fn() = a::F;
fn main() {
    assert_eq!(a::F, crate::F);
}
$ rustc --edition=2018 -O --crate-type=lib a.rs 
$ rustc --edition=2018 -O --crate-type=bin b.rs -L. --extern a
$ ./b
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `0x561f15182780`,
 right: `0x561f15182660`'
```


The general issue is similar to #79738. In this case a function pointer is represented with `GlobalAlloc::Function(Instance<'tcx>)`, which does not uniquely identify function after codegen.

cc @oli-obk

@rustbot modify labels: +A-codegen +A-const-eval
Repository: PowerToys
Issue: Launchpad
Labels: Idea-New PowerToy

### Provide a description of the new feature / enhancement

I've used OS X and several distributions of Linux, I found the great convenience that the Launchpad and some essential information showed on the top of the screen gives the users. I know the win button can do almost the same thing but the full screen experience is so much more user friendly so I wonder whether you can make it also possible on windows.
Repository: godot
Issue: Scrolling while selecting atlas tiles breaks the selection
Labels: bug,topic:editor,topic:2d

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:** 3.3 stable
<!-- Specify commit hash if using non-official build. -->


**OS/device including version:** Windows 10 20H2
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->


**Issue description:** When dragging to select an atlas tileset, if you scroll, the selection breaks and only selects the area that was selected prior to starting the scroll, despite still visibly selecting an area while scrolling.
<!-- What happened, and what was expected. -->

https://user-images.githubusercontent.com/32423458/116073914-f02a5000-a688-11eb-9f6d-39fe2d2d3f53.mp4

**Steps to reproduce:**

- Create a tileset
- Select "New Atlas"
- Start selecting tiles
- Scroll
- Finish selecting tiles
- Observe the final selected region is the region that was selected prior to scrolling


**Minimal reproduction project:** Attached.


[demo.zip](https://github.com/godotengine/godot/files/6376622/demo.zip)

<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
Repository: vscode
Issue: Colored indentation lines
Labels: feature-request,editor-indent-guides

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

It would be nice to have colored indentation lines, possibly with rainbow colors. It is now possible to choose a color for the indentation line, but not to have more than one for every indentation level.
I know there are extensions who color the background of the indents but it's too bold and a punch in the eye tbh. Something clean as the indentation lines would be a great improvement.

Another MacOS-only editor has this feature and it's the one feature I love the most. Having this on VSC would be amazing. Attached, a picture for better understanding.
<img width="363" alt="Schermata 2021-04-26 alle 14 47 04" src="https://user-images.githubusercontent.com/81041446/116084675-51105300-a69e-11eb-8508-65cf14a1440f.png">
Repository: flutter
Issue: Scrollbar: Mouse cursor should be pointer by default during drag, and adjustable
Labels: c: new feature,framework,f: material design,f: scrolling,c: proposal,a: mouse,P3,team-design,triaged-design

## Use case
Currently, when dragging a scrollbar via a mouse click, the cursor is not changed to a pointer for desktop or web - which is the default for buttons (or clickable elements). Observable for example here:
https://gallery.flutter.dev/#/demo/lists

I would expect it to change its cursor automatically and to be able to adjust it via a theme property or via the constructor of the Scrollbar widget.

## Proposal
```
Scrollbar(
   cursor: MouseCursor.defer,
   ...
)
```
Repository: PowerToys
Issue: [FZ Editor] show messagebox if edited layout is invalid
Labels: FancyZones-Editor,Product-FancyZones,Area-User Interface

### Provide a description of the new feature / enhancement

After this PR https://github.com/microsoft/PowerToys/pull/10911, invalid layouts are removed when the FZ Editor starts.
In theory (even if very unlikely to happen), if a layout gets corrupted while the editor is open, editing said layout will show a layout without any zone.
It would be a better user experience if we show a message box saying the layout contains invalid data.
Repository: flutter
Issue: [web] Password manager icon overlaps the text in TextField 
Labels: a: text input,framework,f: material design,platform-web,has reproducible steps,P2,found in release: 2.0,found in release: 2.3,team-web,triaged-web

Hi,

Im trying to build a login/sign up form for the Web.

Im using the `autofillHints` option on `TextFormField` to allow password managers to save and fill the textboxes

However, with 1password,, the icon to autofill gets wrongly placed on the textbox: 
instead of being aligned to the right of the textbox it gets in the middle of the textbox
## Steps to Reproduce

Sample code to  reproduce: 
```
MaterialApp(
          home: Scaffold(
            body: Container(
              color: Colors.orangeAccent,
              width: 500,
              child: Padding(
                padding: const EdgeInsets.all(15.0),
                child: Column(
                  children: [
                    Text('Email'),
                    TextFormField(
                      autofillHints: [AutofillHints.email],
                    ),
                    Text('Password'),
                    TextFormField(
                      autofillHints: [AutofillHints.password],
                    ),
                  ],
                ),
              ),),
           )...
````


**Expected results:** <!-- what did you want to see? -->
Expeted the password manager icon to be placed on the right of the text field

**Actual results:** <!-- what did you see? -->

password manager icon is placed in the middle of the textbox  as shown here:

![image](https://user-images.githubusercontent.com/25303342/116093030-3e961980-a69e-11eb-9217-eb39295eb61a.png) ![image](https://user-images.githubusercontent.com/25303342/116093095-4c4b9f00-a69e-11eb-8797-19d43f8c9398.png)


<details>

```
[✓] Flutter (Channel stable, 2.0.4, on macOS 11.2.3 20D91 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[!] Xcode - develop for iOS and macOS
    ✗ CocoaPods installed but not working.
        You appear to have CocoaPods installed but it is not working.
        This can happen if the version of Ruby that CocoaPods was installed with is different from the one
        being used to invoke it.
        This can usually be fixed by re-installing CocoaPods.
      To re-install see https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] IntelliJ IDEA Community Edition (version 2020.3.2)
[✓] VS Code (version 1.55.2)
[✓] Connected device (1 available)
```

</details>

Is there any way to force the icon to align on the right?
Repository: storybook
Issue: [yarn@berry] storybook ${project}/node_modules/.cache
Labels: feature request,configuration babel / webpack,core

**Describe the bug**

Storybook place self build cache on ${project}/node_modules/.cache/storybook target
for babel-loader i can set __cacheDirectory__ option, but @storybook/core-common#resolvePathInStorybookCache  absolutely returns node_modules on project root
it would be convenient to override this behavior

**System**

Environment Info:

  System:
    OS: Linux 5.4 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (4) x64 AMD Ryzen 3 2200G with Radeon Vega Graphics
  Binaries:
    Node: 14.15.4 - /tmp/xfs-b7fcc8b7/node
    Yarn: 2.4.1 - /tmp/xfs-b7fcc8b7/yarn
    npm: 7.10.0 - ~/.nvm/versions/node/v14.15.4/bin/npm
  Browsers:
    Firefox: 88.0
Repository: pytorch
Issue: torch.multiprocessing implement SyncManager
Labels: module: multiprocessing,triaged

per https://github.com/pytorch/pytorch/issues/56480#issuecomment-826216912
Repository: terminal
Issue: Replace `duplicateTab` with `newTab` with arg
Labels: Area-Settings,Product-Terminal,Issue-Task

# Description of the new feature/enhancement

`duplicateTab` and `newTab` are two different actions whereas `splitPane` accomplishes the functionality of both "duplicate my current pane" and "open a new pane". `splitPane` also lets the user use `NewTerminalArgs` to customize a duplicate pane.

I propose we do one of the following:
1. Deprecate `duplicateTab`:
   - add a `mode` arg to `newTab`. Possible values include `duplicateProfile` and `duplicatePaneStructure` (see #4674). Default value is `null`.
   - `duplicateTab` still exists, but is just an alias for `newTab` with `mode=duplicateProfile`.
   - This gives us `NewTerminalArgs` for free and creates a consistent design across actions creating new panes and new tabs.
2. Split `splitPane` into `splitPane` and `duplicatePane`:
   -  `duplicatePane` would have 2 args: `size` and `split` (same behavior as from `splitPane`)
   - This provides a consistent design, but I feel that it doesn't provide adequate `NewTerminalArgs` benefits.

### Other comments
_Inspired by a comment made by @lhecker_
#4674 Should be kept in mind with the new design.
I'm open to other ideas or different names for these actions/args.

# Resources

[`duplicateTab` docs](https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions#duplicate-tab)
[`newTab` docs](https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions#new-tab)
[`splitPane` docs](https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions#split-a-pane)
Repository: godot
Issue: Resource name missing after reindexing of subresources
Labels: bug,topic:core,confirmed

**Godot version:**
3.3.stable.official


**OS/device including version:**
OS: Solus x86_64 (Kernel 5.11.12-177.current)


**Issue description:**
The `resource_name` of custom resources disappeared. I noticed this in one of my git commits:
```diff
- [sub_resource type="Resource" id=1]
- resource_name = "A"
+ [sub_resource type="Resource" id=2]
  script = ExtResource( 2 )
  _value = Vector3( 0, 0, 0 )
  ```
As you can see the resources were all reindexed in that commit, but it also removed the resource names. All I did was open the project, play the main scene, and close it again.
The resources in question are custom ones from a GDScript extending `Reference`.


**Steps to reproduce:**
I am not quite sure as I did not get godot to reindex the scene manually. It just happens from time to time. Every time it happens the resource names are cleared.


**Minimal reproduction project:**
As I was not able to find a reliable way to reproduce this I can't really provide a reproduction project.
Repository: pytorch
Issue: CUDA 11 tracking issue
Labels: module: binaries,module: cuda,triaged,tracker

* https://github.com/pytorch/pytorch/issues/56747 Matrix multiply broken
* https://github.com/pytorch/pytorch/issues/56678 CuDNN segfault
* #50153 fast kernels are getting dropped by static linking in binary builds

cc @ezyang @seemethere @malfet @walterddr @ngimel
Repository: node
Issue: worker_threads that use es modules incorrectly pause when loaded
Labels: inspector,esm,worker

<!--
Thank you for reporting an issue.

This issue tracker is for bugs and issues found within Node.js core.
If you require more general support please file an issue on our help
repo. https://github.com/nodejs/help


Please fill in as much of the template below as you're able.

Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or output of `"$([Environment]::OSVersion | ForEach-Object VersionString) $(if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" })"` in PowerShell console (Windows)
Subsystem: if known, please specify affected core module name
-->

* **Version**: 16.0.0
* **Platform**: Win 10 x64
* **Subsystem**: inspector

### What steps will reproduce the bug?

It's easiest to run under a debugger that supports worker threads, like VS Code's Node.js debugger. I've created an example repo [here](https://github.com/connor4312/node-38420):

1. Open the folder in VS Code
2. In the debug view (play button on the left hand side), select "No Bug" and hit the play button. This runs `no-bug/index.js`.
3. A worker thread spawns, logs its message, and exits
4. Now select "Bug", and hit the play button. This runs `bug/index.js`: the same code in an ES module.
5. The debugger pauses on the first line in the worker

### How often does it reproduce? Is there a required condition?

100%

### What is the expected behavior?

The debugger doesn't pause with ES modules

### What do you see instead?

The debugger pauses

### Additional information

It looks like Node.js is incorrectly reporting that the program is started with inspectBrk:

![](https://memes.peet.io/img/21-04-97d0e841-cff7-4897-bcca-6c7c7540ab72.png)

VS Code (and Webstorm I think, though I haven't tried to repro there) use a bootloader to inject ourselves into the process via NODE_OPTIONS. We don't actually invoke with --inspect-brk, we [manually call](https://github.com/microsoft/vscode-js-debug/blob/79cee70c3e420555dd0f917550e6a0e659662e6a/src/targets/node/bootloader.ts#L169-L175) `inspector.waitForDebugger()`. I'm guessing this triggers `inspectBrk` to be true, but I haven't debugged into it that far.

This was originally reported in https://github.com/microsoft/vscode/issues/122170
Repository: flutter
Issue: Consider making win32 an official Flutter package
Labels: platform-windows,package,c: proposal,team-ecosystem,P2,triaged-ecosystem

## Use case
Windows APIs come in a variety of flavors, most notably:

- Simple C-based APIs like [`MessageBox`](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox)
- COM-based APIs like [`IDesktopWallpaper`](https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nn-shobjidl_core-idesktopwallpaper)
- WinRT APIs like [`Windows.Storage.ApplicationData`](https://docs.microsoft.com/en-us/uwp/api/windows.storage.applicationdata?view=winrt-19041)

In Flutter, we use all three types of API in various ways, not least through plugins such as [path_provider_windows](https://pub.dev/packages/path_provider_windows). That will only increase with the experimental work on the UWP runner, and the potential of moving some code from C++ or PowerShell to Dart. 

The [win32 package](https://pub.dev/packages/win32) provides a convenient low-level Dart projection of selected Windows APIs. It includes a code generator, as well as the resultant Dart library and about 1,500 unit tests. The package is [loosely endorsed by Microsoft](https://github.com/microsoft/win32metadata) as a community project. It in turn relies through a dev dependency on a separate [winmd package](https://pub.dev/packages/winmd) that can consume Windows metadata.

Both packages are maintained by @timsneath and are BSD-licensed. 

## Proposal
It does seem a little bit of an odd situation that all this code built on top of it is officially sanctioned, but not that package itself. While version pinning helps a little, it is worth considering whether we should bring win32 (at least) into the fold as an official package of the Flutter team to minimize risk. 

The specifics of this are undefined here, but might include moving the package into the flutter/plugins repo, applying a more rigorous code review, or using build infra that tests it as part of a regular Flutter Windows build.
Repository: pytorch
Issue: torch-1.8.1 wheel verification fails with distlib
Labels: needs reproduction,module: binaries,triaged

## 🐛 Bug
Torch 1.8.1 wheel verification fails.
- I assume that there is something wrong with this wheel file. It can't pass the `distlib.wheel.Wheel("./torch-1.8.1-cp38-cp38-manylinux1_x86_64.whl").verify()` but can be installed via pip directly. 
- I checked the source code of pip. It has `distlib` package in its vendor but doesn't use it for wheel verification, which is why pip can install it successfully. 

## To Reproduce

Steps to reproduce the behavior:

1. `distlib.wheel.Wheel("./torch-1.8.1-cp38-cp38-manylinux1_x86_64.whl").verify()`

![Screenshot from 2021-04-25 17-41-24](https://user-images.githubusercontent.com/12144602/116127282-46c57780-a6e5-11eb-8c9d-67aee42d215b.png)


## Expected behavior

- Should have installed torch 1.8.1
- Torch should have dynamically added stuff into the wheel file after it is built, without updating the RECORD file, which contains a list of (path,sha256,size) used by `distlib` to verify the installation.

## Environment

 - PyTorch Version : 1.8.1
 - OS (e.g., Linux): Linux
 - How you installed PyTorch (`conda`, `pip`, source): [pdm](https://github.com/pdm-project/pdm) and pip
 
 - Any other relevant information:

```
 { implementation_name": "cpython",
  "implementation_version": "3.8.5",
  "os_name": "posix",
  "platform_machine": "x86_64",
  "platform_release": "5.4.0-72-generic",
  "platform_system": "Linux",
  "platform_version": "#80-Ubuntu SMP Mon Apr 12 17:35:00 UTC 2021",
  "python_full_version": "3.8.5",
  "platform_python_implementation": "CPython",
  "python_version": "3.8",
  "sys_platform": "linux"}
```

cc @ezyang @seemethere @malfet @walterddr
Repository: pytorch
Issue: remove the dependence on node names in fx graph mode quant 
Labels: triaged,module: fx

Currently we are using node names in node_to_scope map: https://github.com/pytorch/pytorch/blob/master/torch/quantization/quantize_fx.py#L114, ideally we should remove this dependency.

cc @ezyang