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

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

Open
gGameDevelop opened this issue Nov 7, 2024 · 8 comments
Open

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

gGameDevelop opened this issue Nov 7, 2024 · 8 comments

Comments

@gGameDevelop
Copy link

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
Copy link
Contributor

tomlau10 commented Nov 8, 2024

@gGameDevelop
Copy link
Author

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
Copy link
Contributor

tomlau10 commented Nov 8, 2024

Maybe you can paste your log files here for further debugging, like in this issue #2744 (comment).
It will show what is the workspace root, and all the files that luals has preloaded.

@gGameDevelop
Copy link
Author

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

@gGameDevelop
Copy link
Author

and lua_ls is working fine on normal lua projects.

@tomlau10
Copy link
Contributor

tomlau10 commented Nov 9, 2024

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:

  • There are 3rd modules that contains .cpp files
  • If I don't open lua files in this workspace, no lua-language-server process will be spawned
    image
  • Only after I open a .lua file, then lua-language-server.exe is spawned
    image

@CppCXY
Copy link
Collaborator

CppCXY commented Nov 9, 2024

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
Copy link
Author

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

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

3 participants