Here is our third patch release for the latest stable (1.6) version of Nim — 1.6.6!
Read more: https://nim-lang.org/blog/2022/05/05/version-166-released.html
I got the following error when trying to install the new version:
C:Windowssystem32>choosenim --verbose 1.6.6 > Info: No client ID found in 'C:UsersUser.choosenimanalytics', not sending analytics. > Info: No client ID found in 'C:UsersUser.choosenimanalytics', not sending analytics. >Downloading DLLs (openssl, pcre, ...) >[##################################################] 100.0% 0kb/s > Info: No client ID found in 'C:UsersUser.choosenimanalytics', not sending analytics. > Extracting dlls.zip >Downloading Nim 1.6.6 from nim-lang.org >[##################################################] 100.0% 0kb/s > Info: No client ID found in 'C:UsersUser.choosenimanalytics', not sending analytics. > Extracting nim-1.6.6_x8.zip > Info: No client ID found in 'C:UsersUser.choosenimanalytics', not sending analytics. > Info: No client ID found in 'C:UsersUser.choosenimanalytics', not sending analytics. > Error: Unable to extract. Error was 'Attempted to read past end of file, corrupted zip archive?'.
Is the following line correct? "Extracting nim-1.6.6_x8.zip"
It seems to be missing a 6 (i.e. ...x86.zip)? And given that my current nim version is the 64 bit version, shouldn't that be ..._x64.zip?
Thank you @dom96. This is what I get:
C:\Windows\system32>cmd /c echo int main^(^) { return sizeof^(void *^); } | gcc -xc - -o archtest && archtest
c:/users/User/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file archtest.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
BTW, the good news is that I just tried again and it did work. The difference seems that it now said:
Extracting nim-1.6.6_x64.zip
Instead of :
Extracting nim-1.6.6_x8.zip
The bad news is that Symantec Endpoint Protection immediately detected nimgrap.exe as a Trojan.Gen.2.
@dom96, my IT department adviced me to install choosenim in a "safe folder" that is excluded from the antivirus checks. I tried to do that using --choosenimDir and --nimbleDir, but that does not work because choosenim does not remember the folders you chose (and thus forces you to explicitly use the same --choosenimDir and --nimbleDir flags everythime you call choosenim).
Would you consider having choosenim save the latest choosenim and nimble directories that you used in some config file and reusing those automatically?
It looks like it was failing originally because of permissions issues.
As for custom choosenimDir I discussed with someone else recently: I would prefer an env var for this. Nimble already has one called NIMBLE_DIR so choosenim should have the same and then you'll be able to set CHOOSENIM_DIR and NIMBLE_DIR.
Thank you very much for everyone who contributed.
I am a huge Nim fan, and am getting a present!
I really love the bug fixes!
I am very excited :)