https://kotlinlang.org logo
m

Moussa

09/26/2022, 11:33 AM
Hey guys, Any clue why I’m getting this error or at least how to investigate it
.gradle/nodejs/node-v16.13.0-darwin-arm64/bin/node' exited with errors (exit code: 1)
b

Big Chungus

09/26/2022, 11:33 AM
Rerun gradle command with --debug
👍 1
m

Moussa

09/26/2022, 11:35 AM
Thanks
It did provide me with so much information, I will look through it
b

Big Chungus

09/26/2022, 11:56 AM
Yeah, it's not pretty 😀
Try to look for task name and then go from there
v

Vampire

09/26/2022, 12:35 PM
I'd start with
--info
and see if it is enough, normally it should be. Only if not, I'd look at the overwhelming
--debug
. Or extract the actual node command that is executed (don't remember whether it is shown on debug or info) and run it manually to see the actual error standalone.
m

Moussa

09/26/2022, 2:37 PM
I’m using Kotlin
v1.7.10
, Gradle
v7.4.2
and IntelliJ
v2022.2.2
I’m running :`jsTest` which internally runs
:jsBrowserTest
&
:jsNodeTest
Gradle does setup everything before running and I do get unit test results, some success, some failures, some not running at all. Then out of no, I get
/Users/{my user name}/.gradle/nodejs/node-v16.13.0-darwin-arm64/bin/node' exited with errors (exit code: 1)
and Gradle reports build failed and end it. After going through the whole thing, some of the unit test cases where taking more than 30000 ms which resulted in that error. After adding a custom annotation to ignore the unit test case in JS only. It works now with no issues
👌 1
25 Views