sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Error when creating new caffe2::Predictor(_initNet, _predictNet)
Labels: caffe2

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->
ML Framework used: Caffe2
IDE for Android: Android Studio
## Issue

We intend to create an Android app that runs super-resolution models on images from the gallery. We ran the example code based on https://github.com/caffe2/AICamera on Android, where we replaced the files used in _initNet and _predictNet (originally squeeze_init_net.pb & squeeze_predict_net.pb) with our own .pb models, but we encountered an error when creating the  caffe2::Predictor(initNet, predictNet) instance:
```
extern "C"
JNIEXPORT void JNICALL
Java_com_ufo_orbital_ResultActivity_initCaffe2(JNIEnv *env, jobject /* this */, jobject assetManager) {

    AAssetManager *mgr = AAssetManager_fromJava(env, assetManager);
    alog("Attempting to load protobuf netdefs...");
    loadToNetDef(mgr, &_initNet,   "superres_init_net_CPU.pb");
    loadToNetDef(mgr, &_predictNet,"superres_predict_net_CPU.pb");
    alog("done.");
    alog("Instantiating predictor...");
    _predictor = new caffe2::Predictor(_initNet, _predictNet);
    alog("done.")

}
```
Error inside "Run":
```
E/AIsCamera: Attempting to load protobuf netdefs...
E/AIsCamera: done.
    Instantiating predictor...
E/native: [E operator.cc:153] Cannot find operator schema for ATen. Will skip schema checking.
A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 28039 (AsyncTask #1), pid 27852 (com.ufo.deblur)
```

## Environment
You can refer to the 
https://github.com/RusdiHaizim/deblur2/blob/master/AICamera/app/src/main/cpp/native-lib.cpp
link for the full description of the cpp native file.

## To reproduce
1. Clone the github repo from https://github.com/RusdiHaizim/deblur2
2. Build the project and Run on an android device
3. Choose the "Upload Image" Icon, Select any picture, then click "Deblur"
4. The App should take you back to the app's main screen, with the error log inside Android Studio (or your own IDE)

## Additional context
We are a team of two that are new to Machine Learning (especially to Caffe2) and Android Development. Any help would be appreciated!
Repository: pytorch
Issue: How to use Infiniband for cpu-cluster with backend gloo?
Labels: oncall: distributed,triaged

Now I'm trying to build pytorch from source for my cpu-cluster with backend gloo.
After installing pytorch, I got this information from install summay:
```
 --   USE_DISTRIBUTED       : True
 --     USE_MPI             : ON
 --     USE_GLOO            : ON
 --     USE_GLOO_IBVERBS    : 1
```
In my cluster, the network interface "eno1" represents Ethernet, and "ib0" represents Infiniband.
I set the environment variable `GLOO_SOCKET_IFNAME=eno1`, and distributed pytorch works fine. But when I set `GLOO_SOCKET_IFNAME=ib0`, it will cause some error.

What should I do?
Thanks.
Repository: flutter
Issue: Flutter driver NoSuchMethodError: The method 'group' was called on null.
Labels: a: tests,framework,P2,team-framework,triaged-framework


approvals_progress_page_test.dart
`

import 'dart:async';

import 'package:flutter_driver/flutter_driver.dart';
import 'package:test_api/test_api.dart';
void main() {


  group('scrolling performance test',() {
    FlutterDriver driver;

    setUpAll(() async {
      driver = await FlutterDriver.connect();
    });

    tearDownAll(() async {
      if (driver != null)
        driver.close();
    });

    test('measure', () async {
      final Timeline timeline = await driver.traceAction(() async {
        await driver.tap(find.text('Material'));

        final SerializableFinder demoList = find.byValueKey('ApprovalsPage');


        for (int i = 0; i < 5; i++) {
          await driver.scroll(demoList, 0.0, -300.0, const Duration(milliseconds: 300));
          await Future<void>.delayed(const Duration(milliseconds: 500));
        }

        // Scroll up
        for (int i = 0; i < 5; i++) {
        await driver.scroll(demoList, 0.0, 300.0, const Duration(milliseconds: 300));
        await Future<void>.delayed(const Duration(milliseconds: 500));
        }
      });

      TimelineSummary.summarize(timeline)
        ..writeSummaryToFile('home_scroll_perf', pretty: true)
        ..writeTimelineToFile('home_scroll_perf', pretty: true);
    });
  });
}




`

