x/tools/gopls: "no dep handle, no metadata" #46841
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
TLDR, basically same as reported in #37786, but under Emacs, via LSP in
go-mode
.What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I believe so.
What operating system and processor architecture are you using (
go env
)?Debian Bullseys under Windows WSL.
go env
OutputWhat did you do?
Use gopls via LSP in
go-mode
under Emacs.What did you expect to see?
gopls
find the package underGOPATH
gopls
able to handle symlink, and knows where the realpath areWhat did you see instead?
gopls
wasn't able to find the package underGOPATH
.Here is the relevant log from
*lsp-log*
in Emacs:However, it is right there:
$ ls -d $GOPATH/src/github.com/mkideal/cli /home/me/l/wk/Go/src/github.com/mkideal/cli
I don't know if symlink is a factor in this case, as I heavily use symlink pointing my Go code and packages around. E.g., for the
/home/me/l/gg
in above log:The text was updated successfully, but these errors were encountered: