sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: It would be great, if failed to resolve/unresolved import diagnostics suggested declaring modules 
Labels: A-diagnostics,T-compiler

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.

If you cannot produce a minimal reproduction case (something that would work in
isolation), please provide the steps or even link to a repository that causes
the problematic output to occur. 
-->

Given the following code: <!-- Please provide a link to play.rust-lang.org -->

```rust
// There is nothing with this name
use doesnt_exist_top::Item0;

// File exists, but there is no `mod ...;`
use no_mod::Item1;

// Same as above, but there is no file for foo
use foo::bar::baz;

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
        assert_eq!(2 + 2, 4);
    }
}
```

And project structure: 

```text
src/
├── foo
│   └── bar.rs
├── lib.rs
└── no_mod.rs
```


The current (as of nightly `f5d8117c3` `2021-03-16`) output is:

```text
error[E0432]: unresolved import `doesnt_exist_top`
 --> src/lib.rs:3:5
  |
3 | use doesnt_exist_top::Item0;
  |     ^^^^^^^^^^^^^^^^ use of undeclared crate or module `doesnt_exist_top`

error[E0433]: failed to resolve: use of undeclared crate or module `foo`
 --> src/lib.rs:9:5
  |
9 | use foo::bar::baz;
  |     ^^^ use of undeclared crate or module `foo`

error[E0432]: unresolved import `no_mod`
 --> src/lib.rs:6:5
  |
6 | use no_mod::Item1;
  |     ^^^^^^ use of undeclared crate or module `no_mod`
```

<!-- The following is not always necessary. -->
Ideally the output should look like:

```
error[E0432]: unresolved import `doesnt_exist_top`
 --> src/lib.rs:3:5
  |
3 | use doesnt_exist_top::Item0;
  |     ^^^^^^^^^^^^^^^^ use of undeclared crate or module `doesnt_exist_top`
 help: you may want to create inline module: `mod doesnt_exist_top {}`

error[E0433]: failed to resolve: use of undeclared crate or module `foo`
 --> src/lib.rs:9:5
  |
9 | use foo::bar::baz;
  |     ^^^ use of undeclared crate or module `foo`
 help: directory `foo` exists, consider creating a module file `src/foo.rs`

error[E0432]: unresolved import `no_mod`
 --> src/lib.rs:6:5
  |
6 | use no_mod::Item1;
  |     ^^^^^^ use of undeclared crate or module `no_mod`
 help: file with the same name exists, try declaring the module: `mod no_mod;`
```

<!--
If the problem is not self-explanatory, please provide a rationale for the
change.
-->

<!--
If dramatically different output is caused by small changes, consider also
adding them here.

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. The output might also be
different depending on the Edition.
-->
Repository: flutter
Issue: ListTiles inside cards damage the hover experience from TextButtons
Labels: framework,f: material design,a: quality,has reproducible steps,found in release: 3.0,found in release: 3.1,team-design,triaged-design

Hi,

I am working with clickabele cards in Flutter web.
I put the cards in a TextButton to make them clikcable. Usually I get for free that the mouse changes to a hand while hovering over the card.
This signals the user that he can click here.
This seems to fail if I put a ListTile inside a card. For example:

```
    Card card = Card(
      child: ListTile(
        leading: cardIcon,
        title: titleWidget,
        subtitle: lastModifiedWidget,
        trailing: expandButton,
      ),
      // child: cardRow,
      color: cardColor,
    );
```

In this case the hand changes to a mouse only while hovering over the edges of the card. In the middle the mouse course stays itself.
If I put my elements in a Row (uncomment row, comment the ListTile), the hovering effect works on the whole card.

<details>
  <summary>flutter doctor -v</summary>
[√] Flutter (Channel beta, 2.0.2, on Microsoft Windows [Version 10.0.19042.804], locale de-DE)
    • Flutter version 2.0.2 at C:\Users\akilian\Flutter SDK\flutter
    • Framework revision 8962f6dc68 (7 days ago), 2021-03-11 13:22:20 -0800
    • Engine revision 5d8bf811b3
    • Dart version 2.12.1

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\akilian\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.52.1)
    • VS Code at C:\Users\akilian\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.90
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 88.0.705.74

! Doctor found issues in 1 category.
</details>
Repository: three.js
Issue: Certain GLTF models not receiving shadows on Windows
Labels: Needs Investigation

