I've been using the nim-lua bindings with love2d for a while now, and I've compiled some Nim code into dlls, which then get required from lua.
But I've always been having this issue that I can't see any errors from Nim in the windows console (I run my love2d games from the CLI, btw). If my game crashes with an error from the dll side, the console is left blank, and I'm kept in the dark about what happened. Same thing if I use echo, nothing gets printed out to the console.
The only way I could print something from the dll side was by invoking lua's print function. It's like Nim itself has no access to the stdout that love2d and lua are using.
I don't know if this could be directly related to nim or not, but I'd like to know if anyone here might know something that might help.
Someone at the love2d reddit suggested that "since a DLL isn’t a process, echo may just be dumping output into 'null space'", but I have no idea what to do with that.