sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Add `note` explaining that the same variant of the same enum with different type params are different types
Labels: A-diagnostics,P-low,T-compiler,D-papercut,D-newcomer-roadblock,D-terse

As brought up in https://github.com/rust-lang/rust/issues/51479, `Result<A, i32>::Err(0)` and `Result<B, i32>::Err(0)` [are not of the same type](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=e21b8b4c30f0d74d2a5c5c8e88dd21a1). We should add a note (or ideally a structured suggestion on what to write) explaining this.

```
error[E0308]: `match` arms have incompatible types
 --> src/lib.rs:8:16
  |
6 | /     match f2() {
7 | |         Ok(value) => Ok(value as i64),
  | |                      ---------------- this is found to be of type `Result<i64, String>`
8 | |         err => err,
  | |                ^^^ expected `i64`, found `i32`
9 | |     }
  | |_____- `match` arms have incompatible types
  |
  = note: expected enum `Result<i64, _>`
             found enum `Result<i32, _>`
```

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"SparrowLii"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: godot
Issue: Editor crashes when saving collision shape
Labels: bug,topic:editor,needs testing,crash

### Godot version

4.0.dev (391633760b0ea292af079287faf79c1aee6d9254)

### System information

Windows 10

### Issue description

Editor crashes after saving a `ConvexPolygonShape2D` as a new resource
![image](https://user-images.githubusercontent.com/19283945/160016827-a451f861-8e5c-4db9-988b-2109d3ec55b3.png)
from there it correctly pops the "Save Resource As..." dialog, and the file is saved. However the editor crashes. Upon reopening the project, the created resource is not set to the Shape property of the CollisionShape2D Node.

This is not 100% reliable, I think. I noticed two cases:

1. Sometimes, in the "Save Resource As..." dialog the preset for the filename is "myscene.tres", in which case upon saving the resource (even with a different name) the editor crashes.
2. Sometimes, in that dialog the preset for the filename is "new_convex_polygon_shape_2d.tres", in which case the resource will save correctly and the editor will keep working normally.

For other shapes (CapsuleShape2D and so on) I only ever managed to get the second case. I'm not sure what the discriminating factor is in falling in the first case.

### Steps to reproduce

See above

### Minimal reproduction project

[Test.zip](https://github.com/godotengine/godot/files/8346016/Test.zip)
Repository: flutter
Issue: Evaluate pretenuring objects that are likely to survive new gen collections
Labels: engine,c: performance,dependency: dart,P2,team-engine,triaged-engine

Performance profiling has indicated that a larger new gen with less frequent new gen collections could be beneficial for reducing startup time and/or reducing jank. However increasing new gen size by itself only kicks the can down the road since that new gen collection has to happen eventually (which would further delay startup or introduce a larger jank).

However, studying a profile of objects allocated into new gen and their lifetimes may give hints about the sorts of objects that might be pretenured such that their allocation wouldn't cause new gen to fill up so quickly, triggering fewer new gen collections.

Some suggestions from @mraleph from chat on how to do this:
> I was thinking about making an AOT specific patch which would record top N frames for each new space allocation, and then dumping this information on every (minor) GC together with survived/died bit.

> I was trying to get uprobes+simpleperf working today to achieve this (because I felt that writing stacktrace collection code would be a waste of time - but it turned out I need a really new phone to get it working reliably :( so in the end we might need to write this stuff from scratch in the VM).
Repository: flutter
Issue: Remove the toggle to disable display lists and delete dead code.
Labels: engine,P3,c: tech-debt,team-engine,triaged-engine

Display lists have been enabled by default for a while on all platforms. Yet, the toggle to disable them still exists. Because of this, code exists to redirect rendering into to canvas instead of a display list builder. This code is effectively dead because the flag isn't used by anyone. Besides, displays lists are the way forward and other features are being built on top of it.

This issue tracks the removal of support for the flag and the deletion of dead code.
Repository: flutter
Issue: A11y text contrast guideline gives false positives
Labels: a: tests,framework,a: accessibility,customer: money (g3),P2,team-framework,triaged-framework

Internal: b/292548334

See https://github.com/flutter/flutter/pull/100267 - however, the approach in that PR won't quite work because text color can be influenced by many other factors that it would currently miss.

WCAG says you can ignore AA when doing these comparisons. We don't have a way to turn off AA for text currently (e.g. I attempted on a couple platforms to set the foreground paint with `isAntiAlias = false` and it had no perceptible effect).

@jonahwilliams suggested offline that we might be picking an incorrect background color sometimes. Another option discussed with @matasb-google is to make this matcher somewhat more extensible so that customers could use alternative application-specific methods of validating text color if so desired (even if we can't accept that into the framework).

Internal customer saying that many tests are disabled for this right now because of false positives (cases where they clearly are meeting contrast guidelines).

Here's a sample application for this:

```dart
import 'package:flutter/material.dart';

void main() {
  const Color surface = Color(0xFFF0F0F0);

  /// Shades of blue with contrast ratio of 2.9, 4.4, 4.5 from [surface].
  const Color blue29 = Color(0xFF7E7EFB);
  const Color blue44 = Color(0xFF5757FF);
  const Color blue45 = Color(0xFF5252FF);
  runApp(
    MaterialApp(
      title: 'Demo',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: Scaffold(
        body: Center(
          child: Container(
            color: surface,
            child: Column(
              children: <Widget>[
                SizedBox(height: 50, width: 400),
                Text('Hello world', style: TextStyle(color = blue29, fontSize: 18)),
                Text('Hello world', style: TextStyle(foreground: Paint()..color = blue29..isAntiAlias = false, fontSize: 18)),
                SizedBox(height: 50, width: 400),
                Text('Hello world', style: TextStyle(color: blue44, fontSize: 18)),
                Text('Hello world', style: TextStyle(foreground: Paint()..color = blue44..isAntiAlias = false, fontSize: 18)),
                SizedBox(height: 50, width: 400),
                Text('Hello world', style: TextStyle(color: blue45, fontSize: 18)),
                Text('Hello world', style: TextStyle(foreground: Paint()..color = blue45..isAntiAlias = false, fontSize: 18)),
                SizedBox(height: 50, width: 400),
              ],
            ),
          ),
        ),
      ),
    ),
  );
}
```

/cc @chunhtai @goderbauer
Repository: godot
Issue: Godot does not report self referencing error on steam version.
Labels: topic:gdscript,needs testing

### Godot version

v3.4.4.stable.official

### System information

Kde Neon 20.04

### Issue description

It seems that godot is not reporting self referencing error in one of my scripts. 

### Steps to reproduce

- Open the project
- View errors

### Minimal reproduction project

[AstroWars.zip](https://github.com/godotengine/godot/files/8346637/AstroWars.zip)
Repository: pytorch
Issue: RuntimeError: Unconvertible NCCL type Short when sending torch.cuda.ShortTensor.
Labels: oncall: distributed,module: c10d

### 🐛 Describe the bug

The bug happens when I try to use dist.send to send torch.cuda.ShortTensor.
The code is
```
import torch.multiprocessing as mp
import torch

import torch.distributed as dist

def testfunc(rank,nothing):
    print(rank)
    dist.init_process_group(
        backend="nccl", init_method="tcp://127.0.0.1:1214", world_size=2, rank=rank,group_name="test"
    )
    if rank == 0:
        # something = torch.rand([1,2]).to(0)
        something = torch.rand([1,2]).type(torch.cuda.ShortTensor).to(0)
        
        dist.send(something,1)
        print(something)
    if rank == 1:
        # something = torch.rand([1,2]).to(3)
        something = torch.rand([1,2]).type(torch.cuda.ShortTensor).to(3)
        
        dist.recv(something,0)


    
    
def main():
    torch.multiprocessing.set_start_method("spawn")
    for i in range(2):
        # print(i)
        p = mp.Process(target = testfunc,args = (i,1))
        p.start()




if __name__ == '__main__':
    main()
```
The error is
```
0
1
Process Process-2:
Process Process-1:
Traceback (most recent call last):
Traceback (most recent call last):
  File "/home/haokang/anaconda3/envs/kh3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/home/haokang/anaconda3/envs/kh3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/home/haokang/distributed/test.py", line 22, in testfunc
    dist.recv(something,0)
  File "/home/haokang/anaconda3/envs/kh3.8/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 1002, in recv
    pg.recv([tensor], src, tag).wait()
  File "/home/haokang/anaconda3/envs/kh3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/home/haokang/anaconda3/envs/kh3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
RuntimeError: Unconvertible NCCL type Short
  File "/home/haokang/distributed/test.py", line 16, in testfunc
    dist.send(something,1)
  File "/home/haokang/anaconda3/envs/kh3.8/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 959, in send
    default_pg.send([tensor], dst, tag).wait()
RuntimeError: Unconvertible NCCL type Short
```

### Versions

python --version 3.8
pytorch --version 1.12.0(pytorch nightly)

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang
Repository: create-react-app
Issue: Error when integrating third-party library with typescript
Labels: needs triage

I was trying to integrate Human (https://github.com/vladmandic/human) into a new project created by `npx create-react-app amdemo --template typescript`.

I use `Human` in my `App.tsx` in the following way:
```typescript
import {Human, Config} from './human'

const humanConfig: Partial<Config> = { // user configuration for human, used to fine-tune behavior
  // backend: 'webgpu' as const,
  // async: true,
  // ...
};
const human = new Human(humanConfig); // create instance of human with overrides from user configuration
```

I tried to add "human.esm.js" and corresponding .d.ts to `src` folder, but got massive errors.

Then I followed the `public folder` workaround to: 
1. put "human.js" to `public`, and reference it in "public/index.html"
2. put "human.d.ts" to `src`

Then webpack complains that:
```
ERROR in ./src/App.tsx 6:0-32
Module not found: Error: Can't resolve './human' in '/Users/a1234/src/amdemo/src'
```

In order to please webpack, I created an empty `human.js` in `src`, 
this time webpack complile success. but I got runtime error because webapck rewrites my code to:
```javascript
const human = new _human__WEBPACK_IMPORTED_MODULE_2__.Human(humanConfig);
```

So what's the best way to resolve this?
Repository: yt-dlp
Issue: EPIX trailers and extras
Labels: site-request

### Checklist

- [X] I'm reporting a new site support request
- [X] I've verified that I'm running yt-dlp version **2022.03.08.1**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update))
- [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](https://github.com/ytdl-org/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free) or contain any [DRM](https://en.wikipedia.org/wiki/Digital_rights_management) to the best of my knowledge
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and am willing to share it if required

### Region

USA

### Example URLs

Single Video - https://www.epix.com/series/from/season/1/episode/3/from-s1-e3?trailer=true
Single Video - https://www.epix.com/series/from/extra/13596

### Description

Trailers and extras support at the very least, would be sufficient and are playable without login. 

### Verbose log

```shell
[debug] Command-line config: ['-vU', 'https://www.epix.com/series/from/season/1/episode/3/from-s1-e3?trailer=true']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
[debug] yt-dlp version 2022.03.08.1 [c0c2c57] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] exe versions: ffmpeg 5.0-full_build-www.gyan.dev (setts), ffprobe 5.0-full_build-www.gyan.dev
[debug] Optional libraries: brotli, Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.03.08.1, Current version: 2022.03.08.1
yt-dlp is up to date (2022.03.08.1)
[debug] [generic] Extracting URL: https://www.epix.com/series/from/season/1/episode/3/from-s1-e3?trailer=true
[generic] from-s1-e3?trailer=true: Requesting header
WARNING: [generic] Falling back on generic information extractor.
[generic] from-s1-e3?trailer=true: Downloading webpage
[generic] from-s1-e3?trailer=true: Extracting information
[debug] Looking for video embeds
ERROR: Unsupported URL: https://www.epix.com/series/from/season/1/episode/3/from-s1-e3?trailer=true
Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 1389, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1459, in __extract_info
  File "yt_dlp\extractor\common.py", line 617, in extract
  File "yt_dlp\extractor\generic.py", line 3985, in _real_extract
yt_dlp.utils.UnsupportedError: Unsupported URL: https://www.epix.com/series/from/season/1/episode/3/from-s1-e3?trailer=true
```
Repository: godot
Issue: Godot 4.0 crashes when enabling use_xr on viewport
Labels: bug,platform:windows,topic:rendering,confirmed,topic:thirdparty,topic:xr,crash

### Godot version

4.0 alpha 5

### System information

Windows 10, Vulkan, AMD RX460, SteamVR 1.21.12

### Issue description

Godot 4.0 crashes when enabling use_xr on viewport. This applies to both the main viewport and subviewports. 

I've tried it with Windows Mixed Reality and TrinusVR Cardboard, it crash the same way with both with SteamVR set as the OpenXR runtime.

Headset tracking seems to work fine, and can render to the normal display just fine, but once XR is enabled, the game just closes.

```
OpenXR: Running on OpenXR runtime:  SteamVR/OpenXR   0.1.0
Godot Engine v4.0.alpha5.official.d7d528c15 - https://godotengine.org
OpenXR: XrGraphicsRequirementsVulkan2KHR:
 - minApiVersionSupported:  1.0.0
 - maxApiVersionSupported:  1.2.0
ERROR: GENERAL - Message Id Number: 0 | Message Id Name: Loader Message
        loader_scanned_icd_add: Driver C:\Windows\System32\DriverStore\FileRepository\u0376944.inf_amd64_7a28758ed8b2ac21\B376966\.\amdvlk64.dll says it supports interface version 6 but still exports core entrypoints (Policy #LDP_DRIVER_6)
        Objects - 1
                Object[0] - VK_OBJECT_TYPE_INSTANCE, Handle 130841264
   at: _debug_messenger_callback (drivers/vulkan/vulkan_context.cpp:159)
Vulkan API 1.2.0 - Using Vulkan Device #0: AMD - Radeon (TM) RX 460

OpenXR: Found supported reference space  XR_REFERENCE_SPACE_TYPE_VIEW
OpenXR: Found supported reference space  XR_REFERENCE_SPACE_TYPE_LOCAL
OpenXR: Found supported reference space  XR_REFERENCE_SPACE_TYPE_STAGE
OpenXR: Found supported swapchain format  VK_FORMAT_R8G8B8A8_SRGB
OpenXR: Found supported swapchain format  VK_FORMAT_B8G8R8A8_SRGB
OpenXR: Found supported swapchain format  VK_FORMAT_R32G32B32A32_SFLOAT
OpenXR: Found supported swapchain format  VK_FORMAT_R32G32B32_SFLOAT
OpenXR: Found supported swapchain format  VK_FORMAT_R16G16B16A16_SFLOAT
OpenXR: Found supported swapchain format  VK_FORMAT_D32_SFLOAT
OpenXR: Found supported swapchain format  VK_FORMAT_D16_UNORM
OpenXR: Found supported swapchain format  VK_FORMAT_D24_UNORM_S8_UINT
OpenXR: Found supported swapchain format  VK_FORMAT_D32_SFLOAT_S8_UINT
Using swap chain format: VK_FORMAT_R8G8B8A8_SRGB
```

### Steps to reproduce

Set `use_xr`  to true on a viewport. 
`get_viewport().use_xr = true`

### Minimal reproduction project

[VR Test Project.zip](https://github.com/godotengine/godot/files/8347835/VR.Test.Project.4.zip)
Repository: godot
Issue: Launching a game with Windows Mixed Reality as the OpenXR Runtime gives a misleading error.
Labels: bug,platform:windows,topic:xr

### Godot version

4.0 alpha 5

### System information

Windows 10 build 19043.1586, Vulkan, AMD RX460

### Issue description

Launching a game with Windows Mixed Reality as the OpenXR Runtime gives a misleading error popup:
![image](https://user-images.githubusercontent.com/32441086/160064387-601d3cb4-bae8-41a5-a960-090e7cfd20e7.png)

This is the log:
```
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : LoaderInstance::CreateInstance, no support found for requested extension: XR_KHR_vulkan_enable2
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : xrCreateInstance failed
ERROR: Failed to create XR instance.
   at: (modules/openxr/openxr_api.cpp:295)
Godot Engine v4.0.alpha5.official.d7d528c15 - https://godotengine.org
ERROR: Parameter "xrGetVulkanGraphicsRequirements2KHR_ptr" is null.
   at: xrGetVulkanGraphicsRequirements2KHR (modules/openxr/extensions/openxr_vulkan_extension.cpp:98)
OpenXR: Failed to get vulkan graphics requirements [ Error code -12 ]
```

From what I gather from [this blog post](https://techcommunity.microsoft.com/t5/mixed-reality-blog/introduction-to-openxr-explorer/ba-p/2733927), WMR doesn't support Vulkan or OpenGL...



### Steps to reproduce

1. Restart the Mixed Reality Portal
2. Wait for the pop-up about OpenXR and press (Fix it)
3. Run an OpenXR game in Godot 4.0

### Minimal reproduction project

_No response_
Repository: pytorch
Issue: GradScaler support FP16 gradients?
Labels: triaged,module: amp (automated mixed precision)

### 🚀 The feature, motivation and pitch

Why does `GradScaler.unscale_`  only support float32 gradients but not support FP16 gradients?
https://github.com/pytorch/pytorch/blob/c7a6be4b9c3aacea72db827877b169f465e41578/torch/cuda/amp/grad_scaler.py#L279

### Alternatives

_No response_

### Additional context

_No response_

cc @mcarilli @ptrblck @vincentqb @jbschlosser
Repository: react-native
Issue: When I add Text component selectable prop. Selected area is not visible.
Labels: Needs: Triage :mag:

### Description

I wanted to see the part you chose as follows.
<img width="129" alt="image" src="https://user-images.githubusercontent.com/48207131/160072124-0203d1c1-587c-47f7-942e-bbabece4045a.png">
But nothing showing
![화면 기록 2022-03-25 오후 4 09 03](https://user-images.githubusercontent.com/48207131/160071934-0131eaa8-96fc-476b-9253-1e8e7c0cb2cd.gif)


### Version

0.67.3

### Output of `npx react-native info`

System:
    OS: macOS 11.6.4
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 294.92 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
    Yarn: 1.22.15 - ~/.yarn/bin/yarn
    npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm
    Watchman: 2022.03.14.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
    Android SDK:
      API Levels: 23, 26, 28, 29, 30, 31, 32
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.1, 30.0.2, 31.0.0, 32.0.0
      System Images: android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7621141
    Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_265 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.67.2 => 0.67.2 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

### Steps to reproduce

Just long press text to select. It occurs in iOS.

### Snack, code example, screenshot, or link to a repository

https://snack.expo.dev/@coderhyun/text-selectable
Repository: flutter
Issue: Exclude dev dependencies in showLicensePage
Labels: framework,f: material design,c: proposal,team-design,triaged-design

## Use case

My current project requires an OSS license acknowledgement page, which I conveniently have Flutter generate by means of `showLicensePage(context)`.

When inspecting the licenses, I observe the list also includes all our development dependencies.

Our legal department instructs me I should not include dependencies that are not delivered with my app, like dependencies on testing tools.

## Proposal

Please provide a means to omit all "dev_dependencies", or perhaps allow for an explicit list of packages to omit. This would provide more control over the packages included in the licenses list.
Repository: yt-dlp
Issue: Capturing HTTP traffic into a HAR file
Labels: enhancement,PR-needed,core:networking,low-priority

### Checklist

- [X] I'm reporting a feature request
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I'm running yt-dlp version **2022.03.08.1**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update))
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Description

HTTP Archive (HAR) is a JSON-based format capable of storing a log of HTTP(S) traffic. It can be readily generated by Chrome and Firefox developer tools. It would be tremendously useful if yt-dlp could generate this kind of file as well when capturing its own traffic. It would for example help when triaging unreproducible issues: if we ever get a report of an issue that fails to reproduce, we may be able to ask the user to attach a compressed `.har` file generated by yt-dlp to the ticket. The closest thing `yt-dlp` offers right now are the options `--write-pages` and `--print-traffic`, neither of which is readily suitable for short-to-medium-term storage.

However, since a dump of HTTP traffic can contain cookies, IP addresses and other sensitive data, we would have to either encrypt the HAR file or attempt to redact those data. We may also need a similar tool for redacting/encrypting HAR files obtained from a browser inspector, which may also be very helpful, especially when diagnosing issues with geo-blocked sites. Posting a HAR file exported from the browser could then serve as a somewhat safer alternative to credential sharing.