Nim: Outdated nimble.ini
I was interested today in trying to write a simple GUI program using Nim’s [nimx] library. But even with the latest Nim (2.0.0) and Nimble (0.14.2), I ran into this:
Reading official package list
nimble.nim(683) getDownloadInfo
Error: Package darwin@any version not found.
This was confusing. I opened an issue on the nimx repo and the author pointed out that the darwin
package is listed here, although I didn’t see it in this list. So I started blowing away Nimble’s local package files, then eventually found the file ~/.config/nimble/nimble.ini
which contained URLs for multiple package.json
files. I can’t reproduce it here because the next thing I tried was to delete that file too, but it did seem to include a link to the Github repo.
In any case, deleting it and then running nimble update
seems to have fixed the situation. I’m not sure how it ended up in that state, but perhaps some change was introduced to Nimble that wasn’t backward compatible with old installations (going back to 2019, around 4 years ago).
¯\_(ツ)_/¯