Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Documentation and completions slow to appear after startup #57

Open
r-zip opened this issue Sep 12, 2019 · 4 comments
Open

Documentation and completions slow to appear after startup #57

r-zip opened this issue Sep 12, 2019 · 4 comments

Comments

@r-zip
Copy link

r-zip commented Sep 12, 2019

FYI, I have had this problem with Emacs 26.2, Emacs 26.3, and Emacs 27.0.50 built with jansson.

After the language server has started, documentation and completion candidates are slow to appear, and I get lots of "task cancelled" messages.

By contrast, VSCode is quick to provide completions and documentation after startup.

Since we know that the VSCode and Emacs servers are the same, do we know what difference between the clients is causing this issue?

@yyoncho
Copy link
Member

yyoncho commented Sep 12, 2019

@r-zip I have investigated that in the past. Task cancelled is received if there are changes in the files that the language server is scanning right now. In that particular case the issue was caused by the emacs backup files.

@r-zip
Copy link
Author

r-zip commented Sep 12, 2019

@yyoncho I just disabled backups completely and set create-lockfiles to nil. Still having the issue. Do you have any other recommendations?

@yyoncho
Copy link
Member

yyoncho commented Sep 12, 2019

@r-zip I debugged it in the past by recompiling the csharp langauge server with additional logging. If you can provide a project to reproduce the issue with(ideally using the docker image - you may use https://github.com/emacs-lsp/lsp-docker ) I could take a look. Without a reproducer, it will be really hard to do anything on our side.

@seagle0128
Copy link
Collaborator

mspyls takes long time to index and cache at the first startup, then it's faster. I observed the same behaviors in VSCode.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants