New answers tagged


A workaround for this is to disable file watchers: (setq lsp-enable-file-watchers nil) ... and then restart the workspace: (lsp-restart-workspace) I'm not sure if this effectively disables a useful feature, but I can't get it to work otherwise. The solution was described here: More about file watchers here: https://...


You can lengthen the timeout using the lsp-response-timeout option: Of course, what you really want to do is make gopls faster. Probably not much you can configure in Emacs to do that.


As mentioned in the comments, a workaround for this issue is to start emacs on a folder (or on nothing) instead of on a single source file. This was discussed for VScode with gopls as backend here:

Top 50 recent answers are included