error:
`
Unhandled exception:
NoSuchMethodError: The method 'group' was called on null.
Receiver: null
Tried calling: group("scrolling performance test", Closure: () => Null, onPlatform: null, retry: null, skip: null, solo: false, tags: null, testOn: null, timeout: null)
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:50:5)
#1      group (package:test_api/test_api.dart:179:13)
#2      main (file://VSCode_workspace/hello_word/test_driver/approvals_progress_page_test.dart:9:3)
#3      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:300:19)
#4      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:171:12)


`
Repository: rust
Issue: Rust 1.35.0 x86_64-unknown-linux-musl has multiple definition of `__errno_location`
Labels: A-linkage,T-compiler,O-musl,C-bug

This is breakage between 1.34(.2) and 1.35.0.

1.34 worked fine, 1.35 not any more. We are building `x86_64-unknown-linux-musl` using musl 1.1.22 (with clang).

```
/opt/musl/lib/libc.a(__errno_location.lo): In function `___errno_location': src/errno/__errno_location.c:(.text.__errno_location+0x0): multiple definition of `__errno_location'
/tmp/rustcHiVA0H/liblibc-a19d328d73c1ea73.rlib(__errno_location.lo):__errno_location.c:(.text.__errno_location+0x0): first defined here

```

The following Dockerfile can be used to demonstrate the issue. It's quite long because of building both `musl` and `libressl` for Musl compilation.

```dockerfile
FROM rust:1.35.0
#         ^-- 1.35.0 build breaks, 1.34.2 here and build is good

ENV TARGET=x86_64-unknown-linux-musl

ARG LIBRESSL=libressl-2.9.1
ARG MUSL=musl-1.1.22

ARG DEBIAN_FRONTEND=noninteractive
RUN apt -y update && \
    apt -y install clang && \
    rustup target install ${TARGET}

RUN printf '[target.x86_64-unknown-linux-musl]\nlinker = "musl-clang"\n' >/usr/local/cargo/config

WORKDIR /work

RUN curl -fO https://www.musl-libc.org/releases/${MUSL}.tar.gz && \
    tar zxf ${MUSL}.tar.gz && \
    cd ${MUSL} && \
    ./configure CC=clang CFLAGS="-fPIC" --prefix=/opt/musl --enable-shared=no && \
    make V=1 -j4 && \
    make V=1 install

ENV PATH=/opt/musl/bin:$PATH

# We do Musl build hence point to correct tool
ENV CC_x86_64_unknown_linux_musl=musl-clang

# Musl is missing some kernel specific header files. Do symbolic links to fix
# this.
RUN \
    ln -s /usr/include/linux /opt/musl/include/ && \
    ln -s /usr/include/x86_64-linux-gnu/asm /opt/musl/include/ && \
    ln -s /usr/include/asm-generic /opt/musl/include/

RUN curl -fO https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${LIBRESSL}.tar.gz && \
    tar zxf ${LIBRESSL}.tar.gz && \
    cd ${LIBRESSL} && \
    ./configure CC=musl-clang LD=musl-clang CFLAGS="-fPIC" --prefix=/opt/libressl --enable-shared=no --sysconfdir=/etc && \
    make V=1 -j4 && make -j4 check && \
    make install

ENV X86_64_UNKNOWN_LINUX_MUSL_OPENSSL_LIB_DIR=/opt/libressl/lib
ENV X86_64_UNKNOWN_LINUX_MUSL_OPENSSL_INCLUDE_DIR=/opt/libressl/include

