Hint: used config file 'c:\Nim\config\nim.cfg' [Conf] c:\Nim\lib\impure\rdstdin.nim(28, 5) Error: undeclared identifier: 'stdout'
If I copy rdstdin.nim to the current directory and add
import system
at the top it works. This has been duplicated in v1.0.2 and v1.2.0.
Is this expected? Or should I file a bug report? I couldn't find anything about it.
It turns out this is a noob problem. I started the project thinking, "I would like to do this as a nimscript project". I'm guessing that access to stdout, stdin, io, or similar has some restrictions in nimscript.
So when I started the file was project.nims. When I ran into trouble, I tried it again with a compiled version called project.nim. I forgot that the compiler looks for a matching .nims file when compiling, so the error essentially followed to the new file.
This is all working as expected without nimscript or the .nims file.