sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Windows: Code opening cli.js when run as Administrator
Labels: bug,help wanted,windows,workbench-os-integration

- VSCode Version: 1.42.1
- OS Version: Windows_NT x64 10.0.18363

Steps to Reproduce:

1. Open pwsh in windows terminal
2. Go to any folder
3. Run `code .` in the folder

Does this issue occur when all extensions are disabled?: Yes

Troubleshooting steps:
Uninstalled and Reinstalled VSCode. <= This actually fixed the issue on another computer, but not my main work computer.
Followed any other steps in #69373, #88432, #89088

The reason you don't see the wait in the terminal for the first 3 `code .` commands is because there was already a vscode window open, however, the cli.js was still opening in these instances. The terminal wait logging came back after closing all vscode instances.
![image](https://user-images.githubusercontent.com/8488326/75391190-37635800-58af-11ea-88b8-51e0c9105c07.png)


Nobody else got you the command line for the process, so here it is with some privacy censors. Some of the processes had really, really log command line args so I couldn't get them all to fit in my Task Manager window....
![image](https://user-images.githubusercontent.com/8488326/75390891-bd32d380-58ae-11ea-80d5-00272c3be799.png)
Repository: pytorch
Issue: [jit] Returning different types with `Any` segfaults
Labels: oncall: jit,triaged

We should have a better error message here.

```python
@torch.jit.script
def x(a):
    # type: (Any) -> Any
    if isinstance(a, int):
        return a
    else:
        return 'b'

# printing the graph segfaults
print(x.graph)
```

cc @suo
Repository: rust
Issue: Type Inferencing of Type Parameters with Associated Types Is Incorrect
Labels: A-associated-items,T-compiler,A-inference,C-bug

Rust fails to properly infer types when there is a type parameter that implements are trait that contains associated types that have relationships between each other.

Suppose there are two structs `Wrapper1` and `Wrapper2` that each hold a type `I1` and `I2` respectively.
We want to express the relationship that `I2 : Deref<Target = I1>`
So there's a 2 ways to do this:

1.  define `Wrapper1` and `Wrapper2` with 2 types, `T1` and `T2` where `T2 : Deref<Target = T1>`
    e.g.
    https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=5c8869c7499b8cf628695b8b8a66ad40
   
2. define a type `WT` where `WT` has types `Inner1` and `Inner2` such that `Inner2 : Deref<Target = Self::Inner1>`.
    e.g.
    https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=892489013b67f5f8ef5de1e60dcdb1ef

However, in the second case, the compiler cannot infer types correctly for code to use the properties of the associated types `Inner2 : Deref<Target = Self::Inner1>`.

In the above code examples, `foo2` does not compile in 2.
It looks like the compiler is unable to infer the types correctly and apply the Deref, since for `foo1`, where we explicitly indicate the type, it compiles properly.

This ends up causing the Deref traits to not be always inferred properly by other users too.
Repository: flutter
Issue: [web]: Support for backend proxy
Labels: c: new feature,tool,platform-web,P3,team-web,triaged-web

On the _traditional_ web frameworks such as Angular, React, and Vue, they tend to provide a way to automatically proxy requests to the backend. For instance, [in Angular](https://github.com/angular/angular-cli/blob/master/docs/documentation/stories/proxy.md), simply providing a `proxy.conf.json` does the trick. All 3 seem to achieve this using an express server with a [proxy middleware](https://github.com/chimurai/http-proxy-middleware).

As of the moment, the flutter docs seem to hint that the only way is to [allow CORS on the server-side](https://flutter.dev/docs/development/platform-integration/web#implementing-cors). While this is doable, it still is not as pretty as it requires you to put a CORS-during-dev condition on the server.

Is this feature on the roadmap for the stable release? 

```
$ flutter --version
Flutter 1.14.6 • channel beta • https://github.com/flutter/flutter
Framework • revision fabeb2a16f (4 weeks ago) • 2020-01-28 07:56:51 -0800
Engine • revision c4229bfbba
Tools • Dart 2.8.0 (build 2.8.0-dev.5.0 fc3af737c7)
```

---
P.S.: I'm also interested in contributing to flutter, so if the team sees this fit to be prioritized, please guide me accordingly!
Repository: pytorch
Issue: Unclear output for Pytorch Profiler
Labels: module: docs,module: autograd,triaged

## 📚 Documentation on PyTorch Profiler

<!-- A clear and concise description of what content in https://pytorch.org/docs is an issue. If this has to do with the general https://pytorch.org website, please file an issue at https://github.com/pytorch/pytorch.github.io/issues/new/choose instead. If this has to do with https://pytorch.org/tutorials, please file an issue at https://github.com/pytorch/tutorials/issues/new -->

I don't fully understand the output of [PyTorch Profiler](https://pytorch.org/docs/stable/autograd.html#torch.autograd.profiler.profile) after using `torch.autograd.profiler` (combined with `torch.autograd.profiler.record_function` for labeling). To be specifically, the output of `prof.key_averages().table(sort_by="cuda_time_total")` gets the following table:

| Name | Self CPU total % | Self CPU total | CPU total % | CPU total | CPU time avg | CUDA total % | CUDA total | CUDA time avg | Number of Calls |
| ---- | ---------------- | -------------- | ----------- | --------- | ------------ | ------------ | ---------- | ------------- | --------------- |
|      |                  |                |             |           |              |              |            |               |                 |

It seems the document doesn't explain much for the clear meanings of each item. To be concretely, I will very appreciate if the document can provide answers to the following questions:

1. What's the meaning and the difference of `Self CPU total` and `CPU total`
2. Is the `CUDA total` purely the execution time for the cuda code? Or it also includes time of kernel launching, kernel queueing in GPU? 
3. How can I understand the `CPU total` for operations which are executed on GPU, e.g., model forwarding and backwarding. Since these operations are done in GPU, but I still find even unneglectable time cost spent by CPU.


cc @ezyang @SsnL @albanD @zou3519 @gqchen
Repository: pytorch
Issue: Possibility to support int4 data type
Labels: feature,triaged

There are two motivations. First, the low precision inference is becoming popular, int4 could make full advantage of latest NV GPUs. Second, we are doing some quantum simulation stuff based on PyTorch, int4 based on NV GPUs will significantly improve the simulation speed in our framework.
Repository: pytorch
Issue: Memory leak in embedding layer and LSTM
Labels: module: memory usage,triaged

## 🐛 Bug

Memory leaks when forwarding embedding layer and LSTM.

## To Reproduce


Run this code,
The memory usage doesn't increase every iteration, but it increases over time.
```
import os, torch, gc

length=100
vocab_size = 50
hidden_size=512
vocab_id = 10       # randomly chosen between 0-49

text_lengths = [length]
enc_input = torch.LongTensor([vocab_id for _ in range(length)]).view(1, -1)

embedding = torch.nn.Embedding(vocab_size, hidden_size)
LSTM = torch.nn.LSTM(input_size=hidden_size, hidden_size=hidden_size // 2, num_layers=1, batch_first=True, bidirectional=True)

pid = os.getpid()
count = 0
prev_mem = 0
with torch.no_grad():
    while True:
        output = embedding(enc_input)
        output = torch.nn.utils.rnn.pack_padded_sequence(output, text_lengths, True, enforce_sorted=False)
        output, _ = LSTM(output)
        output, _ = torch.nn.utils.rnn.pad_packed_sequence(output, True)  # NxTx2H

        if count % 500 == 0:
            gc.collect()
            cur_mem = (int(open('/proc/%s/statm' % pid, 'r').read().split()[1]) + 0.0) / 256
            add_mem = cur_mem - prev_mem
            prev_mem = cur_mem
            print("     train iterations: %s, added mem: %sM, curr mem: %sM" % (count, add_mem, cur_mem))
        count += 1
        
```
Output of the code:
```
     train iterations: 0, added mem: 183.74609375M, curr mem: 183.74609375M
     train iterations: 500, added mem: 9.54296875M, curr mem: 193.2890625M
     train iterations: 1000, added mem: 0.48828125M, curr mem: 193.77734375M
     train iterations: 1500, added mem: 3.265625M, curr mem: 197.04296875M
     train iterations: 2000, added mem: 0.3984375M, curr mem: 197.44140625M
     train iterations: 2500, added mem: 0.98046875M, curr mem: 198.421875M
     train iterations: 3000, added mem: 2.7890625M, curr mem: 201.2109375M
     train iterations: 3500, added mem: 0.078125M, curr mem: 201.2890625M
     train iterations: 4000, added mem: 0.9140625M, curr mem: 202.203125M
     train iterations: 4500, added mem: 0.49609375M, curr mem: 202.69921875M
     train iterations: 5000, added mem: 0.7890625M, curr mem: 203.48828125M
```

## Expected behavior
Memory usage should not be increased.

## Environment
 - PyTorch Version (e.g., 1.0): 1.4.0
 - OS (e.g., Linux): 16.04.5 LTS
 - How you installed PyTorch (`conda`, `pip`, source): conda
 - Build command you used (if compiling from source):
 - Python version: 3.6.8
 - CUDA/cuDNN version: not used
 - GPU models and configuration: not used
 - Any other relevant information:
Repository: go
Issue: runtime: "found bad pointer in Go heap" on solaris-amd64-oraclerel builder
Labels: OS-Solaris,NeedsInvestigation,compiler/runtime

[2020-02-26T23:27:55-12cd55c/solaris-amd64-oraclerel](https://build.golang.org/log/8947081013c049c51c44c087e33b8a7fdeaed2b5)

```
##### ../doc/codewalk
runtime: pointer 0xc00033c002 to unallocated span span.base()=0xc00033c000 span.limit=0xc00033dee0 span.state=0
runtime: found in object at *(0xc000230000+0x0)
object=0xc000230000 s.base()=0xc000230000 s.limit=0xc000232000 s.spanclass=10 s.elemsize=64 s.state=mSpanInUse
 *(object+0) = 0xc00033c002 <==
 *(object+8) = 0x9
 *(object+16) = 0xc00033c00e
 *(object+24) = 0x10
 *(object+32) = 0xc00033c021
 *(object+40) = 0xb
 *(object+48) = 0xc00033c02f
 *(object+56) = 0xc
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)
```

The `doc/codewalk` test is pretty simple (no `unsafe` or cgo and only a little concurrency), so I suspect this is a runtime or platform bug.

Compare #35541, #32324, #28054.

CC @mknyszek, @cherrymui @aclements
Repository: neovim
Issue: shada write error does not show up necessarily / should re-use temp files
Labels: bug,editor-state

I've noticed that Neovim stopped writing the ShaDa file, and when running `:wshada` it showed:

> E138: All /home/user/.local/share/nvim/shada/main.shada.tmp.X files exist, cannot write ShaDa file!

The error message is a bit confusing, and does not show up with `:h E138` (https://github.com/neovim/neovim/commit/492f2cfeff9a8ed295d2cbf3f4197a91654e07ca?#commitcomment-37510589), but looking at the file system showed this:

```
-rw------- 1 user user 1.5K Jul 20  2017 /home/user/.local/share/nvim/shada/main.shada.tmp.a
…
-rw------- 1 user user    0 Feb 25 18:58 /home/user/.local/share/nvim/shada/main.shada.tmp.z
```

I.e. tempfiles with `[a-z]` in the end do exist already.

1. I think Neovim should clean out old tempfiles here automatically, i.e. start again using `a` if `z` is used already - especially when they are that old already.

2. There should be an error about this during shutdown always.
I see it with `nvim -u NONE` on `:q`, but with `nvim -u NORC` it only flashes up, but does not wait for ENTER.  So some default plugin appears to make a difference there.
(With my config it is not visible at all, but that might be due to lazyredraw or similar)

NVIM v0.5.0-398-g78ec95ce7-dirty
Repository: opencv
Issue: OpenCV and Flutter
Labels: feature,priority: low,platform: other

I've seen there is OpenCV support for Android and iOS. Are there any plans to support Flutter as development platform as well? If not, is it possible to use the OpenCV libraries in Flutter for both, Android and iOS?
Repository: pytorch
Issue: cuDNN batchnorm with non-contiguous running mean silently discards updates
Labels: module: cudnn,triaged

```
  if (use_cudnn && eps >= detail::getCUDAHooks().batchnormMinEpsilonCuDNN()) {
    return std::tuple_cat(
             at::cudnn_batch_norm(
               input.contiguous(input.suggest_memory_format()), weight.contiguous(),
               bias.contiguous(),
               running_mean.defined() ? running_mean.contiguous() : running_mean,
               running_var.defined() ? running_var.contiguous() : running_var,
               training, momentum, eps),
             std::make_tuple(1));
  }

```

This looks highly suspect. If running mean/var are not contiguous, then we will allocate a new tensor to make the contiguous, and thereby end up losing updates to the running mean/var entirely.

Discovered while looking into #13402

cc @csarofeen @ptrblck
Repository: PowerToys
Issue: [PowerRename] Bulk regex rename needs to include folders
Labels: Idea-Enhancement,Help Wanted,Product-PowerRename

I read that this utility would allow renaming multiple files with regular expressions. There was a checkbox to exclude folders, so I thought if I unchecked that it would _include_ folders. Apparently my expectation of "include folders" doesn't match how the utility works.

I have a lot of files in the form:

* `2019\02\05\foo.html`
* `2020\04\03\bar.html`

I want to rename them to the form:

* `@2019-02-05-foo.html`
* `@2020-04-03-bar.html`

I figured I would match some regex `(\d\d\d\d)\\(\d\d)\\(\d\d)\\(.+)\.html` and rename that to `@$1-$2-$3-$4.html`. It seemed straightforward to me. Looks like the utility can't handle it, though; apparently it only looks at the filename.

You might make this shortcoming explicit in the documentation.
Repository: PowerToys
Issue: Desktop Icon "Zones" with headers for organization (aka fences)
Labels: Idea-New PowerToy

# Summary of the new feature/enhancement
Some users want ta arange/group there icons on desktop. There are som tools to create group elements on the desktop. Would be nice to have this integrated into PowerToys that the user don't need another application.

# Proposed technical implementation details (optional)
The new PowerToy should show rectangles on desktop on which the user can arrange the icons. The position of icon and group elements should be saved over reboots. It would be nice too, if the the rectangles could be named and coloured. (If other poeple have more ideas for this feature please post them.)

A example what I mean is shown in this foto:
![image](https://user-images.githubusercontent.com/61519853/75457905-5cbe9780-597d-11ea-8bc1-8f475f53ebc5.png)
(Stardock Fences, https://www.stardock.com/products/fences/)
Repository: pytorch
Issue: Torchscript incompatible with torch.cat for tensor lists
Labels: oncall: jit,triaged

## 🐛 Bug

Torch.cat throws error for tensor lists when used within torchscript

## To Reproduce
Here is a minimal example to reproduce the bug
```
import torch
import torch.nn as nn

"""
Smallest working bug for torch.cat torchscript
"""


class Model(nn.Module):
    """dummy model for showing error"""

    def __init__(self):
        super(Model, self).__init__()
        pass

    def forward(self):
        a = torch.rand([6, 1, 12])
        b = torch.rand([6, 1, 12])
        out = torch.cat([a, b], axis=2)
        return out


if __name__ == '__main__':
    model = Model()
    print(model())  # works
    torch.jit.script(model)  # throws error
```
Steps to reproduce the behavior:

1. run the code shown above in a pytorch python env

This is the error message provided:

```
File "/home/anil/.conda/envs/rnn/lib/python3.7/site-packages/torch/jit/__init__.py", line 1423, in _create_methods_from_stubs
    self._c._create_methods(self, defs, rcbs, defaults)
RuntimeError: 
Arguments for call are not valid.
The following operator variants are available:
  
  aten::cat(Tensor[] tensors, int dim=0) -> (Tensor):
  Keyword argument axis unknown.
  
  aten::cat.out(Tensor[] tensors, int dim=0, *, Tensor(a!) out) -> (Tensor(a!)):
  Argument out not provided.

The original call is:
at smallest_working_bug_torch_cat_torchscript.py:19:14
    def forward(self):
        a = torch.rand([6, 1, 12])
        b = torch.rand([6, 1, 12])
        out = torch.cat([a, b], axis=2)
              ~~~~~~~~~ <--- HERE
        return out
```
## Expected behavior

torch.cat is expected to work seamlessly within torchscript if it works outside of it.

## Environment

PyTorch version: 1.3.1
Is debug build: No
CUDA used to build PyTorch: 10.1.243

OS: Ubuntu 18.04.4 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: version 3.15.5

Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: GeForce RTX 2080 Ti
Nvidia driver version: 440.59
cuDNN version: Could not collect

Versions of relevant libraries:
[pip] Could not collect
[conda] blas                      1.0                         mkl  
[conda] botorch                   0.2.1                    pypi_0    pypi
[conda] cuda100                   1.0                           0    pytorch
[conda] gpytorch                  1.0.1                    pypi_0    pypi
[conda] mkl                       2019.4                      243  
[conda] mkl-service               2.3.0            py37he904b0f_0  
[conda] mkl_fft                   1.0.14           py37ha843d7b_0  
[conda] mkl_random                1.1.0            py37hd6b4f25_0  
[conda] pytorch                   1.3.1           py3.7_cuda10.1.243_cudnn7.6.3_0    pytorch
[conda] torchvision               0.4.2                py37_cu101    pytorch


cc @suo
Repository: flutter
Issue: Inconsistency in BackdropFilter across web browsers
Labels: framework,a: quality,platform-web,e: web_html,has reproducible steps,browser: firefox,P3,found in release: 3.7,found in release: 3.10,team-web,triaged-web

The `BackdropFilter` has inconsistent behaviour/output across different web browsers.

## Steps to Reproduce
You can reproduce the issue with below code

```dart
String url =
    'https://flutter.dev/assets/flutter-lockup-c13da9c9303e26b8d5fc208d2a1fa20c1ef47eb021ecadf27046dea04c0cebf6.png';

void main() => runApp(
      MaterialApp(
        home: Scaffold(
          body: Center(
            child: Container(
              //to set the margin of the container
              margin: const EdgeInsets.all(20.0),
              width: 350,
              height: 300,
              decoration: BoxDecoration(
                image: DecorationImage(
                  image: NetworkImage(url),
                  fit: BoxFit.contain,
                ),
              ),
              child: BackdropFilter(
                filter: ImageFilter.blur(sigmaX: 2, sigmaY: 2),
                child: Container(
                  color: Colors.black.withOpacity(0),
                ),
              ),
            ),
          ),
        ),
      ),
    );

```
Chrome: Version 80.0.3987.122 (Official Build) (64-bit)

![Screenshot (88)](https://user-images.githubusercontent.com/34301187/75467745-1b94aa80-59b2-11ea-944f-94c75e38dac6.png)

Firefox: Version 73.0.1 (64-bit)


![Screenshot (87)](https://user-images.githubusercontent.com/34301187/75467870-4b43b280-59b2-11ea-9b7c-342df24c8e82.png)
Repository: flutter
Issue: Warn on `flutter build` if there's a newer hotfix available
Labels: tool,a: quality,customer: product,c: proposal,P3,team-tool,triaged-tool

## Use case

Our data shows that a sizable minority of stable channel installs aren't running the latest hotfix. As of 2/27, 20% of users are running the original `1.12.13+hotfix.5` release, even though it's nearly three months old; 2% are running the pulled `1.12.13+hotfix.6`, and 15% are running the `1.12.13+hotfix.7` release. (`1.12.13+hotfix.8` is the latest.) These older releases include known crashing bugs that will reduce stability of shipping apps. As a general principle, we'd strongly encourage developers on the stable channel to use the latest available hotfix for app store ingestion, to avoid them unwittingly pushing apps with higher crash rates to their customers.

Users may have been trained that "an upgrade means API breakages", and we could probably be intelligent about nudging them more strongly towards _hotfix updates_ (that only contain critical fixes).

## Proposal

There are a variety of things we could do here. One idea is to check on `flutter build` whether there's a later hotfix available, and if so provide a warning that a later hotfix is available. This would be similar to the warning when running `flutter build` on the `master` channel.

@tvolkert also suggested:

> We may also want to provide the facility in the tool to say "upgrade to pick up patch releases / hotfixes only"
Repository: pytorch
Issue: [jit] Python arg parser / TorchScript incompatibilities
Labels: oncall: jit,triaged

Certain parts of the Python arg parser aren't mirrored in the jit, for example

```python
a = torch.ones(2, 2)
b = torch.ones(2, 2)

def fn(a, b):
	torch.cat([a, b], axis=1)

fn(a, b)  # works
torch.jit.script(fn)  # fails
```

See https://discuss.pytorch.org/t/torch-cat-throws-error-for-tensor-list-when-compiling-with-torchscript/71317/2 for details.

cc @suo
Repository: flutter
Issue: TextSpan could use Tooltip support 
Labels: c: new feature,framework,good first issue,P3,team-framework,triaged-framework

It would be really useful to add tooltip property to a TextSpan so you can pass a tooltip to the particular part of the text
Repository: vscode
Issue: Diagnostic link hovers should show target
Labels: feature-request,error-list,languages-diagnostics

From https://github.com/microsoft/vscode/issues/11847

I know we have the trusted link infrastructure but I would like to see the target of a diagnostic code link if possible, would it be possible to show the link in the tooltip when I hover it?

I can't think of any other places where there is no way to tell where the link goes before clicking it and that makes me nervous about clicking it.
Repository: pytorch
Issue: Docs for uniform_ don't make any sense
Labels: module: distributions,triaged

It says `P(x) = 1/(to - from)` but this formula is only true for discrete types (also there needs to be a condition on x anyway)

cc @fritzo @neerajprad @alicanb @vishwakftw
Repository: godot
Issue: Vulkan: Editor hang when syncing bones to polygons in 2D IK
Labels: bug,topic:rendering,topic:editor

**Godot version:** master (947a6636f70ea5a051efd6e470147072f2bc7f13)

**OS/device including version:** mac OS 10.15.2

**Issue description:** Editor hangs when syncing bones to polygons in 2D IK. Seems to be stuck in infinite loop at `rasterizer_canvas_rd.cpp`:888

```
   at: _render_item (servers/visual/rasterizer_rd/rasterizer_canvas_rd.cpp:888)
2020-02-27 22:07:29.922442+0100 godot.osx.tools.64[31375:1025108] ERROR: Condition "!pb" is true. Continuing.
at: _render_item (servers/visual/rasterizer_rd/rasterizer_canvas_rd.cpp:888)
ERROR: Condition "!pb" is true. Continuing.
```

**Steps to reproduce:**
1. Open attached project
2. Open `Person` scene
3. Select ArmRR polygon
4. Open the `uv` dialog
5. Go to `Bones` and click `Sync Bones to Polygons`
6. Select the bone for the arm
7. Select the add influence icon (white circle) and start drawing over the polygon

**Minimal reproduction project:**
[ik2d.zip](https://github.com/godotengine/godot/files/4264088/ik2d.zip)