Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is causing error while nimble install nimlsp #67

Closed
Himujjal opened this issue Dec 20, 2020 · 3 comments
Closed

This is causing error while nimble install nimlsp #67

Himujjal opened this issue Dec 20, 2020 · 3 comments

Comments

@Himujjal
Copy link

const explicitSourcePath {.strdefine.} = getCurrentCompilerExe().parentDir.parentDir

This line is causing error. It is trying to find /usr/nimsuggest/nimsuggest.nim which is of course not present. Any insights as to how to solve this. I am on Ubuntu.

@SolitudeSF
Copy link
Contributor

SolitudeSF commented Dec 20, 2020

acquire nim sources and nimble install -p:-d:explicitSourcePath:$path_to_nim nimlsp

@PMunch
Copy link
Owner

PMunch commented Dec 21, 2020

NimLSP has no way to know where your Nim sources are. So it tries to guess based on the position of the nim binary. If you install via choosenim or by manually building the repo this will be correct. But if you install via your package manager it won't be (some package managers doesn't even include these files). Seeing how the Ubuntu Nim package has notoriously been out of date I would suggest installing choosenim instead and getting Nim via that, which would also solve this issue. Otherwise what @SolitudeSF suggested will also work.

@Himujjal
Copy link
Author

yes. I found this error. Fixed it via choosenim. Thanks. Unnecessary issue. Sorry for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants