dom96 / choosenim

Tool for easily installing and managing multiple versions of the Nim programming language.
BSD 3-Clause "New" or "Revised" License
680 stars 64 forks source link

choosenim doesn't modify path in Window 10 #254

Closed jtiai closed 3 years ago

jtiai commented 3 years ago
C:\> choosenim show
  Selected: #devel
   Channel: devel
      Path: C:\Users\jani\.choosenim\toolchains\nim-#devel

  Versions:
          * #devel
            1.4.6

C:\> nim --version
Nim Compiler Version 1.4.4 [Windows: amd64]
Compiled at 2021-04-18
Copyright (c) 2006-2020 by Andreas Rumpf

Expected nim version to be 1.5.1 compiled on 2021-04-24.

dom96 commented 3 years ago

Yeah, I don't think it ever did. You should get a message to modify your PATH when installing choosenim for the first time.

jtiai commented 3 years ago
⨯ jani@CODE  ~\..\choosenim-0.7.4_windows_amd64  .\runme.bat
   Switched to Nim 1.4.6
        1 file(s) copied.
            Work finished.
            Now you must ensure that the Nimble bin dir is in your PATH:
              C:\Users\jani\.nimble\bin

That's the instruction I got and nimble bin is in my path. There are no additional instructions.

jtiai commented 3 years ago

Culprit was my path having actual nim installation before nimble directory.

Maybe note somewhere in FAQ or in the instructions about path could be useful

dom96 commented 3 years ago

I think it would be nice for choosenim to show a warning when choosenim show is used if another binary is in the PATH. https://github.com/dom96/choosenim/issues/37