Skip to content

main.lua:28: attempt to index a nil value (local 'value') #345

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

Closed
F4IL3D opened this issue Jan 6, 2021 · 0 comments
Closed

main.lua:28: attempt to index a nil value (local 'value') #345

F4IL3D opened this issue Jan 6, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@F4IL3D
Copy link

F4IL3D commented Jan 6, 2021

Describe the bug
For a few days now I have not been able to run the LSP under Neovim. In order to rule out an error in Nvim or in the configuration, I tried to start the LSP directly. I get the following error message:
"/usr/lib/lua-language-server/lua-language-server: ./main.lua:28: attempt to index a nil value (local 'value') "
The same message can also be found in the neovim LSP log file.

To Reproduce
$ lua-language-server -E /usr/share/lua-language-server/main.lua

Screenshots
image

Environment (please complete the following information):

  • OS: Windows 10, WSL2, ArchLinux , lua-language-server-git (AUR)

Additional context
I added a "print (table.concat (arg, ","))" to the beginning of the loadArgs function to see if I am doing something wrong with the arguments.
Therefore the line "--logpath=/tmp/lua-language-server.njmi/log, --metapath=/tmp/lua-language-server.njmi/meta, -E, /usr/share/lua-language-server/main.lua" can be seen in the screenshot above.

If I also add a "print(key,value)" in front of "_G[key:upper()] = value", the output looks like this

image

Thanks for the great work

@sumneko sumneko closed this as completed in 35b092a Jan 7, 2021
@sumneko sumneko added the bug Something isn't working label Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants