-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Loading workspace in 2.6.0
became really slow
#903
Comments
I have exactly the same problem! |
Previously I would start a process per workspace, now I have one process for all workspaces. |
Same here, it seems to be way more than 3 times. It usually takes less than a minute, now I've measured 12 minutes. That said, automatically detecting and processing all workspaces is a nice addition, having to open a file from each workspace before was a bit annoying. 👍 |
It does sound like there is a bug causing the loading speed to be too slow, and I'll take that as a priority. |
All 3 workspaces have a library that is the same. Is it now possible to load a library 1 time for all 3 workspaces? Not sure if this is something that could work but this would reduce the size of the files to cache a lot for me. workspace 1 libraries: fb, shared, client it’s looks a bit like this now and it’s the fb library that has over 2000 files. |
Please check if this version works: https://github.com/sumneko/lua-language-server/actions/runs/1711860828 |
@sumneko that version is much faster |
Still slow for me |
Please provide your logs, see https://github.com/sumneko/lua-language-server/wiki/Default-log-path |
Sorry I've been busy these days, this issue may take next week to resolve |
Please check if this version works: https://github.com/sumneko/lua-language-server/actions/runs/1728033602 |
same. |
Please test this version: https://github.com/sumneko/lua-language-server/actions/runs/1730943446 |
Also I've noticed that the diagnosing isn't working correctly, it's not showing any of the warnings i get with the other versions in the problems tab |
I checked the logs carefully and the phenomenon is very strange. It only takes about 15 milliseconds to load a file at first. According to this speed, 3000 unique files should be loaded in 1 minute. |
If you like to you can check it yourself by installing the Vua extension that builds on top of your extension. just search for Vua in the vs code marketplace and you will find it. |
Memory is fine, lua server continues rising its memory since it begins loading and goes up to around 500MB. I have 16GB of RAM and overall my pc uses around 7GB. As flashhit said, you can probably reproduce it yourself with the Vua plugin, I use it as well. |
Thanks for the project, it only took me a minute to find the problem: Please test this version, it should be completely fixed this time: https://github.com/sumneko/lua-language-server/actions/runs/1734161110 |
@sumneko Awesome that fixed it 😄 altho the diagnostics aren't working (not getting any errors in the problems tab), not sure if that's intended with that version. |
ye the issue is fixed but I would say compared to 2.5.6 it's still slower. |
I cannot reproduce this, please provide your log |
@FoolHen Are there no diagnostics in the window and tab, or is it just not displayed in the tab? |
Errors, warnings and info are enabled, they just dont show up. In previous versions (including 2.6.0) it shows the warnings that my project has, but not with this version you sent |
I add some logs in this version: https://github.com/sumneko/lua-language-server/actions/runs/1735579998 |
https://github.com/sumneko/lua-language-server/actions/runs/1735671951 |
From your log, I can see it is indeed pushed 2 diag results to EDIT: It would be nice to provide me with a test project and explicitly tell me what type of warning is missing in which file and where. |
There weren't any problems in the tab. The warning I was expecting are on the |
Thank you, I can reproduce it now. |
TestVS.zip In this project the |
Yep that fixed it. It's also back to how fast it was in 2.5.6. Thanks! |
The workspace is loaded only at 98%. :-( |
Check this version: https://github.com/sumneko/lua-language-server/actions/runs/1736040553 |
OK. 100% |
ye this version is pretty good. |
I think this video shows another bug as well. probably not related to this issue, but it also shows the loading time it takes The other bug is at the end of the video. You see that it doesn't show the warnings in KitHelper until I modify the file. |
My log, in case it's useful. |
Let's move to a new issue |
What about this? |
Can you reproduce it stably? I have never reproduced this problem with empty Vua project. |
In the project that I used I had it every time. |
Would it be convenient to send me your entire project? |
Let me check if I get it with a blank project as well first |
Oh I see why. It seems that I have a WebUI folder with a bunch of stuff thats not needed for Lua. Like a folder with node_modules that is causing this delay. |
I can do some optimizations later and warn if scanning some folders takes too long. |
So it looks like it works fine if I enable the |
It seems like a bug, let's open a new issue about it |
I have 3 workspaces in one project with 2500+ files each (because of libraries). Before this release it was loading the workspaces pretty fast. Now it is really really slow. I would say it became unusable for me. So rn I have to roll back to the previous release.
The text was updated successfully, but these errors were encountered: