Hello everyone,
First I wanted to say I read a bit through Nim documentation and I really like how this language looks like so far. It got me interested in compilers and I decided to play with it a little. I just installed it from nim-0.12.0_x64.exe on Windows and got it working and wanted to share some feedback that will hopefully make it more friendly for new Windows users.
SET NIMRODPATH=. SET PATH=%NIMRODPATH%\bin;%NIMRODPATH%\dist\mingw\bin;%PATH%
Which sets PATH to .\bin;.\dist\mingw\bin;... so as soon as you leave nim directory that path becomes unusable. The proper way I think should look like this:
SET NIMRODPATH=%~dp0 SET PATH=%NIMRODPATH%bin;%NIMRODPATH%dist\mingw\bin;%PATH%
After this change I was able to go to any directory and type "nim c test.nim" to compile it.
When I typed my first Hello World program and hit Compile and Run I got the error that gcc was not found. I added the PATHs from the bat file to system PATHs and tried again. This time I got another error that linker was not found. I gave up at this moment and in the meantime restarted Windows and did some other things but when I tried it later it worked.
When I tried this I got an error that nimsuggest was not found. After reading http://nim-lang.org/docs/nimsuggest.html I found that I need to clone it from github, compile it and place it in Nimbin folder that is now in my path. After I did that I tried again and this time a command prompt window opened and after a few seconds I got the error: Definition retrieval failed in the IDE. Command prompt window just stayed open with nothing written in it. Also on the mentioned page it says to compile nimsuggest with:
cd compiler/nimsuggest nim c -d:release nimsuggest
but I had to do it like this or it reported error compiler\something not found:
cd compiler/nimsuggest nim c -d:release -p:..\..\ nimsuggest