sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vue-element-admin
Issue: 第一次安装然后npm run dev 就报错了
Labels: not vue-element-admin bug

<!--
    注意：为更好的解决你的问题，请参考模板提供完整信息，准确描述问题，信息不全的 issue 将被关闭。

    Note: In order to better solve your problem, please refer to the template to provide complete information, accurately describe the problem, and the incomplete information issue will be closed.
-->
`> vue-element-admin@4.4.0 dev /mnt/d/h5/vue-element-admin
> vue-cli-service serve

 INFO  Starting development server...
98% after emitting CopyPlugin

 DONE  Compiled successfully in 18824ms                                                                                                                3:47:42 PM

  App running at:
  - Local:   http://localhost:9527/
  - Network: unavailable

  Note that the development build is not optimized.
  To create a production build, run npm run build.

events.js:287
      throw er; // Unhandled 'error' event
      ^

Error: spawn cmd.exe ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn cmd.exe',
  path: 'cmd.exe',
  spawnargs: [ '/c', 'start', '""', '/b', 'http://localhost:9527/' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-element-admin@4.4.0 dev: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-element-admin@4.4.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-06-24T07_47_42_933Z-debug.log`


## Bug report（问题描述）

#### Steps to reproduce（问题复现步骤）
<!--
1. [xxx]
2. [xxx]
3. [xxxx]
-->

