You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem here is that you need to open your editor at the module root, i.e. the directory that contains the go.mod file. Otherwise, gopls has no way to determine the module root (see #32394). I believe that Emacs has a way of manually specifying the workspace root, though I am not sure about Spacemacs.
@stamblerre
I solved my problem and the problem is in my spacemac environment variable. I synced it. It’s a low-level mistake, it has delayed me a lot of time, and finally thank you for your help.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?macOS Majave 10.14.6
go env
OutputWhat did you do?
What did you expect to see?
I hope it can properly support the go module on spacemacs.
What did you see instead?
LSP: could not import helloworld/api (no parsed files for package helloworld/api) (lsp-ui)
lsp-log
The text was updated successfully, but these errors were encountered: