This is enhanced version of "nim secret".
Build:
Feature list:
I have build an version for windows, you can just download and try. :)
Looks great! Doesn't compile for me though:
/home/user/nims/nims.nim(513, 25) Error: attempting to call undeclared routine: 'spellSuggestMax='
The findNimStdLib code is simple, the directory should be:
nimdir
|-----bin\nim
|-----lib\
|-----system.nim
Just like the nim repository on github.@slangmgh I am unable to run nims on Linux. I just did git pull and rebuilt with nim c -d:release -d:nimcore nims.nim, but running nims gives me this:
> nims
1>>> NimVersion
2>>> echo "A"
3>>> exit
4>>> quit
5>>> Error: EOF reached
1>>> ^CCTRL-C pressed, quit.
I don't know if you have subscribed to Issues on your repo, but I have already created an issue there: https://github.com/slangmgh/nims/issues/4 .
Compiles with latest devel and works fine (used gc:orc). I can't use the FFI compilation though:
/home/user/.choosenim/toolchains/nim-#devel/compiler/evalffi.nim(14, 11) Error: cannot open file: pkg/libffi
You need libffi if you compile with -d:nimHasLibFFI, input followin command to install libffi:
nimble install libffi
You can disable libffi to compile without option "-d:nimHasLibFFI".
A dumb question:
How to use nims? I don't get output of echo nor does 'quit' work.
For the record, on my Gentoo Linux system, I had to do these changes
import "/opt/nimble/pkgs/compiler-1.5.1/compiler" / [ast, astalgo, modules, passes, condsyms,
...
proc main() =
var
nimlib = "/usr/lib/nim"
findNimStdLib also doesn't work for me on linux(choosenim), and i'm not sure it's even a good idea to do this at runtime, right? Don't you need to use the same stdlib at runtime you used to compile against?
changing that line to findNimStdLibCompileTime makes it run, at least, but not work, same issue as kaushalmodi
Simple question: How does this package differentiate itself from INim?
As a beginner I'm using INim now and then and I'm quite happy with it.