sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: fn item can't coerce to trait object when a trait bound has a lifetime parameter
Labels: A-lifetimes,T-lang,T-compiler,C-bug,A-coercions

<!--
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.
-->

```rust
trait Trait<'a> {}
impl<'a, T> Trait<'a> for T {}

fn func<'a, T: Trait<'a>>(x: &'a str) {}
const CONST: &dyn for<'a> Fn(&'a str) = &func::<i32>;
```

fails to typecheck with the errors:

```
error[E0631]: type mismatch in function arguments
 --> src/lib.rs:5:41
  |
4 | fn func<'a, T: Trait<'a>>(x: &'a str) {}
  | ------------------------------------- found signature of `fn(&str) -> _`
5 | const CONST: &dyn for<'a> Fn(&'a str) = &func::<i32>;
  |                                         ^^^^^^^^^^^^ expected signature of `for<'a> fn(&'a str) -> _`
  |
  = note: required for the cast to the object type `dyn for<'a> std::ops::Fn(&'a str)`

error[E0271]: type mismatch resolving `for<'a> <fn(&str) {func::<'_, i32>} as std::ops::FnOnce<(&'a str,)>>::Output == ()`
 --> src/lib.rs:5:41
  |
5 | const CONST: &dyn for<'a> Fn(&'a str) = &func::<i32>;
  |                                         ^^^^^^^^^^^^ expected bound lifetime parameter 'a, found concrete lifetime
  |
  = note: required for the cast to the object type `dyn for<'a> std::ops::Fn(&'a str)`
```

If `Trait` does not have a lifetime parameter, or if `func::<i32>` is replaced with `|x| func::<i32>(x)`, the example compiles successfully.

### Meta
<!--
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.
-->

`rustc --version --verbose`:
```
rustc 1.42.0 (b8cedc004 2020-03-09)
binary: rustc
commit-hash: b8cedc00407a4c56a3bda1ed605c6fc166655447
commit-date: 2020-03-09
host: x86_64-unknown-linux-gnu
release: 1.42.0
LLVM version: 9.0
```
Repository: pytorch
Issue: incomplete implementation doubt
Labels: module: nn,triaged

I created a incomplete implementation of stand alone self attention, I have certain doubts regarding it, should I create a pull request with [WIP], to iterate and figure out solutions to mistakes in my implementation.

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: scrcpy
Issue: CODM Controls
Labels: input events,mouse capture

Hi. 

I have now been able to get SCRCPY up and running between PC / Samsung phone. 
I can see my mouse and control the phone. 

But how do I now setup the controls to allow me to use the keyboard and mouse for CODM in place of my phone? 

Thanks
Repository: TypeScript
Issue: Function implementation that returns literal types is not assignable to widened overload
Labels: Bug

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

<!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  3.8.3

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** overload widen literal

**Code**

```ts
function foo(x: string): string;
function foo(x: number): number;

