sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: caffe2's installation is still problematic...
Labels: caffe2

> WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
> CRITICAL:root:Cannot load caffe2.python. Error: ~/.local/lib/python3.6/site-packages/caffe2/python/caffe2_pybind11_state.cpython-36m-x86_64-linux-gnu.so: undefined symbol: mkldnn_primitive_destroy


> from caffe2.python import core
> WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode.
> CRITICAL:root:Cannot load caffe2.python. Error: No module named 'caffe2.python.caffe2_pybind11_state'
Repository: go
Issue: testing: testing a list of packages blocks the real-time output
Labels: Testing,NeedsInvestigation

### What version of Go are you using (`go version`)?

`go version go1.11 darwin/amd64`

### Does this issue reproduce with the latest release?

Yes, reproduced on tip - `go version devel +ce58a39fca Thu Sep 20 22:52:44 2018 +0000 darwin/amd64`

### What operating system and processor architecture are you using (`go env`)?

```
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/ikorolev/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/ikorolev/.gvm/pkgsets/go1.11/global:/Users/ikorolev/dev/go"
GOPROXY=""
GORACE=""
GOROOT="/Users/ikorolev/.gvm/gos/go1.11"
GOTMPDIR=""
GOTOOLDIR="/Users/ikorolev/.gvm/gos/go1.11/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
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/_b/d1934m9s587_8t_6ngv3hnc00000gp/T/go-build880489854=/tmp/go-build -gno-record-gcc-switches -fno-common"
```

### What did you do?

`go test -v -count=1 ./...` doesn't print real-time test output if you got subpackages.

```
cd `mktemp -d`
go mod init example.com/test
cat <<EOD > main_test.go
package main

import (
	"fmt"
	"testing"
	"time"
)

func TestLong(t *testing.T) {
	fmt.Println("running")
	time.Sleep(2 * time.Second)
	fmt.Println("2 second later")
}
EOD
mkdir subpkg
cat <<EOD > subpkg/main_test.go
package subpkg
EOD
go test -v -count=1 ./...
```

### What did you expect to see?

I expect to see the output successively as the test is running.
And I will see it if run `go test -v -count=1 .` instead.

### What did you see instead?

Using `./...` doesn't produce real-time output. 
The output is produced only when all the tests are finished.

It's not convenient when you run tests on a CI and see only "go test -v ./..." line for several minutes.
You don't have any idea if the tests have stuck somewhere or they are just too slow.

I understand that such behaviour may be connected with running the tests in parallel, but maybe we could do anything about it?
Repository: opencv
Issue: Documentation of available builders, docker images, directives for testing, etc
Labels: category: infrastructure

related: #12318

Most of us are unaware of:
- all possible build directives besides the commonly utilized `force_builders` and `WIP`
  - how to filter specific test suits (e.g. `java`, `python2`)
  - how to filter specific tests (e.g. `Calib3d/EstimateAffinePartial2D.testConversion` - an alias to `gtest_filter`)
  - how to break tests on failure only in a specific builder?
  - how to break tests on failure in each builder (an alias to `gtest_break_on_failure`)?
  - how to globally break tests on failure in any builder?
  - are there event-driven directives? If not, could you please create some? For example:
    - start ARMv7 builder only if Linux tests pass (should not that be the default?)
    - restart a specific builder in case of its failure while other builder pass
    - automatically start/stop builders according to an updated `force_builders` from the PR description without requiring `commit --amend`.
  - any other directives?
- all available builder names that can be included in `force_builders` directive (especially if there are ones not shown in the builders summary page)
- the docker images we can use with `Custom` or `Docs` builders, etc.
  - are there any other builders that we can control its image? When should we do so?

Could you please provide a documentation for all of that, and include a commented-out link to it in the [pull requests template](https://github.com/opencv/opencv/blob/master/.github/PULL_REQUEST_TEMPLATE.md)?
Repository: angular
Issue: No ability to check if <ng-content> was provided to the component
Labels: feature,area: core,core: content projection,feature: under consideration

<!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.

ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->

## I'm submitting a...
<!-- Check one of the following options with "x" -->
<pre><code>
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] 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
<!-- Describe how the issue manifests. -->

We can use `ng-content` in our components. But we don't have any options out of the box to check if anything is passed as `ng-content` or not. Actually, was anything passed between `>` and `</` of our component usage in HTML.

We can do this by adding some wrap component (and if I understood correctly you can not use stuff like `ng-container` there). Like div. And you put ng-content to it. You can get ref for this div and check if this div has children. If yes - ng-content was provided, otherwise - no ng-content. Huge minus of this approach is you have to create some additional entity to check it.

## Expected behavior
<!-- Describe what the desired behavior would be. -->

