sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: trait objects with late-bound regions and existential bounds are resolved badly
Labels: A-resolve,A-lifetimes,T-compiler,C-bug,T-types,A-trait-objects

## STR

``` Rust
fn assert_sync<T: Sync>(_t: T) {}

fn main() {
    let f: &(for<'a> Sync + Fn(&'a u32)->&'a u32) = &|x| x;
    assert_sync(f);
}
```
## Expected Result

Code should compile and run
## Actual result

```
<anon>:4:33: 4:35 error: use of undeclared lifetime name `'a` [E0261]
<anon>:4     let f: &(for<'a> Sync + Fn(&'a u32)->&'a u32) = &|x| x;
                                         ^~
<anon>:4:33: 4:35 help: see the detailed explanation for E0261
<anon>:4:43: 4:45 error: use of undeclared lifetime name `'a` [E0261]
<anon>:4     let f: &(for<'a> Sync + Fn(&'a u32)->&'a u32) = &|x| x;
                                                   ^~
<anon>:4:43: 4:45 help: see the detailed explanation for E0261
error: aborting due to 2 previous errors
```
Repository: youtube-dl
Issue: Soundcloud Go Track Fetching 
Labels: geo-restricted,account-needed

## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your _issue_ (like that [x])
- Use _Preview_ tab to see how your issue will actually look like

---
### Make sure you are using the _latest_ version: run `youtube-dl --version` and ensure your version is _2016.04.19_. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2016.04.19**
### Before submitting an _issue_ make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your _issue_?
- [ ] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [x] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

Add support for logging into soundcloud, and having the ability to fetch full length Soundcloud Go tracks.
Repository: youtube-dl
Issue: --verify-archive
Labels: request

---
### Make sure you are using the _latest_ version: run `youtube-dl --version` and ensure your version is _2016.04.19_. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2016.04.19**
### Before submitting an _issue_ make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your _issue_?
- [ ] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [x] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other
### Description of your _issue_, suggested solution and other information
1. I have a very large archive of YouTube videos that I downloaded by loading a list of channel URLs.  I used the `--download-archive` flag so I did not have to re-download any videos when I went over the archive again to update it.
2. I currently do not have a way to "re-run" the archive so I can use `--write-info-json` and or `--write-descriptions` without redownloading everything because I used `--download-archive`
3. I am proposing a new flag `--verify-archive` which would allow youtube-dl to check and make sure that it does indeed have all content associated with a video.  If and only if the user used the appropriate flags to download such content.
4. Using `--verify-archive` with `--write-info-json` and or `--write-descriptions` while having used `--download-archive` in the past will check the specified download directory contents for such video to verify that the entire set of files exists.
5. `--verify-archive` will not affect new video downloads as they happen.  `--verify-archive` should also work with all other flags that specify downloading a file and storing it in directory.
6. I have 74 thousand videos totaling 5TB.  It's not economically feasible to re-download them in full again.
Repository: rust
Issue: --target should ignore the machine part of the triplet in most cases
Labels: T-compiler,T-dev-tools,C-feature-request

Currently, rustc accepts a limited set of --target values. Those match _some_ of the values one can get out of the typical `config.guess`, but for most platforms, the machine/manufacturer part of the target triplet should be ignored, or allowed to be omitted. (the output of config-guess is of the form `CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM` or `CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM`)

For example, the linux x86_64 target for rustc is `--target=x86_64-unknown-linux-gnu`.
Some time ago, `config.guess` would have returned that. Nowadays, it returns `x86_64-pc-linux-gnu`.
clang accepts both, as well as the shorter form: `--target=x86_64-linux-gnu` (in fact, it's very lax, `--target=x86_64-foo` works too).
A typical cross GCC toolchain will come as `x86_64-linux-gnu-gcc` too.
Repository: opencv
Issue: opencv cv2.waitKey() do not work well with python idle or ipython 
Labels: bug,category: python bindings,priority: low,affected: 2.4

### my OS
- OpenCV version: 2.4.5
- Host OS: Linux (CentOS 7)
### descirption of the problem

After loading an image, and then show the image,  cv2.waitKey() can not work properly when I use opencv in python idle or jupyter console.  For example, if I use `cv2.waitKey(3000)` after using `cv2.imshow('test', img)`, the image window should close automatically after 3 seconds, but it won't!
And neither can I close it by clicking the 'close' button in the window, it just gets stuck. I have to exit the python idle or shut down the jupyter console to close the window.
But if I run the whole script in the command line, it works well.
### Code example to reproduce the issue / Steps to reproduce the issue

```
import cv2
img = cv2.imread('cat.jpg')
cv2.imshow('test', img)
cv2.waitKey(5000)

