sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: `flutter run` does not terminate after failure to install
Labels: tool,P2,team-tool,triaged-tool

If I yank the cable from my device during installation (I know this isn't normal, but I'm simulating https://github.com/Dart-Code/Dart-Code/issues/329!) then flutter run sends an `app.stop` notification but does not terminate; leaving the process around.

Since this is not `daemon` and starts the app immediately at startup, I would expect that on app start it would terminate (and if I send a stop command, I believe it does).

```text
PS M:\Coding\Applications\flutter\examples\stocks> flutter run --machine
[{"event":"app.start","params":{"appId":"006f6f46-ba1e-4a68-aaf4-f3d53e9b8b80","deviceId":"ZY2224ZKJJ","directory":"M:\\Coding\\Applications\\flutter\\examples\\stocks","supportsRestart":true}}]
Launching lib/main.dart on XT1562 in debug mode...
[{"event":"app.progress","params":{"appId":"006f6f46-ba1e-4a68-aaf4-f3d53e9b8b80","id":"0","progressId":null,"message":"Initializing Gradle..."}}]
[{"event":"app.progress","params":{"appId":"006f6f46-ba1e-4a68-aaf4-f3d53e9b8b80","id":"0","progressId":null,"finished":true}}]
[{"event":"app.progress","params":{"appId":"006f6f46-ba1e-4a68-aaf4-f3d53e9b8b80","id":"1","progressId":null,"message":"Resolving dependencies..."}}]

// Cable yanked around here

[{"event":"app.progress","params":{"appId":"006f6f46-ba1e-4a68-aaf4-f3d53e9b8b80","id":"1","progressId":null,"finished":true}}]
[{"event":"app.progress","params":{"appId":"006f6f46-ba1e-4a68-aaf4-f3d53e9b8b80","id":"2","progressId":null,"message":"Running 'gradlew assembleDebug'..."}}]
[{"event":"app.progress","params":{"appId":"006f6f46-ba1e-4a68-aaf4-f3d53e9b8b80","id":"2","progressId":null,"finished":true}}]
Built build\app/outputs/apk/app-debug.apk (21.6MB).

// Error comes back with a stop notification

error: device 'ZY2224ZKJJ' not found
[{"event":"app.stop","params":{"appId":"006f6f46-ba1e-4a68-aaf4-f3d53e9b8b80","error":"Exit code 1 from: M:\\Apps\\Android\\platform-tools\\adb -s ZY2224ZKJJ shell pm list packages io.flutter.examples.stocks"}}]

// Process is still alive
```

Is my understanding correct - flutter should terminate here?
Repository: TypeScript
Issue: Array.isArray type narrows to any[] for ReadonlyArray<T>
Labels: Suggestion,In Discussion,Domain: lib.d.ts,Fix Available

<!-- 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.4.1

**Code**

```ts
declare interface T {
  foo: string;
}

const immutable: T | ReadonlyArray<T> = [];

if (Array.isArray(immutable)) {
  const x = immutable; // Any[]  - Should be ReadonlyArray<T>
} 

const mutable: T | Array<T> = [];

if (Array.isArray(mutable)) {
  const x = mutable; // T[]
} 
```

**Expected behavior:** Should type narrow to ```ReadonlyArray<T>```, or at the very least ```T[]```.

**Actual behavior:** Narrows to ```any[]```.  Doesn't trigger warnings in noImplicitAny mode either.
Repository: go
Issue: x/tools/present: add footer template
Labels: Proposal,Proposal-Accepted,NeedsFix

The Go Present tool lacks the ability to add a "footer" to each slide page.  Having such functionality is required at some companies for internal presentations, e.g. for marking the slide deck as confidential.  Such a template could also be used to expose other metadata about the specific slide such as the slide number.

I would like to implement a change to the slide format specification that enables the definition of a footer element.  

It might also be useful to add the ability to turn off the footer for a specific slide.

I will update this proposal with specific proposed specification changes if this functionality is generally agreeable.

### Update - Proposal
I propose being able to optionally add to the Author block of the title slide:
```
<footer | [#]>
```

The author section may also contain a footer element.  The foot can be broken into three segments with justifications using the pipe (`|`) character.  The justifications are left, center, and right.  Use `[#]` to denote the slide number.

Examples:

`<Go rules! | | [#]>`
```
Go rules!                                                                    1
```
`<|Go rules! | [#]>`
```
                                Go rules!                                    1
```
`<[#]>`
```
1
```
`<|[#]>`
```
                                       1
```

I was unable to come up with a clean way to have some form of `nofooter` directive.  I don't have strong feelings toward the chosen delimiters, they are merely what made sense to me.
Repository: opencv
Issue: documentation needs an extra step for running OpenCV from sbt
Labels: bug,category: documentation,affected: 2.4

##### System information (version)
- OpenCV => 2.4
- Operating System / Platform => Linux 64 bit
- Compiler => sbt

##### Detailed description
In this document:
http://docs.opencv.org/2.4/doc/tutorials/introduction/desktop_java/java_dev_intro.html

Towards the end it says:
Note the call to System.loadLibrary(Core.NATIVE_LIBRARY_NAME). This command must be executed exactly once per Java process prior to using any native OpenCV methods. If you don’t call it, you will get UnsatisfiedLink errors. You will also get errors if you try to load OpenCV when it has already been loaded.

Adding just System.loadLibrary(Core.NATIVE_LIBRARY_NAME) is not enough.
Core.NATIVE_LIBRARY_NAME is just this:
opencv_java2413

Errors occur even if System.loadLibrary is added to code:
java.lang.UnsatisfiedLinkError: no opencv_java2413 in java.library.path

Full path to OpenCV system library folder (e.g. opencv/build/lib) is needed.
In ant project documentation there is this line:
ant -DocvJarDir=path/to/dir/containing/opencv-244.jar -DocvLibDir=path/to/dir/containing/opencv_java244/native/library

That's what's missing from sbt docs, how to pass full path to lib folder.


##### Steps to reproduce
Follow the document for sbt project build.
Repository: TypeScript
Issue: this is any type in class property assignment to function
Labels: Suggestion,Awaiting More Feedback,VS Code Tracked,Domain: JavaScript

<!-- 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 -->

From https://github.com/Microsoft/vscode/issues/30003

**TypeScript Version:**  2.4.1

**Code**

```ts
 class AppComponent {
    items = [ 'Angular 4', 'React', 'Underscore'];

    foo = function () {
        return this.items
    }
}
```

**Expected behavior:**
The type of `this` in `foo` should be `AppComponent`

**Actual behavior:**
The type of `this` in `foo` is `any`
Repository: angular
Issue: Calling setValidators on a form control when control is nested as a component in form causes ExpressionChangedAfterItHasBeenCheckedError
Labels: type: bug/fix,freq3: high,area: forms,state: confirmed,design complexity: major,P4

<!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.

ISSUES MISSING IMPORTANT INFORMATION MIGHT BE CLOSED WITHOUT INVESTIGATION.
-->

## I'm submitting a ...
<!-- Check one of the following options with "x" -->
<pre><code>
[ ] Regression (behavior that used to work and stopped working in a new release)
[ X] Bug report <!-- Please search github for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre>

## Current behavior
<!-- Describe how the issue manifests. -->
Calling setValidators on a form control when control is nested as a component in form causes ExpressionChangedAfterItHasBeenCheckedError. Otherwise nesting formControls in components seems to work fine.

## Expected behavior
<!-- Describe what the desired behavior would be. -->
When calling myform.controls["my_control"].setValidators([Validators.required]); in a nested component of a reactive form I would expect no errors to occur, especially ExpressionChangedAfterItHasBeenCheckedError

## Minimal reproduction of the problem with instructions
<!--
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).
-->

