https://kotlinlang.org logo
#javascript
Title
# javascript
a

andylamax

07/21/2022, 8:44 PM
how does one diagnose errors that only say?
Copy code
Execution failed for task ':jsNodeTest'.
> command '/media/andylamax/Auxilliary/Devspace/.gradle/nodejs/node-v16.13.0-linux-x64/bin/node' exited with errors (exit code: 1)
v

Vampire

07/21/2022, 8:58 PM
Usually one scrolls up and reads the actual error output, or if it is in IntelliJ one before selects a higher node in the output tree.
a

andylamax

07/21/2022, 9:08 PM
Copy code
> Task :presenters-core:jsGenerateExternalsIntegrated SKIPPED
There are multiple versions of "kotlin-wrappers-kotlin-react-core-js-ir" used in nodejs build: 18.0.0-pre.327-kotlin-1.6.20, 18.2.0-pre.351. Only latest version will be used.
There are multiple versions of "kotlin-wrappers-kotlin-csstype-js-ir" used in nodejs build: 3.0.11-pre.327-kotlin-1.6.20, 3.1.0-pre.351. Only latest version will be used.
There are multiple versions of "kotlin-wrappers-kotlin-styled-js-ir" used in nodejs build: 5.3.5-pre.327-kotlin-1.6.20, 5.3.5-pre.351. Only latest version will be used.
There are multiple versions of "kotlin-wrappers-kotlin-react-dom-js-ir" used in nodejs build: 18.0.0-pre.327-kotlin-1.6.20, 18.2.0-pre.351. Only latest version will be used.

> Task :presenters-core:jsNodeTest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':presenters-core:jsNodeTest'.
> command '/media/andylamax/Auxilliary/Devspace/.gradle/nodejs/node-v16.13.0-linux-x64/bin/node' exited with errors (exit code: 1)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See <https://docs.gradle.org/7.5-rc-4/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD FAILED in 13s
158 actionable tasks: 4 executed, 154 up-to-date
andylamax@astrab:/media/andylamax/Auxilliary/Workspace/PiCortex/home/picortex$
Thats how it looks when I scroll up
v

Vampire

07/21/2022, 9:11 PM
Maybe with
--info
?
b

Big Chungus

07/21/2022, 10:33 PM
Check test reports in
./build/reports/jsNodeTest/index.html
Your tests are likely failing to bootstrap
a

andylamax

07/22/2022, 2:00 PM
build reports folder doesn't even have jsNodeTests. I have a feeling its failing to launch NodeJS, but I can't even tell why. I was hopping for some logs directory of some kind
v

Vampire

07/22/2022, 2:12 PM
--info
didn't give additional info? If not, maybe try
--debug
. And if still not, then try to execute the node command it showed it exectued manually, maybe you get something then.
d

Didier Villevalois

08/22/2022, 10:52 PM
For memory, the launched node command (when in your root gradle project) is similar to the following:
Copy code
node --require ./build/js/node_modules/source-map-support/register.js ./build/js/node_modules/mocha/bin/mocha.js ./build/js/packages/project-module-test/adapter-empty-nodejs.js
where
project
is your project name and
module
is the module name where your tests are.
39 Views