#### Screenshot or Gif（截图或动态图）
![image](https://user-images.githubusercontent.com/12983928/85519875-bfc2f100-b634-11ea-893c-34c2e9b8160f.png)


#### Link to minimal reproduction（最小可在线还原demo）

<!--
Please only use Codepen, JSFiddle, CodeSandbox or a github repo
-->

#### Other relevant information（格外信息）
- Your OS: ubuntu
- Node.js version: v12.16.2
- vue-element-admin version:
Repository: pytorch
Issue: Mixed precision causes NaN loss
Labels: triaged,module: NaNs and Infs,module: amp (automated mixed precision)

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->
I'm using autocast with GradScaler to train on mixed precision. For small dataset, it works fine. But when I trained on bigger dataset, after few epochs (3-4), the loss turns to nan. 
It is seq2seq, transformer model, using Adam optimizer, cross entropy criterion.

Here is the training code:

```python
def get_correction(output, target):
    diff = torch.sum((output != target), axis=1)
    acc = torch.sum(diff == 0)
    return acc.item()

def train(model, data_loader, optimizer, criterion, device, scaler):
    clip = 1
    model.train()
    epoch_loss = 0
    total_correct = 0
    total_sample = 0

    for i, batch in enumerate(data_loader):
        optimizer.zero_grad()
        src, trg = batch
        src = src.to(device, non_blocking=True)
        trg = trg.to(device, non_blocking=True)

        with autocast():
            output, _ = model(src, trg[:, :-1])

            y_pred = torch.argmax(output, 2)
            y_true = trg[:, 1:]

            total_sample += y_true.shape[0]
            total_correct += get_correction(y_pred, y_true)

            output_dim = output.shape[-1]
            output = output.contiguous().view(-1, output_dim)
            trg = trg[:, 1:].contiguous().view(-1)

            loss = criterion(output, trg)
            epoch_loss += loss.item()

        scaler.scale(loss).backward()
        scaler.unscale_(optimizer)
        torch.nn.utils.clip_grad_norm_(model.parameters(), clip)
        scaler.step(optimizer)
        scaler.update()

    epoch_loss = epoch_loss / len(data_loader)
    acc = total_correct / total_sample

    return epoch_loss, acc
```
Note that the get_correction function is just for calculate the accuracy based on word level instead of character level. 

## Environment
 - PyTorch Version: 1.6.0.dev20200623
 - OS (e.g., Linux): Linux
 - How you installed PyTorch (`conda`, `pip`, source): conda
 - Build command you used (if compiling from source):
 - Python version: 3.7.5
 - CUDA/cuDNN version: 10.2
 - GPU models and configuration: RTX 2060 super


cc @mcarilli @ptrblck
Repository: youtube-dl
Issue: educative site support
Labels: site-support-request,duplicate

Hello,
Please can you add support for this children educative site lumni.fr. i can't dowload video from the following url :
https://www.lumni.fr/video/lutilisation-de-plusieurs-droites-graduees-24-juin#containerType=serie&containerSlug=la-maison-lumni-primaire
thanks. 
the verbose output of youtube-dl 
" sc@PC-IP02:~$ youtube-dl -v -F https://www.lumni.fr/video/lutilisation-de-plusieurs-droites-graduees-24-juin#containerType=serie&containerSlug=la-maison-lumni-primaire
[1] 26280
sc@PC-IP02:~$ [debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-F', u'https://www.lumni.fr/video/lutilisation-de-plusieurs-droites-graduees-24-juin#containerType=serie']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.06.16.1
[debug] Python version 2.7.17 (CPython) - Linux-5.3.0-59-generic-x86_64-with-neon-18.04-bionic
[debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[generic] lutilisation-de-plusieurs-droites-graduees-24-juin#containerType=serie: Requesting header
WARNING: Falling back on generic information extractor.
[generic] lutilisation-de-plusieurs-droites-graduees-24-juin#containerType=serie: Downloading webpage
[generic] lutilisation-de-plusieurs-droites-graduees-24-juin#containerType=serie: Extracting information
ERROR: Unsupported URL: https://www.lumni.fr/video/lutilisation-de-plusieurs-droites-graduees-24-juin#containerType=serie
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2387, in _real_extract
    doc = compat_etree_fromstring(webpage.encode('utf-8'))
  File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2562, in compat_etree_fromstring
    doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
  File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2551, in _XML
    parser.feed(text)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1659, in feed
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1523, in _raiseerror
    raise err
ParseError: not well-formed (invalid token): line 1, column 622
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 3382, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: https://www.lumni.fr/video/lutilisation-de-plusieurs-droites-graduees-24-juin#containerType=serie
"
Repository: PowerToys
Issue: Task Switcher vim navigation shortcuts
Labels: Idea-New PowerToy

# Summary of the new feature/enhancement
When having your hands on the keyboard and pressing Alt-Tab to switch windows, it is a bit inconvenient to reach for the arrow keys to navigate the windows open. It would be very cool that we could use HJKL (vim style) navigation keys to move arround the currently open windows.
<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->

# Proposed technical implementation details (optional)
When Task Switcher is open (Alt-Tab) `H` remaps to left arrow, `J` remaps to down arrow, `K` remaps to up arrow and `L` remaps to right arrow.
<!-- 
A clear and concise description of what you want to happen.
-->
Repository: pytorch
Issue: Not able to launch tensorboard using pytorch 
Labels: module: tensorboard,oncall: visualization

I have installed tensorboard (pip install tensoboard)
but while launching it I am getting below error

folder_path_for_runs> tensorboard --logdir=runs
Traceback (most recent call last):
  File "c:\users\srava\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\srava\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\srava\Anaconda3\Scripts\tensorboard.exe\__main__.py", line 5, in <module>
  File "c:\users\srava\anaconda3\lib\site-packages\tensorboard\main.py", line 43, in <module>
    from tensorboard import default
  File "c:\users\srava\anaconda3\lib\site-packages\tensorboard\default.py", line 39, in <module>
    from tensorboard.plugins.audio import audio_plugin
  File "c:\users\srava\anaconda3\lib\site-packages\tensorboard\plugins\audio\audio_plugin.py", line 26, in <module>
    from tensorboard import plugin_util
  File "c:\users\srava\anaconda3\lib\site-packages\tensorboard\plugin_util.py", line 27, in <module>
    import markdown
  File "c:\users\srava\anaconda3\lib\site-packages\markdown\__init__.py", line 29, in <module>
    from .core import Markdown, markdown, markdownFromFile  # noqa: E402
  File "c:\users\srava\anaconda3\lib\site-packages\markdown\core.py", line 26, in <module>
    from . import util
  File "c:\users\srava\anaconda3\lib\site-packages\markdown\util.py", line 85, in <module>
    INSTALLED_EXTENSIONS = metadata.entry_points().get('markdown.extensions', ())
TypeError: entry_points() missing 1 required positional argument: 'name'


i am using pytroch 1.5.0+cu101
Repository: flutter
Issue: Android: Sharing Flutter Engine between foreground and background isolates
Labels: c: new feature,platform-android,engine,c: proposal,customer: vroom,P2,team-android,triaged-android

## Use case
We want to start the app based on a background trigger on Android.

We have a long running _foreground service_ which is started based on the Bluetooth connection state. Since the service can be started when the app is not running, the service needs to get the information from the Flutter (e.g. access token and refresh token).

We want to start an isolate (from the foreground service) which can be later associated with the main app view in order to prevent multiple instance creations (e.g. authentication, access to the file system, external libs, etc). Currently we are able to start two different isolates (foreground and background) but there are synchronisation issues between those two. Also, when the app is then put to background we want to keep the isolate running in a foreground service.

For example:
- Bluetooth broadcast is received
- We start the background service (Android native) and instantiate the Dart isolate
- User starts the app
- UI isolate is started

We tried to kill the background isolate as soon the app is started but this causes other issues.

There is also this Meta issue that seems related: https://github.com/flutter/flutter/issues/32164

## Proposal
If we could use the isolate which is created in the background as the main Flutter instance as soon as the app is started would solve our issue.
Repository: godot
Issue: Game randomly crashing about 2 times per hour when exported to HTML5 (wasm Uncaught RuntimeError)
Labels: bug,platform:web,topic:core,crash

**Godot version:**
3.2.1.stable

**OS/device including version:**
Nvidia GeForce GTX 1060 6GB (driver version 26.21.14.4141), Backend GLES2
Vivaldi 3.1.1929.34

**Issue description:**
When playing the game in the browser (HTML5 export) the game randomly crashes about every 30 minutes. I cannot make out why, but I caught 2 error messages in the console.
I already migrated to GLES2 (from GLES3), changed Particles to CPUParticles and my shaders dont use more complex funtions than sin() or cos().

![crash1](https://user-images.githubusercontent.com/43473525/85558067-afa51480-b628-11ea-8fa4-fa0219377a50.png)
![crash2](https://user-images.githubusercontent.com/43473525/85558074-b2a00500-b628-11ea-8113-8c2da8fab454.png)

**Steps to reproduce:**
Sorry, I have no idea, they seem to happen randomly. Although I have the theory that it might happen when queue_free() gets called on objects, but I am not sure.

**Minimal reproduction project:**
Sorry again, the game is basically done and I would have released it already if it weren't for this issue, and I can't reproduce it either.
Repository: godot
Issue: Texture added to Tilemap does not persist after the saved project has reloaded
Labels: discussion,topic:editor,usability

**Godot version:**
3.2.1 on Windows 10, 64-bit Standard Build


**OS/device including version:**
Windows 10 Build 2004

**Issue description:**
Texture added to a Tilemap after saving a project and reloading the editor does not persist.
Added textures to a tilemap should persist after reloading the editor (on saved projects).


**Steps to reproduce:**
1) Create a new project and scene
2) Add a Tilemap and edit the tilemap.
3) Add a Texture to the Tilemap
4) Select the main scene and save the project and then exit.
5) Reload the editor
6) Edit the same tilemap again and you will notice the texture has not loaded.

