x/tools/gopls: Slow Startup With Cache #48829
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What did you do?
I use
gopls
throughvim-go
. I frequently open and close vim windows, and, on a large repo, it takes a while untilgopls
is useable. I would expect this when thegopls
daemon is first started, but there is a slow startup every time I run vim, despite the new instance of vim using the same daemon.Recipe to replicate:
vim-go
by adding the following to.vimrc
:let g:go_gopls_options = ['-debug=:0', '-remote=unix;/tmp/gopls-daemon-socket', '-logfile=auto', '-rpc.trace']
gopls -listen="unix;/tmp/gopls-daemon-socket" -logfile=auto -rpc.trace -debug=:0
gopls
was available.What did you expect to see?
I expected the first vim instance to take a while to start up, but I expected the second vim instance to be responsive right away, since the daemon's cache was warm.
What did you see instead?
The second instance of vim also took a long time before
gopls
was available.Logs are below:
client1.log
client2.log
daemon.log
Additionally, the debug http server showed that both clients were, indeed, using the same cache.
Build info
The text was updated successfully, but these errors were encountered: