lopi-py / luau-lsp.nvim

A luau-lsp extension to improve your experience in neovim.
MIT License
46 stars 10 forks source link

Client luau_lsp quit with exit code 1 and signal 0 #15

Closed CompletedLoop closed 7 months ago

CompletedLoop commented 7 months ago

Not aware if I set this up right but everytime I open up a luau file in my game project I keep getting this: image Ive called :LuauRegenerateSourcemap but that doesnt fix it either. lsp.log: image

And ive just copied and pasted the setup from the readme

CompletedLoop commented 7 months ago

new to neovim and im user Lunarvim and this is how im loading in the plugin: image

If I remove the config function it works fine but I get no Sourcemap generation and the plugin stops working.

Neovim 0.10

lopi-py commented 7 months ago

Your config seems right in this case, just remove the opts field in the plugin spec. The error The command line is too long is unrelated to this plugin, but seems more like a Windows or mason issue, I think it is more appropriate to ask for help in the mason repo or google a solution. Just curious, do other lsp's work or is the issue only with luau-lsp?

CompletedLoop commented 7 months ago

Your config seems right in this case, just remove the opts field in the plugin spec. The error The command line is too long is unrelated to this plugin, but seems more like a Windows or mason issue, I think it is more appropriate to ask for help in the mason repo or google a solution. Just curious, do other lsp's work or is the issue only with luau-lsp?

Its just luau.

Whats confusing is if I just load the plugin by itself I get lsp but, the commands disappear. If I try to setup the lsp then I get no lsp but I get the luau commands.

lopi-py commented 7 months ago

Yeah, I don't think it is related to this plugin, try checking this Windows guide, maybe your PATH variable is too long

CompletedLoop commented 7 months ago

image So It appears this is over the character limit: image And windows says the limit is 8192.

Not sure what to do exactly to reduce the characters in the command.

lopi-py commented 7 months ago

Try to turn off the fflag sync option

CompletedLoop commented 7 months ago

Try to turn off the fflag sync option

This worked appreciate it.

Should probably put this in the readme if people are experiencing the same issue.