function foo(x: string | number) {
    if (typeof x === 'string') return 'foo';
    return 23;
}
```

**Expected behavior:** Implementation satisfies overloads.

**Actual behavior:** The first overload throws an error that it doesn't match the implementation. Doesn't matter which overload comes first.

[**Playground Link**](https://www.typescriptlang.org/play/?ssl=1&ssc=1&pln=7&pc=2#code/GYVwdgxgLglg9mABMOcAUAPAXIgzlAJxjAHMBKHfI0gbgChRJYFlVMcwQBbAIwFMCFRJ14D6DcNHhIU6bHkLESiAD7Du-QYgDedRPsQxgiNFACeABz5xjGRAF5HiAORUlzsogJ8oIAkmdZZ3oDLx8-JAAmAGZ6AF8gA)

If I widen the literals in the implementation by casting them then everything [works fine](https://www.typescriptlang.org/play/#code/GYVwdgxgLglg9mABMOcAUAPAXIgzlAJxjAHMBKHfI0gbgChRJYFlVMcwQBbAIwFMCFRJ14D6DcNHhIU6bHkLESiAD7Du-QYgDedRPsQxgiNFACeABz5xjGRAF5HiAORUlzsogJ8oIAkmdZZ0QAQ1wFahJ6Ay8fPyQAJgBmUPCRTXoAXyA).

**Related Issues:** https://github.com/microsoft/TypeScript/issues/37393
Repository: go
Issue: os/exec: status of FDs >= len(cmd.ExtraFiles)+3 is undocumented
Labels: Documentation,help wanted,NeedsFix

#### What version of Go are you using (`go version`)?
go version go1.14 linux/amd64

#### What operating system and processor architecture are you using (`go env`)?
GOARCH="amd64"
GOOS="linux"

#### What did you do?
Invocation: `$ parent-cmd 0<a 1>b 2>c 3>d 4>e 5>f`

```go
cmd := exec.Command("child-cmd")
cmd.ExtraFiles = []*os.File{os.Stderr}
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Start() // in child-cmd: 0=a 1=b 2=c 3=c 4=e 5=closed!
```

#### What did you expect to see?
File descriptors 4 and 5 (>= len(cmd.ExtraFiles)+3) to be either both inherited or none, and the behavior to be documented.

#### What did you see instead?
File descriptor 4 is inherited, but 5 is not. The doc doesn't say anything about
FDs >= len(cmd.ExtraFiles)+3 in the child process.
Repository: godot
Issue: Nested dublicated Viewport+ViewportContainer blocking GUI
Labels: bug,topic:gui

**Godot version:** 3.2.1

**OS/device including version:** Fedora 30

**CPU:** Intel Core i5-8250U (x86_64)

**GPU:** Integrated/Intel UHD Graphics 620

**Issue description:**
Nested dublicated Viewport+ViewportContainer blocks gui so it's not possible to interact with GUI

**Steps to reproduce:**
1) Create ViewportContainer
2) Add Viewport to ViewportContainer
3) Dublicate ViewportContainer
4) Make copy's parent first ViewportContainer
Buttons are no longer interactive

**Minimal reproduction project:**
https://drive.google.com/file/d/1eUnMuIArpYI7S9L3uLCs8jpHIrb8j2nL/view?usp=sharing
Repository: flutter
Issue: TextField: Keyboard not showing on `autofocus: true` after app is paused then resumed in Android
Labels: a: text input,platform-android,framework,f: material design,has reproducible steps,P2,found in release: 3.0,found in release: 3.1,team-text-input,triaged-text-input

<!-- 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 our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->

1. Create a `TextField` with `autofocus: true`
2. Run application. The input should be focused and keyboard is showing.
3. Put the application on background, then open it again to send it to foreground.

**Expected results:** <!-- what did you want to see? -->
TextField should be focused and the keyboard should be opened.

**Actual results:** <!-- what did you see? -->
TextField is showing but the keyboard is not opened.
Repository: TypeScript
Issue: Show return type, when hovering `return` statement
Labels: Suggestion,Awaiting More Feedback

## Search Terms
return type, completion
<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->

## Suggestion
As of now, if I hover the `return` statement in a function, I don't get any autocompletion. However, this would be a great opportunity to show the return type of the statement that is being returned.
<img width="490" alt="Screen Shot 2020-03-14 at 9 29 19 AM" src="https://user-images.githubusercontent.com/1094804/76684000-5879b780-65d6-11ea-8370-cdb9e590adce.png">

<!-- A summary of what you'd like to see added or changed -->

## Use Cases

<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->

## Examples

<!-- Show how this would be used and what the behavior would be -->

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: pytorch
Issue: Add ability to return a copy to Module's state_dict member function.
Labels: module: nn,triaged,enhancement

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->
Add the ability for the `Module`'s `state_dict` member function to optionally provide detached copies of the module's internal state. Probably controlled with a keyword argument `copy=False`. 

## Motivation

<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
When optimizing the loss for a neural network I'm working on the optimizer seems to have a tendency to overshoot or not finish converging in my iteration limit. My simple solution is to use whichever iteration has the lowest loss, but I have to keep track of that myself. I thought I could copy the state of my model using the `state_dict` function, but I've discovered that this doesn't actually copy the state, just gives me references to it. So the state keeps getting updated. I can use the `dumps` and `loads` functions from Python's `pickle` library to get around this problem, but that seems sub-optimal. 

## Pitch

<!-- A clear and concise description of what you want to happen. -->

## Alternatives

<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->

## Additional context

<!-- Add any other context or screenshots about the feature request here. -->
Repository: rust
Issue: Move lexer punctuation confusables list to `unicode-security` crate and sync it with newest Unicode version.
Labels: C-enhancement,A-Unicode,T-compiler

Now that Unicode 13 is released, maybe we should bump the unicode version.
Repository: scrcpy
Issue: Is there a way to simulate swipe gesture?
Labels: input events

Scrcpy is an amazing tool! It has been extremely helpful for me.

I'm trying to figure out if there is a way to simulate swipe gestures. For example, when I use ctrl+n to see notifications, the only way I can dismiss a notification is to use the left mouse button to click on the notification and then swipe my mouse. This works most of the time, but sometimes it's difficult to click and swipe with the mouse in just the right way. I'm wondering if there is a way (e.g. a key combination or a combination of holding a key while clicking with the mouse, etc.) that would send the swipe gesture to the phone. Similarly, is there a way to simulate a two-finger swipe (up or down)?

Thanks, again, for creating this amazing tool and helping with these questions.
Repository: TypeScript
Issue: Unrecognised JSDoc Namepath
Labels: Bug,Domain: JSDoc

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

**TypeScript Version:**  3.9.0-dev.20200313

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** JSDoc namepath.

**Expected behavior:** JSDoc [namepath](https://jsdoc.app/about-namepaths.html) to be recognised and used.

**Actual behavior:** `error TS1005: '}' expected.`

<!-- Did you find other bugs that looked similar? -->
**Related Issues:** None.

**Code**
```ts
/**
 * @typedef {number} testFnA.arg
 */

