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

:checkhealth Command throwing Errors. #2

Closed
ghost opened this issue Dec 16, 2021 · 5 comments
Closed

:checkhealth Command throwing Errors. #2

ghost opened this issue Dec 16, 2021 · 5 comments

Comments

@ghost
Copy link

ghost commented Dec 16, 2021

Running :checkhealth throws following output

Running healthchecks...
Error detected while processing function health#check:
line   37:
E684: list index out of range: 0
Press ENTER or type command to continue

Other Things are working fine!
Maybe its just that i did something stupid.

@bdillahu
Copy link

Same here, for what it's worth.

Otherwise, great setup - this may very well replace my homegrown config! Simple and effective.

@sigmaSd
Copy link

sigmaSd commented Dec 18, 2021

You probably have files under ~/.local/share/nvim you can just move that folder out to test

@bdillahu
Copy link

I had removed all of ~/.local/share/nvim before loading this config... so whatever is there it created.

But I just re-ran it and checkhealth is now working - not sure what changed. I had tried several times yesterday, but now it's happy, so...

Thanks!

@JohnVillalovos
Copy link

JohnVillalovos commented Dec 18, 2021

The fix for me was to do the following:

First run nvim twice to make sure everything is installed and tree-sitter has compiled everything.

Then start nvim and do the following:

:LspInstall pyright

You can install any LSP server you want, but I use Python so I did pyright.

After I did that I could then do :checkhealth

I tested this in the Docker container I created to try this out. See #8

@ghost
Copy link
Author

ghost commented Dec 19, 2021

Alright I figured out everything!
This error occurs because npm or LSP is not installed.
Make sure you have npm, node and cargo installed on your system.
I found these prerequisites from lunarvim's Documentation

On Arch install following packages:

sudo pacman -S npm nodejs rust

Also Resolve EACCES permissions when installing packages globally to avoid error when installing

Then run nvim and install a language server of your choice

:LspInstall sumneko_lua

I am installing LSP for lua here.
Or run :LspInstallInfo for list of all available LSPs.

Chris should add a prerequisites section in README.md

This issue was closed.
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