Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loadedTestFrameworks failed with Error: connect ECONNREFUSED #51

Closed
FabioPinheiro opened this issue Dec 18, 2021 · 2 comments
Closed

loadedTestFrameworks failed with Error: connect ECONNREFUSED #51

FabioPinheiro opened this issue Dec 18, 2021 · 2 comments

Comments

@FabioPinheiro
Copy link

@sjrd Your solution in scala-js/scala-js-js-envs#12 fix this.
Can we consider doing a release just to bump the version of scalajs-env-nodejs to 1.2.1?
(just to not force the build to have the direct dependence)

My JS tests stop working with the following error:
Scala.js Com failed: Error: connect ECONNREFUSED

sbt:root> last modelJS / Test / loadedTestFrameworks
[debug] Starting process: node
[error] org.scalajs.testing.common.RPCCore$ClosedException: org.scalajs.testing.adapter.JSEnvRPC$RunTerminatedException
[error] 	at org.scalajs.testing.common.RPCCore.helpClose(RPCCore.scala:223)
[error] 	at org.scalajs.testing.common.RPCCore.close(RPCCore.scala:215)
[error] 	at org.scalajs.testing.adapter.JSEnvRPC.close(JSEnvRPC.scala:47)
[error] 	at org.scalajs.testing.adapter.JSEnvRPC.$anonfun$new$1(JSEnvRPC.scala:38)
[error] 	at org.scalajs.testing.adapter.JSEnvRPC.$anonfun$new$1$adapted(JSEnvRPC.scala:38)
[error] 	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
[error] 	at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
[error] 	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
[error] 	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
[error] 	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
[error] 	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
[error] 	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
[error] Caused by: org.scalajs.testing.adapter.JSEnvRPC$RunTerminatedException
[error] 	at org.scalajs.testing.adapter.JSEnvRPC.$anonfun$new$1(JSEnvRPC.scala:38)
[error] 	at org.scalajs.testing.adapter.JSEnvRPC.$anonfun$new$1$adapted(JSEnvRPC.scala:38)
[error] 	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
[error] 	at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
[error] 	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
[error] 	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
[error] 	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
[error] 	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
[error] 	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
[error] Caused by: org.scalajs.jsenv.ExternalJSRun$NonZeroExitException: exited with code 255
[error] 	at org.scalajs.jsenv.ExternalJSRun$$anon$1.run(ExternalJSRun.scala:195)

@FabioPinheiro FabioPinheiro changed the title loadedTestFrameworks fail Scala.js Com failed: Error: connect ECONNREFUSED loadedTestFrameworks fail with Scala.js Com failed: Error: connect ECONNREFUSED Dec 18, 2021
@FabioPinheiro FabioPinheiro changed the title loadedTestFrameworks fail with Scala.js Com failed: Error: connect ECONNREFUSED loadedTestFrameworks failed with Error: connect ECONNREFUSED Dec 18, 2021
@sjrd
Copy link
Member

sjrd commented Dec 19, 2021

Doesn't upgrading to Scala.js 1.8.0 also solve the issue?

@FabioPinheiro
Copy link
Author

Yes that fixes the problem. Thanks
I completely miss the release of scalajs 1.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants