lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

Language Server Quits (installed from `winget`)

Open TurtleP opened this issue 11 months ago • 1 comments

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

TurtleP avatar Jan 22 '25 17:01 TurtleP

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? 😳

tomlau10 avatar Jan 23 '25 12:01 tomlau10