**Minimal reproduction project:**
[Tileset4.zip](https://github.com/godotengine/godot/files/4825436/Tileset4.zip)

Video of error:
https://youtu.be/scKDVqVhbWE
Repository: terminal
Issue: Bring "Open in Windows Terminal" for Right Click on Drive Letter
Labels: Help Wanted,Issue-Bug,Product-Terminal,Priority-2,Area-ShellExtension

# Description of the new feature/enhancement

Bring "Open in Windows Terminal" for right click on drive letter. In Windows Terminal 1.1.1671.0 I am able to do this on a folder but it does not work on a drive letter.
Repository: go
Issue: go/doc,x/pkgsite: rethink order for factory functions
Labels: NeedsInvestigation,pkgsite,pkgsite/dochtml

For my package: https://godoc.org/github.com/rocketlaunchr/dataframe-go/forecast

I have a function:
`func Forecast(ctx context.Context, sdf interface{}, r *dataframe.Range, alg ForecastingAlgorithm, cfg interface{}, n uint, evalFunc EvaluationFunc) (interface{}, []Confidence, float64, error)` which returns an `interface{}` as the first return value.


![image](https://user-images.githubusercontent.com/5377970/85564207-67f6ab00-b671-11ea-9a88-0b1063051ce8.png)


Unfortunately my function is categorized under `type Confidence` when it should not be.

I assume this issue would also be present in `pkg.go.dev`, but my package has been banned from there (despite the person in charge saying it will be allowed many many months ago), so I can't check if this issue persists.
Repository: svelte
Issue: bind:checked with bind:indeterminate erroneously updates checked state to false
Labels: stale-bot,temp-stale

**Describe the bug**
using `bind:checked` and `bind:indeterminate` together erroneously updates the checked value

**To Reproduce**
Use something like `<input type="checked" bind:checked bind:indeterminate>`
Ensure the initial value of `checked` is `undefined` and the initial value of `indeterminate` is true.
Note that the value of `checked` is immediately updated to `false` when run.

See: https://svelte.dev/repl/77d2ac1cf3764fbaa5d92640d7c45f13?version=3.23.2

**Expected behavior**
Bound `checked` value should only be updated when checked or unchecked.
In the given examples, the objective is for `indeterminate` to be `true` if `checked` is `undefined`.

**Severity**
Medium/High. I'm not sure of a workaround but indeterminate checkboxes are themselves an edge case.
Repository: go
Issue: path/filepath: EvalSymlinks fails to follow symlink when root entry is a symlink
Labels: NeedsInvestigation

## What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.13.6 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="auto"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/mildred/.cache/go-build"
GOENV="/home/mildred/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/mildred/Projects/go"
GOPRIVATE=""
GOPROXY="direct"
GOROOT="/usr/lib/golang"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/mildred/Projects/terraform/test-bug-1/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-build280616979=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

I found a bug in terraform: https://github.com/hashicorp/terraform/issues/25367 and tracked it down to the go runtime

Reproducer:

```go
package main

import (
  "path/filepath"
  "fmt"
  "syscall"
  "os"
)

func main(){
  os.Mkdir("origin", 0777)
  os.Mkdir("origin/var", 0777)
  os.Mkdir("origin/var/home", 0777)
  os.Mkdir("origin/var/home/foo", 0777)
  os.Symlink("var/home", "origin/home")
  os.Symlink("/home/foo", "origin/home/bar")
  os.Chdir("origin")
  syscall.Chroot(".")
  os.Chdir("home")
  fmt.Println(filepath.EvalSymlinks("bar"))
}
```

Reproduce by compiling this example and running it:

```
go build -o test-bug .
sudo ./test-bug
sudo strace -e trace=newfstatat,readlinkat ./test-bug
```
(you need to be root for chroot to work, it works well in a fedora-toolbox container with a user namespace root)

### What did you expect to see?

`filepath.EvalSymlinks` should follow symlink `home -> var/home` in `origin`

### What did you see instead?

`filepath.EvalSymlinks` fails to follow the symlink and errors out with `lstat var: no such file or directory`
Repository: rust
Issue: Break the infinite loop in declarative macros
Labels: A-macros,T-compiler,C-bug

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```rust
macro_rules! run {
    ($($expr:tt)*) => {
        run!($($expr),*; echo = true)
    };
    ($($expr:tt)* ; echo = $echo:expr) => { };
}

fn main() {
    run!("bruh")
}

```

I expected to see this happen: `rustc` should report the infinite loop or at least time out and crash.

Instead, this happened: rustc started eating all my RAM constantly pushing  one of my CPU cores to 100%. At some point `rustc` eats all the RAM and I my laptop freezes so I have to literally power it off.

This happened to me when using `rust-analyzer`, which runs `cargo check` each time. And having saved the file with this unfinished snippet of code I found that my laptop starts freezing and `cargo check` process never ends.

### Meta
`rustc --version --verbose`:
```
rustc 1.44.0 (49cae5576 2020-06-01)
binary: rustc
commit-hash: 49cae55760da0a43428eba73abcb659bb70cf2e4
commit-date: 2020-06-01
host: x86_64-unknown-linux-gnu
release: 1.44.0
LLVM version: 9.0
```
Repository: pytorch
Issue: SyncBatchNorm for JIT and a list of not supported operations
Labels: oncall: jit,triaged,enhancement

## 🚀 Feature
Make SyncBatchNorm support by JIT. Besides, is it possible to mark if it is JIT-supported in each API document?

## Motivation

`Detectron2`, a widely used detection framework uses `SyncBatchNorm`, but it is difficult to convert it to JIT. Reference this [issue](https://github.com/facebookresearch/detectron2/issues/46). I noticed that a list of [unsupported operations](https://pytorch.org/docs/stable/jit_unsupported.html#jit-unsupported) in JIT is provided, but I could not find `SyncBatchNorm` there.

## Pitch

SyncBatchNorm is supported by JIT. If possible, JIT-supported can be marked in API.



cc @suo @gmagogsfm
Repository: go
Issue: x/pkgsite: self hosting - tracking issue
Labels: NeedsInvestigation,FeatureRequest,pkgsite

This is an umbrella issue that tracks all the possible blockers for having users self host the pkgsite codebase.

### Issues: 

- [x] Make LICENSE detection optional in pkgsite codebase: https://github.com/golang/go/issues/39602
- [ ] Write self-hosting specific documentation: i.e. deployment steps, things to be aware of, etc. 
    - [ ] Local quickstart docs. Running a local pkgsite with the bare minimum should be easy for any experienced Go developer.
    - [ ] Clarification of what features/requirements are needed or can be switched off for a local setup, e.g. GOPROXY or a search "engine".
- [ ] https://github.com/golang/go/issues/48603
- [ ] Using a custom HTTPS proxy for the private git repositories.
- [ ] Using a proxy that acts as a gateway to the internet.
- [ ] https://github.com/golang/go/issues/55106


Please feel free to edit this issue to add/remove issues above.
Repository: rust
Issue: Using `-Z macro-backtrace` breaks 'unreachable statement' with macro call
Labels: A-diagnostics,A-macros,T-compiler,C-bug,requires-nightly

The following code:


```rust
fn main() {
    panic!("{}", 25);
    return ();
}
```

prints the following warning on nightly:

```
warning: unreachable statement
 --> panic_unreachable.rs:3:5
  |
2 |     panic!("{}", 25);
  |     ----------------- any code following this expression is unreachable
3 |     return ();
  |     ^^^^^^^^^^ unreachable statement
  |
  = note: `#[warn(unreachable_code)]` on by default
```

However, with `-Z macro-backtrace`, this warning is printed:

```
warning: unreachable statement
  --> panic_unreachable.rs:3:5
   |
3  |     return ();
   |     ^^^^^^^^^^ unreachable statement
   | 
  ::: /home/aaron/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/macros.rs:16:9
   |
16 |         $crate::rt::begin_panic_fmt(&$crate::format_args!($fmt, $($arg)+))
   |         ------------------------------------------------------------------ any code following this expression is unreachable
   |
   = note: `#[warn(unreachable_code)]` on by default

```

The original `panic!` call isn't even shown, making the "any code following this expression is unreachable" almost useless.