## What is the motivation / use case for changing the behavior?
<!-- Describe the motivation or the concrete use case. -->


## Please tell us about your environment

<pre><code>
Angular version: ~4.2.0
<!-- Check whether this is still an issue in the most recent Angular version -->
Still an issue

Browser:
- [ X] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: 6.11.0 <!-- use `node --version` -->
- Platform: linux

Others:
<!-- Anything else relevant?  Operating system version, IDE, package manager, HTTP server, ... -->
</code></pre>
Repository: kubernetes
Issue: "Simulation" of scheduling behavior needs to work with modified scheduler policies, replacement schedulers, and multiple schedulers
Labels: sig/scheduling,sig/autoscaling,kind/feature,lifecycle/frozen

This issue is forked off from #42002

#20204 moved the core scheduler predicates (the one used in kubelet admission) into a "library" function called GeneralPredicates so it could be shared with the default scheduler and with components that need to do "simulation" (need to know whether a particular pod will schedule) like rescheduler, cluster autoscaler, DaemonSet controller, etc.

This approach doesn't account for the fact that a cluster admin might replace the default scheduler with one whose predicates are stricter (or run alongside the default scheduler one whose predicates are stricter). It may give wrong results in such a situation. In fact this is even true if you use the default scheduler but use the scheduler policy config file to enable extra predicates (because such extra predicates will not show up in GeneralPredicates).

