Closed mrdulin closed 5 years ago
Sorry for the confusion on the other bug, I was explaining something else to another user--this is a gopls
issue and the discussion should be moved back to that issue. I'm sorry I haven't been able to investigate it yet - we do have a lot of different things on our plate so sometimes issues slip through. I will write a follow-up there.
I'm also getting these errors:
Message: GetAST: unable to check package for file:///c:/Users/David/Google%20Drive/Programming/The_Cacophony_Project/audiobait/main.go: no packages found for file:///c:/Users/David/Google%20Drive/Programming/The_Cacophony_Project/audiobait/main.go
Code: 0
[Error - 5:59:20 PM] Request textDocument/hover failed.
Message: GetAST: unable to check package for file:///c:/Users/David/Google%20Drive/Programming/The_Cacophony_Project/audiobait/main.go: no packages found for file:///c:/Users/David/Google%20Drive/Programming/The_Cacophony_Project/audiobait/main.go
Code: 0
[Error - 6:08:18 PM] Request textDocument/hover failed.
Message: GetAST: unable to check package for file:///c:/Users/David/Google%20Drive/Programming/The_Cacophony_Project/audiobait/main.go: no packages found for file:///c:/Users/David/Google%20Drive/Programming/The_Cacophony_Project/audiobait/main.go
Code: 0 ```
@Davo36: Can you please open a separate issue on the Go issue tracker?
Please log issues on the Go issue tracker for errors from the language server gopls
This issue confused me for a month. My vscode go extension doesn't work well. For now it seems the intellisense doesn't work.
For example:
when I hover to the import statement,
gopls
give me below trace message:Another case, when I hover to a method,
the
gopls
give me below trace messages:version
vscode-go: 0.11.4 go: go version go1.12.6 darwin/amd64
Other informations
I set up two GOPATH:
GOPATH="/Users/ldu020/workspace/go:/Users/ldu020/workspace/github.com/mrdulin/golang"
GOPATH:
/Users/ldu020/workspace/go
is for storing go tools and other global level third-party modules, here is the directory tree:GOPATH:
/Users/ldu020/workspace/github.com/mrdulin/golang
is for storing my project and project level dependencies. Here is my directory tree:This issue happens in
src/serverless-functions-go
project. Hope anyone can help me solve this issue.I already post an issue https://github.com/golang/go/issues/32762 to official
go
repo. But it seems they don't think it's agopls
issue and they don't have time to take look at this. I don't know what's going on.Any try
I try to reinstall all go tools for vscode-go extension at least ten times and reload the vscode window. The issue still there.
Here is my repo for reproducing this issue: https://github.com/mrdulin/golang