Minecraft Education edition has a tool for exporting .GLB files directly from the game, but the resulting GLB file won't receive shadows when displayed using three.js on Windows devices. 

This issue occurs when using Windows browsers (Firefox, Chrome, Edge), but not when using MacOS browsers (Chrome, Firefox, and Safari). [See the original thread on discourse.threejs.org for more information](https://discourse.threejs.org/t/gltf-model-shadows-not-receiving-with-gltfmeshstandardsgmaterial/24112/5).

**Steps to reproduce the behavior:**
1. Go to [the demo website](https://2cf782ea.minecraft-website.pages.dev/).
2. Note that on Windows, the red sphere does not cast a shadow onto the Minecraft model.

**Live example**
[https://2cf782ea.minecraft-website.pages.dev/](https://2cf782ea.minecraft-website.pages.dev/)
Source code can be found in [this GitHub repository](https://github.com/aufyx/minecraft-website).

**Expected behavior**
The red sphere should cast a shadow onto the 3D model.

**Screenshots**
Windows users don't see the sphere shadow, its absence circled in red.

![Windows Example](https://aws1.discourse-cdn.com/standard17/uploads/threejs/original/3X/f/f/ff6b65a409aa9195677ba6092786f80f04ed3588.jpeg)

Mac users see the shadow as expected, as well as the model casting shadows on itself.

![Mac Example](https://aws1.discourse-cdn.com/standard17/uploads/threejs/original/3X/a/b/abb45284b5bea3a70437e83ed46c19861033deaa.jpeg)

**Platform:**

 - Device: [Desktop]
 - OS: [Windows]
 - Browser: [Chrome, Firefox, Edge]
 - Three.js version: [r126]
Repository: electron
Issue: [Bug]:webContents.print() with custom margin hides header and footer content
Labels: component/printing,bug :beetle:,platform/all,status/confirmed,has-repro-gist,11-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/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.

### Electron Version

11.2.0

### What operating system are you using?

Windows

### Operating System Version

Window 10 1909 (OS Build 18363.1279)

### What arch are you using?

x64

### Last Known Working Electron version

not sure, can reproduce this back to 80.12

### Expected Behavior

The header and footer contents should be displayed when the custom marginType specified.

### Actual Behavior

The header and footer contents are completely hidden when the custom marginType is used.

### Testcase Gist URL

_No response_

Reproduction steps:
1. npm start the app
2. Print the website to PDF
3. See the header and footer content don't display in the printout page.
4. Change the marginType to "default"
5. Repeat steps 1 to 3
6. See the header and footer content display correctly
```
(async () => {
  const {app, BrowserWindow} = require("electron");

  await app.whenReady()

  const window = new BrowserWindow();
  await window.loadURL("https://google.com");
  window.webContents.print(
    {
      margins: {
                marginType: "custom",  //change to "default" will redisplay the header and footer
                top: 0.75,
                left: 0.75,
                right: 0.75,
                bottom: 0.75
            },
      header: "I am header",
      footer: "I am footer",
    });
})();
```
Repository: go
Issue: database/sql: sporadic RST when CPU throttled to 0
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
1.16.2
</pre>

### Does this issue reproduce with the latest release?

We've since mitigated the issue by moving away from using `database/sql`, but it was still reproducible in 1.16.1.

### What operating system and processor architecture are you using (`go env`)?

Single-static binary packaged into a `scratch` container.

### What did you do?

Despite configuring the maximum idle connections and maximum connection lifetime, we continued to encounter edge cases where the `database/sql` package would use a connection that had exceeded the max connection lifetime. Since the upstream database had already closed the connection, we'd get an RST. It could happen at any code path and any query, so adding retry logic proved difficult.

The `database/sql` package isn't very observable, so we don't have true evidence to provide. However, this behavior occurred most commonly when our orchestration platform scaled the CPU on the container to 0. The container was still running (and time was still passing), but the container was unable to do any "work". Then, when the orchestrator increases the CPU, a race occurs. Sometimes the connection would correctly be marked as unusable because its max time had failed, but sometimes it would be returned from the pool as "healthy" even though it had exceeded the maximum lifetime. We attempted to trace the package to understand how this could happen, but we were unsuccessful (@jeremyfaller).

We moved away from using `database/sql` to using pgx (and pgxpool) directly. That library has various hooks into connections that allow us to customize observability and, most importantly, verify the connection is healthy immediately before use. Since switching libraries, we haven't experienced any RSTs.
Repository: ant-design
Issue: Add possiblity to turn off auto correct feature
Labels: Inactive

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
If the user enters wrong data (e.g. in the Number or DatePicker component), the component will either clear it or fall back to the latest valid entry. This might be okay for people that can see the behavior but is extremely problematic for persons with assistive technologies (like screen reader).



### What does the proposed API look like?
I would suppose to add a possibility that we can turn off the auto correct feature and better trigger a validation message. This is more intuitive even for people that can see what happens.


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: rust
Issue: Vec::splice() has noticeable overhead for some use cases
Labels: I-slow,C-enhancement,A-collections,T-libs

As far as I know, Vec::splice() is the only way to extend the Vec from a slice in an arbitrary location. However, being a fairly universal api makes it slower than a hypothetical dedicated `insert_from_slice` could be.

In fact, according to `cargo bench`, for small vectors (let's say under 10) and number of elements to insert, it can be faster to insert them in a loop:
```
    for i in 0..5 { data.insert(3, 77); }
```
than to call `splice`:
```
    let new = [77; 5];
    data.splice(3..3, new.iter().copied());
```

`splice` also seems to optimize badly in presence of constants. For example, looking at Godbolt, the optimizer can't seem to optimize
```
    let tab = [77; 1];
    vec.splice(5..6, tab.iter().cloned());
```
as good as
```
    vec[5] = 77;
```
Or
```
    let tab = [77; 1];
    vec.splice(5..5, tab.iter().cloned());
```
as good as
```
    vec.insert(5, 77);
```

It'd be nice if the function had lower overhead for small vectors/slices. Or maybe if another specialized method `insert_from_slice(idx, slice)` was added that avoids all overhead for this particular use case.
Repository: TypeScript
Issue: Declare property quick fix overrides extension libs
Labels: Bug

TS 4.2.2 and 4.3.0-dev20210316
```ts
console.foo = 1;
```

<img width="267" alt="Code_2021-03-18_18-04-31" src="https://user-images.githubusercontent.com/30108880/111666848-662ed200-8814-11eb-9e89-42e53affa1f4.png">

<img width="777" alt="Code_2021-03-18_18-03-02" src="https://user-images.githubusercontent.com/30108880/111666777-557e5c00-8814-11eb-8a07-550cc085ce98.png">
Repository: youtube-dl
Issue: KEXP radio
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.03.14. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2021.03.14**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Example URL with multiple archive episodes per DJ: https://www.kexp.org/djs/mike-ramos/
- Single episode link: https://www.kexp.org/djs/mike-ramos/?stream_time=1615280460
- Direct download link: https://kexp-archive.streamguys1.com/content/kexp/20210316010003-12-391-variety-mix-overnight.mp3
- Live performance playlist: https://sessions.kexp.org:4443/live-performances/mp4:6cefeb3b-25c1-42f1-bbb7-0fb8d474773e.m4a/playlist.m3u8


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

It appears that KEXP is using the Wowza streaming engine. I just used the inspector to get the direct download url from the network requests when hitting _play_ on an episode. For live performances they are using playlist files. For DJ sets they use the direct links I posted above. This is a request for audio only, I have not tested video scraping (they do host performance videos too).
Repository: pytorch
Issue: SummaryWriter add_image() docs do not state that it is expecting images in a certain format
Labels: triaged,module: tensorboard,oncall: visualization

## 📚 Documentation

Currently the docs for `add_image()` do not state that it is expecting image data to either be a float in [0, 1] or an integer in [0, 255]. Not recognizing this leads to issues like https://discuss.pytorch.org/t/tensorboard-summarywriter-not-writing-images-correctly/115266

Maybe everyone assumed this was supposed to be obvious but I think it would be good to either refactor the code to allow a wider range of formats or update the docs to state that this is expected.
Repository: flutter
Issue: Windows word modifier inconsistencies
Labels: a: text input,framework,platform-windows,a: desktop,has reproducible steps,P2,found in release: 2.1,team-windows,triaged-windows

On Windows, navigating through text with the arrow keys while holding control behaves slightly differently than other platforms, and Flutter misses this.  Windows jumps to the start of the next word in either direction, while other platforms jump to the end of words when moving right and the beginning of words when moving left.

## Steps to Reproduce

1. Run the app below on Windows, which is just a TextField with "word word word" in it.
2. Focus the field and put the cursor at the start.
3. Hold the word modifier key (ctrl on Windows, option on Mac) and press the right arrow key.

**Expected results:** "word |word word"

**Actual results:** "word| word word"

This is the correct behavior on all other platforms, but not on Windows.

<details>
  <summary>Code</summary>

```dart
import 'package:flutter/material.dart';
 
void main() {
  runApp(MyApp());
}
 
class MyApp extends StatelessWidget {
  final TextEditingController controller = TextEditingController(text: 'word word word');

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: TextField(
            controller: controller,
          ),
        ),
      ),
    );
  }
}
```

</details>

Test on Windows 10 using Notepad.
Repository: vscode
Issue: Rendering Z Order confusing when cells have menu' going out of boundaries
Labels: under-discussion,notebook-layout

<!-- ⚠️⚠️ 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. -->

VS Code Version:1.55.0-insider (user setup)
Commit: 111a6cec70f9562cdd31a5fd8cdea4b3a9b7bd82
Date: 2021-03-18T05:14:49.087Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19042




Some html rendering gets confusing as all input cells renders always on  top:

![image](https://user-images.githubusercontent.com/375556/111697710-ced67880-882d-11eb-91c6-684c9e91c2dc.png)

![image](https://user-images.githubusercontent.com/375556/111697757-dbf36780-882d-11eb-81f2-1edfcacf8be8.png)

This is SandDance Visualization not working correctly due to Z order (@danmarshall) 

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 direct to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
Repository: go
Issue: x/pkgsite: package level examples do not render consistently with vN in path
Labels: NeedsInvestigation,pkgsite

<!--
Please answer these questions before submitting your issue. Thanks!
-->
 
### What is the URL of the page with the issue?
 
https://pkg.go.dev/periph.io/x/devices/v3/epd#example-package (cf. https://pkg.go.dev/periph.io/x/devices/epd#example-package currently at v3)

 
### What is your user agent?
 
<!-- 
You can find your user agent here:
https://www.whatismybrowser.com/detect/what-is-my-user-agent
-->

Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0
 
 
### Screenshot
 
<!--
Please paste a screenshot of the page.
-->

pkg.go.dev/periph.io/x/devices/v3/epd

![pkg.go.dev/periph.io/x/devices/v3/epd](https://user-images.githubusercontent.com/275221/111697144-189e7d80-8885-11eb-8e71-bef39eb60b0e.png)

pkg.go.dev/periph.io/x/devices/epd

![periph.io/x/devices/epd](https://user-images.githubusercontent.com/275221/111698755-2228e500-8887-11eb-9a52-a6383e84b45f.png)


### What did you do?
 
<!--
If possible, provide a recipe for reproducing the error.
-->
 
Navigate to links above and compare the rendering of the example.
 
### What did you expect to see?
 
The same rendering.
 
### What did you see instead?

The example on the v3 page does not use the same package main constructed rendering.
Repository: godot
Issue: Type 'ow' or 'w' with 'Microsoft Pinyin' input method in LineEdit will close the running project because it's interpreted as an F8 key press
Labels: bug,platform:windows,topic:editor,confirmed

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
3.2.3--3.3-RC5


**OS/device including version:**
Windows 10 (19042) x64


**Issue description:**
Expected:
In lineedit, type 'ow' or 'w' with 'Microsoft Chinese Pinyin' input method and press enter,then they will input normally.

Happened:
In Lineedit, type 'ow' or 'w' with 'Microsoft Chinese Pinyin' input method and press enter,then game crash without any error or log

**Steps to reproduce:**
In Lineedit of a godot game, type 'ow' or 'w' with 'Microsoft Chinese Pinyin' input method and press enter.

**Minimal reproduction project:**
Just a empty project with a LineEdit
Repository: pytorch
Issue: [Static Runtime] StaticRuntime.EmbeddingBag test case broken
Labels: module: tests,triaged

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->

## To Reproduce

One of the cpp static_runtime test fails

```
[----------] Global test environment tear-down
[==========] 15 tests from 1 test case ran. (3637 ms total)
[  PASSED  ] 14 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] StaticRuntime.EmbeddingBag
```

Steps to reproduce the behavior:

1. `BUILD_STATIC_RUNTIME_BENCHMARK=1 DEBUG=1 python setup.py install` (you mean need to do a clean build if `static_runtime_test` binary is not built)
1. `./build/bin/static_runtime_test`

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior

Should pass


cc @mruberry @VitalyFedyunin @walterddr