-
Notifications
You must be signed in to change notification settings - Fork 184
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 completely borked after upgrade to 2.2.0 from 1.30.0 #2509
Comments
Short story: You need to upgrade Package Control to latest version for things to work. It will also require 1 or two ST restarts once you have updated to latest version. Long story: sublimehq/sublime_text#6456 (comment) |
That did not fix the issue; I upgraded Package Control and restarted three times (until it stopped complaining) then upgraded all the packages and then upgraded ST to the most recent version. I see exactly the same issue. |
@kortschak is there any reason why you manually configured gopls? I would just suggest using the LSP-gopls package. You manual configuration is missing a "command" that is necessary to start "gopls". You could fix that by adding the "command"
Or by removing you custom configuration and installing LSP-gopls. |
The installation predates LSP-gopls. |
Than please remove gopls from the "clients" section. |
When you install a LSP-* package, such as LSP-gopls, there is no need to manually put configuration in the "clients" section of a LSP.sublime-settings file. |
|
I took a look at their docs https://cs.opensource.google/go/x/tools/+/refs/tags/gopls/v0.16.1:gopls/doc/subl.md
The configuration is missing a "command", and a "selector". Please revert what ever you did by reading their docs. If you want you can open an issue at the gopls repo to remove/update the incorrect docs. |
Their docs have worked for years (when I installed LSP and gopls, https://lsp.sublimetext.io/language_servers/#go did not exist). I'll file an issue when I have time. |
I already tried 2 years ago golang/tools#377 |
Describe the bug
I don't even know where to start. I upgraded ST to 4180 a couple of days ago. This appears to have broken LSP (gopls is my LS) confirmed by downgrading to 4169. Thinking that this may be due to the LSP version, I was on 1.30.0, I upgraded LSP to 2.2.0. Where the LSP was moderately broken (not working, but menus displaying), it is not completely borked. I have gone through the steps in the package control message and all the claimed areas appear to be as expected.
To Reproduce
Steps to reproduce the behavior:
Described above.
Expected behavior
A working LSP
Screenshots
Not relevant.
Logs
Troubleshooting: gopls
Version
Server Test Run
Server Configuration
Active view
Project / Workspace
[ "/home/user/src/golang.org/x/tools/gopls" ]
LSP configuration
System PATH
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: