LuaLS / lua-language-server

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

Lua_ls is taking 1 666 mb of ram!!!!!! #2940

Open gGameDevelop opened 2 weeks ago

gGameDevelop commented 2 weeks ago

How are you using the lua-language-server?

NeoVim

Which OS are you using?

Windows

What is the issue affecting?

Other

Expected Behaviour

normal usage

Actual Behaviour

taking 1 666 mb of ram that freeze my pc and make it not responding until i end task of lua_language_server in the task manager of window

Reproduction steps

this was happened just once for me

Additional Notes

No response

Log File

No response

tomlau10 commented 2 weeks ago

I think the following replies may help you:

gGameDevelop commented 2 weeks ago

the probleme not here the probleme is I'm not openning lua file for lua_languge_server for start the probleme is i open a bi cpp opengl project file exactly json file format for building.

tomlau10 commented 2 weeks ago

Maybe you can paste your log files here for further debugging, like in this issue https://github.com/LuaLS/lua-language-server/issues/2744#issuecomment-2211573570. It will show what is the workspace root, and all the files that luals has preloaded.

gGameDevelop commented 2 weeks ago

no debugging information, I say that lua_ls is running on c++ project that no need for lua_ls on it.

gGameDevelop commented 2 weeks ago

and lua_ls is working fine on normal lua projects.

tomlau10 commented 2 weeks ago

I say that lua_ls is running on c++ project that no need for lua_ls on it.

Can you give some reproduction repo links? I don't have any problems when opening a c++ project, even if that c++ file in inside a lua project, given that I don't open lua files in that workspace from the beginning.


Just take LuaLS repo as an example:

CppCXY commented 2 weeks ago

I see that your runtime environment is Neovim. Perhaps you should discuss with the Neovim team why LuaLS would run. Additionally, LuaLS has runtime logs. If you can find and upload them, we might be able to check why.

gGameDevelop commented 2 weeks ago

maybe this is a problem from Neovim, for it loading Language Server that not compatible with the current workspace.