/**
 * @param {testFnA.arg} arg
 */
function testFnA(arg) { // CORRECT TYPE 'number'
    return arg * arg;
}

/**
 * @typedef {number} testFnB~arg
 */

/**
 * @param {testFnB~arg} arg
 */
function testFnB(arg) { // INCORRECT TYPE 'any'
    return arg * arg;
}
```




<details><summary><b>Compiler Options</b></summary>

```json
{
  "compilerOptions": {
    "noImplicitAny": true,
    "strictFunctionTypes": true,
    "strictPropertyInitialization": true,
    "strictBindCallApply": true,
    "noImplicitThis": true,
    "noImplicitReturns": true,
    "alwaysStrict": true,
    "esModuleInterop": true,
    "checkJs": true,
    "allowJs": true,
    "declaration": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "moduleResolution": 2,
    "target": "ES2017",
    "jsx": "React",
    "module": "ESNext"
  }
}
```


</details>

**Playground Link:** [Provided](https://www.typescriptlang.org/play?ts=next&useJavaScript=true#code/PQKhCgAIUgBAXAngBwKYBNUDNIG8B2ArgLYBGqATgL6TyoDO8AYvgIIB0AhhQOZQjBw4UBGhxk3TsTx1GLDtx41F-QVkL4AxvACWAe3y0GzNgApFASjyRgwSAGEA8gCVnAUXsAVSJ4CaABTdIAHIiMkpgqEhoilR4QgpDRTFFAG5wKiERfjgkNEwcAhJyaiM5fAAhAD8VaEFhMBzYCQopGWMWasVlXlVwdS1dAzKTCvNeK1wbOwBJADknVw9vP0CQznxESOiYuISk3hTedKogA)
Repository: godot
Issue: Light2D on isometric TileMap issue without Ysort (or Quadrant set to 1)
Labels: bug,topic:rendering,confirmed

**Godot version:** 3.2.1

**OS/device including version:** Windows 10

**Issue description:**
Light2D produce weird behavior on isometric tilemap without Ysorting or with a Quadrant higher than 1. It's a bit problematic because on my test adding Ysort make me go from 500fps to 50fps and with a batch quadrant to 1 down to 150fps.
 
**Steps to reproduce:**
Make an isometric Tilemap, add light2D, dont add Ysorting and don't make quadrant equal 1

**Minimal reproduction project:**
[TilesetLightBug.zip](https://github.com/godotengine/godot/files/4333267/TilesetLightBug.zip)

No Y sorting, Quadrant 16 (the result varry with the quad size with visible "border")
![image](https://user-images.githubusercontent.com/471393/76689215-e8018380-6633-11ea-8d38-5ba1e8f5ce0b.png)

Y sorting or Quadrant 1
![image](https://user-images.githubusercontent.com/471393/76689221-f64f9f80-6633-11ea-93d3-1ba1cc2c46bd.png)
Repository: terminal
Issue: Swap panes
Labels: Help Wanted,Area-UserInterface,Product-Terminal,Issue-Task

Right now, after splitting my screen onto two panes, I cannot find a way to swap the panes between each other.

In tmux it's possible to move/swap opened panes in different ways.

Moving panes around in tmux:
```
C-a {          move the current pane to the previous position
C-a }          move the current pane to the next position
C-a C-o        rotate window ‘up’ (i.e. move all panes)
C-a M-o        rotate window ‘down’
C-a !          move the current pane into a new separate
               window (‘break pane’)
