sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: neovim
Issue: Error detected while processing function <SNR>107_PollServerReady[
Labels: provider,channels-rpc

nvim version:

```
NVIM v0.2.0
Build type: Release
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wconversion -DNVIM_MSGPACK_HAS_FLOAT32 -O2 -DNDEBUG -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.2.0/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
```

Vim (version: ) behaves differently? I don't use Vim.

Operating system/version: Arch Linux

Terminal name/version: xterm-256color

When I am editing bash scripts and exits the script, the following error occurs:

```
Error detected while processing function <SNR>107_PollServerReady[1]..<SNR>107_Pyeval[2]..provider#python3#Call:
line   18:
Invalid channel: 1
Error detected while processing function <SNR>107_PollFileParseResponse[1]..<SNR>107_Pyeval[2]..provider#python3#Call:
line   18:
Invalid channel: 1
```

List of plugins:

```
Finished. 0 error(s). 
[===================]

- phpcomplete.vim: OK
- vim_pygments_colorscheme: OK
- YouCompleteMe: OK
- vim-snippets: OK
- Zenburn: OK
- github-theme: OK
- vim-aldmeris: OK
- vim-phpfmt: OK
- pw: OK
- nerdtree: OK
- vim-colors-codeschool: OK
- vim-bufkill: OK
- ultisnips: OK
- supertab: OK
- tcomment_vim: OK
- vim-go: OK
- syntastic: OK
- vim-signature: OK
- vim-airline: OK
```
Repository: rust
Issue: Cannot infer type even if specified.
Labels: C-enhancement,A-diagnostics,T-compiler,A-inference,A-suggestion-diagnostics,requires-nightly,F-try_blocks

So, I got the `type annotations needed` error. I tried *everything*. It refuses to work.

```Rust
		let tmp: Result<NamedTempFile, ()> = NamedTempFile::new().map_err::<(), _>(|_: std::io::Error| ());
		let mut tmp: NamedTempFile = tmp?;
```

Error

![image](https://cloud.githubusercontent.com/assets/12830969/26763008/c0fe1b0c-494b-11e7-83ab-9060e032f8f6.png)

(please don't tell me the code is stupid. I have a valid reason to ignore the error)

If this is my fault, and not an issue with Rust, apologies for spamming you with yet another false issue :(  
I feel horrible
Repository: youtube-dl
Issue: Problem on download from Shahid Plus because of captcha
Labels: account-needed

Hello
Shahid.net site changed the way on login they add captcha code to login screen so when I use the script to download any movie with plus account and provide my login data I see this error message 
http://s9.postimg.org/ocy9mwp1b/screenshot_30.png
in English its mean 
The code you entered did not match the verification code. Please try again
and this is login screen http://s9.postimg.org/3u3dhub3z/screenshot_31.png
please dose there any way to solve this problem???
Repository: go
Issue: x/net/http2/hpack: Write customer-header into HPACK byName Map rather than byNameValue
Labels: NeedsInvestigation,FeatureRequest

Please answer these questions before submitting your issue. Thanks!

### What version of Go are you using (`go version`)?
go1.8

### What operating system and processor architecture are you using (`go env`)?
```
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Applications/workspace/code/MWCS"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/8r/y0x9w5g51k91thk9tk0xzgsc0000gn/T/go-build587864376=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
```

### What did you do?
we use http2 as gateway platform protocol and extension header like `mw-xxx` to do some gateway sub-protocl as request and response.
as some resposne header, "mw-server-time" or "mw-rt", which has static name and dynamic value per request ,accordding to HPACK,these entry will add dynamic table like below
```
        t.byName[f.Name] = id
	t.byNameValue[pairNameValue{f.Name, f.Value}] = id
```
and which take 23% alloc_objects  and much map hash grow in pprof
### What did you expect to see?
we want only use byName map to index name rather than indexing name-value
 and never indexing

seperate addEntry such as  blew 
```
func (t *headerFieldTable) addEntryByName(f HeaderField) {
        id := uint64(t.len()) + t.evictCount + 1
	t.byName[f.Name] = id
	t.ents = append(t.ents, f)
}

func (t *headerFieldTable) addEntryByNameVlaue(f HeaderField) {
        id := uint64(t.len()) + t.evictCount + 1
	t.byNameValue[pairNameValue{f.Name, f.Value}] = id
	t.ents = append(t.ents, f)
}
```
and also `table.search`
Repository: TypeScript
Issue: Incorrect indent with template literal
Labels: Bug,Help Wanted,Domain: Formatter,VS Code Tracked

_From @unional on June 4, 2017 8:51_

- VSCode Version: 1.12.2
- OS Version: OSX

```ts
test(`
`, _t => {
    console.log('wrong indent')
  })

// should be
test(`
`, _t => {
  console.log('wrong indent')
})
```
![image](https://cloud.githubusercontent.com/assets/3254987/26760236/18fe1426-48c8-11e7-95e9-b3cef892851e.png)


_Copied from original issue: Microsoft/vscode#27998_
Repository: vscode
Issue: [decorations] Support hover decorations over the line numbers (i.e. gutter)
Labels: feature-request,api

- VSCode Version: Code - Insiders 1.13.0-insider (9a107453944f25e6019b08615e20d63545584855, 2017-06-05T18:21:57.187Z)
- OS Version: Windows_NT ia32 10.0.16199
---

It would be great to be able to provide hover decorations to just the gutter -- this is something I would jump on immediately for GitLens :)
Repository: rust
Issue: Strange lifetime error when using borrow_mut
Labels: A-lifetimes,T-lang,C-bug

```rust
use std::borrow::BorrowMut;

trait A {}

struct B;

impl A for B {}

fn func(a: &mut A) {}

fn main() {
    let t: Box<A> = Box::new(B);
    {
        let b = t.borrow_mut();
        func(b);
    }
}
```
When compiling above code, it fails with:
```
error: `t` does not live long enough
  --> <anon>:17:1
   |
14 |         let b = t.borrow_mut();
   |                 - borrow occurs here
...
17 | }
   | ^ `t` dropped here while still borrowed
   |
   = note: values in a scope are dropped in the opposite order they are created
```

I think the borrow state should end at L16.
Repository: go
Issue: runtime: program with deadlock doesn't fail if use -race flag
Labels: RaceDetector,NeedsInvestigation,compiler/runtime

Go version: 1.8.3
OS: Mac

Program:
```go
package main

func main() {
	ch1 := make(chan int)
	<-ch1
}
```

if run with `go run deadlock.go` see: `fatal error: all goroutines are asleep - deadlock!`

if run with `go run -race deadlock.go` program never finish

Is it expected behavior?
Does it make sense to improve deadlock detector to be aware about race detector?
Repository: pytorch
Issue: Expose optimizer options as attributes when there's a single param group
Labels: module: bootcamp,module: optimizer,triaged,enhancement

For example, I hope I can accesses its `lr`!

But I read the source code, it just process the `default`, it does not assign them to the opposite data members.

cc @vincentqb
Repository: flutter
Issue: Respect OS's power save mode
Labels: framework,engine,a: animation,c: performance,c: proposal,P2,team-engine,triaged-engine

Flutter should respect the OS's power save mode.

Ideas:

- Skip animations
- ???
Repository: TypeScript
Issue: Offers quick suggestion to ignore parse error; but parse error can't be ignored
Labels: Bug,Domain: Quick Fixes

**TypeScript Version:**  nightly (2.4.0-dev.20170606)

This is in a JavaScript file with `// @ts-check`.

**Code**

![shot](https://cloud.githubusercontent.com/assets/19274678/26832914/c6b438c0-4a85-11e7-9c60-a5ff6e12c932.jpg)

**Expected behavior:**

Doesn't offer to ignore parse errors.

**Actual behavior:**

When I'm typing something, there will usually a parse error until I'm done typing it. This means that the lightbulb is flashing on every keypress offering to ignore parse errors. That doesn't work anyway.
Repository: vscode
Issue: Activate extension with workspaceContains when a matching file is added to the workspace
Labels: feature-request,api

If I have `"workspaceContains:**/*.md"` as an activationEvent, it would be useful for it to fire when a matching file is added to the workspace, not just when a workspace with matching file is opened.

https://github.com/Microsoft/vscode/issues/27665#issuecomment-306394054
Repository: go
Issue: mobile/app/shiny.go: Mouse events not being delivered to application
Labels: mobile

Please answer these questions before submitting your issue. Thanks!

### What version of Go are you using (`go version`)?
go1.8.3 windows/amd64


### What operating system and processor architecture are you using (`go env`)?
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\user\Dropbox\goProjects;C:\Users\user\Dropbox\golibs
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\user\AppData\Local\Temp\go-build310428203=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1
set PKG_CONFIG=pkg-config
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2

### What did you do?
Attempted to write graphics program using mobile/app.  Noticed no mouse events were delivered to application, due to code in mobile/app/shiny.go (convertEvent) that creates touch events based on mouse events, and then DISCARDS the mouse events.  

No mouse events will ever reach the user code, meaning that events like WheelUp and WheelDown are completely unavailable to the application (all the application gets is a generic "touchstart" and "touchend", all the buttons are grouped together)

### What did you expect to see?
Mouse events

### What did you see instead?
No mouse events, at all

### Fixed code

In order to cause minimum disruption to existing code, this following patch passes mouse events to the user, while also keeping the current behaviour of creating touch events.  Note that only one line is changed, the rest of the function is just context.

mobile/app/shiny.go

```
func convertEvent(e interface{}) interface{} {
	switch e := e.(type) {
	case lifecycle.Event:
		if theApp.glctx == nil {
			theApp.glctx = e.DrawContext.(gl.Context)
		}
	case mouse.Event:
		te := touch.Event{
			X: e.X,
			Y: e.Y,
		}
		switch e.Direction {
		case mouse.DirNone:
			te.Type = touch.TypeMove
		case mouse.DirPress:
			te.Type = touch.TypeBegin
		case mouse.DirRelease:
			te.Type = touch.TypeEnd
		}
		theApp.Send(te)
	}
	return e
}

```
Repository: TypeScript
Issue: Use ReadonlyArray<T> in type declarations
Labels: Infrastructure

We can't really use `ReadonlyArray` anywhere else until we fix the type declarations.
This is technically a breaking change, but people shouldn't have been modifying arrays after creation anyway.
Repository: vue
Issue: Provided props are not injected into functional components 
Labels: bug

### Version
2.3.3

### Reproduction link
http://jsfiddle.net/p861bj9y/

### Steps to reproduce
I created a minimal reproduction of the behavior I am trying to test, the example just needs JSX to work. 

### What is expected?
The properties passed down from parent should show up in `ctx.injections`.

### What is actually happening?
`Ctx.injections` exists but remains empty. The properties are not being passed down to the functional component context.

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: TypeScript
Issue: [Suggestion] Compiler Flag to treat types as immutable
Labels: Suggestion,Needs Proposal,Add a Flag

<!-- BUGS: Please use this template. -->
<!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->
<!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->

**TypeScript Version:**  2.3.4

**Code**

I'm aware of #10725, but I want to take it one step further and add a compiler flag (e.g. `--immutable`) that will cause the compiler to infer `Readonly`, `ReadonlyArray`, `ReadonlyMap`, and `ReadonlySet` (and any other data structures I've missed) everywhere. The flag will also force you to use `const`. Thus eliminating mutability from the language.

```json
// tsconfig.json

{
  "compilerOptions": {
    "immutable": true
  }
}
```

```ts
// demo.ts

// band is automatically inferred as:
// Readonly<{
//   name: string;
//   members: ReadonlyArray<{
//     name: string;
//     instruments: ReadonlyArray<string>;
//   }>;
// }>
const band = {
  name: 'U2',
  members: [
    {
      name: 'Bono',
      instruments: ['vocals', 'rhythm guitar', 'harmonic']
    },
    {
      name: 'The Edge',
      instruments: ['lead guitar', 'keyboards', 'backing vocals']
    },
    // ...
  ]
};

// The following will cause compiler errors:
// band.name = 'Green Day';
// band.members.push({ name: 'Billie Joe Armstrong', instruments: ['lead vocals', 'guitar'] });

// ----------------------------------------------------------------------

// numberMap is automatically inferred to be ReadonlyMap<number, string>
const numberMap = new Map<number, string>([
  [1, 'one'],
  [2, 'two']
]);

// Compiler error:
// numberMap.set(3, 'three');

// letterSet is is automatically inferred to be ReadonlySet<string>
const letterSet = new Set<string>(['A', 'B', 'C', 'D']);

// Compiler error:
// letterSet.add('E');
```
Repository: rust
Issue: Suggest converting a type to trait object when it's possible and the method expects one
Labels: C-enhancement,A-diagnostics,T-compiler,A-coercions,A-suggestion-diagnostics,A-trait-objects

If the method explicitly expects a trait object, such as `&postgres::types::ToSql`, (`ToSql` is a trait), and the user is trying to pass it a type that implements the trait, such as `String`, it's likely that the user either doesn't understand the distinction between trait object and trait bounds in generics, or has accidentally missed that the function isn't expecting a generic type but a trait object.

In this case, it would be helpful to show a more specific error message than the standard "type mismatch". The standard error message is like this:

```
error[E0308]: mismatched types
  --> src/main.rs:75:39
   |
75 |     for row in &conn.query(get_table, schemas.as_slice()).unwrap() {
   |                                       ^^^^^^^^^^^^^^^^^^ expected trait postgres::types::ToSql, found struct `std::string::String`
   |
   = note: expected type `&[&postgres::types::ToSql]`
              found type `&[&std::string::String]`
```

First of all, "expected trait" is downright misleading, I think it should be "expected trait object". Secondly, it would be helpful to show a hint that says that:

1) `String` implements trait `ToSql`, but this method is expecting a trait object, not any type that implements the trait.
2) You can create a trait object from a value of type `&String` with `value as &postgres::types::ToSql`.
Repository: rust
Issue: Include debuginfo in release builds of LLVM by default
Labels: A-LLVM,C-enhancement,T-bootstrap

This would be useful to help debug things like #42476. At the moment I can only debug it using Debian's rustc as stage0 - its LLVM is built separately and dynamically linked into librustc_llvm, so debugging symbols work there. However with rust's own 1.16 stage0 I get this instead:

~~~~
(gdb) bt
#0  0x00003fffb5e6180c in (anonymous namespace)::ELFObjectWriter::computeSymbolTable(llvm::MCAssembler&, llvm::MCAsmLayout const&, llvm::DenseMap<llvm::MCSectionELF const*, unsigned int, llvm::DenseMapInfo<llvm::MCSectionELF const*>, llvm::detail::DenseMapPair<llvm::MCSectionELF const*, unsigned int> > const&, llvm::DenseMap<llvm::MCSymbol const*, unsigned int, llvm::DenseMapInfo<llvm::MCSymbol const*>, llvm::detail::DenseMapPair<llvm::MCSymbol const*, unsigned int> > const&, std::map<llvm::MCSectionELF const*, std::pair<unsigned long, unsigned long>, std::less<llvm::MCSectionELF const*>, std::allocator<std::pair<llvm::MCSectionELF const* const, std::pair<unsigned long, unsigned long> > > >&) [clone .constprop.338] ()
   from /home/infinity0/build2/rustc-1.17.0+dfsg2/build/powerpc64le-unknown-linux-gnu/stage0/bin/../lib/../lib/librustc_llvm-1b4bf1d78c7d2bcc.so
[..]

(sid_ppc64el-dchroot)infinity0@plummer:~/rustc-1.17.0+dfsg2$ sha256sum /home/infinity0/build2/rustc-1.17.0+dfsg2/build/powerpc64le-unknown-linux-gnu/stage0/bin/../lib/../lib/librustc_llvm-1b4bf1d78c7d2bcc.so  
d3090a547a2a8189cb116cc726965e4af0695cd4ae48ae41f05224a3d429534b  /home/infinity0/build2/rustc-1.17.0+dfsg2/build/powerpc64le-unknown-linux-gnu/stage0/bin/../lib/../lib/librustc_llvm-1b4bf1d78c7d2bcc.so
^^^^ matches the one from rustc-1.16.0-powerpc64le-unknown-linux-gnu.tar.gz

(sid_ppc64el-dchroot)infinity0@plummer:~/rustc-1.17.0+dfsg2$ objdump --debugging /home/infinity0/build2/rustc-1.17.0+dfsg2/build/powerpc64le-unknown-linux-gnu/stage0/bin/../lib/../lib/librustc_llvm-1b4bf1d78c7d2bcc.so  | wc -l
80819
~~~~

< eddyb> infinity0: you have to build LLVM in a special way to get DWARF for it
< eddyb> and if you don't do it right you can easily run out of memory
< eddyb> I'm not even sure we support that mode
< eddyb> ah https://github.com/rust-lang/rust/blob/master/src/bootstrap/config.toml.example#L21
< eddyb> see https://github.com/rust-lang/rust/blob/master/src/bootstrap/config.toml.example#L56-L59
< eddyb> might have to be set to 1
/cc @eddyb 

I don't think we in Debian are doing anything particularly special, FWIW: https://sources.debian.net/src/llvm-toolchain-3.9/1:3.9.1-9/debian/rules/#L250 (@sylvestre is the maintainer).
Repository: go
Issue: proposal: spec: init-only package level variables
Labels: LanguageChange,Proposal,LanguageChangeReview

Mutable state held in package-level variables can be problematic for a few reasons, e.g. concurrency [edited to remove erroneous mention of multiple imports]

It would be useful to be able to declare a form of "assign-once" variable that can only have its value set via an initializer in the declaration or in a subsequent init function. Once all init functions have completed the value of the variable cannot be changed.

Some other languages use a special keyword to indicate this type of variable (e.g. pony uses let for assign-once variables and var for others)
Repository: pytorch
Issue: In-place bernoulli_ has more functionality than torch.bernoulli with output parameter
Labels: module: distributions,triaged

```
x = torch.IntTensor(10)
y = torch.Tensor(10).uniform_()
x.bernoulli_(y) # ok!

torch.bernoulli(y, out=x)
TypeError: torch.bernoulli received an invalid combination of arguments - got (torch.FloatTensor, out=torch.IntTensor), but expected one of:
 * (torch.FloatTensor source, *, torch.FloatTensor out)
      didn't match because some of the arguments have invalid types: (torch.FloatTensor, out=torch.IntTensor) 
```

cc @vincentqb @fritzo @neerajprad @alicanb @vishwakftw @nikitaved
Repository: angular
Issue: Parents of NgModel are not reset when using custom value accessors
Labels: freq2: medium,area: forms,type: use-case,forms: ngModel,P4

<!--
IF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING
-->

**I'm submitting a ...**  (check one with "x")
```
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
```

**Current behavior**
Take following multiple nested reusable components `custom-cmp` and `nested-cmp`:

```
<custom-cmp [(ngModel)]="bob">
    <nested-cmp [(ngModel)]="bob" *ngIf="something">
        <input [(ngModel)]="bob" />
    </nested-cmp>
    .... further cmps ....
</custom-cmp>
```
Each reusable component has a custom value accessor defined to pass the `[(ngModel)]` down to the `input` element.

When the input element is changed, through `keystroke` for example... all components: `custom-cmp`, `nested-cmp` and `input` receive the correct `ng-dirty` flags. The `NgModel` at all three levels are also `dirty: true`.

When `reset()` is called on the `input` or `nested-cmp` model (DI: `NgModel` or via the `@ViewChild(NgModel)` decorator) for example, none of the parents are notified and reset, as the `parent` property of the model in question is suddenly `undefined`.

For example `nested-cmp` component class:

```
@ViewChild(NgModel) myInputModel: NgModel // this is the ngModel of the 'input' element (a child of nested-cmp)

doReset(): void {
    this.myInputModel.reset(...original value...);
}
```

In the above example: `doReset()` - only the `input element ngModel` is reset... i.e the input is set back to `ng-pristine`. The host, `nested-cmp` and it's parent `custom-cmp` remains dirty (`ng-dirty`). 

**Expected behavior**
That all parent components on which `ngModel.reset()` is called are restored to their `pristine` states.

**Minimal reproduction of the problem with instructions**
Full reproduction:
http://plnkr.co/edit/TTPfmhRj1LN2ZXjz4JXo?p=preview

Further comments in same thread:
https://github.com/angular/angular/issues/16772#issuecomment-306779757
https://github.com/angular/angular/issues/16772#issuecomment-306784580
https://github.com/angular/angular/issues/16772#issuecomment-306784810

**What is the motivation / use case for changing the behavior?**
Creating custom components and taking advantage of two-way-binding without forms

**Please tell us about your environment:**

* **Angular version:** 2.4.9

* **Browser:** Chrome 58
 
* **Language:** TypeScript 2.2.2