```
Repository: flutter
Issue: Would be nice to have `flutter screenrecord`
Labels: c: new feature,tool,P3,team-tool,triaged-tool

Even if it only worked on Android for now.

I looked at writing it briefly this morning, but unlike a screen capture which is once and done, a screen recording is likely long running and waits for a keyboard interrupt to stop?

I suspect other CPTs have implemented something like this.

@devoncarew
Repository: rust
Issue: Missing auto-load script in gdb
Labels: A-debuginfo,T-compiler,C-bug

When compiled with `-g`, we produce binaries which contain a `gdb_load_rust_pretty_printers.py` in `.debug_gdb_scripts` section. This makes gdb complain about missing scripts when run under plain gdb as opposed to the rust-gdb wrapper script.

Distribution puts this script into `$INSTALL_ROOT/lib/rustlib/etc`, which is someplace gdb wouldn’t ever look at by default. Some experimentation suggests that placing the scripts at gdb’s `DATA-DIRECTORY/python/gdb/printer/` will at least make gdb detect the presence of the script, but then it fails to load the module due to import errors.
Repository: youtube-dl
Issue: Add an option to ignore PostProcessingError (was: --embed-thumbnail should warn, not error, on non-mp3/mp4)
Labels: request

- [ x ] I've **verified** and **I assure** that I'm running youtube-dl **2016.04.19**
- [ x ] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [ x ] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
- [ x ] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [x] Other
# 

```
> youtube-dl -x --embed-thumbnail http://youtube.com/watch?v=Jj1KTPOqd_A
[youtube] Jj1KTPOqd_A: Downloading webpage
[youtube] Jj1KTPOqd_A: Downloading video info webpage
[youtube] Jj1KTPOqd_A: Extracting video information
[youtube] Jj1KTPOqd_A: Downloading thumbnail ...
[youtube] Jj1KTPOqd_A: Writing thumbnail to: 01-Kenny Wayne Shepherd Band - Deja Voodoo (Video)-Jj1KTPOqd_A.jpg
[download] Destination: 01-Kenny Wayne Shepherd Band - Deja Voodoo (Video)-Jj1KTPOqd_A.webm
[download] 100% of 4.31MiB in 01:11
[ffmpeg] Destination: 01-Kenny Wayne Shepherd Band - Deja Voodoo (Video)-Jj1KTPOqd_A.ogg
Deleting original file 01-Kenny Wayne Shepherd Band - Deja Voodoo (Video)-Jj1KTPOqd_A.webm (pass -k to keep)
ERROR: Only mp3 and m4a/mp4 are supported for thumbnail embedding for now.
```

A failure to embed a thumbnail should probably be treated as a nonfatal error, don’t you think?
Repository: angular
Issue: Input type='date' with ngModel bind to a Date() js object.
Labels: feature,workaround1: obvious,freq3: high,area: forms,feature: under consideration

Hi, here it's the plunker. http://plnkr.co/edit/3ZDyWnabgp4S3m2rxJaX?p=preview

**Current behavior**
Input doesn't show the date at beginning (12-12-1900) 
Only changing the year in input value myDate variable get refresh.

**Expected/desired behavior**
First, I would expect the input to show the correct date (12-12-1900).
And then myDate variable get refresh with any change in input. 

**Question**
That's the way it worked on angular 1, isn't?
Repository: rust
Issue: DWARF does not mention Self type
Labels: A-debuginfo,C-enhancement,P-low,T-compiler

I wrote a simple test program using the `Self` type:

```
struct Something(i32);

impl Something {
    fn x(self: &Self) -> i32 { self.0 }
}

