Today I learned that the error: ```Execution faile...
# webassembly
f
Today I learned that the error:
Copy code
Execution failed for task ':wasmWasiNodeRun'.
> Process 'command '/Users/frankbouwens/.gradle/nodejs/node-v22.0.0-darwin-arm64/bin/node'' finished with non-zero exit value 1
Could mean you’ve made a typo in the @WasmImport annotation. Hopefully this can save you some time, when you encounter this 😉 (Took me quite a while to realize this was the problem)
Scherm­afbeelding 2024-10-01 om 10.21.31.png
Update: When clicking “Run with --scan”, the output greatly improves, and it does correctly explain the issue.
Copy code
TypeError: WebAssembly.Instance(): Import #2 module="wasi_snapshot_preview1_TYPO": module is not an object or function
p
May be the cause of this typo is the pony on background?
😂 1
f
Haha, no more likely programming deep in the night, without getting sleep 😜
a
@Ilya Goncharov [JB] could we show the
Node.js
errors by default in the error message without needs of
--scan
?
i
Could you please click on
wasmWasiNodeRun
in tab? It should show a log of task and it should contain information. As I understand last line in the tab shows only exception. Maybe we can show error log in exception tab too
Ah you are correct, the error does show up, even without the
--scan
, when you click on the wasmWasiNodeRun
🙏 1
i
So, I think maybe it can be improved if somehow this information will be moved to exception message.
👍 1
f
Yeah, the information was there all along; I was just looking in the incorrect spot. 😅 Thanks!