Hi all,
I was looking for Nim as a scripting language and after a while i found Nimcr. I currently have it working, but i am amazed with the amount of problems to get it working.
I used nimble to install the package (never had problems with nimble) but it gave an error:
15:56:00,43 C:\Users\Dippo\Dropbox\NIM>nimble install nimcr
Downloading https://github.com/PMunch/nimcr using git
Error: unhandled exception: Unable to query remote tags for https://github.com/P
Munch/nimcr. Git returned: fatal: unable to access 'https://github.com/PMunch/ni
mcr/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol v
ersion
I first thought that the url was not correct so i :
15:56:29,25 C:\Users\Dippo\Dropbox\NIM>nimble install https://github.com/PMunch/
nimcr
Error: 'hg' not in PATH.
I searched for Error: 'hg' not in PATH on the web and i found that it's a SSL error. There was not solution to solve this (perhaps on Linux, but not in Windows). So i manualy installed (copy paste) the code.
So, now i can compile the code:
16:32:41,21 C:\Users\Dippo\Dropbox\NIM>nim c -d:release nimcr.nim
Hint: used config file 'C:\nim-0.17.2\config\nim.cfg' [Conf]
Hint: system [Processing]
Hint: nimcr [Processing]
Hint: os [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: math [Processing]
Hint: algorithm [Processing]
Hint: times [Processing]
Hint: winlean [Processing]
Hint: dynlib [Processing]
Hint: ospaths [Processing]
Hint: osproc [Processing]
Hint: strtabs [Processing]
Hint: hashes [Processing]
Hint: streams [Processing]
Hint: cpuinfo [Processing]
nimcr.nim(46, 17) Error: expression 'execShellCmd("attrib +H " & exeName)' is of
type 'int' and has to be discarded
I first was a bit confused with this error, but i found out that :
discard execShellCmd("attrib +H " & exeName)
this is the correct code. The discard is not in the original code.
Can somebody look at these errors and perhaps tell me what goes wrong. I tooked me 1 hour to get this (tiny) package working.
Greetings, Dippo
What version of Git are you running? The Nimble requirements state the following:
Warning: Ensure that you have a fairly recent version of Git installed. If the version is older than 1.9.0, then Nimble may have trouble using it. See this issue for more information.
So it's likely that you've got an outdated git indeed.
When you attempted to install nimcr via the url, here is what happened:
Is was running git version 1.9.4 but i noticed that more packages was giving problems. I updated now to 2.16.2 and the problems are gone. Really strange because i installed packages with nimble 3 month ago and that worked well.
Thanks guys.