sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: x/crypto/ssh: test consistently runs out of memory on js-wasm builder
Labels: Testing,help wanted,NeedsFix,arch-wasm

The `golang.org/x/crypto/ssh` test consistently fails on the `js-wasm` builder with the error message `runtime: out of memory: cannot allocate 8192-byte block`.

Can the test be made to fit within the runtime on that architecture? If not, it should be skipped, instead of continuing to fail and potentially masking more serious problems.

CC @hanwen @neelance @FiloSottile
Repository: flutter
Issue: Improve error message when trying to run on a device the project doesn't support
Labels: tool,a: quality,a: error message,P2,team-tool,triaged-tool

`flutter run` should do a check very early on that the project supports the target device, and fail with a clear error message (e.g., `This project doesn't support macOS`). Long-term maybe explicitly trying to run on an unsupported device should run the relevant `flutter create` (or whatever it ends up being called) command to add that platform, but that's a ways out for at least some desktop platforms so we'll need an interim error message.

(See #35215 for an example of the current behavior, where trying to run on macOS is giving `Podfile missing` because that happens to be the first fatal error that's hit.)

CC @jonahwilliams
Repository: scrcpy
Issue: [feature] Add version number
Labels: feature request

**Suggestion:**
Show the version number in the title bar (the title bar seems like the best option, but somewhere else could also work).

**Why?**
Currently there is no (easy) way to see the version number using the GUI only. Adding it in the title bar would be could be very handy to check if you're on the latest version.
Repository: electron
Issue: Implement BrowserWindow.setFocusable on Linux
Labels: enhancement :sparkles:

<!--  As an open source project with a dedicated but small maintainer team, it can sometimes take a long time for issues to be addressed so please be patient and we will get back to you as soon as we can.
-->

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
* [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
* [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

### Problem Description
Currently BrowserWindow.setFocusable is only implemented on Windows. But not on Mac despite the focusable option being available on all platforms.

### Proposed Solution
I have a patch that implements it on Mac. I can take a look to Linux later.

### Alternatives Considered
None
Repository: pytorch
Issue: New Weight Scheduler Concept for Weight Decay
Labels: feature,module: optimizer,triaged

## 🚀 Feature

Weight decay is used very often. A common strategy is to implicitly use the learning rate scheduler todo so, or to simply shrinking the weights at the end of each iteration by a constant multiplicative factor. However, one could expect to use strategies different from this. In that case, we could have weight schedulers that modify the weights using a syntax and grammar similar to learning rate schedulers already available. 

## Motivation

The AdamW code from #21250 does not include the weight scheduler, as mentioned [here](https://github.com/pytorch/pytorch/pull/4429#issuecomment-508951336).

There are also currently a few issues and pull requests about weight schedulers, see below.

## Alternatives

* #4429 suggests modifying the optimizer logic to accept a new parameter `weight_decay` specifying the constant multiplicative factor to use.
* #3740, #21250, #22163 introduce variations on Adam and other optimizers with a corresponding built-in weight decay. #3790 is requesting some of these to be supported.
* We could instead have a new "weight_decay_type" option to those optimizers to switch between common strategies.
Repository: terminal
Issue: Mouse panning (middle-button scrolling)
Labels: Help Wanted,Area-Input,Area-TerminalControl,Product-Terminal,Issue-Task,good first issue

# Summary of the new feature/enhancement

Introduce scrolling with middle mouse button, common to browsers/text editors and also available in conhost.

Currently middle mouse button is not used (right?) but there are requests to use it to paste text, so there needs to be a settings for that.

# Proposed technical implementation details (optional)
PR #1523 introduces mechanism to implement scrolling, cursor image has to be replaced with appropriate images.
Repository: rust
Issue: Unable to emit llvm-bc when CARGO_INCREMENTAL is set
Labels: T-compiler,A-incr-comp

When building with the rustc argument to emit an llvm bc file
```cargo rustc -v -- --emit llvm-bc```

Cargo builds successfully but prints the warning
```warning: ignoring emit path because multiple .bc files were produced```

Doing a recursive search for all *.bc files from root, I can see that the bc file I'm wanting was not generated, but there are a lot of bc files in ```./target/debug/incremental/```.

So I turned off incremental building ```export CARGO_INCREMENTAL=0``` and cleared the target directory, then ran the build command again. This time the correct bc file is generated in ```./target/debug/deps```
Repository: create-react-app
Issue: Can not start app using grpc web due to incorrect eslint errors
Labels: issue: bug

<!--
    Please note that your issue will be fixed much faster if you spend about
    half an hour preparing it, including the exact reproduction steps and a demo.

    If you're in a hurry or don't feel confident, it's fine to report bugs with
    less details, but this makes it less likely they'll get fixed soon.

    In either case, please use this template and fill in as many fields below as you can.

    Note that we don't provide help for webpack questions after ejecting.
    You can find webpack docs at https://webpack.js.org/.
-->

### Desribe the bug

I am creating a react app with grpc-web: https://github.com/grpc/grpc-web

Following the steps described here https://github.com/grpc/grpc-web#how-it-works it generates code for you from the .proto files. If one has a helloworld.proto it would generate a `helloworld_pb.js` file. The file it generates confuses eslint and throws a bunch of `no-undef` errors which fails the build. If I manually add `/* eslint disable no-undef */` to the generated file the App works as expected with grpc-web

Here is the generated file that is causing issues for me: https://gist.github.com/Globegitter/c53de0ba359cea1b2cc7c7cdfb0ac491

I do not want to add the eslint comment there because the file can be regenerated at any time and it also tells you to not manually edit the file.

### Did you try recovering your dependencies?

Yep


### Which terms did you search for in User Guide?

lint
eslint

### Environment

Environment Info:

  System:
    OS: Linux 4.15 elementary OS 5.0 Juno (Ubuntu 18.04)
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  Binaries:
    Node: 10.16.0 - /usr/bin/node
    Yarn: 1.16.0 - /usr/bin/yarn
    npm: 6.9.0 - /usr/bin/npm
  Browsers:
    Chrome: 75.0.3770.100
    Firefox: Not Found
  npmPackages:
    react: ^16.8.6 => 16.8.6
    react-dom: ^16.8.6 => 16.8.6
    react-scripts: 3.0.1 => 3.0.1
  npmGlobalPackages:
    create-react-app: Not Found


### Steps to reproduce

1. Write any react app that imports the file linked in the gist e.g. `import {HelloReply, HelloRequest} from './helloworld_pb';` 
2. You can make use of this, instantiate the class etc.
3. See the compilation issue thrown by eslint
4. Add the eslint disable command and see that all works fine as expected

Note: I am using react with typescript here btw, but don't think that makes any difference here.

### Expected behavior

Give me some way to ignore specific files/directories from being linted, or give me an option turn errors into warnings so I can choose to ignore false positives.

### Actual behavior

![image](https://user-images.githubusercontent.com/2580254/60370156-213a8a80-99f6-11e9-8e21-0e51f7a198ca.png)


### Reproducible demo

https://github.com/Globegitter/react-grpc-web
Repository: TypeScript
Issue: Auto import suggestions heavily slows intellisense
Labels: Bug

**TypeScript Version:**  3.6.0-dev.20190628

**Search Terms:** `auto import` `auto import performance`

**Code**

Enter this into a blank TypeScript project in VSCode:
```ts
import {S3} from 'aws-sdk'

const a: s
```

**Expected behavior:**
Intellisense suggestions to pop up in under 500ms.

**Actual behavior:**
2+ seconds for the suggestions to appear.

After banging my head for a few hours trying to get to the bottom of intellisense slowness(next, insiders, old versions, etc, etc) I narrowed this down to auto import suggestions; disabling this feature removes the delay. I _believe_ tsserver provides this service to VSCode? The aws-sdk does have a huge type surface area..
Repository: pytorch
Issue: When I run python setup.py install to install Caffe2, I have an error: "No such file or directory: 'nvcc': 'nvcc'"
Labels: caffe2,triaged

I can't seem to figure out how to include nvcc as a directory. Obviously I have downloaded CUDA and have CuDNN running too. Can someone please help me? Thank you so much. (I am working on a Mac)
Repository: rust
Issue: Can't use `impl Fn` to return a closure that returns another closure
Labels: C-enhancement,A-closures,T-lang,A-impl-trait

While trying to write some currying code using stable (1.35.0), writing a `fn` that returns `impl Fn(T1) -> impl Fn(T2) -> T3` results in a compile error. E.g.
```rust
fn foo(a: i64, b: bool, c: f64) {
    println!("{:?} {:?} {:?}", a, b, c)
}

fn foo2(a: i64, b: bool) -> impl Fn(f64) -> () { move |c: f64| foo(a,b,c) }
fn foo1(a: i64) -> impl Fn(bool) -> impl Fn(f64) -> () { move |b: bool| foo2(a,b) }

fn main() {
    foo1(1)(true)(2.5);
}
```

results in
```
error[E0562]: `impl Trait` not allowed outside of function and inherent method return types
 --> src/main.rs:7:37
  |
7 | fn foo1(a: i64) -> impl Fn(bool) -> impl Fn(f64) -> () { move |b: bool| foo2(a,b) }
  |                                     ^^^^^^^^^^^^^^^^^^

error: aborting due to previous error
```

The expectation was that this would be allowed as the `impl Fn(f64) -> ()` is part of the function return type of `foo1`.
Repository: terminal
Issue: Windows Store install fails when default app save location not set to C:
Labels: Resolution-External,Product-Terminal,Needs-Tag-Fix

When default new app save location was set to D:, WT would download and attempt to install but then fail with a non-specific error (sorry no screenshot but should be repeatable).  Changing the default app save location to C: allowed it to install.  

There are a pair of Event Logs describing the event:

```
Fault bucket 1222364994692753289, type 5
Event Name: AppxDeploymentFailureBlue
Response: Not available
Cab Id: 0

Problem signature:
P1: 80073D13
P2: 5
P3: 0
P4: NONE
P5: 10.0.18362.175
P6: 765
P7: 
P8: 
P9: 
P10: 

Attached files:
[large number of log paths redacted]

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\NonCritical_80073D13_e3ddba5cc7432f8eac6ff587b7cea67b50cc29f4_00000000_614f2c6e-6497-4c50-998f-0bf772615a9e

Analysis symbol: 
Rechecking for solution: 0
Report Id: 614f2c6e-6497-4c50-998f-0bf772615a9e
Report Status: 268435456
Hashed bucket: b966d53c8a39f29fd0f6b67c7e88a789
Cab Guid: 0
```
and
```
Fault bucket 1439638532761225254, type 5
Event Name: StoreAgentDownloadFailure1
Response: Not available
Cab Id: 0

Problem signature:
P1: Acquisition;PTIClient
P2: 80073d13
P3: 18362
P4: 175
P5: Windows.Desktop
P6: 1
P7: 
P8: 
P9: 
P10: 

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER195D.tmp.WERInternalMetadata.xml

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\NonCritical_Acquisition;PTIC_2431d4c27ca3d41ba382d17ec8f30eadeab812e_00000000_fd9920f6-19ed-4ead-b665-b667864e43cc

Analysis symbol: 
Rechecking for solution: 0
Report Id: fd9920f6-19ed-4ead-b665-b667864e43cc
Report Status: 2147487744
Hashed bucket: 8ef9d1b328f66c23c3fa9f9e36328826
Cab Guid: 0
```
Repository: flutter
Issue: Please add resource map like Android's R.class in Flutter
Labels: c: new feature,framework,P3,team-framework,triaged-framework

### Please add resource map like Android's R.class in Flutter
create Asserts map to mapping  assert like image string file...
Repository: pytorch
Issue: returned non-zero exit status 2.
Labels: module: build,triaged

I compile pytorch1.1 with TX2(python3.7)
I follow the steps:
1.git clone --recursive https://github.com/pytorch/pytorc
2.cd pytorch
3.git submodule syn
4.git submodule update --init --recursiv
5.python3.7  setup.py install
this is error messages:
nvlink error   : entry function '_Z32ncclAllReduceRingLLKernel_sum_u88ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
nvlink error   : entry function '_Z32ncclAllReduceTreeLLKernel_sum_i88ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
nvlink error   : entry function '_Z32ncclAllReduceRingLLKernel_sum_i88ncclColl' with max regcount of 80 calls function '_Z29ncclReduceScatterRing_max_f64P14CollectiveArgs' with regcount of 96
Makefile:68: recipe for target '/home/nvidia/tools/pytorch/build/nccl/obj/collectives/device/devlink.o' failed
make[5]: *** [/home/nvidia/tools/pytorch/build/nccl/obj/collectives/device/devlink.o] Error 255
Makefile:44: recipe for target '/home/nvidia/tools/pytorch/build/nccl/obj/collectives/device/colldevice.a' failed
make[4]: *** [/home/nvidia/tools/pytorch/build/nccl/obj/collectives/device/colldevice.a] Error 2
Makefile:25: recipe for target 'src.build' failed
make[3]: *** [src.build] Error 2
CMakeFiles/nccl_external.dir/build.make:110: recipe for target 'nccl_external-prefix/src/nccl_external-stamp/nccl_external-build' failed
make[2]: *** [nccl_external-prefix/src/nccl_external-stamp/nccl_external-build] Error 2
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/nccl_external.dir/all' failed
make[1]: *** [CMakeFiles/nccl_external.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
  File "setup.py", line 753, in <module>
    build_deps()
  File "setup.py", line 327, in build_deps
    cmake=cmake)
  File "/home/nvidia/tools/pytorch/tools/build_pytorch_libs.py", line 64, in build_caffe2
    cmake.build(my_env)
  File "/home/nvidia/tools/pytorch/tools/setup_helpers/cmake.py", line 354, in build
    self.run(build_args, my_env)
  File "/home/nvidia/tools/pytorch/tools/setup_helpers/cmake.py", line 110, in run
    check_call(command, cwd=self.build_dir, env=env)
  File "/usr/local/lib/python3.7/subprocess.py", line 341, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '6']' returned non-zero exit status 2.
root@tegra-ubuntu:pytorch# echo $?
1
thanks
Repository: godot
Issue: Polygons With Bones and Lighting
Labels: bug,topic:rendering

When you bind a polygon to a bone (Polygon dots are white or gray in the Polygon's bone tab), lighting doesn't affect the polygon.
Repository: flutter
Issue: [google_maps] Allow a `Marker` to be auto selected.
Labels: c: new feature,customer: crowd,p: maps,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

I am looking for way to send list of `Marker`'s to the `GoogleMap` widget where one of the markers would be auto-selected on next draw.

That would allow me to control selection and focus on map's `Marker` from outside of `GoogleMap` widget, for example from list on side drawer, etc.

## Use case

In tablet app, user have list of locations on left side of screen and selection of the item in list would show all markers from list with single one being selected.
That selection of item on `GoogleMap` leads to showing navigation and open in google maps bar on bottom left right:
![image](https://user-images.githubusercontent.com/729803/60385752-72786780-9a52-11e9-8246-500017bb44ca.png)

Currently on user's tapping on marker shows that toolbar on bottom right.

## Proposal

There is couple possibilities to do this:
1. Special property on `GoogleMap` - `selectedMarker: myMarker` that would select the marker.
2. Special boolean property on `Marker` class would read `selected` = true/false. That would indicate which on in `markers:` `List<Marker>` should be selected.
3. Method on `GoogleMapController` to manage `Marker` and their state or selection.
Repository: flutter
Issue: Google Play Pre-Launch Report cannot control Flutter PageView
Labels: a: tests,platform-android,framework,a: release,P3,team-android,triaged-android

First of all, I am facing this issue when uploading my Flutter app in Google Play and the automatic Pre-Launch Report tries to "test" my app.
The problem is that I have a First-Start Tutorial based on a Pager that is shown automatically at application startup. And it seems that the Pre-Launch Report cannot control the Flutter Pager because it just stays stuck at this screen.

## Steps to Reproduce
1. Have a flutter application that shows a PageView at startup
2. Upload Application Release to Google Play so that the Pre-Launch Report gets started
3. Check the Pre-Launch Report once it's finished

## Logs
Not present from Google Play Pre-Launch Report

There are also errors reported like this for all the tested devices:
Object Label:
Element Path android:id​/content​/FlutterView[0]
This object may not have a label that can be used for reading.


Are Flutter applications supported in Google Play Pre-Launch at all at the moment? I found this related issue but it does not have a definite answer: #31670
Repository: TypeScript
Issue: Non-exported classes in type declaration files leaking value names
Labels: Docs

**TypeScript Version:** 3.5.2

**Search Terms:** ambient module declaration export declare class type name

**Code** 

In a file called `classes.d.ts`:

```ts
declare class A {}
export declare class B extends A {}
```

In a file called `test.js`:

```js
let a = require('classes').A;
```

In a file called `test.ts`:

```ts
import { A } from './types/classes';
```

**_[NEW]_ Assumptions:**
The following is a list of assumptions I had when originally opening this issue:

1. Type Declaration Files work like modules: once you use `import` or `export` [on a top-level declaration], only explicitly `export`ed declarations are visible externally.
1. Type names declared in a Declaration File are always accessible via `import` types (at least those that are _used_ by `export`ed types.
    - E.g. `export class B extends A` exports the type names `A` and `B`, even if `A` was not directly `export`ed.
1. Value names declared in a module-style Declaration File (see `#1` above) are only accessible if explicitly `export`ed.

These assumptions are the result of reading the [documentation](https://www.typescriptlang.org/docs/handbook/declaration-files/deep-dive.html) and working with declaration files. Note that the documentation **_does not_** mention:

1. _All_ declarations in a declaration file are [implicitly exported](https://github.com/microsoft/TypeScript/issues/32182#issuecomment-507006868).
1. Special [and undocumented?] `export {};` syntax causes only explicitly `export`ed declarations to be available by consumers of the declaration file.

I list them here to provide context for the Expected Behavior section.

**Expected behavior:**
In both cases , an Error that name 'A' could be found in module 'classes'.

I expect in this case that TypeScript is capable of resolving the following from the declaration file:

1. The [**Value**](https://www.typescriptlang.org/docs/handbook/declaration-files/deep-dive.html#values) "B".
1. The [**Types**](https://www.typescriptlang.org/docs/handbook/declaration-files/deep-dive.html#types) "A" and "B".

In other words, I should be able to use `import` types to resolve class A, but attempts to _use_ them should fail.

**Actual behavior:**
No compiler error in either case. TypeScript-powered IDEs (e.g. VSCode) happily show that the _full_ non-exported `class A` is available.

In short, a non-exported, declared class should resolve in the same way as an `interface`.

As things stand today, TypeScript erroneously resolves the **Value** "A".

**Playground Link:** NA

**Related Issues:** NA
Repository: pytorch
Issue: Label.dim Enforcement Check in AccuracyOp
Labels: caffe2,triaged

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->

## To Reproduce

Steps to reproduce the behavior:

1. Run CNN, with label.dim() = 2 && label.dim32(1) = 1

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->
AccuracyOp.RunOnDevice() should accept "label" tensor with ((dim == 2) && (dim32(1) == 1)) as LabelCrossEntropyOp.RunOnDevice() does.

## Environment
$ python ./collect_env.py 
Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A

OS: Fedora release 27 (Twenty Seven)
GCC version: (GCC) 7.3.1 20180712 (Red Hat 7.3.1-6)
CMake version: version 3.11.2

Python version: 2.7
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect

Versions of relevant libraries:
[pip] numpy==1.13.3
[pip] torch==1.0.0a0+6ca1d93
[conda] Could not collect

Please copy and paste the output from our
[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)
(or fill out the checklist below manually).

You can get the script and run it with:
```
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
```

 - PyTorch Version (e.g., 1.0): caffe2
 - OS (e.g., Linux):
 - How you installed PyTorch (`conda`, `pip`, source):
 - Build command you used (if compiling from source): source
 - Python version:2.7
 - CUDA/cuDNN version: None
 - GPU models and configuration: None
 - Any other relevant information:

## Additional context

<!-- Add any other context about the problem here. -->