We can create some util function for that. You will have ability to just call that util and detect if `ng-content` was passed.

## 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://stackblitz.com or similar (you can use this template as a starting point: https://stackblitz.com/fork/angular-gitter).
-->

This is not a bug. This example shows us how we can do this at the moment. https://stackblitz.com/edit/angular-xdirt8

## What is the motivation / use case for changing the behavior?
<!-- Describe the motivation or the concrete use case. -->

We will not be forced to add some wrappers and it will be easier to check this stuff.

## Environment

<pre><code>
Angular version: 6.0.0
<!-- Check whether this is still an issue in the most recent Angular version -->

Others:
<!-- Anything else relevant?  Operating system version, IDE, package manager, HTTP server, ... -->
</code></pre>

I tried to ask it on stackoverflow and I am not only one person who is wondered how to do this.

https://stackoverflow.com/questions/52479608/how-to-check-if-ng-content-was-passed-into-the-component
https://stackoverflow.com/questions/35107211/in-angular-2-how-to-check-whether-ng-content-is-empty
https://stackoverflow.com/questions/38692881/how-to-check-whether-ng-content-exists

I am not supa-pro in vuejs, but seems to me it has this feature out of the box: https://vuejs.org/v2/api/?#vm-slots
Repository: TypeScript
Issue: Strange "Cannot use namespace 'Foo' as a type" error with dummy `declare module "foo";` declaration
Labels: Bug,Help Wanted

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

Maybe this is a question, but it has come up multiple times on Stack Overflow (most recently [here](https://stackoverflow.com/q/52471580)) without a good answer, so I'm asking it here.

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  master (03af107)

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** "cannot use namespace" "as a type" TS2709 "declare module"

**Code**
```ts
declare module "foo";

declare module "bar" {
    import { Foo } from "foo";
    let x: Foo;
}
```

**Expected behavior:** An error that makes sense, or no error?

**Actual behavior:** `error TS2709: Cannot use namespace 'Foo' as a type.`

**Playground Link:** [link](https://www.typescriptlang.org/play/#src=declare%20module%20%22foo%22%3B%0D%0A%0D%0Adeclare%20module%20%22bar%22%20%7B%0D%0A%20%20%20%20import%20%7B%20Foo%20%7D%20from%20%22foo%22%3B%0D%0A%20%20%20%20let%20x%3A%20Foo%3B%0D%0A%7D)

**Related Issues:** None found
Repository: flutter
Issue: when reporting for host for flutter_tools, we should report for 'CLI' host
Labels: c: new feature,tool,P2,team-tool,triaged-tool

*@devoncarew commented on Sep 21, 2018, 3:10 PM UTC:*

We report the host for flutter_tools runs - this is used to know which IDE is driving flutter_tools; we key off the value of the `FLUTTER_HOST` environment variable. It would be nice to also report a 'host' for pure CLI usage. We could infer this by there being no value set for `FLUTTER_HOST`, and for the entrypoint command into the tool not being the `daemon` command (or, `flutter run --machine`).

We should also update the docs for building tools on flutter_tools to specify that IDEs - and people driving flutter_tools - should specify an `FLUTTER_HOST` env variable.

cc @mit-mit

*This issue was moved by [devoncarew](https://github.com/devoncarew) from [dart-lang/sdk#34543](https://github.com/dart-lang/sdk/issues/34543).*
Repository: flutter
Issue: No actionable feedback from Flutter Doctor when Android Studio plugins not installed
Labels: tool,t: flutter doctor,a: first hour,P2,team-tool,triaged-tool

This weekend I was providing assistance as @sobrienpdx tried to install Flutter on a brand new Mac laptop.  After installing Android Studio, but before installing the "flutter" and "dart" plugins, Flutter Doctor produced the following messages:

- Flutter plugin not installed; this adds Flutter specific functionality.
- Dart plugin not installed; this adds Dart specific functionality.

For @sobrienpdx (who had never used Android Studio before and had no familiarity with Android Studio plugins) this was not enough information to fix the problem.  It would be very helpful if Flutter Doctor could provide a link to steps 1-5 on https://flutter.io/get-started/editor/#androidstudio, along with a short summary of those steps, to help the user figure out what to do next.

(Note: it might also be helpful to alter https://flutter.io/get-started/editor/#androidstudio so that it's possible to link directly to steps 1-5). 

## Steps to Reproduce

1. Install Flutter.
2. Install Android Studio, but do not install the Flutter or Dart plugins.
3. Run "flutter doctor".
Repository: go
Issue: runtime: CallersFrames showing mangled package path for nonASCII pkg name
Labels: NeedsInvestigation,compiler/runtime

Please answer these questions before submitting your issue. Thanks!

### What version of Go are you using (`go version`)?

go tip: 
go version devel +16687a3bbf Fri Sep 14 12:39:54 2018 +0000 linux/amd64

### Does this issue reproduce with the latest release?

yes

### What operating system and processor architecture are you using (`go env`)?

linux/amd64

### What did you do?

In your $GOPATH, unpack the attached tar file: [tarfile.gz](https://github.com/golang/go/files/2412519/tarfile.gz) which will create two subdirs ' Äfoo' and 'Äbar. Change directory to the second and do 'go run':

```
$ tar zxvf - < tarfile.gz
./Äbar/
./Äbar/Äbar.go
./Äfoo/
./Äfoo/Äfoo.go
$ cd Äbar
$ go run .
- more:true | runtime.Callers
- more:true | %c3%84foo.PrintTrace
- more:true | %c3%84foo.Äblix
- more:true | %c3%84foo.Äbar
- more:true | main.main
- more:true | runtime.main
- more:false | runtime.goexit
Äfoo.Äbar(33) returns 134
$ 
```

Note that in the output from runtime.CallersFrames the functions in package Äbar are shown with packagepath in  mangled form (e.g. %c3%84foo.Äblix) instead of regular form (Äbar.Äblix).

### What did you expect to see?

Correct package path Äbar.Äblix in callersframe output

### What did you see instead?

Mangled package path %c3%84foo

Note: not sure if this is a real bug, pilot error on my part, or if this is WAI. Please close out if appropriate. Also not sure (assuming there is a bug) if this is a compiler issue or a runtime issue (could be that the runtime is simply spitting out whatever the compiler told it.  Thanks -NM.
Repository: flutter
Issue: Android: Run Dart code upon device boot (this is a standard Android capability)
Labels: c: new feature,platform-android,engine,a: existing-apps,P2,team-android,triaged-android

Android: Run Dart code upon device boot (this is a standard Android capability)
Repository: flutter
Issue: Provide background Service and WorkManager execution out of the box for Dart execution
Labels: platform-android,engine,a: existing-apps,customer: money (g3),P2,team-android,triaged-android

Internal: b/141566426

Provide background Service and WorkManager execution out of the box for Dart execution.

For example, the embedding should offer a Service that spins up a FlutterEngine, passes arbitrary primitive parameters into the engine, and executes Dart code.  Then some signal should be made available for the Service to shut down after the Dart work is complete.

The Dart code should optionally be able to run as a foreground Service.

Something similar also needs to be provided for WorkManager or a similar construct.
Repository: TypeScript
Issue: ES6 module declarations should be marked to exclude them from `allowSyntheticDefaultImports`
Labels: Suggestion,In Discussion

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

This is the restated #27293.  CC @ryanelian

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  master (471bc64)

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** esModuleInterop allowSyntheticDefaultImports error undefined default import export

**Code:** In the `b` subdirectory, compile with `tsc -b .` and run with `node index.js`.
```ts
// tsconfig.common.json
{
    "compilerOptions": {
        "composite": true,
        "declaration": true,
        "target": "es6",
        "module": "commonjs",
        "esModuleInterop": true
    }
}

// a/tsconfig.json
{
    "extends": "../tsconfig.common.json",
    "files": [
        "index.ts"
    ]
}

// a/index.ts
export const foo = 42;

// b/tsconfig.json
{
    "extends": "../tsconfig.common.json",
    "references": [
        { "path": "../a" }
    ],
    "files": [
        "index.ts"
    ]
}

// b/index.ts
// Actual: compile OK.  Expected: compile error.
import A from "../a";
// Actual: runtime error.
console.log(A.foo);
```

**Expected behavior:** The generated `a/index.d.ts` uses some new syntax to mark the module as an ES6 module, so `allowSyntheticDefaultImports` does not apply to it and the default import in `b/index.ts` is a compile error.

**Actual behavior:** `allowSyntheticDefaultImports` applies to module `a`, so at compile time, the default import is accepted and resolves to the entire module, but at runtime, `A.foo` raises an error:
```
REDACTED/b/index.js:7
console.log(a_1.default.foo);
                        ^

TypeError: Cannot read property 'foo' of undefined
```

**Playground Link:** N/A, multiple files

**Related Issues:** #27293
Repository: go
Issue: gccgo: cgo not working on Solaris 10
Labels: OS-Solaris,NeedsInvestigation

### What version of Go are you using (`go version`)?
`go version go1.10.3 gccgo (GCC) 8.2.1 20180813 solaris/sparc`

### Does this issue reproduce with the latest release?
Yes. Compiled from source

### What operating system and processor architecture are you using (`go env`)?
```
GOARCH="sparc"
GOBIN=""
GOCACHE="/export/home/amandeep/.cache/go-build"
GOEXE=""
GOHOSTARCH="sparc"
GOHOSTOS="solaris"
GOOS="solaris"
GOPATH="/opt/go_pkgs"
GORACE=""
GOROOT="/usr/gnu"
GOTMPDIR=""
GOTOOLDIR="/usr/gnu/libexec/gcc/sparc-sun-solaris2.10/8.2.1"
GCCGO="/usr/gnu/bin/gccgo"
CC="gcc"
CXX="g++"
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 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build699772262=/tmp/go-build -gno-record-gcc-switches -funwind-tables"

```
### What did you do?
Tried to compile a simple program:

```
package main                                                                   
 
/*                                                                             
#include <stdio.h>                                                             

void testc() {                                                                 
    printf("Hello cgo");
}                                                                              
*/                                                                             
import "C"                                                                     
                                                                               
func main() {                                                                  
    C.testc()                                                                  
}                                                                              
```

### What did you see instead?

Compilation fails with:
./abc.go:13:5: call of non-function C.testc
Repository: go
Issue: x/net/html: fuzz this package
Labels: Testing,help wanted

Given a couple of bugs reported by @tr3ee from malformed/incomplete tags
like:
* https://github.com/golang/go/issues/27702
* https://github.com/golang/go/issues/27704
* https://github.com/golang/go/issues/27842
* https://github.com/golang/go/issues/27846

whose reproducers are quite simple and have caused runtime panics or infinite hangs, perhaps fuzzing could help us discover what lurks beyond and even such cases.

/cc @namusyaka @dgryski @dvyukov @bradfitz @nigeltao
Repository: go
Issue: x/text: messages cannot contain '{'
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

go version go1.11 darwin/amd64
golang.org/x/text 905a57155faa8230500121607930ebb9dd8e139c

### What did you do?

Ran `gotext update` with a message catalog containing the Translation `expected '{'`.

### What did you expect to see?

Correct import of message catalog.

### What did you see instead?

```
gotext: generation failed: error: unmatched '}'
```

There are really three problems here.  First, the substitution mechanism used in translations is too simplistic; it doesn't have any escaping mechanism to allow for the use of a bare '{' in the string.  Second, the error message is wrong; it should say unmatched '{', not unmatched '}'.  And third, the error message is utterly useless since it doesn't identify  *which* translation has the problem.
Repository: pytorch
Issue: Create a custom function using the functions from math_cpu.cc source code in Caffe2?
Labels: caffe2

I would like to write my own convolution function in C++ using the GEMM functions defined in math_cpu.cc.  I am planning to write a python wrapper for the function and use in a python environment.  Is this possible?  The reason for this is that the dependencies are already present with the installation of caffe2.
Repository: vscode
Issue: Extend tasks API to allow programmatic problem matching
Labels: feature-request,api,tasks

The new tasks APIs (fetchTask(), executeTask(), task events...) makes it more convenient to use vscode's own task system to spawn child process (as opposed to using something like `child_process`, for example). Still, AFAICT, there are two bits missing in the API:

1. A method to get the underlying `Terminal` instance of a running task (maybe through `TaskExecution`?);

2. Events that would be fired whenever something is written in the process' stdout/stderr (that would probably go in the `Terminal` instance itself)

This would be very useful to implement UI feedback (i.e progess notifications) while using vscode's task system. Right now, the only way I see to do that is to spawn my own proces, create an output channel and handle problem matching myself...

Does that make sense?
Repository: rust
Issue: Confusing error message for `impl Trait` consts/statics that use generics
Labels: C-enhancement,A-diagnostics,T-compiler,A-impl-trait,F-impl_trait_in_bindings,requires-nightly

#53542 introduced `impl Trait` bindings in consts and statics (along with let bindings), but of course they cannot be assigned a value of a generic type. The error message is presently a bit confusing:

```
error[E0434]: can't capture dynamic environment in a fn item
  --> .../bindings.rs:4:29
   |
 4 |     const foo: impl Clone = x;
   |                             ^
   |
   = help: use the `|| { ... }` closure form instead
```

Example:

```rust
#![feature(impl_trait_in_bindings)]

fn a<T: Clone>(x: T) {
    const foo: impl Clone = x;
}
```

A message like `cannot assign value of generic type to const or static of opaque type` would be better, I think (unless there's already a suitable error that can be reused).

See also the [`bindings` test](https://github.com/rust-lang/rust/blob/16cf404f9853e716a216be32d05f5215ff821c00/src/test/ui/impl-trait/bindings.rs) from the above PR and its [stderr](https://github.com/rust-lang/rust/blob/16cf404f9853e716a216be32d05f5215ff821c00/src/test/ui/impl-trait/bindings.stderr).

CC @cramertj @oli-obk