-
Notifications
You must be signed in to change notification settings - Fork 182
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
LSP Slows down normal autocomplete #2430
Comments
From your screencast it doesn't look like completions are not slowed down but rather completely suppressed. Do you have any other servers running in php files? What is shown in the bottom-left corner? Also check Sublime Text console for any errors. |
I find:
...to be interesting. I don't know what it means, but I do get empty completions. |
If LSP-copilot for some reason takes a long time to generate completions then it's an expected behavior. We can't show completions until server responds. But you said that it happens with LSP-copilot disabled and I'm interested in that case rather. If it doesn't happen with LSP-copilot disabled then there is nothing to fix here. Just make sure that LSP-copilot works faster. Since it relies on cloud, it's probably some issue related to your network. Eventually you can try filing an issue against LSP-copilot. |
It does happen with LSP-coplot disabled: CleanShot.2024-03-06.at.18.21.41.mp4Here I enable both LSP and LSP-copilot, then I disable LSP-copilot, then I disable LSP and it finally starts working again. |
Try disabling copilot and then closing and reopening the file. There might be a special case happening in disabling a package that we don't handle correctly. |
I tried that... didn't seem to make a change. But I did find that some files were slow, while other files were faster: 📹 https://a.supportally.com/v/94QnzY Maybe a file size or complexity issue? Again all I have enabled is:
I also tested with LSP-copilot disabled (after a ST restart) and I still had the weird per-file speed issues. |
When it's slow, what is shown in the bottom left corner of the ST window? |
Pretty sure it won't happen in Safe Mode (you can install Package Control and LSP in it for testing) in which case it would likely be due to some other plugin. Maybe some weird interaction between LSP and another plugin... You can try Safe Mode and if it doesn't reproduce there then in your original installation try disabling various other plugins. |
I have decided to give up on Sublime Text after 10+ years lol! I am not going to re-test this again in safe mode, sorry. Feel free to close the issue if you still think this isn't an issue. Thanks for building this though! |
We can't do much about an issue when there is no reproduction and you are the first in years to report it. |
Describe the bug
When LSP is enabled, I can start to type something that would normally autocomplete:
But with LSP enabled:
Note: It will eventually pop up sometimes, after a long delay.
Expected behavior
Autocomplete still works as normal.
Logs
📹 https://a.supportally.com/v/2140Ye
The text was updated successfully, but these errors were encountered: