LuaLS / lua-language-server

A language server that offers Lua language support - programmed in Lua
https://luals.github.io
MIT License
3.12k stars 289 forks source link

Lua lsp using too much RAM on specific files #2715

Open Fesinan opened 2 weeks ago

Fesinan commented 2 weeks ago

How are you using the lua-language-server?

NeoVim

Which OS are you using?

Linux

What is the issue affecting?

Other

Expected Behaviour

When i open this file, writen by me, in NeoVim

-----------------------------
--- funciones 
-----------------------------

function local vace()
    local a
    a =  io.read("n") 
    fib()
end

It should use the amount in the image (from a file not writen by me) lspNotram1

Actual Behaviour

It's usage is this one: lspNotram2

Reproduction steps

  1. Open that file
  2. Do nothing
  3. See the usage

Additional Notes

I found this issue #1745 with a similar problem, i thinks NeoVim has kickstar and is version 0.10.0

Log File

No response

tomlau10 commented 2 weeks ago

I think the following reply may help you: https://github.com/LuaLS/lua-language-server/issues/2704#issuecomment-2161859529