I try to create a Nim program which compiles for the Nashorn JavaScript engine.
Simple programs work directly, but for more specialised interaction between Java and Nim/JavaScript I found metagodcore's nimnashorn.
Trying it I import in my app.nim the core file nashorn.nim via
import nashorn
Then I compile with
nim js --verbosity:3 app.nim
and I get a sysFatal compiler error.
Here the important part of the compiler output:
.
.
.
/home/runner/work/nightlies/nightlies/nim-1.4.6/compiler/semstmts.nim(626, 16) compiler msg initiated here [MsgOrigin]
............fatal.nim(49) sysFatal
Error: unhandled exception: index out of bounds, the container is empty [IndexDefect]
Please note, I use nim 1.4.6 but /home/runner/work/nightlies/nightlies/nim-1.4.6 is not a directory on my system!
Why does this error happen? There might be issues with nashorn.nim, but how can I find out more? (--verbosity:3 doesn't seem to do much for this.)
Please note, I use nim 1.4.6 but /home/runner/work/nightlies/nightlies/nim-1.4.6 is not a directory on my system!
That's an unrelated problem, our nightly builds should use --excessiveStackTrace:off or similar.
Why does this error happen? There might be issues with nashorn.nim, but how can I find out more? (--verbosity:3 doesn't seem to do much for this.)
Please report it on github. You can find out more by using koch temp js nashorn.nim, assuming that you use "nim js".
Thanks @araq. Will report it on GitHub.
koch is not in my path (which includes nim-installation/bin/). koch seems to be one directory up in nim-installation/. - Should I add that directory to my path as well or is something wrong with my install?