sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Outline view + Markdown: Do not display the "#"s
Labels: feature-request,markdown,under-discussion

<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
The Outline view for Markdown already displays headers and sub-headers in a structured way; there is no need to pollute the view with "#"s to show the header levels.

![image](https://user-images.githubusercontent.com/103355/42536060-08a6d31e-845f-11e8-8846-4bb7a7fad80a.png)
Repository: TypeScript
Issue: Terse mode output from `tsc --build`
Labels: Suggestion,In Discussion

## Search Terms

tsc --build mode console logging output verbose

## Suggestion

Have a middle-ground between `verbose` and "nothing" when running `tsc -b`

## Use Cases

Initial feedback was that "`tsc -b` should print nothing by default (if there are no errors)", which is a reasonable first principle to work from. However, it's nice to have some rough idea of what's going on, especially because a `tsc -b` invocation might take quite a while, depending on what's up to date.

Users today can get more output by running with `--verbose`, which prints some fairly detailed spew:
```
message TS6350: Project 'tsconfig.json' is out of date because oldest output 'lib/fetch.js' is older than newest input 'src/fetch.ts'
```
The `verbose` output was written primarily as an "Explain *why* something is happening"; there is no in-between setting that says simply "Explain *what* is happening".

This is compounded under `--watch` where `tsc -b` prints errors, but doesn't print "No errors", so you can't really know if your compilation succeeded or if tsc simply missed a file change.

## Proposal

`--terse` strikes a middle ground between the default (silent) and `verbose`. Its short name would be `-t` which doesn't conflict with anything I can think of adding in the near term.

## Examples

```
> tsc -b -t src
message TS6350: 'src/compiler' is up-to-date
message TS6350: 'src/services' is up-to-date
message TS6351: Building 'src/server'...
message TS6351: Building 'src/tests'...
message TS6352: Build completed
```

```
> tsc -b -t -w src
message TS6350: All projects are up to date
message TS6351: 'src/compiler' was modified, building...

src/compiler/parser.ts:21:1 - error TS1128: Declaration or statement expected.

21 ?
   ~

message TS6351: 'src/compiler' was modified, building...
message TS6351: Building 'src/server'...
message TS6351: Building 'src/tests'...
message TS6352: All projects are up to date
```

## Checklist

My suggestion meets these guidelines:
* [x] This wouldn't be a breaking change in existing TypeScript / JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. new expression-level syntax)
Repository: flutter
Issue: Support running individual tests on a device
Labels: a: tests,tool,P3,team-tool,triaged-tool

Currently Flutter can run all widget tests in a file on a device by invoking "flutter run..."

OR

Flutter can run an individual widget test in a headless environment by invoking "flutter test..."

However, there is not currently an execution option to run a specific widget test on a device. The current work around is to comment out all the tests you don't want to run and then use "flutter run...".  Developers should not have to do this.

Running a single test on a device is what a developer will tend to do when he/she is curious about existing or intended behavior.  It is also what a developer will do when correcting or updating a single test.  A developer should not have to alter any source code to accomplish this.
Repository: go
Issue: x/net/http2: h2spec violation 8.1.2.2
Labels: NeedsInvestigation

```
$ ./h2spec -S -k -t -h 127.0.0.1 -p 8080 http2/8.1.2.2
Hypertext Transfer Protocol Version 2 (HTTP/2)
  8. HTTP Message Exchanges
    8.1. HTTP Request/Response Exchange
      8.1.2. HTTP Header Fields
        8.1.2.2. Connection-Specific Header Fields
          × 1: Sends a HEADERS frame that contains the connection-specific header field
            -> The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.
               Expected: GOAWAY Frame (Error Code: PROTOCOL_ERROR)
                         RST_STREAM Frame (Error Code: PROTOCOL_ERROR)
                         Connection closed
                 Actual: DATA Frame (length:51, flags:0x01, stream_id:1)
          × 2: Sends a HEADERS frame that contains the TE header field with any value other than "trailers"
            -> The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.
               Expected: GOAWAY Frame (Error Code: PROTOCOL_ERROR)
                         RST_STREAM Frame (Error Code: PROTOCOL_ERROR)
                         Connection closed
                 Actual: DATA Frame (length:53, flags:0x01, stream_id:1)

Failures: 

Hypertext Transfer Protocol Version 2 (HTTP/2)
  8. HTTP Message Exchanges
    8.1. HTTP Request/Response Exchange
      8.1.2. HTTP Header Fields
        8.1.2.2. Connection-Specific Header Fields
          × 1: Sends a HEADERS frame that contains the connection-specific header field
            -> The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.
               Expected: GOAWAY Frame (Error Code: PROTOCOL_ERROR)
                         RST_STREAM Frame (Error Code: PROTOCOL_ERROR)
                         Connection closed
                 Actual: DATA Frame (length:51, flags:0x01, stream_id:1)
          × 2: Sends a HEADERS frame that contains the TE header field with any value other than "trailers"
            -> The endpoint MUST respond with a stream error of type PROTOCOL_ERROR.
               Expected: GOAWAY Frame (Error Code: PROTOCOL_ERROR)
                         RST_STREAM Frame (Error Code: PROTOCOL_ERROR)
                         Connection closed
                 Actual: DATA Frame (length:53, flags:0x01, stream_id:1)

```
There is a CL which I will rebase and associate to this issue.
Repository: go
Issue: x/net/http2: h2spec violation 5.1
Labels: NeedsInvestigation

```
$ ./h2spec -S -k -t -h 127.0.0.1 -p 8080 http2/5.1
Failures: 

Hypertext Transfer Protocol Version 2 (HTTP/2)
  5. Streams and Multiplexing
    5.1. Stream States
      × 5: half closed (remote): Sends a DATA frame
        -> The endpoint MUST respond with a stream error of type STREAM_CLOSED.
           Expected: GOAWAY Frame (Error Code: STREAM_CLOSED)
                     RST_STREAM Frame (Error Code: STREAM_CLOSED)
                     Connection closed
             Actual: DATA Frame (length:42, flags:0x01, stream_id:1)
      × 6: half closed (remote): Sends a HEADERS frame
        -> The endpoint MUST respond with a stream error of type STREAM_CLOSED.
           Expected: GOAWAY Frame (Error Code: STREAM_CLOSED)
                     RST_STREAM Frame (Error Code: STREAM_CLOSED)
                     Connection closed
             Actual: DATA Frame (length:42, flags:0x01, stream_id:1)

```
These tests don't always fail so it is most likely an issue with the h2spec test.
Repository: go
Issue: x/net/http2: h2spec violation 6.1.2
Labels: NeedsInvestigation

```
$ ./h2spec -S -k -t -h 127.0.0.1 -p 8080 http2/6.1/2

Hypertext Transfer Protocol Version 2 (HTTP/2)
  6. Frame Definitions
    6.1. DATA
      × 2: Sends a DATA frame on the stream that is not in "open" or "half-closed (local)" state
        -> The endpoint MUST respond with a stream error of type STREAM_CLOSED.
           Expected: GOAWAY Frame (Error Code: STREAM_CLOSED)
                     RST_STREAM Frame (Error Code: STREAM_CLOSED)
                     Connection closed
             Actual: DATA Frame (length:42, flags:0x01, stream_id:1)
```

This test also does not always fail so I believe its an h2spec issue. It fails more often if you run the 6.1 series, i.e.  ./h2spec -S -k -t -h 127.0.0.1 -p 8080 http2/6.1
Repository: rust
Issue: Most core trait impls for empty arrays are over-constrained
Labels: T-libs-api,A-array

All of the following have `where T: Trait` on their impls for `[T; 0]`, but don't need it:
- Debug
- Copy
- Clone
- PartialOrd
- Ord
- PartialEq
- Eq
- Hash

A demo of those not in rustdoc:
```rust
struct Nothing;
fn must_be_copy<T: Copy>() {}
fn must_be_clone<T: Clone>() {}

pub fn empty_array_is_copy_and_clone() {
    must_be_copy::<[Nothing; 0]>();
    //^ error: the trait bound `Nothing: std::marker::Copy` is not satisfied in `[Nothing; 0]`
    must_be_clone::<[Nothing; 0]>();
    //^ error: the trait bound `Nothing: std::clone::Clone` is not satisfied in `[Nothing; 0]`
}
```

Kudos to whomever did the `Default` impls for getting this right: https://doc.rust-lang.org/std/primitive.array.html#impl-Default-29
Repository: TypeScript
Issue: Support @typedef as member of namespace
Labels: Suggestion,In Discussion,Domain: JSDoc,checkJs,Domain: JavaScript

**TypeScript Version:**  3.0.0-dev.20180711

**Code**

```js
class C {
    /** @typedef {number} N */

    /** @type {N} */
    x = 0; // works
}

/**
 * @memberof C
 * @typedef {number} M
 */

/** @type {C.N} */
const x = 0; // broke

/** @type {C.M} */
const y = 0; // broke
```

**Expected behavior:**

No error.

**Actual behavior:**

`C.N` and `C.M` don't exist.
Repository: pytorch
Issue: [Caffe2] Can't find Caffe2<->ONNX conversion tools
Labels: caffe2

Hi,

I have some problems finding the `convert-caffe2-to-onnx` and `convert-onnx-to-caffe2` tools.
In the past, I installed those tools from the [onnx-caffe2 repository](https://github.com/onnx/onnx-caffe2) without any problems. Now, this repository has been deprecated and it has been merged inside Caffe2.

I expected to find both tools along with the Caffe2 installation but (at least for me) this is not the case.
At first, I tried to install Caffe2 from anaconda (I tried both versions CPU and GPU) but I was not able to find those tools as binaries and if I try to directly execute the python script from which the executables are generated (`/caffe2/python/onnx/bin/conversion.py`) it gives me segmentation fault. I also tried using the docker images but also there I didn't found any conversion tool inside the container.

In the end, the only way to make it work required to build caffe2 from source, using the setup_caffe2.py script. When building from source I used the system described below.

Is this the only possible way to have access to such converters? Is it possible to use them also from the pre-built binaries (such as those from anaconda)??

## System Info
PyTorch version: 0.4.0
Is debug build: No
CUDA used to build PyTorch: 9.0.176

OS: Ubuntu 16.04.3 LTS
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
CMake version: version 3.5.1

Python version: 3.5
Is CUDA available: Yes
CUDA runtime version: 9.0.176
GPU models and configuration: GPU 0: GeForce GTX 1080 Ti
Nvidia driver version: 390.48
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.6.0.21
/usr/lib/x86_64-linux-gnu/libcudnn.so.7.0.4
/usr/lib/x86_64-linux-gnu/libcudnn_static_v7.a
/usr/local/MATLAB/R2017a/bin/glnxa64/libcudnn.so.5.1.5
/usr/local/lib/python2.7/dist-packages/torch/lib/libcudnn.so.7

Versions of relevant libraries:
[pip3] numpy (1.14.2)
[pip3] torch (0.4.0)
[pip3] torchvision (0.2.1)
[conda] Could not collect
Repository: angular
Issue: Upgraded AngularJS component which requires another upgraded component can't find the parent controller when using Angular content projection
Labels: type: bug/fix,freq1: low,workaround2: non-obvious,area: upgrade,state: confirmed,P3

## I'm submitting a...
<pre><code>
[ ] Regression (a 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 -->
[ ] Performance issue
[x] 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
[ ] Other... Please describe:
</code></pre>

## Current behavior
I have ngUpgrade setup with `downgradeModule`, for performance reasons. I have a downgraded Angular component `ngComponentA`, which references upgraded AJS component `ajsComponentB` in its template. `ajsComponentA` supports content projection and `ajsComponentB` supports transclusion -- The `ng-content` projection is placed inside of the former's transclude block, like so:

```
<ajs-component-b>
  <span>Some other content</span>
  <ng-content></ng-content>
</ajs-component-b>
```

Then, `ngComponentA` is used with another upgraded component `ajsComponentC` which requires `ajsComponentA`, like:

```
<ajs-component-a>
  <ajs-component-c></ajs-component-c>
</ajs-component-a>
```

This produces the error: `Unhandled Promise rejection: [$compile:ctreq] Controller 'ajsComponentA', required by directive 'ajsComponentC', can't be found!`

When all of the above are AngularJS components everything works properly.

## Expected behavior

Transclusion from an upgraded component and Content Projection from a downgraded component should be able to be used together with an upgraded AngularJS component that uses `require`.

## Minimal reproduction of the problem with instructions
The scenario is covered in the "Current behavior" section, and is reproduced at:
https://stackblitz.com/edit/ngupgradestatic-playground-uvr14t

- `common-filter` corresponds to `ngComponentA` in the above description
- `ajs-filter` corresponds to `ajsComponentB`
- `ajs-button` corresponds to `ajsComponentC`

## What is the motivation / use case for changing the behavior?
Gives a user more flexibility in which components can be upgraded, as sometimes it isn't feasible to upgrade and entire dependency chain of components.

## Environment

<pre><code>
Angular version: 6.0.4
AngularJS version: 1.7.2

Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [x] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
</code></pre>
Repository: react-native
Issue: [InputAccessoryView] Can't specify keyboard-conditional bottom padding
Labels: Issue: Author Provided Repro,📮Known Issues,Bug

## Environment
```
React Native Environment Info:
  System:
    OS: macOS High Sierra 10.13.5
    CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Memory: 25.07 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 9.3.0 - ~/.nvm/versions/node/v9.3.0/bin/node
    Yarn: 1.6.0 - /usr/local/bin/yarn
    npm: 6.1.0 - ~/.nvm/versions/node/v9.3.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
    Android SDK:
      Build Tools: 23.0.1, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.3
      API Levels: 23, 25, 26
  IDEs:
    Android Studio: 3.1 AI-173.4819257
    Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.4.1 => 16.4.1
    react-native: ^0.56.0 => 0.56.0
```

## Description
If you have a bottom tab bar, you want the `InputAccessoryView` to appear above it when the keyboard is collapsed. However, when the keyboard is expanded, you want the `InputAccessoryView` to appear directly above the keyboard.

This sort of "conditional" bottom padding is currently impossible with `InputAccessoryView`. It seems that when the keyboard is expanded, the distance between the bottom of the screen and the `InputAccessoryView` is fixed. Attempting to change this distance with `height`, `padding`, or `margin` style properties does not seem possible.

## Reproducible Demo
I've created a minimal repro [here](https://github.com/Ashoat/TabsWithInputAccessoryView).
Repository: go
Issue: x/review/git-codereview: when working on the Go repo, use its bin/gofmt if present
Labels: help wanted,NeedsFix

gofmt changed in Go 1.11, and git-codereview uses the gofmt from $PATH, so when that's the Go 1.10 version, it complains as `git-codereview: gofmt needs to format these files (run 'git gofmt')`.

It should instead use the gofmt in GOROOT.
Repository: godot
Issue: Collisions of RigidBody2D are offsetted when moving.
Labels: bug,confirmed,topic:physics

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if non-official. -->
9f82368d40f1948de708804645374ea02ca6e7db

**OS/device including version:**
<!-- Specify GPU model and drivers if graphics-related. -->
`Linux eb 4.17.2-1-ARCH #1 SMP PREEMPT Sat Jun 16 11:08:59 UTC 2018 x86_64 GNU/Linux`

**Issue description:**
<!-- What happened, and what was expected. -->
Collisions of RigidBody2D are offsetted when moving.
In our current project we swap the mode back and forth from MODE_CHARACTER to MODE_KINEMATIC.
KinematicBody2D seems not affected.

**Steps to reproduce:**
See the attached demo scenes, videos and gif.


**Minimal reproduction project:**
(use arrow keys to move)
[collisionOffsetIssue.zip](https://github.com/godotengine/godot/files/2185978/collisionOffsetIssue.zip)
[video1](http://games.code0.xyz/collision1.mp4)
[video2](http://games.code0.xyz/0000-1602.mkv)

<!-- Recommended as it greatly speeds up debugging. Drag and drop a zip archive to upload it. -->
![collisionissue](https://user-images.githubusercontent.com/13794470/42595812-b582404c-8553-11e8-8986-5128d298a6ab.gif)
Repository: opencv
Issue: capture.read() fails in a process but not in a thread.
Labels: category: videoio,platform: ios/osx,incomplete

- OpenCV => 3.3.1
- Operating System / Platform => OSX High Sierra
- Compiler => /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++




##### Detailed description

a video is able to be read using  opencv when ran in a thread but not a process (capture.read returns false). 
a working video is attached as well to demonstrate this possible but there is something about the demo video that breaks it in a process specifically.



##### Steps to reproduce
run test.py in the attached zip, you will see that the demo video returns false when opened from a process.


[videosAndTestScript.zip](https://github.com/opencv/opencv/files/2186404/videosAndTestScript.zip)
Repository: go
Issue: mime/multipart: Allow limiting maximum amount of part's header data
Labels: NeedsInvestigation

This is feature request, to allow user of `mime/multipart` package's `Reader` to specify limit of header data loaded into memory when calling `NewPart()` function.
`Reader.NewPart()` calls `net/textproto` package's `Reader.ReadMIMEHeader()` function which without any limitation loads all header data into memory.
`mime/multipart`'s `Reader` is also used in `net/http` package to parse `multipart/form-data` POST requests, which means that functions like `Request.ParseMultipartForm`, `Request.FormValue`, `Request.FormFile`, `Request.MultipartReader` are affected by this.
I believe this can be used as remote denial of service attack vector.
Possible solution for this would be limiting HTTP request body size (done by default in some servers like nginx), but this is unsuitable for cases where server needs to accept POST requests with big files (for example, file hosting service).
Similar case like this is `net/http` package's `Server`'s `MaxHeaderBytes` field, which limits ammount of header data, but not body.
Repository: TypeScript
Issue: Folding ranges not returned for highly nested functions
Labels: Suggestion,Needs Proposal,VS Code Tracked,Domain: Outlining

_From @ryaa on July 9, 2018 5:38_

<!-- Please search existing issues to avoid creating duplicates. --> 
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: Version 1.25.0 (1.25.0)
- OS Version: MacOS High Sierra 10.13.5

Steps to Reproduce:

1. Create .ts file and add multiple enclosed blocks of code
2. Note that starting some level (> 7?) the folding icon is not displayed and folding/unfolding does not work - see attached (note that + icon is not displayed)
Please note that //#region seems to be working

<img width="1366" alt="screen shot 2018-07-09 at 08 31 53" src="https://user-images.githubusercontent.com/3608222/42432482-6af91b9c-8353-11e8-946f-72e87746095f.png">


<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes


_Copied from original issue: Microsoft/vscode#53842_
Repository: pytorch
Issue: [Caffe2] Not handle attribute 'spatial' of ONNX operator 'BatchNormalization'
Labels: caffe2

## Issue description

If I run a ONNX model contains 'BatchNormalization' operator and it has 'spatial' attribute, caffe2 will give me an error message:
```
terminate called after throwing an instance of 'caffe2::EnforceNotMet'
  what():  [enforce fail at backend.cc:1057] . Don't know how to map unexpected argument spatial (from operator SpatialBN)
```

I found that caffe2 do not handle attribute 'spatial' in Caffe2Backend::CreateBatchNormalization:
```C++
Caffe2Ops Caffe2Backend::CreateBatchNormalization(
    OnnxNode* onnx_node,
    int opset_version) {
  if (opset_version < 6) { 
    auto& attributes = onnx_node->attributes;
    attributes.remove("consumed_inputs");
  }

  if (opset_version >= 7) { 
    auto& attributes = onnx_node->attributes;
    auto* attr = attributes.AddRewrittenAttribute("is_test");
    attr->set_i(1);
  }

  return CommonOnnxNodeToCaffe2Ops(onnx_node, opset_version);
}
```
Repository: three.js
Issue: ColladaLoader: Add support for primitive type: polygons
Labels: Enhancement,Loaders

The ColladaLoader fails to load this model.
https://raw.githubusercontent.com/0ad/0ad/master/binaries/data/mods/public/art/meshes/skeletal/elephant_african_baby.dae

Results in these warnings (in Firefox), the mesh is not visible:
Unsupported primitive type:  polygons ColladaLoader.js:1980:7
Undefined sampler. Access image directly (see #12530). ColladaLoader.js:1493:6
Invalid opaque type "null" of transparent tag. ColladaLoader.js:1619:8 

Here is the fiddle.
https://jsfiddle.net/k4qt0om8/

I can provide more Collada files that reproduce this issue if requested +1
Repository: TypeScript
Issue: tsc --build / Project References Feedback & Discussion
Labels: Discussion,Scenario: Monorepos & Cross-Project References

Continuation of #3469 "Medium-sized Projects" which has grown too large for GitHub to display comfortably

Please use this thread for feedback, general discussion, questions, or requests for help / "is this a bug" discussions.

Active bugs / PRs in this area:
 * https://github.com/Microsoft/TypeScript-Handbook/pull/788 Handbook page
 
Possible next steps:
 * [ ] (none yet; @andy-ms) Find unloaded downstream projects during rename
 * [ ] #25376 Infer project references from monorepo tooling package.json files
 * [ ] #25562 Terse mode output for `tsc -b`
 * [ ] (none yet; @weswigham ?) Intermediate build outputs to temp folders
 * [ ] (none; stretch) Parallelization / worker processes under `tsc -b`

Other interesting links:
 * https://github.com/RyanCavanaugh/learn-a - sample project references repo using lerna
 * https://github.com/RyanCavanaugh/project-references-outfile - sample project references repo using `--outFile`
 * https://github.com/Microsoft/TypeScript/issues/3469#issuecomment-341317069 Ryan's outline of what we're doing/did and why
 * https://github.com/Microsoft/TypeScript/issues/3469#issuecomment-400439520 pre-draft of handbook page
 * https://github.com/RyanCavanaugh/learn-a/pull/3/files `learn-a` repo using `yarn` workspaces!