# cargo-outdated is innocent crate, it's just to trigger the error in build
RUN cargo install --target=$TARGET cargo-outdated
```

This error seem to happen with some, but not all crates. For example `cargo-outdated` triggers the error while linking but building `bindgen` works fine.
Repository: rust
Issue: Enable PGO tests on `windows-gnu`
Labels: A-testsuite,O-windows-gnu,T-infra

https://github.com/rust-lang/rust/pull/61080 enabled profiler for `windows-gnu` `dist` jobs and it seems to work.
I didn't know if CI has enough budget to enable it for tests as well so it was left for now but it should be enabled in the future.

Related issue: https://github.com/rust-lang/rust/issues/59637

@michaelwoerister you might want to add this issue to https://github.com/rust-lang/rust/issues/59913

@rustbot modify labels: +O-windows-gnu +T-infra
Repository: flutter
Issue: Animating marker google map
Labels: c: new feature,a: animation,a: quality,customer: crowd,p: maps,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

It would be great if Google Map for Flutter provided animating marker feature. I'd like to move marker smoothly on the polyline. Changing marker position according to polyline points is not a good idea because it costs a lot of CPU usage and the map starts lagging and also marker doesn't have smooth move on the polyline.
[Here](https://developers.google.com/maps/documentation/javascript/examples/overlay-symbol-animate) is the web version of animating markers
[Here](https://www.youtube.com/watch?v=WKfZsCKSXVQ&feature=youtu.be) is the android version of animating markers explanation
Repository: flutter
Issue: [web] : Do not disconnect device on browser page close
Labels: c: new feature,tool,platform-web,P3,team-web,triaged-web

The `flutter_web` workflow in Vs Code (even in general) is bad

These are the points that I didn't like about it after I used it for about a few minutes.

- No auto hot reload on the client side ([currently being implemented](https://github.com/flutter/flutter_web#getting-stateless-hot-reload-with-webdev))
    - need to manually refresh (`ctrl+r`)
- A new instance of chrome browser is opened unlike `React` or any other web workflow which webdevs are used to
    - create a new tab in the existing chrome window
- And that instance when closed kills the dev server (why 👎 )
    - yelling `Lost connection to device.`
    - even if another client is running on a different tab
- Uses some random port on each run
    - when I type localhost on my search bar I get a lot of junk as the recommendations instead of plain old `localhost:3000`

**Platform**: Windows 10

Please note that web workflow is different from the android workflow.

**Request/Suggestion:** Make it somewhat like `React` workflow.
Repository: rust
Issue: Varargs are completely unchecked if passed as generics
Labels: A-FFI,P-high,T-compiler,I-unsound,S-has-mcve,I-miscompile

I am trying to call the function DftiSetValue from the Intel Math Library.  The function has the layout MKL_LONG DftiSetValue(DFTI_DESCRIPTOR_HANDLE, enum DFTI_CONFIG_PARAM, ...), the first is an 8 byte pointer (windows 64 bit), the second is an enum which is 4 bytes long, and the last parameter is a floating point number.

I can call this function from c++ just fine as a float or double, but cannot call this from rust without making it a double.  This is with the enum being treated as 32 bit int, and I get an error if I try to call it with a u4 from the ux package.  According to the documentation this function should be a float because I am using floating point fft precision.

I have attached some code that shows the fft being called with some sample values and you can see that one time it is called and returns all zeros which is incorrect and the second time it is called it comes back correctly with non-zero values.

[Example.zip](https://github.com/rust-lang/rust/files/3228689/Example.zip)
Repository: TypeScript
Issue: [k in keyof EnumA] should show error
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.
-->

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  3.4.0-dev.201xxxxx

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**

**Code**

```ts
export const enum EnumA
{
	a,
	b,
}

export type Interface = {
	[k in keyof EnumA]: (a: number, b: string) => void
	// here should show error or a warn message, because it is enum
}

let a: Interface = {
	a(a, b)
	{
		console.log(a.toFixed(), b.blink());
	},
	b(a, b)
	{
		console.log(a.toFixed(), b.blink());
	},
}
```

**Expected behavior:**

> error or a warn message, and tell use `[k in keyof typeof EnumA]`

**Actual behavior:**

> no error

**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->

**Related Issues:** <!-- Did you find other bugs that looked similar? -->
Repository: TypeScript
Issue: JSDoc @name tag does not function
Labels: Suggestion,Awaiting More Feedback

- VSCode Version: 1.33.1
- OS Version: Windows 7 x86_64 (but I do not think that is relevant)
- Does this issue occur when all extensions are disabled?: `Yes`

## Steps to Reproduce:

1. Write in a file with `.js` or `.ts` extension the below sample code:
```jsx
/**
  Construct a new component

  @class Component
  @classdesc A generic component

  @param {Object} options - Options to initialize the component with
  @param {String} options.name - This component's name, sets {@link Component#lastProperty}
  @param {Boolean} options.visible - Whether this component is vislble, sets {@link Component#firstProperty}
*/
function Component(options) {
  /**
    Whether this component is visible or not

    @name Component#firstProperty
    @type Boolean
    @default false
  */
  this.firstProperty = options.visible;

  /**
    This component's name

    @name Component#lastProperty
    @type String
    @default "Component"
    @readonly
  */
  Object.defineProperty(this, 'lastProperty', {
    value: options.name || 'Component',
    writable: false
  });
}

