sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Seemingly incorrect error for missing trait bounds on associated type
Labels: A-diagnostics,A-lifetimes,A-trait-system,T-compiler,C-bug

I tried this code:

```rust
fn test() {
    let data = read::<[f32; 128]>("foo", 128);
}

fn read<T>(fname: &str, dimension: usize) -> Vec<T>
where
    for<'a> T: TryFrom<&'a [f32]>,
    for<'a> <T as TryFrom<&'a [f32]>>::Error: std::fmt::Debug,
```

I expected to see this happen: this should work, since `[f32; N]` implements `TryFrom<&[f32]>` with `Error = TrySliceError` and `TrySliceError` implements `Debug`.

Instead, [this happened](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=67f79187ff4f6aba8471d5394fba2aa6):

```rust
error[E0277]: `<[f32; 128] as TryFrom<&'a [f32]>>::Error` doesn't implement `Debug`
  --> tests/foo.rs:7:16
   |
7  |     let data = read::<[f32; 128]>("foo", 128);
   |                ^^^^^^^^^^^^^^^^^^^^^^^^ `<[f32; 128] as TryFrom<&'a [f32]>>::Error` cannot be formatted using `{:?}` because it doesn't implement `Debug`
...
10 | fn read<T>(fname: &str, dimension: usize) -> Vec<T>
   |    ---------- required by a bound in this
...
13 |     for<'a> <T as TryFrom<&'a [f32]>>::Error: std::fmt::Debug,
   |                                               --------------- required by this bound in `read`
   |
   = help: the trait `for<'a> Debug` is not implemented for `<[f32; 128] as TryFrom<&'a [f32]>>::Error`
```

### Meta
`rustc --version --verbose`:
```
rustc 1.49.0 (e1884a8e3 2020-12-29)
binary: rustc
commit-hash: e1884a8e3c3e813aada8254edfa120e85bf5ffca
commit-date: 2020-12-29
host: x86_64-apple-darwin
release: 1.49.0
```
Repository: godot
Issue: Rect2.intersects() wrongly assumes size has positive values
Labels: topic:core

**Godot version:**
3.2.4 and newer


**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->


**Issue description:**
This code should pass assertions:

```
extends Node


func _ready():
	var r1 := Rect2(2, 2, -2, -2)
	var r2 := Rect2(3, 3, -2, -2)
	assert(r1.abs().intersects(r2.abs()))
	assert(r1.intersects(r2))
	get_tree().quit()

```

**Steps to reproduce:**
Run provided code in Godot.

**Minimal reproduction project:**
[TestIntersects.zip](https://github.com/godotengine/godot/files/5830143/TestIntersects.zip)
Repository: svelte
Issue: feature: preprocessor can change tag attributes like <script lang="ts">
Labels: feature request

**How important is this feature to you?**
zero to low priority, mostly cosmetic. browsers ignore extra attributes like `<script lang="ts">`

**Is your feature request related to a problem? Please describe.**
currently, preprocessors can not change tag attributes

for example

```html
<script lang="ts">export let name: string</script>
```

can only be transformed to

```html
<script lang="ts">export let name</script>
```

but not to

```html
<script>export let name</script>
```

because preprocessors can only read attributes, but not change them

<!--
If you'd like to propose an implementation for a large new feature or change then please create an RFC:
https://github.com/sveltejs/rfcs
-->

**Describe the solution you'd like**
allow preprocessors to to modify attributes
by returning the new attributes in `result.attributes`

for example, the typescript preprocessor could do
```js
if (attributes.lang != 'ts') return;
delete attributes.lang;
code = compile(code);
return { code, map, attributes };
```

**Describe alternatives you've considered**
do nothing, and let browsers ignore extra attributes

**related code**
https://github.com/sveltejs/svelte/blob/32775a699dd9cbc9884ee04931c3903b832775d5/src/compiler/preprocess/index.ts#L274-L285
Repository: create-react-app
Issue: checkLatestVersion fails when behind a corporate proxy
Labels: needs triage,issue: bug report

### Describe the bug

Currently create-react-app calls checkLatestVersion which directly tries to download the latest version from the npm registry, this fails when behind a corporate firewall that requires you connect through a proxy. As such it is impossible to run the rest of the application to generate a react app.

### Did you try recovering your dependencies?

n/a

### Which terms did you search for in User Guide?

proxy

### Environment

Environment Info:

  current version of create-react-app: 4.0.1
  running from C:\Users\john.lister\AppData\Roaming\npm\node_modules\create-react-app

  System:
    OS: Windows 10 10.0.17763
    CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
  Binaries:
    Node: 14.15.4 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.14.10 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 87.0.4280.141
    Edge: Spartan (44.17763.831.0)
    Internet Explorer: 11.0.17763.771

### Steps to reproduce

run 
npx create-react-app myapp
or
yarn create react-app myapp


### Expected behavior

Shows the welcome screen

### Actual behavior

Hangs immediately due to corporate firewall blocking direct outbound internet connections.


Suggestion 
Can a configuration parameter be added to use the "slower" method of using npm to check the version or if "--use-npm" specified force use of npm for checking version? alternatively switch to a library such as "request" that supports configuring a proxy using environment variables. Most other CLI tools support the standard HTTP_PROXY and HTTPS_PROXY environment variables
Repository: pytorch
Issue: [feature request] `torch.scan` (also port `lax.fori_loop` / `lax.while_loop` / `lax.associative_scan` and hopefully parallelized associative scans)
Labels: feature,triaged,module: numpy,needs design,module: functional UX,oncall: pt2,module: functorch,module: pt2-dispatcher

Exists in TF: https://www.tensorflow.org/api_docs/python/tf/scan (or some variant inspired by scan), JAX/LAX: https://jax.readthedocs.io/en/latest/_autosummary/jax.lax.scan.html, (old theano: https://theano.readthedocs.io/en/rel-0.6rc3/library/scan.html). There is also an ONNX op: https://github.com/onnx/onnx/blob/master/docs/Changelog.md#Scan-11

Related feature request on parallel fast associative scans: https://github.com/pytorch/pytorch/issues/95408

Could possibly be a way for coding of custom RNN that is guaranteed/confident for correct tracing/export. + the code becomes more functional style + easier to analyze/transform

Currently we would be writing for loops, but it's not sure, how different flavors of scripting / tracing handle the bounds and if it stays unrolled or not. A more constrained scan/reduce/map ops could give users extra confidence. Also memory could be economized at backprop if shapes are guaranteed to match: https://github.com/pytorch/pytorch/issues/46168

This may also be interesting for differntiating through optimization loops, since training loop may be represented as such ops as well.

cc @mruberry @rgommers @albanD @jbschlosser @zou3519 @ezyang @msaroufim @wconstab @bdhirsh @anijain2305 @Chillee @samdow @kshitij12345 @janeyx99 @gchanan @ngimel @soumith @heitorschueroff @gmagogsfm
Repository: flutter
Issue: Listen to results with navigator 2.0
Labels: framework,f: routes,c: proposal,P3,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

It's a common use case with mobile apps to navigate to a page and then after it is popped, refresh the previous screen or even change its state based on a result of an action executed on the second page.

With Navigator 1.0 the method `push` returned a Future that we could listen to know when the screen was visible again.

When opening a single screen it is easy to solve it with a Completer on the RouterDelegate, but we could not find a solution when opening multiple screens at once. 

**For exemple: Screen A opens B and C. And then B needs to listen to C's result after C is closed.**
<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

## Proposal
I'm still not so sure how this could be done, but it could be good if the pages or even the widgets had some sort of callback method.

Have you guys thought of something like this?

Thank you
<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: pytorch
Issue: RandomSampler is very slow with huge dataset
Labels: module: dataloader,triaged

## 🐛 Bug

The training time is getting slower and slower as the dataset size increases. 
At the moment I can't train a model with about 100M lines in the dataset as it is too slow (see below for metrics).

## To Reproduce

Steps to reproduce the behavior:

1. Running a training with a dataset of e.g. 10M samples. Record time per batch.
2. Running a training with a dataset of e.g. 100M samples. Record time per batch.
3. Time for step2 will be much higher than time for step1. 

I have conducted some experiments with Huggingface library and BERT models, here some numbers:

Number lines in dataset | seconds per batch
-- | --
100k | 0.16
10M | 0.25
100M | 3

Original issue was opened on [Huggingface library](https://github.com/huggingface/transformers/issues/8818). Cause of the problem is the RandomSampler. 
If RandomSampler is replaced with SequentialSampler I don't notice such a gap of performances.

## Expected behavior

Would expect RandomSampler to take similar time with increasing dataset size (e.g. working with 100M lines). 

## Environment

PyTorch version: 1.7.1
Is debug build: False
CUDA used to build PyTorch: 10.1
ROCM used to build PyTorch: N/A

OS: CentOS Linux 7 (Core) (x86_64)
GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
Clang version: Could not collect
CMake version: Could not collect

Python version: 3.7 (64-bit runtime)
Is CUDA available: True
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: Tesla V100-PCIE-16GB
Nvidia driver version: 418.39
cuDNN version: /usr/local/cuda-10.0/targets/x86_64-linux/lib/libcudnn.so.7.6.5
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[conda] blas                      1.0                         mkl  
[conda] cudatoolkit               10.1.243             h6bb024c_0  
[conda] mkl                       2020.2                      256  
[conda] mkl-service               2.3.0            py37he8ac12f_0  
[conda] mkl_fft                   1.2.0            py37h23d657b_0  
[conda] mkl_random                1.1.1            py37h0573a6f_0  
[conda] numpy                     1.19.2           py37h54aff64_0  
[conda] numpy-base                1.19.2           py37hfa32c7d_0  
[conda] pytorch                   1.7.1           py3.7_cuda10.1.243_cudnn7.6.3_0    pytorch
[conda] torchaudio                0.7.2                      py37    pytorch
[conda] torchvision               0.8.2                py37_cu101    pytorch

## Additional context

<!-- Add any other context about the problem here. -->


cc @SsnL @VitalyFedyunin @ejguan
Repository: pytorch
Issue: CosineAnnealingWarmRestarts lacks verbose functionality
Labels: module: optimizer,triaged

## 🐛 Bug

Nothing gets printed when calling CosineAnnealingWarmRestarts  with "verbose = True".

## To Reproduce

```
import torch, torchvision


