sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Closure-like blocks capture all generic type and const parameters
Labels: T-lang,A-impl-trait,A-async-await,AsyncAwait-Triaged

I'd like to write the following code:
```rust
use std::future::Future;
struct Foo<A>(A);
impl<A> Foo<A> {
    fn bar<Q, R: Default>(&mut self, q: Q) -> impl Future<Output = R> {
        let _ = q;
        async move {
            R::default()
        }
    }
    
    fn baz(&mut self, x: &str) -> impl Future<Output = usize> {
        self.bar(x)
    }
}
```
In particular, I would like to have the `impl Trait` returned by `baz` _not_ be tied to the lifetime of its `&str` argument. Since `impl Trait` captures the lifetimes of all generic arguments (as per [RFC 1951](https://github.com/rust-lang/rfcs/blob/master/text/1951-expand-impl-trait.md)), I can't write the code this way though. So instead, I tried
```rust
#![feature(type_alias_impl_trait)]
use std::future::Future;
struct Foo<A>(A);

type BarFut<A, R> = impl Future<Output = R>;
impl<A> Foo<A> {
    fn bar<Q, R: Default>(&mut self, q: Q) -> BarFut<A, R> {
        let _ = q;
        async move {
            R::default()
        }
    }
    
    fn baz(&mut self, x: &str) -> impl Future<Output = usize> {
        self.bar(x)
    }
}
```
However, with this, I get the error:
```
error: type parameter `Q` is part of concrete type but not used in parameter list for the `impl Trait` type alias
```
This seems odd, since `Q` is (intentionally) not used in the `async` block. I can work around this by adding an `async fn` and calling that instead of using `async move`, but that seems like an odd hack:
```rust
async fn make_r_fut<R: Default>() -> R {
    R::default()
}
// ...
    fn bar<Q, R: Default>(&mut self, q: Q) -> BarFut<A, R> {
        let _ = q;
        make_r_fut()
    }
// ...
```

Is it intentional that the `async` block "captures" `Q` here, even though it never contains a `Q`?
Repository: kubernetes
Issue: No way to request table format using WebSockets
Labels: kind/bug,sig/api-machinery,lifecycle/frozen,triage/accepted

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!

If the matter is security related, please disclose it privately via https://kubernetes.io/security/
-->


**What happened**:

#71548 added support for `Table` and `PartialObjectMetadata` on watch. This does not work using WebSockets, however, since there is no way to pass an `Accept` header for content negotiation.

**What you expected to happen**:

A `format` query parameter to request `application/json;as=Table;v=v1beta1;g=meta.k8s.io` when watching a resource using WebSockets or some other way to perform content negotiation.

**Environment**:
- Kubernetes version (use `kubectl version`): v1.16.0-beta.2+af7ac0b

@smarterclayton
Repository: vscode
Issue: "There are task errors" while typing in tasks.json
Labels: bug,tasks,polish

- Have a task like this:

```json
{
	"type": "npm",
	"script": "web",
	"label": "Run web",
	"isBackground": true,
	"presentation": {
		"reveal": "never"
	}
}
```
- Add this
```json
"problemMatcher": {
	"background": {

	}
},
```
- Get a warning popup immediately, "There are task errors. See the output for details"
- I'm still typing, I know there are errors, it should leave me alone for a minute or until I close the editor
Repository: youtube-dl
Issue: report both the previously installed version and the updated version after an update
Labels: request

## Checklist

- [x] I'm reporting a feature request
- [x] I've verified that I'm running youtube-dl version **2019.09.28**
- [x] I've searched the bugtracker for similar feature requests (including closed ones) and haven't found any similar ones

## Description

Currently `youtube-dl -U` reports only the latest version, either as the up-to-date version (such as “youtube-dl is up-to-date (2019.09.28)”) when an update is not necessary or as the version being installed when an update happens.

However, in the latter case the reported version is not enough for the comfortable reading of [the changelog.](https://github.com/ytdl-org/youtube-dl/blob/master/ChangeLog) I'd like to know where exactly should I stop reading the changelog, and thus I have to request the previously installed version to be also displayed after an update.

(Currently, as a workaround, I make sure to always run `youtube-dl --version` before I run `youtube-dl -U`, but that's twice longer than it should be.)
Repository: flutter
Issue: [shared_preferences] Update documentation to reflect testing changes
Labels: d: api docs,p: shared_preferences,package,team-ecosystem,P2,triaged-ecosystem

I feel like the documentation on shared_preferences could use a hint to the changes pulled here:
https://github.com/flutter/plugins/pull/1308

Mainly that you can use `SharedPreferences.setMockInitialValues()` to mock initial values and also "overwrite" values with it in later tests. I stumbled upon the problem with the singleton instance not calling `getAll` again after being initialized in some earlier test and thus still having the old/wrong values in its cache.
Repository: create-react-app
Issue: Proposal: Option to build without linting
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

I'm always frustrated when the build command is linting my code and there is no way for me to skip the linting step. My pipeline is `lint > test > build`. I want to lint before testing because my test files are also linted. With the current setup, linting happens twice.

### Describe the solution you'd like

I would like to be able to opt out of linting: `"build" : "react-scripts built --no-lint"`

Or (even better) have linting separated from the build command so I can remove it. It would appear this way in the default setup:
`"build": "react-scripts lint && react-scripts build"`

The README never mentions that linting will happen within the build step, so this makes the actual process much more visible.

### Describe alternatives you've considered

Somehow disabling linting by configuration before the build step happens.

### Additional context

A related issue was auto-staled without solution:
https://github.com/facebook/create-react-app/issues/7078
Repository: pytorch
Issue: TestTorch.test_doc should be in TestDocCoverage
Labels: module: docs,triaged,module: doc infra

Afaict TestTorch.test_doc tests that certain functions on torch are documented. This is similar to what TestDocCoverage does and it would be great to have all of the documentation tests in one single location.

https://github.com/pytorch/pytorch/blob/fd3d6587e60de816106d6b8dc0f586f9fa52a7ac/test/test_torch.py#L183

cc @ezyang @zou3519
Repository: pytorch
Issue: Easy way to create previews of the docs website after any changes
Labels: triaged,module: doc infra

It would be nice to be able to preview documentation changes; I find that in code review at least one of the following happens:
1. The reviewer asks for images of the documentation
2. After the PR gets merged, we discover that the syntax or formatting is incorrect.

`pytorch.github.io` has some infrastructure that previews changes to the website; maybe we can reuse that and provide some option.

cc @ezyang @zou3519
Repository: flutter
Issue: Support clear dependencies on specific Android embedding versions
Labels: c: new feature,platform-android,engine,a: existing-apps,a: build,P2,a: plugins,team-android,triaged-android

## Use case

Plugins may have different requirements depending on which version of the embedding they're registered with. See flutter/plugins#2196 for an example. When used with V2 of the Android embedding, the plugin absolutely needs a (relatively recent) bugfix within that embedding to work correctly. However when used with the V1 Android embedding, the plugin's Flutter SDK requirement is much lower since it doesn't need that bugfix.

Right now we don't have a way to programmatically check for and try and assert the higher requirement with the V2 embedding without artificially raising it for all users, because there's no way to know if the user is registering the plugin with the old or new embedding from the pub side where the Flutter version is being checked and no way (that I know of) to get the Flutter version from the Java side where we know which embedding is being used.

## Proposal

I have ~two~ three rough ideas.

### Split the embeddings into separate packages outside of flutter/engine

@dnfield has written up a proposal for this before, at https://flutter.dev/go/android-embedding-move. My (extremely rough) ask here on top of what's in that doc already is to also split V1 and V2 out into separate packages so that plugins could specify which version of each they depend on in their `pubspec.yaml`, similar to how the Flutter SDK is required as a whole.

I think this is the better solution.

### Automatically generate some versioning information in the Java code that's built today

It's technically possible to generate some Java class as part of the build process that has versioning information. It wouldn't be able to save Flutter versioning, since that's defined upstream, but it could generate something with the latest engine hash.

Actually using this in a plugin would be difficult, however. It would mean doing a runtime check on the class and then logging or throwing. The plugin would also need to somehow maintain Flutter and the Engine's Git history in order to know if a particular hash was before or after the "right" Flutter version.

### Manually add in some constant and start semantically versioning the v2 embedding where it is today

This is a lot like the above suggestion, where it relies on sketchy runtime checks on the part of the plugin developer. However instead of needing a plugin to know all of Flutter and the Engine's git history and using some generated class, we could start deliberately manually versioning the v2 embedding. I expect this would be prone to catastrophic failures often because it would be extremely hard to realize as an Engine developer that you'd need to increment this random constant if you touched this files. We could maybe add a presubmit check that would error if certain directories were touched and the constant wasn't altered.

_Edited to add a third idea_

/cc @matthew-carroll @dnfield @blasten @amirh
Repository: flutter
Issue: Support iOS 13 CupertinoContextMenu Submenu
Labels: c: new feature,framework,f: cupertino,customer: crowd,a: desktop,P2,team-design,triaged-design

Flutter's [CupertinoContextMenu](https://main-api.flutter.dev/flutter/cupertino/CupertinoContextMenu-class.html) (as implemented in https://github.com/flutter/flutter/pull/37778) does not support submenu items, but they exist in native.  We should support this one way or another.

Note that the [Apple's HIG say](https://developer.apple.com/design/human-interface-guidelines/ios/controls/context-menus/) that the submenu can't be more than one level deep.

CC @LongCatIsLooong who pointed this out to me.

Please :+1: if you need this feature!
Repository: flutter
Issue: Support customizable page transition durations
Labels: framework,f: material design,f: cupertino,P2,team-design,triaged-design

The latest Android 10 activity transition occurs over 400ms. Currently, `MaterialPageRoute` has a transition duration that is set to a constant of 300ms. 

We should create a new parameter so that developers can modify/customize the transition duration if they'd like. This also allows Flutter's Android 10 transition to have the correct transition duration.

- [ ] Add `MaterialPageRoute.transitionDuration` parameter
- [ ] If possible, add a new `PageTransitionsTheme.transitionDuration` property that is correctly looked up by all page route classes so that it needs to only be specified in one place instead of wherever a new page route is defined.
Repository: godot
Issue: [Mono] ResourceSaver.Save() not working with custom classes
Labels: bug,confirmed,topic:dotnet

**Godot version:**
Godot Engine v3.2.alpha.mono.custom_build.119bf2372

**OS/device including version:**
Windows 10

**Issue description:**
Using C#, ResourceSaver.Save() does not work with custom classes.

**Steps to reproduce:**
The MRP constains a custom scene and a custom resource.
Running the project will save 4 files into `res://save/`
1. custom_resource.tres
- created via `new CustomResource();`
2. loaded_custom_resource.tres
- created view `GD.Load<>("..").New()`
3. CustomNode.tscn
- created via `new CustomNode();`
4. InstancedCustomNode.tscn
- created via `GD.Load<>("..").Instance()`

Both custom classes contain an exported string variable `variable` which is "default" by default and is modified to "modified" before saving.

You will see that saved files created via `new Constructor()` have the wrong script path and files created via `GD.Load()` + `New()/Instance()` have the correct script path but the exported variable contains the default value `"default"` despite having been modified.

**Minimal Reproduction Project:**
[resource_saver.zip](https://github.com/godotengine/godot/files/3751666/resource_saver.zip)
Repository: flutter
Issue: The platform in editable.dart should probably be obtained from the BuildContext
Labels: a: text input,framework,c: proposal,P2,team-framework,triaged-framework

The platform in [editable.dart](https://github.com/flutter/flutter/blob/b9817b4f595c9ee83bc0625efa60a19599565d63/packages/flutter/lib/src/rendering/editable.dart) should probably be obtained from the `BuildContext`.

https://github.com/flutter/flutter/blob/b9817b4f595c9ee83bc0625efa60a19599565d63/packages/flutter/lib/src/rendering/editable.dart#L1607

https://github.com/flutter/flutter/blob/b9817b4f595c9ee83bc0625efa60a19599565d63/packages/flutter/lib/src/rendering/editable.dart#L1665
Repository: youtube-dl
Issue: How To Download A Video from Hotstar which has more than 1 audio track
Labels: question

<!--

######################################################################
  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:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones


## Question

<!--
Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient.
-->

How to download a video with more than 1 audio track from hotstar.com or any other website.
for example i am using hotstar.com here https://www.hotstar.com/in/movies/mangalyaan-indias-mission-to-mars/1770005017
This video has 3 or 4 audio track. but when i download i get only the first audio track.
Repository: vue
Issue: <template> tag which inside v-pre directive, will be ignore if v-pre doesn't use at staticRoot
Labels: regression,has workaround

### Version
2.6.10

### Reproduction link
[https://jsfiddle.net/vuetest/c5uw870y/3/](https://jsfiddle.net/vuetest/c5uw870y/3/)







### Steps to reproduce
1、click jsfiddle link
2、you will see result is {{msg}}，is incorrect

### What is expected?
render template tag as html element, dom looks like that:
```html
<div>
  <p>
    <template>
      #document-fragment
      <span>{{msg}}</span>
    </template>
  </p>
</div>
```

### What is actually happening?
template tag disappeared
```html
<div>
  <p>
    <span>{{msg}}</span>
  </p>
</div>
```

---
when v-pre used at the staticRoot, template render correctly, fixed by [#8146](https://github.com/vuejs/vue/pull/8146). see this also: https://jsfiddle.net/vuetest/c5uw870y/5/

when v-pre does not used at the staticRoot, template tag will be skip, source code in `vue/src/compiler/codegen/index.js` is:
```js
export function genElement (el: ASTElement, state: CodegenState): string {
  // ...
  } else if (el.tag === 'template' && !el.slotTarget && !state.pre) {
    // template tag run into here, directively render it's children instead of him
    return genChildren(el, state) || 'void 0'
  } // ...
```

how to slove this problem:
```js
export function genElement (el: ASTElement, state: CodegenState): string {
  if (el.parent) {
    el.pre = el.pre || el.parent.pre; 
    // add this line
    state.pre = el.pre;
  }
```

I'm not  familiar with creating pr with test, someone else can help me?

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: rust
Issue: Make the documentation about `#![allow(unused)]` more visible
Labels: C-enhancement,A-lints,A-diagnostics,T-compiler,A-docs

I like to build functions as a series of parts, for example I might write the following skeleton, then plan to fill in the loop

```
fn sorter(x: Vec<Vec<isize>>, modifier: bool) -> Vec<isize> {
    let mut out = vec![];
    for i in x {
   
    }
    out
}
```

If I run a cargo check on this, just to check for typos, I get:

```
warning: unused variable: `i`
  --> src/playgame.rs:35:9
   |
35 |     for i in x {}
   |         ^ help: consider prefixing with an underscore: `_i`
   |
   = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `modifier`
  --> src/playgame.rs:33:31
   |
33 | fn sorter(x: Vec<Vec<isize>>, modifier: bool) -> Vec<isize> {
   |                               ^^^^^^^^ help: consider prefixing with an underscore: `_modifier`

warning: variable does not need to be mutable
  --> src/playgame.rs:34:9
   |
34 |     let mut out = vec![];
   |         ----^^^
   |         |
   |         help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` on by default

warning: function is never used: `sorter`
  --> src/playgame.rs:33:1
   |
33 | fn sorter(x: Vec<Vec<isize>>, modifier: bool) -> Vec<isize> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default
```

I feel it should be possible to encapsulate a set of warnings which represent "unused/dead", and have a way of disabling them while developing. I realise this could be abused by some people, but I find it hard to spot the important issues between these unused/dead issues while developing.
Repository: terminal
Issue: "less" pager renders in the wrong color when started at the bottom of the screen from powershell
Labels: Help Wanted,Area-Rendering,Product-Conpty,Area-Output,Issue-Bug,Priority-3

# Environment

```none
Windows build number: 10.0.18362.356
Windows Terminal version (if applicable): 0.5.2762.0

Any other software? less pager (https://chocolatey.org/packages/Less)
```

# Steps to reproduce

Open PowerShell Tab
`less <somefile>` will show the file in foreground color
`gci`
`less <somefile>` will show the file in black color

# Expected behavior

`<somefile>` should be shown in foreground color

# Actual behavior

Somehow, after "gci" the file is shown in black. This does not happen with Cmd (note: at least when I tried to reproduce it, but I believe it had happened previously with cmd as well) and it doesn't happen in PowerShell or Cmd standalone (same note applies).
Repository: flutter
Issue: Support `pub upgrade --dry-run`
Labels: c: new feature,tool,P3,team-tool,triaged-tool

The issue has mostly been resolved on the dart side already and it actually supports the `--dry-run` option https://github.com/dart-lang/sdk/issues/15243. However, flutter does not. So in a dart project one can run:
```
pub upgrade --dry-run
```

But with a flutter project you can't do that. If you try using the pub command from dart sdk, you get this error:
```
Resolving dependencies...
Because card_communicator depends on flutter_test any from sdk which doesn't exist (the Flutter SDK is not available), version
  solving failed.

Flutter users should run `flutter pub get` instead of `pub get`.
```

And on the other hand:
```
$ flutter pub upgrade --dry-run
Could not find an option named "dry-run".


Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
```

So, yeah would be super nice to get this feature also available for flutter side. @munificent you were heavily involved with the dart side of things. Maybe you know how this could be made to work for flutter? It sounds like the heavy lifting for this has already been done and supporting this on flutter side might be almost trivial?
Repository: flutter
Issue: Text decoration underline is not aligning some characters or space
Labels: framework,engine,a: internationalization,a: quality,a: typography,has reproducible steps,P2,found in release: 3.7,found in release: 3.9,team-engine,triaged-engine

## Steps to Reproduce
Setting text decoration to underline or overline, the decoration is not aligned in some languages' characters or space. I thought there should be an issue here but didn't find any. Is this considered to be a feature which is intended or it's a bug?
<img width="438" alt="Screenshot_2019-10-16 17 41 52_Vj9vK6" src="https://user-images.githubusercontent.com/14291993/66907949-d1cba900-f03c-11e9-869c-606f1cd43b15.png">
<img width="395" alt="Screenshot_2019-10-16 17 42 03_7bFvkz" src="https://user-images.githubusercontent.com/14291993/66907953-d2fcd600-f03c-11e9-9c8b-cf678d6f6f30.png">
<img width="580" alt="Screenshot_2019-10-16 17 42 08_8r9PF4" src="https://user-images.githubusercontent.com/14291993/66907957-d4c69980-f03c-11e9-8055-41d16b747f23.png">

**Target Platform:**Android/iOS
**Target OS version/browser:**any
**Devices:**iPhone, OnePlus phones


```
[✓] Flutter (Channel beta, v1.10.7, on Mac OS X 10.15 19A583, locale zh-Hans-CN)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
[✓] Android Studio (version 3.5)
[✓] Connected device (2 available)

• No issues found!

```
Repository: rust
Issue: `unused_variables` and `unused_assignments` lints do not catch array usage
Labels: C-enhancement,A-lints,T-lang,T-compiler,A-array

I recently had a problem where I was accidentally implicitly copying an array with `if let` bindings, and the writes to the original array were never made (I needed to add `ref` in my bindings). I thought it was strange that there was no warnings for this, and noticed this is true for these lints in general. Here's a small reproduction (also on the [playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d33b43de0a7f7bb853ff77e855bf8937)).

```rust
fn main() {
    // Write but never read. No warning is emitted
    let mut arr = [0; 5];
    arr[0] = 4;
    [0][0] = 0;
    
    // Write but never read, the following warnings are emitted
    
    // warning: variable `x` is assigned to, but never used
    //  --> src/main.rs:7:13
    //   |
    // 7 |     let mut x = 4;
    //   |             ^
    //   |
    //   = note: `#[warn(unused_variables)]` on by default
    //   = note: consider using `_x` instead
    
    // warning: value assigned to `x` is never read
    //  --> src/main.rs:8:5
    //   |
    // 8 |     x = 12;
    //   |     ^
    //   |
    //   = note: `#[warn(unused_assignments)]` on by default
    //   = help: maybe it is overwritten before being read?
    let mut x = 4;
    x = 12;
}
```

I would expect these lints to fire here, is this expected behavior? I tried a quick search and wasn't able to find an existing issue.