const myComponent = new Component({});
```
2. on a new line at the end of the document type `myComponent` with a dot at its end.
3. While the text-cursor is after the dot, press `Ctrl+Space` to open the auto-completion list.

## Current Behavior:
When you chose `.js` as file extension, only `firstProperty` is in the auto-completion list (with its type comment and so on).

But when you have it in a file with `.ts` extension, none of `firstProperty` and `lastProperty` will be detected, and JSDoc seems useless.

## Expected Behavior:
Both `firstProperty` and `lastProperty` should be detected and get placed in the auto-completion list, and that no matter which of `.js` or `.ts` file extensions we are using.
Repository: rust
Issue: Suggest alternative return type for `Option`s and `Result`s
Labels: C-enhancement,A-diagnostics,T-compiler,A-suggestion-diagnostics,D-papercut

Given the following code:
```rust
fn main() {
    let _ = vec[1].iter().next()?;
    Some(())
}
```
Rust reports an error for using `?` and suggests adding `;` after the `Some(())`. A preferrable Option (pun intended) is to suggest changing the return type to `Option<()>` when the body's result type is `Option<_>` and there exists at least one `?` in the body. Similarly, if we have `Result`s, we might want to try to infer a useful return type, e.g.

```rust
fn main() {
    let _ = std::fs::File::open("foo.txt")?;
    Ok(())
}
```

cc @estebank (diagnostics)
Repository: flutter
Issue: Revive the "set marker icon" sample for Google Maps
Labels: d: examples,p: maps,package,team-ecosystem,P2,triaged-ecosystem

Following a breaking change to the ImageStream API in the framework(https://github.com/flutter/flutter/pull/32936) the Google Maps plugin sample app needs to be updated to the new API.

As we make sure to keep plugins working agains stable we cannot apply the update before the framework change makes it to stable. But if we do not apply the change, the plugins' CI is red as it's running with master.

For now, I'm updating the sample app to the new framework API, but commenting out the "set  marker icon" sample until the framework change makes it to master.

Once the framework change makes it to stable we should uncomment that code.
Repository: pytorch
Issue: Zero-dim Tensors (scalars) should be printed at full precision
Labels: module: printing,triaged

## 🚀 Feature
The string representation of zero-dimensional Tensors should be sufficient to exactly reconstruct their value.

Ideally it should also print using the minimal number of digits. For example, we should avoid printing 1.0/10.0 as `0.100000001`.

## Motivation
We've had a number of bug reports where some value looks like 1.0 but is actually larger than 1. Many people don't know that you need to call `item()` to get an exact value.

NumPy uses the Dragon4 algorithm (Guy & Steele, 1990). Their implementation is here:
https://github.com/numpy/numpy/blob/master/numpy/core/src/multiarray/dragon4.c

The algorithm is described here:
http://kurtstephens.com/files/p372-steele.pdf (retrospective, 2004)
Repository: go
Issue: cmd/go: improve error message when a module is successfully fetched but not in the sum db
Labels: NeedsInvestigation,modules

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version devel +0f897f916a Tue May 28 02:52:39 2019 +0000 linux/amd64
</pre>

### Does this issue reproduce with the latest release?
Yes.

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/tbp/.cache/go-build"
GOENV="/home/tbp/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/tbp/go"
GOPROXY="https://proxy.golang.org"
GOROOT="/home/tbp/code/gotip"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/tbp/code/gotip/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/tmp/bar/go.mod"
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build702923268=/tmp/go-build -gno-record-gcc-switches"
GOROOT/bin/go version: go version devel +0f897f916a Tue May 28 02:52:39 2019 +0000 linux/amd64
GOROOT/bin/go tool compile -V: compile version devel +0f897f916a Tue May 28 02:52:39 2019 +0000
uname -sr: Linux 4.19.28-2rodete1-amd64
Distributor ID:	Debian
Description:	Debian GNU/Linux rodete
Release:	rodete
Codename:	rodete
/lib/x86_64-linux-gnu/libc.so.6: GNU C Library (Debian GLIBC 2.24-12) stable release version 2.24, by Roland McGrath et al.
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->

```
$ GOPROXY=https://proxy.golang.org GONOPROXY=github.com/tbpg go get github.com/tbpg/modules-testing

