nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.44k stars 1.47k forks source link

Exception handling for nimble on Windows for network connections #6099

Closed norandom closed 7 years ago

norandom commented 7 years ago

Hi,

just found this.

Windows 8.1, Personal Firewall, outgoing apps need to be whitelisted.

Initial attempt, fresh Nim install:

C:\Users\Notandi
λ nimble install https://github.com/pragmagic/karax.git
     Error: 'hg' not in PATH.

Popup comes up, I whitelist nimble.

C:\Users\Notandi
λ nimble install https://github.com/pragmagic/karax.git
Downloading https://github.com/pragmagic/karax.git using git
   Warning: File inside package 'karax' is outside of permitted namespace, should be named 'karax.nim' but was named 'compact.nim' instead. This will be an error in the future.
      Hint: Rename this file to 'karax.nim', move it into a 'karax\' subdirectory, or prevent its installation by adding `skipFiles = @["compact.nim"]` to the .nimble file. See https://github.com/nim-lang/nimble#libraries for more info.
  Verifying dependencies for karax@0.1.0
 Installing karax@0.1.0
   Success: karax installed successfully.

The error message Error: 'hg' not in PATH. is probably misleading, and from wrong exception handling.

dom96 commented 7 years ago

Please report this in the nimble repo.