sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: create-react-app
Issue: npm start isssue
Labels: stale

events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: spawn powershell 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 powershell',
Starting the development server...

events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: spawn powershell 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 powershell',
  path: 'powershell',
  spawnargs: [
    '-NoProfile',
    '-NonInteractive',
    '–ExecutionPolicy',
    'Bypass',
    '-EncodedCommand',
    'UwB0AGEAcgB0ACAAIgBgACIAaAB0AHQAcAA6AC8ALwBsAG8AYwBhAGwAaABvAHMAdAA6ADMAMAAwADAAYAAiACIA'
  ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-app@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-app@0.1.0 start 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!     C:\Users\hp\AppData\Roaming\npm-cache\_logs\2020-09-27T04_07_57_349Z-debug.log

hp@DESKTOP-SJ8995K MINGW64 ~/my-app (master)
$
Repository: godot
Issue: Unable to start HTTP server when using VSCode as external editor
Labels: bug,platform:web,topic:editor,topic:porting

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
3.2.3 stable


**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Windows 10 64 bit. GLES2 project. Old gpu without vulkan

**Issue description:**
<!-- What happened, and what was expected. -->
There was a weird behavior I met in my machine

I have add HTML5 export into my project and could build it properly

But if I put autoload singleton Node script into my project

![image](https://user-images.githubusercontent.com/1042507/94359898-fa28a800-00d3-11eb-8c63-44b160109f02.png)

And double click a script from godot, to have godot open vscode for me

![image](https://user-images.githubusercontent.com/1042507/94359589-85a13980-00d2-11eb-9a85-5892552c489a.png)

It seem completely normal but while the project folder was opened in vscode, godot won't be able to start a HTTP server

![image](https://user-images.githubusercontent.com/1042507/94359707-06f8cc00-00d3-11eb-8532-5e3489595474.png)
![image](https://user-images.githubusercontent.com/1042507/94359719-0fe99d80-00d3-11eb-9c46-e23a4efca7c8.png)

Closing vscode then allow me to open HTML export again

I felt that when godot open vscode. It try to bind http port on the vscode process. And it cause godot own http client to be disrupted? But I don't know why it only happen only with autoload script

**Steps to reproduce:**
As explained in description

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->

[TT.zip](https://github.com/godotengine/godot/files/5287919/TT.zip)

This below is the log I copy from my project

```
 core/image.cpp:1894 - Loaded resource as image file, this will not work on export: 'res://icon.png'. Instead, import the image file as an Image resource and load it normally as a resource.
 Unable to start HTTP server.
```
Repository: node
Issue: `vm.compileFunction(source)` is much slower than `new vm.Script(source)`
Labels: vm,performance

<!--
Thank you for reporting an issue.

This issue tracker is for bugs and issues found within Node.js core.
If you require more general support please file an issue on our help
repo. https://github.com/nodejs/help


Please fill in as much of the template below as you're able.

Version: output of `node -v`
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
Subsystem: if known, please specify affected core module name
-->

* **Version**: `v14.12.0`
* **Platform**: `Darwin Simens-MacBook-Pro.local 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64`
* **Subsystem**: `vm`

### What steps will reproduce the bug?

See https://github.com/SimenB/vm-script-vs-compile-function and run `node index.js`.

It's just `yarn init -2` to fetch the bundled yarn v2 source code (to have a large JS file), then loading that into `new Script` and `compileFunction` 100 times and seeing how long it takes.

Running this prints the following on my machine (MBP 2018):

```
Running with Script took 50 ms
Running with compileFunction took 4041 ms
```

<!--
Enter details about your bug, preferably a simple code snippet that can be
run using `node` directly without installing third-party dependencies.
-->

### How often does it reproduce? Is there a required condition?

Every time

### What is the expected behavior?

It should be comparably fast to pass source code into `compileFunction` as it is to pass it into `new Script`.

### What do you see instead?

About 80x worse performance. It gets worse the larger the loop is, so I'm assuming it's "simply" some cached data so `new Script` avoids the hit of parsing the same code multiple times, as it's fairly constant regardless of loop iterations

<!--
If possible please provide textual output instead of screenshots.
-->

### Additional information

This might be the same as #26229.

As mentioned in https://github.com/nodejs/node/issues/26229#issuecomment-674385686 we see a huge performance improvement in Jest if we switch from `compileFunction` to the "old" `new Script` approach. As also mentioned there, this might be "fixed" (or at least possible to solve in userland) by the seemingly stalled #24069?

<!--
Tell us anything else you think we should know.
-->
Repository: flutter
Issue: Detect cases where pub version solving fails on flutter tools, suggest reinstall or rm bin/cache
Labels: tool,platform-windows,P2,team-tool,triaged-tool

## After a Flutter upgrade attempt flutter_tools is stuck in a loop

I tried a Flutter upgrade on master channel on a Flutter Windows 10 install, after that all I get is this after any Flutter command:

```
The current Dart SDK version is 2.10.0-4.0.dev.flutter-20bf2fcf56.

Because flutter_tools depends on collection >=1.15.0-nnbd <1.15.0-nullsafety.2 which requires SDK version >=2.9.0-18.0   
  <=2.9.10, version solving failed.
Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)

Waiting for 0 seconds, press CTRL+C to quit ...
Running pub upgrade...
The current Dart SDK version is 2.10.0-4.0.dev.flutter-20bf2fcf56.

Because flutter_tools depends on collection >=1.15.0-nnbd <1.15.0-nullsafety.2 which requires SDK version >=2.9.0-18.0   
  <=2.9.10, version solving failed.
Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (8 tries left)

Waiting for 0 seconds, press CTRL+C to quit ...
Running pub upgrade...
The current Dart SDK version is 2.10.0-4.0.dev.flutter-20bf2fcf56.

Because flutter_tools depends on collection >=1.15.0-nnbd <1.15.0-nullsafety.2 which requires SDK version >=2.9.0-18.0   
  <=2.9.10, version solving failed.
Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (7 tries left)


```

When it reaches "0" it just starts over again.
I can terminate with CTRL+C, but any Flutter command will just re-trigger it.

So basically the Flutter install seems broken? Is there any way to fix this? Without a delete and re-install?
Sorry cannot attach any logs of flutter doctor, as all I can get is the above output from anything.
Repository: rust
Issue: Help messages could include required `use` line.
Labels: C-enhancement,A-diagnostics,P-low,T-compiler,A-suggestion-diagnostics

_{This specific case originates from the following issue & comment: https://github.com/rust-lang/rust/issues/47168#issuecomment-699176014 }_

[Playground link](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=172efba811b18e197937c5cd40a01ce1)
**I tried this code:**

```rust
test(array.len());
```

**I expected to see this happen:**

```
error[E0308]: mismatched types
 --> src/main.rs:3:10
  |
3 |     test(array.len());
  |          ^^^^^^^^^^^ expected u32, found usize
help: you can convert an `usize` to `u32` or panic if it the converted value wouldn't fit
  |
3 |     use std::convert::TryInto;
4 |     test(array.len().try_into().unwrap());
  |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```

(Or similar.)

i.e. An error message that includes the required `use` line necessary for the suggestion to compile.

**Instead, this happened:**

```
error[E0308]: mismatched types
 --> src/main.rs:3:10
  |
3 |     test(array.len());
  |          ^^^^^^^^^^^ expected u32, found usize
help: you can convert an `usize` to `u32` or panic if it the converted value wouldn't fit
  |
3 |     test(array.len().try_into().unwrap());
  |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```

(Which would be fine _if_ there is a pre-existing `use std::convert::TryInto;`.)

This meant that--after applying the suggested fix--when compiling I got another error relating to the suggested code:

```
error[E0599]: no method named `try_into` found for type `usize` in the current scope
 --> src/main.rs:3:22
  |
3 |     test(array.len().try_into().unwrap());
  |                      ^^^^^^^^
  |
  = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope, perhaps add a `use` for it:
  |
1 | use std::convert::TryInto;
```

This was surprising to me because I thought the compiler diagnostics were magic & infallible . :D

_Note: Example code & messages were copy & pasted from original issue._
Repository: go
Issue: x/sys/unix: want more platform support for UNIX domain socket peer credentials
Labels: help wanted,NeedsInvestigation,compiler/runtime

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
PS C:\Users\garre> go version
go version go1.14.4 windows/amd64
</pre>

(Although I use many different versions of Go on illumos, Linux, darwin, etc.)

### 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

</pre></details>

### Feature request

As this is a feature request, I'm not including typical bug report details.

What I'd like is a way for us to obtain peer credentials more broadly.  I am most interested in illumos/solaris (which uses getpeerucred() in libc, but I see this being useful for Darwin, FreeBSD, and possibly others.

With Linux we can do GetsockoptUcred with SO_PEERCRED.  Which is great.  I would like to have a similar way to do this for other platforms (platform specific probably) without having to resort to cgo if possible.
Repository: pytorch
Issue: Load ExtraFilesMap with Java library 
Labels: triaged,enhancement,oncall: java

##  Feature

When saving a trained model, extra information can be added in Python or C++ using an ExtraFilesMap object. In Python this extra metadata can be extracted from a saved model e.g. via

extra_files = torch._C.ExtraFilesMap()
model = torch.jit.load(filepath_model, _extra_files=extra_files)
dataOptsStr = extra_files['dataOpts']

In Java a trained model can be loaded using...

Module mod = Module.load(modelPath);

However, there does not appear to be any method to extract the ExtraFileMap information? I've spent a long time trying to find a solution with no luck.

## Motivation

The java bindings for Pytorch are great - they allow deep learning models to be deployed in Java which is very useful for a variety of applications. A typical use case will be for a model to be trained in Python and then deployed in a Java application; the extra file information vital for this. For example, we wish to use acoustic classifiers to detect bats. An acoustic classification model will have been trained on a particular set of species, sample rates and use different signal processing methods to extract relevant features. An end user of the model must know this information to allow a model to run effectively with new acoustic data. If this associated model metadata can be stored in an extra-file-info object within a model, then trained models can be shared and deployed as one file without the need for additional xml files etc, making the whole process of sharing models more streamlined and efficient. 

## Pitch

Because this functionality exist is in C++ it should be easy to import into Java using the current JNI? Could this be incorporate into the Java library for subsequent releases? If this is possible with the current library then it appears to be well hidden. An additional  Module.load function could be added to allow easy extraction of the ExtraFilesMap object?
Repository: deno
Issue: Request: SharedWorkers in Deno
Labels: cli,suggestion

Is it planned that Deno support SharedWorkers and / or ServerWorkers at some point?

I don't see the use for ServiceWorkers in Deno, but SharedWorkers are useful for multi-threaded code that uses normal workers, as they allow access to the same worker via ports.
Repository: godot
Issue: "Internal Script Error! - opcode #0 (report please)" when saving a script while a Timer is running in the project (due to live script reloading)
Labels: bug,topic:gdscript,confirmed

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

error description in debugger:
E 0:01:39.393   call: Condition ' (ip + 5) > _code_size ' is true. Breaking..:
  <C++ Source>  modules/gdscript/gdscript_function.cpp:447 @ call()
  <Stack Trace> inimigo_ranged_1.gd:30 @ _on_cadencia_tiro_timeout()


**Godot version:**
3.2.1 stable_win64

**OS/device including version:**
MX150, GLES2


**Issue description:**
idk, im working in other script when my game simply crashed...


**Steps to reproduce:**
idk


**Minimal reproduction project:**
i will send a .txt with script that crashed (ps. im brazilian, almost whole the words of my variables and functions are in pt-br)

```gdscript
extends KinematicBody2D

var alvo = self #self apenas para n ficar Null e poder dar algum erro
var velocidade = 75 #velocidade com q o inimigo se movimenta
var pode_atirar = true #cadenciador de ataques
var cadencia_ataques = 2.0 #tempo entre cada ataque
export var dano = 10 #dano infligido por esse inimigo
var pre_projetil = preload("res://scenes/projeteis/projetil_inmigo_ranged_1.tscn")

signal morreu


func _ready():
	$"hit_box/CollisionShape2D".disabled = false #ativa a hitbox do inimigo


func _process(delta):
	alvo = self.get_parent().get_node("player") #pega o jogador como alvo
	if (alvo.global_position - self.global_position).length() >= 600: #distancia entre o jogador e o inimigo
		movimento_avanco() #avanca pra cima do jogador
	else:
		tiro() #atira no jogador


func movimento_avanco():
	var direcao_player = (alvo.global_position - self.global_position).normalized()
	move_and_slide(direcao_player * velocidade)


func tiro():
	#it was in this function that the error occurred...
	if pode_atirar: #pode_atirar é uma variavel de controle da cadencia
		pode_atirar = false
		$"AnimationPlayer".play("aviso_ataque_piscada")
		yield($"AnimationPlayer", "animation_finished")
		
		$"AnimationPlayer".play("tiro")
		var mira = alvo.global_position + Vector2(0, -12) #+altura do sprite, pra mirar pro meio da hitbox do jogador
		$"arma".look_at(mira)
		
		var projetil = pre_projetil.instance()
		projetil.vetor = Vector2(cos($"arma".global_rotation), sin($"arma".global_rotation)) #vetor é a direcao que o projetil ira seguir
		projetil.global_rotation = $"arma".global_rotation
		projetil.global_position = $"arma/Position2D".global_position
		self.get_parent().add_child(projetil) 
		
		yield($"AnimationPlayer", "animation_finished") #espera a animacao do tiro terminar
		$"cadencia_tiro".start(cadencia_ataques) #inicia o timer da cadencia


func _on_cadencia_tiro_timeout():
	pode_atirar = true #torna possivel atirar outra vez


func inimigo_acertado():
	#print("inimigo acertado")
	pass

func inimigo_morto():
	#print("inimigo morto")
	
	emit_signal("morreu")
	self.queue_free()
```
Repository: go
Issue: cmd/compile: checking pointers for nilness inside a loop
Labels: Performance,NeedsInvestigation,compiler/runtime

### What version of Go are you using (`go version`)?

<pre>
$ go version
1.15
</pre>

### Does this issue reproduce with the latest release?

y

### What operating system and processor architecture are you using (`go env`)?

amd64

### What did you do?

Tried to optimize a function by replacing a slice parameter with known size with a `*[N]T` parameter, in principle reducing the number of things passed to the function.

https://godbolt.org/z/hz68Mn

### What did you expect to see?

I'm honestly not sure, the whole exercise was perhaps doomed from the start.

### What did you see instead?

There's extra tests. Well, not quite extra. But there's a `test al, cx` (spelled slightly differently in pprof output) before the first access to a given array in the function, which happens to be inside a loop, meaning that the test gets hit hundreds of times. Of course, it can't just be hoisted out of the loop in full generality -- if the loop only sometimes got hit, hitting the test before the loop would be bad, and if there are side-effects or something inside the loop, you don't want to panic before them. The corresponding slice case doesn't need this, because a slice with a nil pointer also has a 0 len and thus the loop doesn't get entered.

Adding `_ = l1[0]` (for each value) to the top of the function does eliminate these.

I'm not sure whether this could be trivially fixed but it feels like a lot of tests to keep testing for nilness for a pointer every time you use it...
Repository: pytorch
Issue: Autocast but there are no kernels registered for this dispatch key. The operator is p�8ߎU Aborted (core dumped)
Labels: triaged,module: amp (automated mixed precision)

## 🐛 Bug

After build my program with libtorch1.6 static library, there has coredump when running program:
```bash
terminate called after throwing an instance of 'c10::Error'   what():  found != kernels_.end() INTERNAL ASSERT FAILED at "../../aten/src/ATen/core/dispatch/OperatorEntry.cpp":137, please report a bug to PyTorch. Tried to deregister a kernel for dispatch key 
```

## To Reproduce
1, build pytorch1.6 static library with: https://github.com/pytorch/pytorch/blob/master/docs/libtorch.rst
2, build executable program and link with:
```bash
/usr/bin/g++-9 -rdynamic CMakeFiles/test_syszux_priorbox.dir/src/test_syszux_priorbox.cpp.o -o ../bin/test_syszux_priorbox ../lib/libdeepvac.so /usr/lib/x86_64-linux-gnu/libopencv_imgcodecs.so /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so /usr/lib/x86_64-linux-gnu/libopencv_core.so /home/gemfield/libtorch_gemfield/lib/libtorch_cpu.a  /home/gemfield/libtorch_gemfield/lib/libc10.a  /home/gemfield/libtorch_gemfield/lib/libtorchbind_test.so /home/gemfield/libtorch_gemfield/lib/libonnx.a /home/gemfield/libtorch_gemfield/lib/libonnx_proto.a  /home/gemfield/libtorch_gemfield/lib/libprotobuf.a /home/gemfield/libtorch_gemfield/lib/libfbgemm.a /home/gemfield/libtorch_gemfield/lib/libasmjit.a /home/gemfield/libtorch_gemfield/lib/libcpuinfo.a /home/gemfield/libtorch_gemfield/lib/libclog.a /opt/conda/lib/libmkl_intel_lp64.so -lgomp -lblas -lpthread -lrt -ldl
```
3, run program:
```bash
root@pytorch160-ai03:/gemfield/hostpv/gemfield# ../bin/test_syszux_priorbox 
../bin/test_syszux_priorbox: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libopencv_imgcodecs.so.3.2)
../bin/test_syszux_priorbox: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/libgdal.so.20)
../bin/test_syszux_priorbox: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libpoppler.so.73)
../bin/test_syszux_priorbox: /opt/conda/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgeotiff.so.2)
Key already registered with the same priority: torch_jit_enable_new_executor
terminate called after throwing an instance of 'c10::Error'
  what():  found != kernels_.end() INTERNAL ASSERT FAILED at "../../aten/src/ATen/core/dispatch/OperatorEntry.cpp":137, please report a bug to PyTorch. Tried to deregister a kernel for dispatch key Autocast but there are no kernels registered for this dispatch key. The operator is p�8ߎU
Aborted (core dumped)
```

## Environment
With Official pytorch/pytorch:1.6.0-cuda10.1-cudnn7-devel docker image and install the dependencies:
```bash
#Common
conda install numpy ninja pyyaml mkl mkl-include setuptools cmake cffi typing_extensions future six requests dataclasses

# Add LAPACK support for the GPU if needed
conda install -c pytorch magma-cuda102 
```


cc @mcarilli
Repository: pytorch
Issue: Module __call__ typing
Labels: module: typing,triaged

## 🚀 Feature

Python typings for `self.forward` are not propagated through `self.__call__`. This makes typing PyTorch modules pointless. 

## Motivation

For complex PyTorch models, it's helpful to incorporate types for development.

## Pitch

Add typing generics to `torch.nn.Module`.

## Alternative

So far, I have worked around this issue by stubbing `__call__`. This has flaws though. It doesn't work with `DistributedDataParallel`, and it doesn't work well with hooks.

cc @ezyang @malfet @rgommers @xuzhao9 @gramster
Repository: create-react-app
Issue: Library Build Support like ng-packager in angular cli 
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

i cannot rely on create-react-app to build react component / library.

### Describe the solution you'd like

Maybe it can rely on babel /rollup / webpack to generate react component library. The generated npm package would be very similar to one like generated by ng-packager in angular.

### Describe alternatives you've considered

integrated with third party library like nwb to generate react library. 

### Additional context

N/A