dom96 / choosenim

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

requested executable is missing #344

Closed fryorcraken closed 1 month ago

fryorcraken commented 2 months ago

On Linux Fedora 40, fresh installation:

▶ choosenim 0.14.2       
   Warning: Using project local deps mode
   Warning: Using the environment variable: NIMBLE_DIR='/home/fryorcraken/src/arnetheduck/nph/nimbledeps'
Downloading Nim 0.14.2 from nim-lang.org
[#                                                 ] 0mb 0kb/s
      Info: Binary build unavailable, building from source
[##################################################] 100.0% 0kb/s
 Extracting nim-0.14.2.tar.xz
 Extracting nim-0.14.2.tar
   Building Nim 0.14.2
   Building koch
   Building Nim
   Building tools (nimble, nimgrep, nimpretty, nimsuggest, testament)
   Switched to Nim 0.14.2

src/arnetheduck/nph  master ✔                                                                                                                                  23d15h  
▶ nimble --version       
     Error: /__w/choosenim/choosenim/src/choosenimpkg/proxyexe.nim(62) proxyexe
        ... /__w/choosenim/choosenim/src/choosenimpkg/proxyexe.nim(42) main
        ... Requested executable is missing. (Path: /home/fryorcraken/.choosenim/toolchains/nim-0.14.2/bin/nimble)
      Info: If unexpected, please report this error to https://github.com/dom96/choosenim

Binaries are indeed not present:

▶ tree /home/fryorcraken/.choosenim/toolchains/nim-0.14.2/bin/
/home/fryorcraken/.choosenim/toolchains/nim-0.14.2/bin/
├── nim
└── nimblepkg
    ├── config.nim
    ├── download.nim
    ├── nimbletypes.nim
    ├── nim.cfg
    ├── nimscriptapi.nim
    ├── nimscriptsupport.nim
    ├── options.nim
    ├── packageinfo.nim
    ├── packageparser.nim
    ├── publish.nim
    ├── tools.nim
    └── version.nim

2 directories, 13 files
lewisl commented 2 months ago

I have encountered the same problem, see message below. In my base the directory referred to does NOT exist. The requested binary DOES exist-->in a different directory.

I renamed my top level home drive ( as in the actual drive at ~ on maces), but somewhere the nim toolchain preserved the path below. No doubt in one of the dozens of nimcfg files all over my hard disk. How would I figure out how to get rid of this reference to non-existent path?

2024-07-01 0017:06:0011.000103 - [info] Extension Activated
2024-07-01 0017:06:0011.000352 - [info] nim check output:
     Error: /Users/runner/work/choosenim/choosenim/src/choosenimpkg/proxyexe.nim(61) proxyexe
        ... /Users/runner/work/choosenim/choosenim/src/choosenimpkg/proxyexe.nim(41) main
        ... Requested executable is missing. (Path: /Users/lewislevin/.choosenim/toolchains/nim-2.0.8/bin/nim)
      Info: If unexpected, please report this error to https://github.com/nim-lang/choosenim
fryorcraken commented 1 month ago

Closing as not sure it's the right repo and probably not doing the right thing.