C-a :move-pane -t :3.2
               split window 3's pane 2 and move the current pane there
```
Related tmux commands:
* `swap-pane` e.g. `:swap-pane -s (first pane index) -t (second pane index)`
* `move-pane`
Repository: godot
Issue: Slider not able to slide on Touchscreen Devices
Labels: bug,platform:ios

**Godot version:**
3.1.2 stable official

**OS/device including version:**
Mac which I am coding on 10.14.6

**Issue description:**
Hslider not sliding on touchscreen devices.

**Device Information:**
iphone 6, software version 12.4.5

**Steps to reproduce:**
(Run this project on an iPhone or similar touchscreen device)
[GodotTester.zip](https://github.com/godotengine/godot/files/4333539/GodotTester.zip)

**The video showing that it doesn't work:**

[video.zip](https://github.com/godotengine/godot/files/4333556/video.zip)


**Minimal reproduction project:**
[GodotTester.zip](https://github.com/godotengine/godot/files/4333539/GodotTester.zip)
Repository: create-react-app
Issue: Support pnpm/don't default to yarn lock
Labels: issue: proposal,needs triage

There are various places that treat `npm`/`yarn` as a binary choice. [`pnpm`](https://pnpm.js.org/) also exists and is pretty mature (and there may be others).

https://github.com/facebook/create-react-app/blob/fa85f030de6843667202f912de841c276275df00/packages/create-react-app/createReactApp.js#L249

At the least it would be nice if CRA didn't create a yarn lockfile if it wasn't really sure it was executing with `yarn`.
Repository: pytorch
Issue: Unsupported ONNX op (Upsample 3D, bicubic) contrary to documentation
Labels: module: nn,triaged,module: vision

## 🐛 Bug

NotImplementedError for nn.Upsample ONNX conversion when documented argument specs are met (3D input, bicubic interpolation)

## To Reproduce

Steps to reproduce the behavior:

1. Create a module with `nn.Upsample(scale_factor=(4, 4), mode='bicubic')`
2. Provide a 3D example input when running `torch.onnx.export` on the module

Observed output:
```
NotImplementedError: Input Error: Only 3D, 4D and 5D input Tensors supported (got 3D) for the modes: nearest | linear | bilinear | bicubic | trilinear (got bicubic)
```
## Expected behavior

Successful export

## Environment

```
Collecting environment information...
PyTorch version: 1.5.0.dev20200313+cu100
Is debug build: No
CUDA used to build PyTorch: 10.0

OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: version 3.13.2

Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.0.326
GPU models and configuration: 
GPU 0: TITAN RTX
GPU 1: TITAN RTX
GPU 2: Quadro RTX 4000

Nvidia driver version: 440.44
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.0

Versions of relevant libraries:
[pip3] numpy==1.17.4
[pip3] torch==1.5.0.dev20200313+cu100
[pip3] torchfile==0.1.0
[pip3] torchvision==0.6.0.dev20200314+cu100
[conda] Could not collect
```



cc @fmassa
Repository: godot
Issue: [3.x] Autocomplete fails when typing the key before the value in a dictionary
Labels: bug,topic:gdscript,topic:editor

**Godot version:**
Godot 3.2.stable.official

**OS/device including version:**
Windows 10 home

**Issue description:**
When adding a key to the dictionary, the autocomplete does not work until I enter the value. The workaround is to start by entering `:any_value` then moving the cursor back and entering the key for the autocomplete to work.

**Steps to reproduce:**
Create the following script and try to add a key value pair to `data`, the enum does not autocomplete until a value is added :
```
extends Reference

var	data = {InnerClass.INNER_ENUM_VALUE_1:1}

class InnerClass:
	enum {INNER_ENUM_VALUE_1}

```
**Minimal reproduction project:**
Don't need a project, just the above script.
Repository: go
Issue: x/pkgsite: consider reducing footer size
Labels: NeedsInvestigation,pkgsite,UX,pkgsite/frontend

A spiritual cousin to #37110 perhaps

### What is the URL of the page with the issue?
 
 https://pkg.go.dev/github.com/CloudyKit/jet?tab=doc
 
### What is your user agent?
 
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36
 
### Screenshot
 
![footer](https://user-images.githubusercontent.com/4984708/76696372-f22d7d00-6647-11ea-9c04-79ecd38d279a.png)
 
### What did you do?

Visit the page. 
 
### What did you expect to see?
 
A footer like this:
![godoc-footer](https://user-images.githubusercontent.com/4984708/76696395-420c4400-6648-11ea-937e-29919d68bdd3.png)

Or like this:
![golang-footer](https://user-images.githubusercontent.com/4984708/76696391-29039300-6648-11ea-8e97-66ee729ad503.png)

Or this:
![github-footer](https://user-images.githubusercontent.com/4984708/76696406-5fd9a900-6648-11ea-9b03-b397eeca2aa3.png)

Or this:
![swiftdoc-footer](https://user-images.githubusercontent.com/4984708/76696417-9fa09080-6648-11ea-9fec-cfa66f83c06e.png)

Etc.
 
### What did you see instead?

The footer in use takes up a lot of screen real estate!  When you're scrolling fast through the docs, you hit bottom and then between the footer and the sticky header, you get this little visor with which to see actual documentation.  You then have to scroll back up a little bit to be seeing the actual bottom "page" of the docs.

In terms of the value of the content, you probably could check the stats on it, but I'm willing to bet most visitors to those pages would almost never click those links.

Suggestion would be to have a short footer, like the current godoc.  Or maybe just take the bottom section of the current footer:

![gopkg-suggest](https://user-images.githubusercontent.com/4984708/76696549-05d9e300-664a-11ea-8856-16cf886afcc9.png)
Repository: youtube-dl
Issue: IMVBox
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 2020.03.08. 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 **2020.03.08**
- [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.
-->

- Single video: https://www.imvbox.com/watch-persian-movie-iranian-movies/two-woman-do-zan/play-film

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

Many of the films and TV shows on IMVBox are available for free, and don't require any credentials.  Subtitles require credentials.  Memberships are of three tiers: [free, monthly, and yearly](https://www.imvbox.com/members/membership).