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

Language Server Quits (installed from winget) #3050

Open
TurtleP opened this issue Jan 22, 2025 · 1 comment
Open

Language Server Quits (installed from winget) #3050

TurtleP opened this issue Jan 22, 2025 · 1 comment

Comments

@TurtleP
Copy link

TurtleP commented Jan 22, 2025

How are you using the lua-language-server?

Command Line

Which OS are you using?

Windows

What is the issue affecting?

Other

Expected Behaviour

The language server should run when installed via winget.

Actual Behaviour

Running the language server gives me:

PS C:\Users\{USERNAME}> lua-language-server.exe C:\Users\{USERNAME}\AppData\Local\Microsoft\WinGet\Links\lua-language-server.exe: cannot open (bootstrap.lua): No such file or directory

Reproduction steps

  1. Install via winget: winget install luaLS.lua-language-server
  2. Run lua-language-server from the command line

Additional Notes

Granted, this might be unrelated to this GitHub repository and should be mentioned on the winget-pkgs repository instead, but I also am not sure of how this should be fixed or, perhaps, the winget package is maintained from the authors here. Either way, there was a similar discussion mentioning this error, but that was also not on Windows and I'm unsure if any fixes from there can be applied for this scenario.

Log File

N/A

@tomlau10
Copy link
Contributor

tomlau10 commented Jan 23, 2025

I just tried winget install luaLS.lua-language-server in powershell.
After the installation is finished I then restart powershell and execute lua-language-server.
And everything is fine: 🤔

PS C:\Users\TomLau> lua-language-server
Content-Length: 120

{"jsonrpc":"2.0","method":"$/status/report","params":{"text":"?Lua","tooltip":"Cached files: 0/0\nMemory usage: 2M"}

Maybe your installation is somehow broken?


In addition, the version 3.6.25 that installed by winget is very old ...
https://github.com/LuaLS/lua-language-server/releases/tag/3.6.25
=> it was released in Jul 26, 2023 😅

I am not authors of luals, so I cannot tell if the winget package is maintained from the authors here.
But as I can get the winget version running, so I don't think there are issues related to luals itself.

What I can suggest is that you may try reinstalling you winget package, or downloading the latest version from release page: https://github.com/LuaLS/lua-language-server/releases
for 64bit windows you can choose the *-win32-x64.zip


edit:
Just some more thought:
would it be that your anti-virus blocked / deleted the bootstrap.lua during your installation? 😳

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

2 participants