We should do two things

(1) to handle the "using default scheduler but enabled extra predicates" case, make the "predicate library" that the "simulators" use take the scheduler policy config into account

(2) to handle the "using a replacement scheduler with stricter predicates" case, either figure out how to make that work with the "predicate library" approach (but that seems impossible without requiring to recompile the components that do simulation, to link in the new predicate library), or require scheduler authors to have their schedulers (including default scheduler) export a "dry run" endpoint that takes a pod and tells you which nodes it can schedule onto (without modifying any of the scheduler's internal state). There is more discussion of this idea (suggested by @bgrant0607) in #42002. Note that it is a little more complicated than what I described because cluster autoscaler wants to know if a pending pod will schedule if a new node is hypothetically added to the cluster.

cc/ @kubernetes/sig-scheduling-feature-requests 
cc/ @kubernetes/sig-autoscaling-feature-requests 
cc/ @bgrant0607
Repository: rust
Issue: Unnecessary warning about panic at runtime
Labels: C-enhancement,A-diagnostics,T-compiler,A-const-eval

Given the following minimal code…

```rust
macro_rules! remainder  {
    ($dividend:expr, $divisor:expr) => {
        if $divisor == 0 {
            0
        } else {
            $dividend % $divisor
        }
    };
}

fn main()   {
    #[allow(const_err)]
    let _ = remainder!(12, 0);
}
```

… I get the following warning…

```
warning: this expression will panic at run-time
  --> bad_macro.rs:6:13
   |
6  | /             $dividend % $divisor
7  | |         }
8  | |     };
9  | | }
...  |
12 | |     #[allow(const_err)]
13 | |     let _ = remainder!(12, 0);
   | |             ---------------^-
   | |_____________|______________|
   |               |              attempt to calculate the remainder with a divisor of zero
   |               in this macro invocation
```

… although I obviously thought about it and protected myself against it.

Is there any possibility to deactivate this warning? If not, there should be.

I use the latest nightly (9b85e1cfa 2017-07-07).
Repository: rust
Issue: Tracking issue for RFC 2033: Experimentally add coroutines to Rust
Labels: T-lang,B-unstable,C-tracking-issue,A-coroutines,F-coroutines,S-tracking-design-concerns

[RFC](https://github.com/rust-lang/rfcs/pull/2033).

This is an *experimental* RFC, which means that we have enough confidence in the overall direction that we're willing to land an early implementation to gain experience. **However, a complete RFC will be required before any stabilization**.

This issue tracks the initial implementation.

[**related issues**](https://github.com/rust-lang/rust/labels/A-coroutines)
Repository: TypeScript
Issue: Compiler hang when importing big JS file with --allowJs
Labels: Bug

**TypeScript Version:**  2.4.1

**Repro project**
When importing a big JS file (a working parser) (245 Kbytes commonjs format) (with `--allowJs` enabled) the compiler hangs forever. Minimal repro project provided: [tsc-hang-00](https://github.com/pjmolina/tsc-hang-00)

**Expected behavior:**
Compilations ends with or without errors.

**Actual behavior:**
Compilations hangs forever and keeps consuming CPU.

**Tests conditions**
- Windows 10, NodeJS 8.0, TS 2.4.1
- Travis: Linux Container, NodeJS 8.0, TS 2.4.1
Repository: neovim
Issue: Option to change behavior for pending (incomplete) mappings
Labels: enhancement

It's a feature request:
Run this: `:cmap vv <esc>` and `:set tm=10000` now regardless of `showcmd` status if you press `v` in cmdline it shows the entered `v` (overwriting the character behind it) for 10 sec. It'd be great if cmdline respected `showcmd` state or there were another option to disable displaying pressed keys in operator pending mode in cmdline.
Repository: go
Issue: net/http: read: connection reset by peer under high load
Labels: help wanted,NeedsInvestigation

### What version of Go are you using (`go version`)?
go1.8.3

### What operating system and processor architecture are you using (`go env`)?
GOARCH="amd64"
GOOS="linux"

### What did you do?

1. Edit [/etc/sysctl.conf](https://gist.github.com/liranp/50c90a441f5c29b41b63cdacf745e949#file-sysctl-conf) and reload with `sysctl -p`.
2. Edit [/etc/security/limits.conf](https://gist.github.com/liranp/50c90a441f5c29b41b63cdacf745e949#file-limits-conf).
3. Execute the following server and client (on different hosts) to simulate multiple HTTP requests:
Server https://play.golang.org/p/B3UCQ_4mWm
Client https://play.golang.org/p/_XQRqp8K5b

### What did you expect to see?
No errors at all.

### What did you see instead?
Errors like the following:
```bash
Get http://<addr>:8080: read tcp [::1]:65244->[::1]:8080: read: connection reset by peer
Get http://<addr>:8080: write tcp [::1]:62575->[::1]:8080: write: broken pipe
Get http://<addr>:8080: dial tcp [::1]:8080: getsockopt: connection reset by peer
Get http://<addr>:8080: readLoopPeekFailLocked: read tcp [::1]:51466->[::1]:8080: read: connection reset by peer
```
Repository: youtube-dl
Issue: Updating in Windows using -U or --update switch results in cmd crash
Labels: cant-reproduce

Updating in windows causes cmd to crash and I believe the problem is in the batch file code.

`
@echo off
echo Waiting for file handle to be closed ...
ping 127.0.0.1 -n 5 -w 1000 > NUL
move /Y "C:\Michael Hall\Workspace\Development\Old Projects\MediaDownloader\MediaDownloader\bin\Release\youtube-dl.exe.new" "C:\Michael Hall\Workspace\Development\Old Projects\MediaDownloader\MediaDownloader\bin\Release\youtube-dl.exe" > NUL
echo Updated youtube-dl to version 2017.07.09.
start /b "" cmd /c del "%~f0"&exit /b"
                
`

Should not the last line have 2 & and spaces? Eg. start /b "" cmd /c del "%~f0" && exit /b" or even better:
start /b "" cmd /c del "%~f0"
exit
![untitled](https://user-images.githubusercontent.com/12835195/27995903-0b32c86a-649c-11e7-8b47-d7e31320566b.png)

Honestly I don't know but it gets stuck in cmd window and throws an error if using C# for example for standard output;
Repository: angular
Issue: Access DOM element of FormControl programatically
Labels: feature,state: Needs Design,freq2: medium,area: forms,feature: under consideration

I have searched Google, Angular.io docs, and the source code and I could not find if this is currently possible in the latest version of Angular. 

I would like to propose the ability to access the DOM element that a FormControl is bound to when using the formControlName directive. It would be publicly readonly. If a FormControl is not bound using the formControlName directive, then the property would be null. 

The rationale behind this request is so that the state of the element can be managed from the class, without having to expose any of the view's markup (i.e. the id attribute or any other xpath selector).

An example use case would be a situation where you want to listen for the onBlur/onFocus events so that, for example, when a user selects a control, some JavaScript can perform an animation/highlight to show the user the field currently being edited – conversely, the onBlur can undo those changes except for if the form's value exists and/or was modified. 

For me, I would like to take advantage of RxJS's Observable on those events, without having to litter my HTML markup for each event I want to listen to for each of my elements (medium-sized form). When focusing on an element I want to be able to perform an animation to move the label (which starts at the same visual height as the form control) above the form control so the user can type. The form control would also have a bottom border that would change color to show it's the selected input. When the field is blurred, if there is no value, I want to move the label back to its initial locate and remove the bottom border.

Where this begins to become complex are when certain controls need extra behavior – a date picker that "opens" automatically when the field is focused, and closes automatically when focus is lost. A select drop down that, based on selection, may need to affect (show/hide) other form controls. 

Thank you for your time. Please let me know if I need to clarify any of the above.
Repository: go
Issue: cmd/compile: late nilcheck elim doesn't elim later nilcheck
Labels: compiler/runtime

Reproduce:

1. Disable the regular (early) nilcheckelim pass.
2. `go tool compile -d=nil x.go` this code:

```go
package p

//go:noinline
func fx10k() *[10000]int { return nil }

func f3(x *[10000]int) {
	x = fx10k()
	_ = x[9999]
	_ = x[9999]
}
```

Result:

```
x.go:8:7: removed nil check
x.go:9:7: generated nil check
```

This is backwards. We should generate the first nil check and remove the second one, on pain of panicking on the wrong line.

I'm not sure whether this impacts any code in practice right now. Obvious reproducers like the one above already have their duplicate nil checks removed by the early nilcheck pass. I noticed it when implementing the TODO at the end of nilcheck2 caused the wrong nil checks to be eliminated from test/nilptr3.go.

Opinions about the correct fix are welcome.

cc @randall77
Repository: vscode
Issue: Cannot move last cursor position when using multi-cursor
Labels: feature-request,editor-multicursor

Hi,

- VSCode Version:  1.13.1 
- OS Version: macOS Sierra 10.12.5 

I went through the options available in settings and keyboard shortcuts but didn't find an option to enable this. I also posted on SO tagging `vscode` but no one seems to have an answer for this question. 

Is there a way to enable this option?
Repository: youtube-dl
Issue: [acloud.guru] Site support request
Labels: site-support-request,account-needed

I am not able to download cloud.guru videos. It is showing the error "Unsupported URL"
Repository: flutter
Issue: TabBarView should give priority to vertical scrolling over horizontal
Labels: c: new feature,framework,f: scrolling,f: gestures,customer: crowd,P3,team-framework,triaged-framework

I faced a problem when using TabBarView that includes multiple ScrollViews.

I try to scroll vertically, but sometimes fail. It is because the thumb moves diagonally when operating with one hand.

I want to prioritize vertical (ie inner) scroll than horizontal. Because in mobile apps, vertical scrolling is more frequently operation than horizontal.

TabBarView uses HorizontalDragGestureRecognizer internally. It judges whether the delta of horizontal movement is sufficient.

https://github.com/flutter/flutter/blob/f64bfba860d143f3f3b9d8970a15c088b0d9599d/packages/flutter/lib/src/gestures/monodrag.dart#L259

The delta is same value in both VerticalDragGestureRecognizer and HorizontalDragGestureRecognizer. I think that changing that value will work for TabBarView/PageView.

In addition, I found `kPagingTouchSlop`.

https://github.com/flutter/flutter/blob/438f4df00c64c304d037b7cf3d6678199816ab18/packages/flutter/lib/src/gestures/constants.dart#L62

```dart
/// The distance a touch has to travel for us to be confident that the gesture
/// is a paging gesture. (Currently not used, because paging uses a regular drag
/// gesture, which uses kTouchSlop.)
// TODO(ianh): Create variants of HorizontalDragGestureRecognizer et al for
// paging, which use this constant.
const double kPagingTouchSlop = kTouchSlop * 2.0;  // Logical pixels
```


## Flutter Doctor

```
[✓] Flutter (on Mac OS X 10.12.5 16F73, locale ja-JP, channel master)
    • Flutter at /Applications/flutter
    • Framework revision 4891506931 (2 days ago), 2017-07-07 16:00:45 -0700
    • Engine revision 8ad1576f27
    • Tools Dart version 1.25.0-dev.4.0
```