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

Lua client: couldn't create connection to server #1557

Closed
AdsonCicilioti opened this issue Sep 16, 2022 · 4 comments
Closed

Lua client: couldn't create connection to server #1557

AdsonCicilioti opened this issue Sep 16, 2022 · 4 comments
Labels
os/Linux The server is running on Linux
Milestone

Comments

@AdsonCicilioti
Copy link

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Linux

What is the issue affecting?

Other

Expected Behaviour

After install the extension, start use it normally

Actual Behaviour

After install extension i got this error:

image

Output:

[Error - 2:12:59 AM] Lua client: couldn't create connection to server.
Launching server using command /home/balllaz/.vscode/extensions/sumneko.lua-3.5.5-linux-x64/server/bin/lua-language-server failed. Error: spawn /home/balllaz/.vscode/extensions/sumneko.lua-3.5.5-linux-x64/server/bin/lua-language-server ENOENT

Reproduction steps

  1. Find Lua extension on VS Code
  2. Choose Lua (sumneko)
  3. Click on install

Additional Notes

I have the lua 5.2 on $PATH of my system.

Log File

Log is not generated!

@sumneko
Copy link
Collaborator

sumneko commented Sep 16, 2022

Can you execute /home/balllaz/.vscode/extensions/sumneko.lua-3.5.5-linux-x64/server/bin/lua-language-server manually?
If not, you need to compile the server by yourself, see https://github.com/sumneko/lua-language-server/wiki/Getting-Started#build

@sumneko sumneko added the Info Needed More information is required label Sep 16, 2022
@carsakiller carsakiller added the os/Linux The server is running on Linux label Sep 16, 2022
@AdsonCicilioti
Copy link
Author

Can you execute /home/balllaz/.vscode/extensions/sumneko.lua-3.5.5-linux-x64/server/bin/lua-language-server manually?

Not. I receive:
zsh: no such file or directory: /home/balllaz/.vscode/extensions/sumneko.lua-3.5.5-linux-x64/server/bin/lua-language-serve

I'm using NixOS and have the lua-language-serve on package repository. I've been installing it. But i isn't found any config on vscode to point the lua-language-server binary from NixOS.

I could create a symlink replacing the binary of vscode extension, but on all next update the symlink will be lost.

Will be possible to create a config on vscode to point to a custom lua-language-server binary?
In my case the binary provided by NixOS is already in $PATH

@sumneko sumneko removed the Info Needed More information is required label Sep 19, 2022
@sumneko sumneko added this to the 3.6.0 milestone Sep 19, 2022
@AdsonCicilioti
Copy link
Author

@sumneko thanks for your commit!

But the language-server installed by my distro seems don't work.
The vscode default configuration should work, right?
I mean the autocomplete, lint, etc.

I'm not sure where to look...

@carsakiller
Copy link
Collaborator

Hello @AdsonCicilioti!

The version you have installed most likely does not contain the above commit. The commit will be included in the release of v3.6.0. If you would like to get the feature now, you can grab one of the artifacts from the bottom of one of the build action runs. The artifact can then be used to replace your current server.

Hope this helps 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os/Linux The server is running on Linux
Projects
None yet
Development

No branches or pull requests

3 participants