fn main() {
    let y = Something(32);
    let z = y.x();

    ()
}
```

When I examine the resulting DWARF, I don't see any mention of `Self`.  I think it should be emitted as a typedef pointing to `Something`.
Repository: rust
Issue: rustc::lint could use some helper functions for working with macros
Labels: A-lints,T-compiler,C-feature-request

(See #22451 and possibly others)

Currently we have a few functions in [clippy](https://github.com/Manishearth/rust-clippy)`/src/util/mod.rs` to deal with macros. Namely we can check if some span stems from a macro expansion (though that one could need some work), or if some span was expanded by a given macro (by name) somewhere or directly, or if two spans are in the same macro expansion. This is often useful for readability lints which should not be invoked within macro-expanded code (unless perhaps the code before expansion had the same issue, but that is as of yet hard to detect).

I think those functions belong in the rustc::lint crate. This would both benefit internal lints and all other lints outside of clippy which could then make use of those helpers.

However, clippy is currently licensed under MPL, so we'd need agreement from the authors (of the respective code lines) to move this code into rustc proper. Also we'll want to look first if those functions are ready to be moved and clean up any technical debt we may have incurred so far.

cc @Manishearth
Repository: neovim
Issue: Remove spaces from formerly-indented blank lines
Labels: enhancement,tui,core

- Neovim version: 0.1.3
- Vim behaves differently?: no
- Operating system/version: Linux Fedora 23
- Terminal name/version: Gnome-terminal
- `$TERM`: xterm-256color
### Steps to reproduce using `nvim -u NONE`
1. `nvim -u NONE`
2. Type:
   
   ```
   This is a test.
     This is indented.
   ```
3. Backspace over all contents of the second line, including the spaces.
4. All the text including the spaces are gone, but there still appear to be spaces rendered on the terminal. Typing new text will insert it at the beginning of the line, as it should with all spaces gone. But arrowing right/left does not reveal the presence of these spaces. They appear to be entirely gone from the file but are till rendered on the screen, likely aren't visible, and aren't used to indent when new text is added on the line.
### Background

I am a blind screen reader user. I use the arrow keys rather than hjkl to navigate because screen readers don't know to present entire lines when hjkl are pressed, but they generally assume that the cursor moves in response to an arrow press so speak the updated change then. When I arrow to the second line in the above test data, after it is blank, my screen reader speaks "2 spaces", which is what it would speak before a line of text/whitespace that is indented. But, when typing text on that line, text is inserted at the beginning. As such, it is impossible to distinguish a line that actually has 2 spaces vs. one that had 2 and is now entirely blank. Vim does this too, is very annoying, and I hope Neovim might fix it.

To be very clear, these 2 spaces aren't in the file or editing buffer. They appear to be artifacts that aren't removed from the rendering, like istead of rendering the blank line as "\n\n" it's being rendered as "\n  \n". It probably doesn't affect anyone other than screen reader users, so you may not notice it unless you dig into the rendering code.
Repository: youtube-dl
Issue: Is there an option that yields the best available audio quality among all formats?
Labels: request

- [x] I've **verified** and **I assure** that I'm running youtube-dl **2016.04.24**
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
- [ ] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [x] Question
- [ ] Other
- Single video: https://www.youtube.com/watch?v=J9bjJEjK2dQ

---

I want to be able to download the best quality audio available. `-f bestaudio` doesn't always yield the best available audio, as sometimes the best audio only version has worse audio than the best video+audio version. See the example video: `-f bestaudio` yields 125 kbps m4a, and `-x -f best` yields 192 kbps m4a. I think I've seen an example of `-f best` yielding worse quality than `-f bestaudio` too, but I'm not sure.

Does `-f best` in fact always yield the best audio?

If not, is there an option that always yields the best audio?

If not, I would like to request such a feature. In fact, the way it's described, it sounds like the default option is intended to yield the best quality audio and video, and that's certainly what I expected. Also, is it guaranteed that either `-f best` or `-f bestaudio` yields the best audio? It's conceivable that there could be a video where the best audio-only version has medium quality, the best overall version has medium quality audio and high quality video, and there exists a version with high quality audio and low quality video, and then the answer would be 'no'.
Repository: neovim
Issue: defaults: "-u NORC" with invalid runtime shows E484
Labels: bug,ux,startup

If syntax.vim is missing, it should be quiet, not raise E484 _unless_ the user explicitly did `:syntax on` (as opposed to merely allowing the default).

https://github.com/neovim/neovim/pull/4252#issuecomment-183994718

https://twitter.com/ds26gte/status/724496755602128896
- Counterargument: if users normally allow the default, will this cause confusion (no syntax + no error)?
  - Maybe, but as soon as user does explicit `:syntax on` interactively, E484 will show.
- Alternative: do a "passive" message which only appears in `:messages` history and avoids "Hit Enter"
Repository: kubernetes
Issue: Declarative update of configmaps and secrets from the contents of files
Labels: priority/important-soon,area/app-lifecycle,area/kubectl,kind/feature,sig/cli,area/secret-api,area/declarative-configuration,lifecycle/frozen

Currently AFAIK you can only create a secret from a file using:

```
kubectl create secret generic <name> --from-file=<key>=<file>
```

The drawback is this, If a change is made to the file you need to delete and then recreate the secret:

```
kubectl delete secret <name>
kubectl create secret generic <name> --from-file=<key>=<file>
```

This is awkward because to update the other items (service, deployment, pv) in the same app you just run:

```
kubectl apply -f <filename>
```

I realize that I can create a script to base64 encode the contents of the file and inject it into a secret spec file and then use create/apply/delete as with other API objects but this just feels awkward because the create/apply/delete workflow is so clean.

For context this is a redis config file that contains a password and I'm mounting it with a volumeMount in a deployment:

```
- name: redis-conf-secret
  readOnly: true
  mountPath: /etc/redis
```
Repository: TypeScript
Issue: In JS, use JSDoc to specify a call's type arguments
Labels: Suggestion,Needs Proposal,Domain: JSDoc,Domain: JavaScript

In typescript we can specified template at function call

```
function A<T>(callBack:function(T):void) { }
A<{name:string}>(function(item) { /** item is {name:string} */ })
```

But I don't know how to force the type of its template when calling it from js file. And I can't find any clue. It seem like not possible so I want to make feature request if it don't have already
Repository: youtube-dl
Issue: Unable to extract subtitles from TV3Play.no
Labels: geo-restricted

## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your _issue_ (like that [x])
- Use _Preview_ tab to see how your issue will actually look like

---
### Make sure you are using the _latest_ version: run `youtube-dl --version` and ensure your version is _2016.04.24_. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2016.04.24**
### Before submitting an _issue_ make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your _issue_?
- [x] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

---
### The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your _issue_

---
### If the purpose of this _issue_ is a _bug report_, _site support request_ or you are not completely sure provide the full verbose output as follows:

Add `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):

```
$ youtube-dl -v --skip-download --write-sub http://www.tv3play.no/programmer/the-daily-show/725244
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'--skip-download', u'--write-sub', u'http://www.tv3play.no/programmer/the-daily-show/725244']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.04.19
[debug] Python version 2.7.11 - Darwin-15.3.0-x86_64-i386-64bit
[debug] exe versions: avconv 11.4, avprobe 11.4, ffmpeg 3.0.1, ffprobe 3.0.1, rtmpdump 2.4
[debug] Proxy map: {}
[TVPlay] 725244: Downloading video JSON
WARNING: [TVPlay] This content might not be available in your country due to copyright reasons
[TVPlay] 725244: Downloading streams JSON
[TVPlay] 725244: Downloading f4m manifest
```

---
### Description of your _issue_, suggested solution and other information

When I try to only download the subtitles of a video, it fails, even though I am able to watch the video with subtitles from a web browser.
Repository: rust
Issue: linking staticlib files into shared libraries exports all of std::
Labels: A-linkage,T-compiler,C-bug

Consider this toy example:

``` rust
#[no_mangle]
pub fn hello() {
    println!("hello world")
}
```

``` c++
extern "C" {
  void hello();
}

void
really_hello()
{
  hello();
}
```

Compile and link:

``` sh
$ rustc --crate-type staticlib --emit link=sl.a sl.rs
$ g++ -o hello.so -fPIC -shared driver.cpp sl.a
```

With rust 1.8.0, we have:

``` sh
$ ls -l hello.so
-rwxr-xr-x 1 froydnj froydnj 2141544 Apr 26 11:02 hello.so
```

which is quite large (2MB!) for such a simple program.  Despite all of `std` being compiled with the moral equivalent of `-ffunction-sections`, adding `-Wl,--gc-sections` does very little to slim down the binary:

``` sh
$ g++ -o hello.so -fPIC -shared driver.cpp sl.a -Wl,--gc-sections
$ ls -l hello.so
-rwxr-xr-x 1 froydnj froydnj 2141544 Apr 26 11:02 hello.so
```

That's only about 400 bytes eliminated, which seems suboptimal.

The problem is that all of the public functions in `libstd.rlib` are marked as global symbols.  When `sl.a` is linked into a shared library, all of those global symbols from `libstd.rlib` are now treated as symbols that the newly-created shared library should export as publically visible symbols.  Which creates bloat in terms of a large PLT the shared library must tote around as well as rendering `-Wl,--gc-sections` ineffective, as virtually everything is transitively reachable from these public functions from `libstd.rlib`.  `hello.so` has ~5000 visible functions, when it should really only have a handful.  `hello.so` contains code for parsing floating-point numbers, even though it really shouldn't, according to the functions shown above.

This example is admittedly contrived, but Firefox's use of Rust is not terribly dissimilar from this: we compile all the crates we use into rlibs, link all of the rlibs together into a staticlib, and then link the staticlib into our enormous shared library, libxul.  We're pretty careful with symbol visibility; we have hundreds of thousands of symbols in libxul, but fewer than 500 exported symbols.  We would very much like it if:
1. libxul didn't suddenly grow thousands of newly-exported symbols overnight.
2. libxul didn't contain Rust code from `std` (or otherwise) that it doesn't use.

We didn't think terribly hard about this when we enabled Rust on our desktop platforms (though we should have), but our Android team cares quite a bit about binary size, and Rust support taking up this much space would be a hard blocker on our ability to ship Rust on Android.  It would be somewhat less than the above because we'd be compiling for ARM, but it'd still be significant.  (I assume the situation is similar on Mac and Windows, though I haven't checked.)

cc @alexcrichton @rillian @glandium