sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Scan folders for font files similar to asset scan
Labels: c: new feature,tool,a: assets,P3,team-tool,triaged-tool

Continuing work on #4890, but adding folder scan for folders.

It would be nice to make it seamless to download font packages from Google font pages, which would make it slightly different from asset scan. I'd lean into doing a recursive scan here, which is a big problem for regular assets because of variant handling for images.
Repository: flutter
Issue: Generate dart file containing references to all assets and fonts available to app
Labels: c: new feature,tool,a: assets,P3,team-tool,triaged-tool

Inspired on `R.drawable.image_logo` on native android platform. 

Based on top of work done on #4890, it's independent of #18897 but highly related.
Repository: vue
Issue: <transition-group> not working as expected on page scroll
Labels: has PR,transition

### Version
2.5.16

### Reproduction link
[https://codesandbox.io/s/kxkmp9mov3](https://codesandbox.io/s/kxkmp9mov3)

### Steps to reproduce
1. Create a list using `<transition-group>`.
2. Put the list at the end of a long page.
3. Scroll to the bottom of the page.
4. Trigger some change so that the page height is reduced and force the viewport to scroll upwards a little bit.

### What is expected?
The existing items should stick to the container, instantly appear in the final position, without transitions.

### What is actually happening?
The existing items jump out of the container because of the sudden change on vertical position and slowly move back to the expected position.

---
Internally, `<transition-group>` is using `getBoundingClinetRect()` to track the positions of transition items. This works fine when no page scroll is introduced. But when browsers force page scroll on certain situations, the container (and the rest of the page) flashed into the final position while transition items are stuck in the old position based on the viewport, which makes it look like they suddenly jump out of the document and start performing unexpected transitions.

Maybe we can provide some new prop on `<transition-group>`, say, `origin: 'viewport' | 'document'`, to optionally calculate positions based on the canvas origin instead of the viewport.

F.Y.I.

When forced page scroll is triggered:

![jun-28-2018 14-55-05](https://user-images.githubusercontent.com/1726061/42018058-80ecc336-7ae3-11e8-91da-f8774d873946.gif)

When not triggered:

![jun-28-2018 14-55-12](https://user-images.githubusercontent.com/1726061/42018090-97fb94c6-7ae3-11e8-879c-6212e952ecda.gif)

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: flutter
Issue: Sample code of saving an image from an ImageStream
Labels: framework,d: api docs,d: examples,c: proposal,P2,team-framework,triaged-framework

Community, this should goes in stackoverflow but I have searched some similliar question just got no useful solutions.  Here is my demands:

**Saving an image from ImageProvider**

I have knowing that we have `resolve` methods to achieve this. But I just don't get how to using ImageStream an got the bytes write into a file.

```
 widget.imageProvider.resolve(new ImageConfiguration()).addListener((imgageInfo, _) {
                                      // how to get imagestream and save it as  file
                                    }
                                  );
```
Repository: pytorch
Issue: parallelize_bmuf_distributed_test intermittently hangs
Labels: caffe2

Example: https://ci.pytorch.org/jenkins/job/caffe2-builds/job/py2-gcc5-ubuntu16.04-test/6806/console

```
23:45:38 lib/python2.7/dist-packages/caffe2/python/parallelize_bmuf_distributed_test.py::DistributedTest::test_bmuf_distributed Build timed out (after 45 minutes). Marking the build as failed.
00:27:43 Build was aborted
```

Note the timestamps.

@enosair, could you please look at it?
Repository: flutter
Issue: iOS/MacOS – Flutter does not respect SF Pro breakpoints
Labels: platform-ios,framework,engine,platform-mac,a: fidelity,a: typography,P2,team-ios,triaged-ios

Flutter does not appear to respect Apple's breakpoints for transitioning from SF Pro Text to SF Pro Display.

https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/typography/
Repository: pytorch
Issue: [Caffe2] segmentation fault
Labels: caffe2

Hi,

I am following the installation guide for Caffe2 from https://caffe2.ai/docs/getting-started.html?platform=ubuntu&configuration=compile

When I get to the step where I have to test the Caffe2 install (by running cd ~ && python -c 'from caffe2.python import core' 2>/dev/null && echo "Success" || echo "Failure"). I get failure.

I have run the command in the python interpreter, and I received the error 'no module named caffe2.python' - which I then fixed by adding the build directory to my PYTHONPATH environment variable.

I tried to run the test command again, which then gives me a segmentation fault. 
Any help would be appreciated.

~/pytorch/build/lib$ python
Python 3.6.5 | packaged by conda-forge | (default, Apr  6 2018, 13:39:56)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from caffe2.python import core
Segmentation fault (core dumped)


## System Info

I am running a Google Compute machine, with a K80 GPU
CUDA, CuDNN are installed
so are all the dependencies for the Caffe2 installation.
I am in a virtual environment in miniconda3
Repository: TypeScript
Issue: @typedef tags appearing in the next declaration quick info in VSCode
Labels: Bug,Help Wanted,Domain: JSDoc

**TypeScript Version:**  2.9.2 / 3.0.0-dev.20180628

**Search Terms:** jsdoc esdoc typedef vscode quick info function variable next description

I am experiencing an issue in Visual Studio Code where @typedef tags in .js files all get added to the next declaration, whether it be a function, a variable etc.
I searched the wiki and the issues about it and found closed issues that experienced the same bug.
VSCode was running TypeScript version 2.9.2. I also replicated the bug by upgrading to the latest preview version.
It seems this issue was resolved long ago and I can't understand why I am still experiencing it.
Here is some familiar code from issue #12233 :

**Code**
```js
/**
 * @typedef {Object} MyType1
 * @prop {string} name
 * @prop {string} type
 */

/**
 * @typedef {Object} MyType2
 * @prop {string} name
 * @prop {string} type
 */

/**
 * @param {MyType1} param1 MyParamPype
 * @returns {boolean}
 */
function MyFunc1 (param1) {

}

/**
 * @param {MyType2} param2 MyParamPype
 * @returns {boolean}
 */
function MyFunc2 (param1) {

}
```

**Expected behavior:** The quick info window when hovering ```MyFunc1```should only show
```js
@param {MyType1} param1 MyParamPype
@returns
```

**Actual behavior:**
![image](https://user-images.githubusercontent.com/40424734/42054911-f13b94f0-7b15-11e8-93d5-c8ed9fba7b43.png)
![image](https://user-images.githubusercontent.com/40424734/42054954-0e9373ec-7b16-11e8-92a8-75d301e0bdd8.png)

**Related Issues:** #12233 #12004
Repository: flutter
Issue: Extend Textformfield validation - programatical interaction is missing
Labels: a: text input,c: new feature,framework,f: material design,P2,team-design,triaged-design

I noticed there seems to be no way to interact with Textformfield validation programatically.
This is quite limiting. At least there should be mehtods to set or clear the errors of a Formfield.

But I suggest to rework the validation as a whole and add for example a structure like:

1. To TextFormField or the TextEditingController some methods:
- addValidator(Validator validator)
- removeValidator(Validator validator)
- clearValidators()
- setError(ValidationError error)
- getErrors()
- clearErrors()
- onValidationStateChanges(ValidationState state=>{})
- ...?

2. classes for ValidationState, Validator and ValidationError 

3. Some common Validators for email, length, phone number, regex and custom option

Arguable it would be favorable using an array  for validation errors. So every Validator class has assigned an error, and the TextFormField can have assigned various Validators. Maybe with an option to show only the first unmet Validationerror, or all of them.

These are just some ideas and need definately some more thought. Nevertheless the current validation functionality is imo too rudimentary and will not quite suffice the needs of many developers.
Repository: rust
Issue: strange rust_2018_idioms warning on code comment in clippy codebase
Labels: A-lints,T-compiler,C-bug,F-rust_2018_preview,A-edition-2018

````
git clone http://github.com/rust-lang-nursery/rust-clippy/
cd rust-clippy
git checkout 656b26ea4f2b330ea5b9cb3cb38545587eac8f7f
cargo check --all-targets --all-features 
````
=>
````
....
warning: `extern crate` is not idiomatic in the new edition
 --> src/lib.rs:1:1
  |
1 | // error-pattern:cargo-clippy
  | ^ help: convert it to a `use`
  |
note: lint level defined here
 --> src/lib.rs:8:9
  |
8 | #![warn(rust_2018_idioms)]
  |         ^^^^^^^^^^^^^^^^
  = note: #[warn(unused_extern_crates)] implied by #[warn(rust_2018_idioms)]
````
this is confusing because the highlighted line is a code comment and seems unrelated to the ````extern crate```` keyword.

rustc 1.28.0-nightly (cd494c1f0 2018-06-27)

link to file: https://github.com/rust-lang-nursery/rust-clippy/blob/656b26ea4f2b330ea5b9cb3cb38545587eac8f7f/src/lib.rs
Repository: flutter
Issue: Create ModuleApp and MaterialModuleApp widgets
Labels: customer: fuchsia,framework,f: material design,a: existing-apps,customer: dream (g3),P3,team-design,triaged-design

We should have variants of WidgetsApp and MaterialApp for add-to-app scenarios. They would avoid doing things like Title, but still do things like Navigator and Theme.
Repository: godot
Issue: Moving a scene in file browser breaks an instance of it in current edited scene
Labels: bug,topic:editor,confirmed

Godot 3.0.4
Windows 10 64 bits

Repro steps:
1) Create scene A with stuff in it and save it
2) Save a part of that scene as scene B (right-click, "save branch as scene")
3) In the file browser, move scene B into another folder
4) Save scene A again: you get this error
![image](https://user-images.githubusercontent.com/1311555/42065999-31ba1360-7b36-11e8-8363-92aa8e14a1ef.png)
I think this should not happen. The scene was moved, but it shouldn't prevent saving the current scene properly.
5) Close scene A and open it again: notice the instance turned back into a normal branch, which isn't intented either.

Note: when I first got this bug in my project it happened without the error popup.
Repository: flutter
Issue: Handle possible keyboard open/close failures in TextInputPlugin on Android
Labels: a: text input,platform-android,engine,P2,team-android,triaged-android

The TextInputPlugin on Android communicates with Android's InputMethodManager to show and hide the keyboard.  The corresponding methods in TextInputPlugin are `showTextInput()` and `hideTextInput()`.  According to the InputMethodManager contract, calls to show and hide the keyboard can fail, but TextInputPlugin's method contracts return void instead of a boolean.

showTextInput() and hideTextInput() should be updated to return a boolean (or throw an exception, etc) and that success/failure should be made available to the Flutter side in case followup action needs to be taken.
Repository: pytorch
Issue: SimpleMetaNetDefInitializer intermittently hangs
Labels: caffe2

Sample run:

```
04:47:39 [ RUN      ] PredictorMetaNetDefTest.SimpleMetaNetDefInitializer
04:47:39 I0626 04:47:39.810371   469 net_dag_utils.cc:102] Operator graph pruning prior to chain compute took: 3.133e-06 secs
04:47:39 I0626 04:47:39.810408   469 net_async_base.cc:416] Using estimated CPU pool size: 32; NUMA node id: -1
04:47:39 I0626 04:47:39.810420   469 net_async_base.cc:426] Created new CPU pool, size: 32; NUMA node id: -1
05:30:49 Build timed out (after 45 minutes). Marking the build as failed.
05:30:49 Build was aborted
```
Repository: neovim
Issue: API: async rpcrequest() ("callback for RPC requests")
Labels: enhancement,api,channels-rpc,async

Since vimscript is single-threaded, there're cases we don't want to wait for the result but still need to be called when it's done or error is thrown.

Is it possible to implement `rpcrequest_async` that could be used like this?

```vim
let context = {}
call rpcrequest_async(channel, 'Callback', context, method, args... )

func Callback(err, return_value) dict
  let context = self
  if a:err
    throw err
  endif
  ...
endfunc
```
Repository: godot
Issue: External Editor is not started when clicking on the Stack Frames in Debugging panel
Labels: bug,topic:editor,confirmed

**Godot version:**
3.0.4


**OS/device including version:**
Windows 8.1


**Issue description:**
When setting Godot to use a external editor for editing scripts it won't run the external editor when clicking on the Stack Frames in the Debugger/Debugger tab.

It does run the editor when clicking on the entries in the stack trace of the Debugging/Error tab but many issues don't generate a stack trace in that tab. The built-in editor isn't opened either, forcing you to disable "Use External Editor" during debugging and re-enabling it once finished.
Repository: go
Issue: bytes, strings: Compare tests do not modify input alignments
Labels: Testing,help wanted,NeedsFix

I can't see any tests varying the alignment of `Compare` arguments. Since `Compare` is written in assembly on most platforms (in `internal/bytealg`) we should probably be checking that it works even if the inputs are unaligned.
Repository: pytorch
Issue: cmake error:Could NOT find IDEEP (missing:  /usr/local/include) 
Labels: caffe2


- PyTorch or Caffe2: PyTorch
- Build command you used:
cmake  -DUSE_NATIVE_ARCH=ON -DUSE_FFMPEG=ON -DUSE_ATEN=ON  -D USE_TENSORRT=ON -D USE_OPENMP=ON -DUSE_MKL=ON -DUSE_IDEEP=ON ..

- OS:                                  ubuntu 16.04 64bit
- PyTorch version:             00b5d397aef410f5926cb50e7d6e4e676aef71a8
- Python version:                2.7.12
- CUDA/cuDNN version:    9.0/7.15
- GPU models and configuration:
- GCC version:                  5.4.0 20160609
- CMake version:               3.5.1

cmake error:
```
-- Looking for cblas_sgemm
-- Looking for cblas_sgemm - found
-- VTune profiling environment is unset
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- VTune profiling environment is unset
-- Could NOT find IDEEP (missing:  /usr/local/include) 
CMake Error at cmake/Modules/FindMKL.cmake:360 (message):
  Did not find IDEEP files!
Call Stack (most recent call first):
  cmake/Dependencies.cmake:68 (find_package)
  CMakeLists.txt:181 (include)


-- Configuring incomplete, errors occurred!
See also "/home/alex/software/pytorch/build/CMakeFiles/CMakeOutput.log".
See also "/home/alex/software/pytorch/build/CMakeFiles/CMakeError.log".
```
Repository: pytorch
Issue: [caffe2]build problem, can not find caffe2_pybind11_state_hip
Labels: awaiting response (this tag is deprecated),caffe2

## Issue description

I build the caffe2 with anaconda following the [page](https://caffe2.ai/docs/getting-started.html?platform=mac&configuration=compile#anaconda-install-path).
In the server with a single titanx, has cudnn7 and cuda9 but do not have nccl, so I download the nccl2 from nvidia and extract it to path/to/local/nccl2, and then edit the ./pytorch/conda/integrated/build.sh in the line 42 to be:"export NCCL_ROOT_DIR=path/to/local/nccl2".
Then I need to use caffe2 with python2, so I added "conda_args+=(" --python 2.7") " in the ./pytorch/scripts/build_anaconda.sh to use python2.7.
The building was succeed, but when I run python2 test.py
`from caffe2.python import core`
It tells me:
WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
WARNING:root:Debug message: No module named caffe2_pybind11_state_hip
Segmentation fault (core dumped)

My question is:
a. why the conda does not support gpu?
b. if I am using a single gpu, is nccl necessary for building?
c. how to fix No module named caffe2_pybind11_state_hip
- PyTorch or Caffe2: caffe2
- How you installed PyTorch (conda, pip, source): conda
- Build command you used (if compiling from source):./scripts/build_anaconda.sh --install-locally --cuda 9.0 --cudnn 7
- OS:ubuntu16
- PyTorch version:
- Python version:2.7
- CUDA/cuDNN version:9.1/7
- GPU models and configuration:??
- GCC version (if compiling from source):5.4.0
- CMake version:not install
- Versions of any other relevant libraries:

Thank you very much!
Repository: pytorch
Issue: DataWorkersTest::testRNNInput timeout
Labels: caffe2

```
06:58:12 lib/python2.7/dist-packages/caffe2/python/data_workers_test.py::DataWorkersTest::testRNNInput Build timed out (after 45 minutes). Marking the build as failed.
07:41:54 Build was aborted
```

logs: https://ci.pytorch.org/jenkins/job/caffe2-builds/job/py2-gcc4.8-ubuntu14.04-trigger-test/8507/
Repository: go
Issue: cmd/go: private repos on hard-coded hosting providers require special configuration
Labels: NeedsInvestigation,modules

### What version of Go are you using (`go version`)?

```
$ go get -u golang.org/x/vgo
$ vgo version
go version go1.10 darwin/amd64 vgo:2018-02-20.1
```

### Does this issue reproduce with the latest release?

yes (coming from https://github.com/golang/go/issues/25590)

### What operating system and processor architecture are you using (`go env`)?

```
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/brunetto.ziosi/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/brunetto.ziosi/Code"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/m3/145jfhdd5qsf66_41wt9p02mhc4hp5/T/go-build518939426=/tmp/go-build -gno-record-gcc-switches -fno-common"
```

### What did you do?

I ran 

```go
vgo get github.com/MY_ORGANIZATION/MY_REPO
```

where:

* I ran the command in a folder with a working golang app and a proper go.mod file -> vgo is working here and I can vgo build the app
* the repo is a private repo with SSO enabled I can access (git pull/push, ...)

### What did you expect to see?

The package code in MY_REPO or the go module downloaded

### What did you see instead?

```
vgo get github.com/MY_ORGANIZATION/MY_REPO: git ls-remote -q https://github.com/MY_ORGANIZATION/MY_REPO in /Users/brunetto.ziosi/Code/src/mod/cache/vcs/2cb00fa3547080bb301974fe87cf912af55d50f7a6d8a9955e11fed7a20ac6d3: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/MY_ORGANIZATION/MY_REPO/' not found
```
Repository: pytorch
Issue: Lint check for non-Unicode characters in diffs / Unicode characters without coding
Labels: module: lint,triaged,better-engineering

I noticed a PR which was only failing internal tests, and not external tests, due to a Unicode (or Latin-1?) apostrophe inside the source code. Our lint check should catch this. CC @yf225
Repository: electron
Issue: Better documentation and examples for protocol.registerX and protocol.interceptX methods
Labels: enhancement :sparkles:,documentation :notebook:

**Is your feature request related to a problem? Please describe.**

Yes.  I'm trying to intercept HTTP requests and provide responses and none of my initial examples work and the documentation is very sparse.

**Describe the solution you'd like**

Would love better documentation and examples of working code.  The unit tests in the electron code base weren't very informative either.

**Describe alternatives you've considered**

Combed through bugs, issues, source code, etc.  Can't figure out the 'proper' way to implement my own protocol handlers.

What I would like is some examples.  Registering my own protocol schemes, handlnig HTTP responses, what do do with errors. How to handle aborted requests, etc.
Repository: flutter
Issue: `flutter packages upgrade` should run `pod install`
Labels: platform-ios,tool,P3,a: plugins,team-ios,triaged-ios

There are lots of issues like #18945, #17943, #17469, ...
that are fixed by running `pod install` in `ios/`

I think it would be a good idea to run that with `flutter packages get` and `flutter packages upgrade` automatically.
See for example https://github.com/flutter/flutter/issues/18945#issuecomment-401389388
Repository: vue
Issue: Allow to call original `errorHandler` when custom one defined
Labels: improvement

### What problem does this feature solve?
When custom `Vue.config.errorHandler` defined by the user, it will stop firing original [`logError `](https://github.com/vuejs/vue/blob/c2b1cfe9ccd08835f2d99f6ce60f67b4de55187f/src/core/util/error.js#L38).

The problem is that there is no straight way to recreate `logError ` behavior in custom `Vue.config.errorHandler` without requiring some Vue's internals.

This issue is partially related to [raven-js#1416](https://github.com/getsentry/raven-js/issues/1416), which defines custom `errorHandler`... which prevents Vue from login errors to the console.

### What does the proposed API look like?
I think Vue should by default expose original `errorHandler` under `Vue.config.errorHandler`. In other words, `Vue.config.errorHandler` shouldn't be `undefined` by default.

If the user would like to override `errorHandler`, he will reassign it. Otherwise, it would be possible to save original `Vue.config.errorHandler` into some variable and call it within custom `errorHandler`.

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: rust
Issue: Bad diagnostic for associated types when forgetting type arguments
Labels: C-enhancement,A-diagnostics,P-low,T-compiler,D-verbose

[Given an incorrect order of associated types](https://play.rust-lang.org/?gist=c8c0e4db2b08eba0281157ef683278c3&version=stable&mode=debug):

```
type Bar = Foo<C = u32, B = bool, A = String>;

struct Foo<A, B, C> {
    a: A,
    b: B,
    c: C
}
```

We currently identify the first argument as a type binding and emit two errors:

```
error[E0243]: wrong number of type arguments: expected 3, found 0
 --> src/main.rs:4:12
  |
4 | type Bar = Foo<C = u32, B = bool, A = String>;
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 type arguments

error[E0229]: associated type bindings are not allowed here
 --> src/main.rs:4:16
  |
4 | type Bar = Foo<C = u32, B = bool, A = String>;
  |                ^^^^^^^ associated type not allowed here
```

Modify to emit only _one_ error complaining only about the <del>order</del>missing type arguments.
Repository: rust
Issue: consider fixing common regression with expansion of 2-phase borrows
Labels: C-enhancement,P-medium,T-compiler,A-NLL,NLL-complete

The following code works without NLL but not with NLL enabled: 

https://play.rust-lang.org/?gist=9b797f941b3aa419991e15fd5a2d07a0&version=nightly&mode=debug

```rust
//#![feature(nll)]

struct S {
    a: &'static str,
}

fn f(_: &mut S, _: &str) {
}

fn main() {
    let mut s = S {
        a: "a",
    };

    f(&mut s, s.a);
}
```

NLL is not *wrong* to reject this code. This is https://github.com/rust-lang/rust/issues/38899. However, it could plausibly be accepted if we expanded two-phase borrows *ever so slightly*... actually, I'm not sure about this *exact* source, or it least it wouldn't quite fit into what I had in mind.

I had in mind an expansion for arguments of type `&mut`, basically, so that `foo(bar)`, if `bar` is an `&mut` that is being reborrowed, would reborrow using a 2-phase borrow.