dataset_train = torchvision.datasets.FakeData(size = 10, num_classes = 3,
                                              transform = torchvision.transforms.ToTensor())
model     = torchvision.models.resnet18(num_classes = 3)
criterion = torch.nn.CrossEntropyLoss()
optimizer = torch.optim.SGD(model.parameters(), lr = 0.001)
scheduler = torch.optim.lr_scheduler.CosineAnnealingWarmRestarts(optimizer, T_0 = 2, verbose = True)

loader_train = torch.utils.data.DataLoader(dataset_train)
iters = len(loader_train)


for epoch in range(6):
    
    for i, (x, target) in enumerate(loader_train):
        
        y_hat = model(x)
        loss = criterion(y_hat, target)
        
        optimizer.zero_grad()
        loss.backward()
        optimizer.step()
        
        scheduler.step(epoch + i/iters)
#         print({"epoch:": epoch + i/iters, "lr" : scheduler.get_last_lr()})
```


## Environment

 - PyTorch Version (e.g., 1.0): 1.7.1
 - OS (e.g., Linux): macOS 11.1 (x86_64)
 - How you installed PyTorch (`conda`, `pip`, source): pip
 - Build command you used (if compiling from source):
 - Python version: 3.7 (64-bit runtime)
 - CUDA/cuDNN version: No CUDA
 - GPU models and configuration: N/A



cc @vincentqb
Repository: terminal
Issue: DISCUSSION: An example of running terminal (either Windows Terminal, or conhost) attached to pseudo console
Labels: Issue-Question,Needs-Tag-Fix

I would like to feed/consume pseudo console pipes from my application and have some terminal (either Windows Terminal, or conhost) connected to this pseudo console. This is almost like https://github.com/microsoft/terminal/tree/main/samples/ConPTY/EchoCon but a little bit reversed. In EchoCon, application that feeds pseudo console (ping) is running as a separate process and current process is assumed to be run from terminal. But I want current process to feed pseudo console (current process can be run from terminal or not, it should not matter), and some terminal should be run from my application connected to pseudo console in a separate window.

The background is that I am porting application from Linux which uses multiple pseudo-consoles in one process. It is reading and writing to/from them in one thread sequentially. And it spawns multiple xterms connected to those pseudo consoles.

If I create multiple Windows pseudo consoles in one process, how can I spawn multiple terminal applications (conhost.exe?, Windows Terminal) to output content of those pseudo consoles?
Repository: godot
Issue: Vulkan: FXAA makes Transparent Bg to black
Labels: bug,topic:rendering,confirmed,topic:3d

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
3.2.4 beta 99fdf25613

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
RX 570X / driver=amdgpu / GLES2 and GLES3

**Issue description:**
<!-- What happened, and what was expected. -->
FXAA makes `Transparent Bg` to black. it happens on both gles2 and gles3.
MSAA works fine.

**Steps to reproduce:**
1. setting up a scene like below
![Screenshot_20210119_063230](https://user-images.githubusercontent.com/8281454/104964698-464f7d80-5a20-11eb-9a31-e0079d05b93b.png)
2. enable `Transparent Bg` option
3. try `Fxaa` on and off
![fxaa_on_off](https://user-images.githubusercontent.com/8281454/104964761-7008a480-5a20-11eb-917e-2363a7b87ab8.gif)

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[fxaa_transparent_bg.zip](https://github.com/godotengine/godot/files/5832483/fxaa_transparent_bg.zip)
Repository: godot
Issue: BakedLightmap CPU lightmapper crashes on large scenes
Labels: bug,topic:rendering,confirmed,crash,topic:3d

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
Godot 3.2.4 Beta 6 Compiled with MSVC


**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
GLES3 RTX2080s Windows 10 64bit


**Issue description:**
<!-- What happened, and what was expected. -->
While attempting to bake the Godot tps demo, It often crashes at the fixing seems and denoising or the capture step. I can stop the first crash by setting the quality level to low or disabling denoising. The 2nd crash is fixed by turning off capture or setting the cell size to a large value like 25.

I remember reading the godot blog about how the light octree used in the capture setting is inefficient and that light probes would be better for larger levels and reduz confirmed this. The primary issue is the first crash though.



**Steps to reproduce:**
1. Download the tps demo from master branch https://github.com/godotengine/tps-demo
2.  Open it in godot and go into the level->geometry->models folder and find all the gltf files. Reimport them with lightmap baking enabled.
3. open level.tscn, delete gi probe and setup a bakedlightmap node so it fits the scene. Enable environment set to scene. set bounces to 5.
4. try baking it will most likely crash on the fixing seems and denoising. 
5. turn off denoising and set the bake quality to low, you should now be able to get past the first crash.
6. Observe it now crashes at the capture step, raising the cell size to 25 fixes it.


**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
This bug only shows it self on large projects like the tps demo. Most likely due to the scale and amount of meshes to bake. I managed to get it on a test scene with kitbash3d assets as well but cant share due to licensing. 

I can link to a zip with the tps demo setup but its large and the changes which I made to the scene are listed above.
Repository: flutter
Issue: Unactionable "GLib-GIO-CRITICAL" and "libEGL warning" messages on startup
Labels: engine,platform-linux,a: desktop,P2,team-linux,triaged-linux

I get the following messages on startup when running a Flutter app:

```
(dummy_desktop:20711): GLib-GIO-CRITICAL **: 15:41:09.026: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
libEGL warning: DRI2: failed to authenticate
```
Repository: ant-design
Issue: Select clear button does not work on iPad
Labels: help wanted,Inactive,📱Mobile Device

- [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.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/antd-reproduction-template-forked-1kb0g?file=/index.js)

### Steps to reproduce
Select any item, open the dropdown, click at the clear button

### What is expected?
Items are cleared

### What is actually happening?
Items does not clear

| Environment | Info |
|---|---|
| antd | 4.9.2 |
| React | 16.14.0 |
| System | iPad IOS 14 |
| Browser | Safari 14 |

---
Double clicking the clear button will work. Single clicking will not.
![Select ipad bug](https://user-images.githubusercontent.com/36211804/104972265-5a59a600-5a45-11eb-94df-f70ab001c5f1.gif)


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: react
Issue: Bug: devtools may crash when custom hook has the name "useState"
Labels: Type: Bug,Component: Developer Tools

<!--
  Please provide a clear and concise description of what the bug is. Include
  screenshots if needed. Please test using the latest version of the relevant
  React packages to make sure your issue has not already been fixed.
-->

React version: 17.0.1

## Steps To Reproduce

1. clone repo: https://github.com/avkonst/react-devtools-crash-demo
2. yarn start
3. open the browser of the started app
4. open devtools
5. click Counter component in the components tab of the development tools
6. Watch it not loading anything and unhandled exception dumped to the console log

<!--
  Your bug will get fixed much faster if we can run your code and it doesn't
  have dependencies other than React. Issues without reproduction steps or
  code examples may be immediately closed as not actionable.
-->

Link to code example: https://github.com/avkonst/react-devtools-crash-demo

<!--
  Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a
  repository on GitHub, or provide a minimal code example that reproduces the
  problem. You may provide a screenshot of the application if you think it is
  relevant to your bug report. Here are some tips for providing a minimal
  example: https://stackoverflow.com/help/mcve.
-->

## The current behavior

Devtools crash when I click on the following component in the development tools:

```tsx
import React from 'react';

function useState() {
    React.useState(0);
    React.useEffect(() => () => {});
}

function Counter() {
	useState();
	React.useState(0);
	return <div>Open React Dev Tools Components panel,
		click on Counter component and
		observe the crash in the logging console.</div>;
}

export default Counter;
```

## The expected behavior

No crash and the development tools show hooks used.
Repository: create-react-app
Issue: Stuck at starting development server on version 4.0.1
Labels: needs triage,issue: bug report

### Describe the bug
Upgraded to version 4.0.1 from 3.4.x

Tried to start the server with `yarn start`, stuck at Starting development server.

I notice that `.eslintcache` was generated and appended up until some point then it stopped. Afterwards i'm just stuck in starting development server. (has been waiting for 10 minutes)

I have tried downgrading to version 4.0.0 and it worked after waiting for a while to compile (after around 5 minutes)

### Did you try recovering your dependencies?

I did this a couple of times, i deleted `node_modules` folder and `yarn.lock`, then tried reinstalling it with no luck

Yarn version: 1.22.10

### Additional Information

I just upgraded my react to 17 at the same time as well, not sure if that affects anything?

Changes I made to my dependencies is only react and eslint (bumped eslint to 17)

Also since version 4.0.0 has issue #9887, my prettier error seems to be blocking my CRA to be renderred


<img width="967" alt="Screen Shot 2021-01-19 at 1 54 05 pm" src="https://user-images.githubusercontent.com/15647967/104981988-cc3de980-5a5d-11eb-9ceb-1f83a88f7dd2.png">



### Environment

```

Environment Info:

  current version of create-react-app: 3.4.1
  running from /Users/bluefitmarketing/.config/yarn/global/node_modules/create-react-app

  System:
    OS: macOS 11.1
    CPU: (6) x64 Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz
  Binaries:
    Node: 12.20.0 - ~/.nvm/versions/node/v12.20.0/bin/node
    Yarn: 1.22.10 - ~/.nvm/versions/node/v12.20.0/bin/yarn
    npm: 6.14.8 - ~/.nvm/versions/node/v12.20.0/bin/npm
  Browsers:
    Chrome: 87.0.4280.141
    Firefox: 76.0.1
    Safari: 14.0.2
  npmPackages:
    react: ^17.0.1 => 17.0.1 (15.7.0)
    react-dom: ^17.0.1 => 17.0.1 (15.7.0)
    react-scripts: 4.0.0 => 4.0.0
  npmGlobalPackages:
    create-react-app: Not Found
```