PMunch / nimlsp

Language Server Protocol implementation for Nim
MIT License
415 stars 49 forks source link

Error when running nimble install nimlsp #94

Closed mirageglobe closed 2 years ago

mirageglobe commented 2 years ago

I have a basic install of nim and encountered the following when installing nimlsp. Wonder if there are any prerequisites before setting up this lsp? thanks

  ... Could not read package info file in /tmp/nimble_3317/githubcom_PMunchnimlsp/nimlsp.nimble;
        ...   Reading as ini file failed with:
        ...     Invalid section: .
        ...   Evaluating as NimScript file failed with:
        ...     Error: cannot open '/Users/xxxxxx/.nimble/lib/system.nim'.
PMunch commented 2 years ago

It seems like you may not have installed Nim the way NimLSP expects. The README contains a section on what to do in this case

mirageglobe commented 2 years ago

Perfect! thanks for note and tip :D. Realised that by default, choosenimble selects 0.16. Need to run choosenimble stable first and it will run fine. Thanks!

PMunch commented 2 years ago

I think you might have a very old version of choosenim then, it should select the latest stable release by default.. Try to run choosenim update self and see if you can't get a newer version.

mirageglobe commented 2 years ago

Yeah it's a weird one. Only just installed Nim and it defaulted to 0.16. did not have Nim before this. I used Choosenim. Hmm

On Tue, 12 Oct 2021, 07:52 PMunch, @.***> wrote:

I think you might have a very old version of choosenim then, it should select the latest stable release by default.. Try to run choosenim update self and see if you can't get a newer version.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/PMunch/nimlsp/issues/94#issuecomment-940717115, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAENCAG7VAVVFSVVBHEBMCTUGPLJZANCNFSM5FVSLL3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

PMunch commented 2 years ago

Where did you get choosenim from? And what does choosenim --version show?

mirageglobe commented 2 years ago

I installed Choosenim through install script from nim-lang.org.

Choosenim version is 0.8.2.

On Tue, 12 Oct 2021, 08:36 PMunch, @.***> wrote:

Where did you get choosenim from? And what does choosenim --version show?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/PMunch/nimlsp/issues/94#issuecomment-940745763, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAENCAA7ZQJ54LUQCAQHNVLUGPQPZANCNFSM5FVSLL3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.