nimble icon indicating copy to clipboard operation
nimble copied to clipboard

Print .nim files as they're compiled when --debug is used?

Open aleclarson opened this issue 2 years ago • 1 comments

Or maybe a new --printFiles flag?

I'm trying to debug an error that occurs during nimble install with nim devel

Error: internal error: getTypeDescAux(tyEmpty)
No stack traceback available
To create a stacktrace, rerun compilation with './koch temp c <file>', see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for details

Having nimble install print which .nim file it tried last (along with the other files before it, ofc) would allow me to do ./koch temp c <file> to generate the stack traceback.

Alternatively, having a way to tell nimble install to use koch temp when compiling would also work, I think.

aleclarson avatar Sep 07 '21 16:09 aleclarson

nimble --debug and then you will see the command that Nimble runs. Just s/nim/koch temp c/ and you'll have what you want.

Nimble doesn't compile the files individually, it just calls into Nim to do this.

dom96 avatar Sep 07 '21 17:09 dom96