verifying github.com/tbpg/modules-testing@v0.0.0-20190528133524-a4881321cb96/go.mod: github.com/tbpg/modules-testing@v0.0.0-20190528133524-a4881321cb96/go.mod: reading https://sum.golang.org/lookup/github.com/tbpg/modules-testing@v0.0.0-20190528133524-a4881321cb96: 410 Gone

```

### What did you expect to see?

I'm not sure we should make this change (might not want to make it obvious, for some sense of the word, how to disable the sum db).

The solution, in this case, is to add `GONOSUMDB=github.com/tbpg`. Could we mention `GONOSUMDB` in the error message?

### What did you see instead?
`410 Gone`

cc @FiloSottile @bcmills 

Related to #32184, which would have prevented this error.
Repository: TypeScript
Issue: [Feature request] allow emit param name when emitDecoratorMetadata
Labels: Suggestion,Awaiting More Feedback

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Please read the FAQ first, especially the "Common Feature Requests" section.

-->

## Search Terms

<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->

## Suggestion

> allow emit param name when emitDecoratorMetadata

## Use Cases

```ts
class C1
{
	@d1
	m1(a: string): string
	{
		return null;
	}
}

function d1(target: Object,
	propertyKey: string,
	descriptor: TypedPropertyDescriptor<any>)
{
	return descriptor;
}
```

## Examples

.js
```js
class C1 {
    m1(a) {
        return null;
    }
}
__decorate([
    d1,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [String]),
    __metadata("design:paramnames", ['a']),
    __metadata("design:returntype", String)
], C1.prototype, "m1", null);
function d1(target, propertyKey, descriptor) {
    return descriptor;
}
```

<!-- Show how this would be used and what the behavior would be -->

## Checklist

My suggestion meets these guidelines:

* [ ] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [ ] This wouldn't change the runtime behavior of existing JavaScript code
* [ ] This could be implemented without emitting different JS based on the types of the expressions
* [ ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [ ] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: TypeScript
Issue: Wrong typescript intelisense suggestions
Labels: Bug

<!-- 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: 1.34
- OS Version: Linux Mint Tessa

The following code break the intelisense for TS.
```typescript
export function get<T, K1 extends keyof T, K2 extends keyof T[K1]>(
  obj: T,
  keys: [K1, K2]
): T[K1][K2];
export function get<
  T,
  K1 extends keyof T,
  K2 extends keyof T[K1],
  K3 extends keyof T[K1][K2]
>(obj: T, keys: [K1, K2, K3]): T[K1][K2][K3];
export function get(obj: any, keys: any[]): any {
  for (const key of keys) obj = obj[key];
  return obj;
}
```

These are the TS suggestions
![bad_intelsense1](https://user-images.githubusercontent.com/22679154/58330121-7c48f280-7e36-11e9-8806-5e7fd627e7f2.png)

However, they are wrong, because the third value needs to be property of the object on path `'a.b'`, precisely only value `'c'`.

The typings are correct, because intelisense is able to infer the result
![bad_intellisense2](https://user-images.githubusercontent.com/22679154/58330300-e3ff3d80-7e36-11e9-82d9-5ccff813628e.png)

Furthemore, it rejects all values except `'c'`, which means the intelisense should be able to provide correct suggestions.
![bad_intelisense3](https://user-images.githubusercontent.com/22679154/58330577-730c5580-7e37-11e9-9a30-acef792d456f.png)
Repository: rust
Issue: Suggestion for incorrect `target_feature` use
Labels: C-enhancement,A-diagnostics,P-low,T-compiler,A-suggestion-diagnostics,D-papercut,A-target-feature

[When encountering `#[target_feature = "+sse2"]`](https://github.com/estebank/rust/blob/609ffa1a890fd6b8b0364cd7b35bf1d45abf82d0/src/test/ui/target-feature-wrong.stderr), suggest `#[target_feature(enable = "+sse2")]` instead of the current `#[target_feature(enable = "name")]`.

(Follow up to #61140)