-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
x/tools/gopls: do not suggest names from unimportable internal packages #44890
Comments
@butuzov Is this issue about the autocomplete suggesting
|
Yeah, @hyangah I wasn't in
|
Thanks @butuzov
Auto-suggestion triggered in gopls log[Trace - 13:23:47.461 PM] Sending request 'initialize - (0)'. Params: {"processId":21448,"clientInfo":{"name":"vscode","version":"1.54.1"},"rootPath":"/Users/hakim/tmp/folding","rootUri":"file:///Users/hakim/tmp/folding","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"tagSupport":{"valueSet":[1]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true,"semanticTokens":{"refreshSupport":true}},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]},"codeDescriptionSupport":true,"dataSupport":true},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]},"insertReplaceSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]}},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true},"activeParameterSupport":true},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true,"tagSupport":{"valueSet":[1]},"labelSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"disabledSupport":true,"dataSupport":true,"resolveSupport":{"properties":["edit"]},"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true,"prepareSupportDefaultBehavior":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true},"selectionRange":{"dynamicRegistration":true},"callHierarchy":{"dynamicRegistration":true},"semanticTokens":{"dynamicRegistration":true,"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","member","macro","keyword","modifier","comment","string","number","regexp","operator"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"formats":["relative"],"requests":{"range":true,"full":{"delta":true}}}},"window":{"workDoneProgress":true}},"initializationOptions":{"verboseOutput":true},"trace":"off","workspaceFolders":[{"uri":"file:///Users/hakim/tmp/folding","name":"folding"}]}[Trace - 13:23:47.463 PM] Received response 'initialize - (0)' in 1ms. [Trace - 13:23:47.606 PM] Sending notification 'initialized'. [Trace - 13:23:47.606 PM] Received request 'window/workDoneProgress/create - (1)'. [Trace - 13:23:47.606 PM] Sending notification 'textDocument/didOpen'. [Trace - 13:23:47.636 PM] Sending response 'window/workDoneProgress/create - (1)' in 29ms. [Trace - 13:23:47.636 PM] Received notification '$/progress'. [Trace - 13:23:47.636 PM] Received request 'workspace/configuration - (2)'. [Trace - 13:23:47.637 PM] Sending request 'textDocument/codeAction - (1)'. [Trace - 13:23:47.638 PM] Sending request 'textDocument/documentLink - (2)'. [Trace - 13:23:47.690 PM] Sending response 'workspace/configuration - (2)' in 53ms. [Trace - 13:23:47.817 PM] Sending notification '$/cancelRequest'. [Trace - 13:23:47.818 PM] Sending request 'textDocument/codeAction - (3)'. [Trace - 13:23:47.824 PM] Sending request 'textDocument/foldingRange - (4)'. [Trace - 13:23:47.833 PM] Sending request 'textDocument/documentSymbol - (5)'. [Trace - 13:23:47.952 PM] Received notification 'window/logMessage'. [Info - 1:23:47 PM] 2021/03/09 13:23:47 go env for /Users/hakim/tmp/folding [Trace - 13:23:47.964 PM] Sending request 'textDocument/codeLens - (6)'. [Trace - 13:23:47.992 PM] Received notification 'window/logMessage'. [Info - 1:23:47 PM] 2021/03/09 13:23:47 56.796564ms for GOROOT= GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=https://proxy.golang.org,direct PWD=/Users/hakim/tmp/folding go list -modfile=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/go.dd97ce5c7b923a6ea4996dbe8058f89ae09b786d39969f1b4c97b1c5b0427a3e.448741622.mod -mod=readonly -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe [Trace - 13:23:48.004 PM] Received notification 'window/logMessage'. [Info - 1:23:48 PM] 2021/03/09 13:23:48 70.027639ms for GOROOT= GOPATH=/Users/hakim/go GO111MODULE=off GOPROXY=https://proxy.golang.org,direct PWD=/Users/hakim/tmp/folding go list -e -f {{context.ReleaseTags}} [Trace - 13:23:49.025 PM] Received notification 'window/logMessage'. [Info - 1:23:49 PM] 2021/03/09 13:23:49 1.020557026s for GOROOT= GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=https://proxy.golang.org,direct PWD=/Users/hakim/tmp/folding go list -modfile=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/go.dd97ce5c7b923a6ea4996dbe8058f89ae09b786d39969f1b4c97b1c5b0427a3e.448741622.mod -mod=readonly -e -json -compiled=true -test=true -export=false -deps=true -find=false -- builtin w/... [Trace - 13:23:49.035 PM] Received notification 'window/logMessage'. [Info - 1:23:49 PM] 2021/03/09 13:23:49 go/packages.Load [Trace - 13:23:49.036 PM] Received notification 'window/logMessage'. [Info - 1:23:49 PM] 2021/03/09 13:23:49 go/packages.Load [Trace - 13:23:49.036 PM] Received notification 'window/logMessage'. [Info - 1:23:49 PM] 2021/03/09 13:23:49 go/packages.Load [Trace - 13:23:49.160 PM] Received notification '$/progress'. [Trace - 13:23:49.164 PM] Received request 'client/registerCapability - (3)'. [Trace - 13:23:49.192 PM] Sending response 'client/registerCapability - (3)' in 27ms. [Trace - 13:23:49.213 PM] Received request 'client/registerCapability - (4)'. [Trace - 13:23:49.234 PM] Sending response 'client/registerCapability - (4)' in 20ms. [Error - Received] 13:23:49.386 PM golang/vscode-go#1 JSON RPC cancelled [Trace - 13:23:49.544 PM] Sending notification '$/cancelRequest'. [Trace - 13:23:49.545 PM] Sending notification 'textDocument/didChange'. [Trace - 13:23:49.545 PM] Sending notification '$/cancelRequest'. [Trace - 13:23:49.687 PM] Received response 'textDocument/documentLink - (2)' in 2049ms. [Error - Received] 13:23:49.687 PM golang/vscode-go#3 JSON RPC cancelled [Error - Received] 13:23:49.687 PM golang/vscode-go#4 JSON RPC cancelled [Trace - 13:23:49.688 PM] Received response 'textDocument/documentSymbol - (5)' in 1854ms. [Trace - 13:23:49.688 PM] Received response 'textDocument/codeLens - (6)' in 1723ms. [Trace - 13:23:49.893 PM] Sending request 'textDocument/foldingRange - (7)'. [Trace - 13:23:49.895 PM] Received response 'textDocument/foldingRange - (7)' in 1ms. [Trace - 13:23:49.900 PM] Sending request 'textDocument/codeLens - (8)'. [Trace - 13:23:49.901 PM] Sending request 'textDocument/documentSymbol - (9)'. [Trace - 13:23:49.901 PM] Received response 'textDocument/codeLens - (8)' in 0ms. [Trace - 13:23:49.902 PM] Received response 'textDocument/documentSymbol - (9)' in 1ms. [Trace - 13:23:50.525 PM] Sending request 'textDocument/documentLink - (10)'. [Trace - 13:23:50.526 PM] Received response 'textDocument/documentLink - (10)' in 0ms. [Trace - 13:23:52.053 PM] Sending notification 'textDocument/didChange'. [Trace - 13:23:52.060 PM] Received notification 'textDocument/publishDiagnostics'. [Trace - 13:23:52.072 PM] Sending request 'textDocument/completion - (11)'. [Trace - 13:23:52.098 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 23.931256ms for GOROOT= GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=off PWD=/Users/hakim/tmp/folding go env -json GO111MODULE GOFLAGS GOINSECURE GOMOD GOMODCACHE GONOPROXY GONOSUMDB GOPATH GOPROXY GOROOT GOSUMDB [Trace - 13:23:52.123 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 21.170155ms for GOROOT=/usr/local/go GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=off PWD=/Users/hakim/tmp/folding go list -modfile=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/go.dd97ce5c7b923a6ea4996dbe8058f89ae09b786d39969f1b4c97b1c5b0427a3e.207665802.mod -mod=readonly -m -f "{{.Path}}\n{{.Dir}}\n{{.GoMod}}\n{{.GoVersion}}\n{{range context.ReleaseTags}}{{if eq . "go1.14"}}{{.}}{{end}}{{end}}\n" [Trace - 13:23:52.138 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 14.245078ms for GOROOT=/usr/local/go GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=off PWD=/Users/hakim/tmp/folding go env GOFLAGS [Trace - 13:23:52.162 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 23.184769ms for GOROOT=/usr/local/go GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=off PWD=/Users/hakim/tmp/folding go list -m -e -json ... [Trace - 13:23:52.162 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 module github.com/konsorten/go-windows-terminal-sequences has not been downloaded and will be ignored [Trace - 13:23:52.162 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 module github.com/chzyer/logex has not been downloaded and will be ignored [Trace - 13:23:52.162 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.163 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.163 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.163 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 module github.com/chzyer/readline has not been downloaded and will be ignored [Trace - 13:23:52.163 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 module github.com/chzyer/test has not been downloaded and will be ignored [Info - 1:23:52 PM] 2021/03/09 13:23:52 module github.com/pkg/errors has not been downloaded and will be ignored [Trace - 13:23:52.163 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.163 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.163 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 module github.com/sirupsen/logrus has not been downloaded and will be ignored [Trace - 13:23:52.163 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/tmp/folding [Info - 1:23:52 PM] 2021/03/09 13:23:52 module github.com/ianlancetaylor/demangle has not been downloaded and will be ignored [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/tmp/folding in 653.871µs [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.29.0 [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.29.0/cache: no such file or directory [Trace - 13:23:52.171 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.29.0 in 8.015792ms [Trace - 13:23:52.171 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/!data!dog/datadog-go@v4.4.0+incompatible/cache: no such file or directory [Trace - 13:23:52.171 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/!data!dog/datadog-go@v4.4.0+incompatible [Trace - 13:23:52.172 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.172 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/!data!dog/datadog-go@v4.4.0+incompatible in 479.639µs [Trace - 13:23:52.172 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/!microsoft/go-winio@v0.4.16/cache: no such file or directory [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/!microsoft/go-winio@v0.4.16 [Trace - 13:23:52.173 PM] Received response 'textDocument/completion - (11)' in 101ms. [Trace - 13:23:52.199 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/!microsoft/go-winio@v0.4.16 in 27.791964ms [Trace - 13:23:52.250 PM] Sending request 'textDocument/foldingRange - (12)'. [Trace - 13:23:52.250 PM] Received response 'textDocument/foldingRange - (12)' in 0ms. [Trace - 13:23:52.323 PM] Sending request 'textDocument/codeAction - (13)'. [Trace - 13:23:52.324 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ... [Trace - 13:23:52.325 PM] Received response 'textDocument/codeAction - (13)' in 2ms. [Trace - 13:23:52.411 PM] Sending notification 'textDocument/didChange'. [Trace - 13:23:52.412 PM] Sending request 'textDocument/completion - (14)'. [Trace - 13:23:52.420 PM] Received notification 'textDocument/publishDiagnostics'. [Trace - 13:23:52.425 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.425 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/davecgh/go-spew@v1.1.1 [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/davecgh/go-spew@v1.1.1/cache: no such file or directory [Trace - 13:23:52.426 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/davecgh/go-spew@v1.1.1 in 1.232015ms [Trace - 13:23:52.427 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.427 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/google/pprof@v0.0.0-20210125172800-10e9aeb4a998 [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/google/pprof@v0.0.0-20210125172800-10e9aeb4a998/cache: no such file or directory [Trace - 13:23:52.434 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.434 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.434 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/google/pprof@v0.0.0-20210125172800-10e9aeb4a998 in 7.9221ms [Trace - 13:23:52.435 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/google/uuid@v1.2.0 [Trace - 13:23:52.435 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/google/uuid@v1.2.0/cache: no such file or directory [Trace - 13:23:52.436 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/cache: no such file or directory [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/google/uuid@v1.2.0 in 884.946µs [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0 [Trace - 13:23:52.437 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.437 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.437 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.437 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.437 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.437 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0 in 1.978105ms [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/philhofer/fwd@v1.1.1 [Trace - 13:23:52.439 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.439 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.439 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/philhofer/fwd@v1.1.1/cache: no such file or directory [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/pmezard/go-difflib@v1.0.0/cache: no such file or directory [Trace - 13:23:52.439 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.440 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.440 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/pmezard/go-difflib@v1.0.0 [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/philhofer/fwd@v1.1.1 in 402.444µs [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/stretchr/objx@v0.1.1/cache: no such file or directory [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/pmezard/go-difflib@v1.0.0 in 452.22µs [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/stretchr/objx@v0.1.1 [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/stretchr/testify@v1.7.0/cache: no such file or directory [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/stretchr/objx@v0.1.1 in 1.509469ms [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/stretchr/testify@v1.7.0 [Trace - 13:23:52.441 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.441 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.441 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/stretchr/testify@v1.7.0 in 1.580572ms [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/tinylib/msgp@v1.1.2/cache: no such file or directory [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/tinylib/msgp@v1.1.2 [Trace - 13:23:52.442 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.442 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.442 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/tinylib/msgp@v1.1.2 in 1.390794ms [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/golang.org/x/sys@v0.0.0-20191204072324-ce4227a45e2e [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/golang.org/x/sys@v0.0.0-20191204072324-ce4227a45e2e/cache: no such file or directory [Trace - 13:23:52.446 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/golang.org/x/time@v0.0.0-20210220033141-f8bda1e9f3ba [Trace - 13:23:52.446 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.446 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/golang.org/x/time@v0.0.0-20210220033141-f8bda1e9f3ba/cache: no such file or directory [Trace - 13:23:52.446 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.447 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/golang.org/x/sys@v0.0.0-20191204072324-ce4227a45e2e in 3.512187ms [Trace - 13:23:52.447 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/golang.org/x/time@v0.0.0-20210220033141-f8bda1e9f3ba in 611.797µs [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/golang.org/x/xerrors@v0.0.0-20200804184101-5ec99f83aff1 [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/golang.org/x/xerrors@v0.0.0-20200804184101-5ec99f83aff1/cache: no such file or directory [Trace - 13:23:52.447 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.447 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/golang.org/x/xerrors@v0.0.0-20200804184101-5ec99f83aff1 in 530.005µs [Trace - 13:23:52.447 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20200313102051-9f266ea9e77c/cache: no such file or directory [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20200313102051-9f266ea9e77c [Trace - 13:23:52.447 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20200313102051-9f266ea9e77c in 331.196µs [Trace - 13:23:52.448 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/gopkg.in/check.v1@v0.0.0-20161208181325-20d25e280405 [Trace - 13:23:52.448 PM] Received notification 'window/logMessage'. [Trace - 13:23:52.448 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/gopkg.in/check.v1@v0.0.0-20161208181325-20d25e280405/cache: no such file or directory [Trace - 13:23:52.448 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 Directory added to ignore list: /Users/hakim/go/pkg/mod/cache [Trace - 13:23:52.448 PM] Received notification 'window/logMessage'. [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/gopkg.in/check.v1@v0.0.0-20161208181325-20d25e280405 in 537.909µs [Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod [Trace - 13:23:52.494 PM] Received response 'textDocument/completion - (14)' in 82ms. [Trace - 13:23:52.616 PM] Sending notification 'textDocument/didChange'. [Trace - 13:23:52.616 PM] Sending request 'textDocument/completion - (15)'. [Trace - 13:23:52.624 PM] Received notification 'textDocument/publishDiagnostics'. [Trace - 13:23:52.681 PM] Received response 'textDocument/completion - (15)' in 65ms. [Trace - 13:23:52.850 PM] Sending request 'textDocument/foldingRange - (16)'. [Trace - 13:23:52.853 PM] Received response 'textDocument/foldingRange - (16)' in 3ms. [Trace - 13:23:52.886 PM] Sending notification 'textDocument/didChange'. [Trace - 13:23:52.886 PM] Sending request 'textDocument/completion - (17)'. [Trace - 13:23:52.907 PM] Received notification 'textDocument/publishDiagnostics'. [Trace - 13:23:53.052 PM] Sending request 'textDocument/documentLink - (18)'. [Trace - 13:23:53.076 PM] Received response 'textDocument/completion - (17)' in 190ms. [Trace - 13:23:53.083 PM] Sending request 'textDocument/foldingRange - (19)'. [Trace - 13:23:53.085 PM] Received response 'textDocument/documentLink - (18)' in 32ms. [Trace - 13:23:53.085 PM] Received response 'textDocument/foldingRange - (19)' in 1ms. [Trace - 13:23:53.165 PM] Sending request 'textDocument/codeAction - (20)'. [Trace - 13:23:53.174 PM] Received response 'textDocument/codeAction - (20)' in 8ms. [Trace - 13:23:53.174 PM] Received notification 'window/logMessage'. [Info - 1:23:53 PM] 2021/03/09 13:23:53 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ... [Trace - 13:23:53.307 PM] Received notification 'window/logMessage'. [Info - 1:23:53 PM] 2021/03/09 13:23:53 gopathwalk: scanned /Users/hakim/go/pkg/mod in 859.265166ms [Trace - 13:23:54.015 PM] Sending request 'textDocument/codeLens - (21)'. [Trace - 13:23:54.015 PM] Received response 'textDocument/codeLens - (21)' in 0ms. [Trace - 13:23:54.092 PM] Sending request 'textDocument/documentSymbol - (22)'. [Trace - 13:23:54.092 PM] Received response 'textDocument/documentSymbol - (22)' in 0ms. [Trace - 13:23:54.563 PM] Sending notification 'textDocument/didChange'. [Trace - 13:23:54.564 PM] Sending request 'textDocument/completion - (23)'. [Trace - 13:23:54.570 PM] Received notification 'textDocument/publishDiagnostics'. [Trace - 13:23:54.601 PM] Received notification 'window/logMessage'. [Info - 1:23:54 PM] 2021/03/09 13:23:54 loaded exports in dir /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log (package log): Logger, Print, Printf, SetLogger, StdLogger [Trace - 13:23:54.640 PM] Received notification 'window/logMessage'. [Info - 1:23:54 PM] 2021/03/09 13:23:54 loaded exports in dir /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log (package log): Bool, Encoder, Error, Event, Field, Float32, Float64, Int, Int32, Int64, InterleavedKVToFields, Lazy, LazyLogger, Message, Noop, Object, String, Uint32, Uint64 [Trace - 13:23:54.670 PM] Received response 'textDocument/completion - (23)' in 106ms. [Trace - 13:23:54.759 PM] Sending request 'textDocument/foldingRange - (24)'. [Trace - 13:23:54.760 PM] Received response 'textDocument/foldingRange - (24)' in 0ms. [Trace - 13:23:54.831 PM] Sending request 'textDocument/codeAction - (25)'. [Trace - 13:23:54.832 PM] Received notification 'window/logMessage'. [Info - 1:23:54 PM] 2021/03/09 13:23:54 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ... [Trace - 13:23:54.833 PM] Received notification 'window/logMessage'. [Info - 1:23:54 PM] 2021/03/09 13:23:54 loading package names for 1 packages [Trace - 13:23:54.833 PM] Received notification 'window/logMessage'. [Info - 1:23:54 PM] 2021/03/09 13:23:54 done loading package names for 1 packages [Trace - 13:23:54.849 PM] Sending notification 'textDocument/didChange'. [Trace - 13:23:54.850 PM] Sending notification '$/cancelRequest'. [Trace - 13:23:54.850 PM] Sending request 'textDocument/completion - (26)'. [Trace - 13:23:54.883 PM] Received notification 'window/logMessage'. [Info - 1:23:54 PM] 2021/03/09 13:23:54 gopathwalk: scanning /usr/local/go/src [Trace - 13:23:54.941 PM] Received notification 'window/logMessage'. [Trace - 13:23:54.941 PM] Received notification 'window/logMessage'. [Info - 1:23:54 PM] 2021/03/09 13:23:54 gopathwalk: scanned /usr/local/go/src in 57.864516ms [Trace - 13:23:54.941 PM] Received notification 'window/logMessage'. [Trace - 13:23:54.941 PM] Received notification 'window/logMessage'. [Info - 1:23:54 PM] 2021/03/09 13:23:54 loading exports in dir /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log (seeking package log) [Trace - 13:23:54.941 PM] Received notification 'window/logMessage'. [Trace - 13:23:54.941 PM] Received notification 'window/logMessage'. [Trace - 13:23:54.941 PM] Received notification 'window/logMessage'. [Info - 1:23:54 PM] 2021/03/09 13:23:54 log candidate 3/3: github.com/opentracing/opentracing-go/log in /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log [Info - 1:23:54 PM] 2021/03/09 13:23:54 loading exports in dir /usr/local/go/src/log (seeking package log) [Info - 1:23:54 PM] 2021/03/09 13:23:54 loading exports in dir /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log (seeking package log) [Info - 1:23:54 PM] 2021/03/09 13:23:54 log candidate 2/3: github.com/emicklei/go-restful/log in /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log [Info - 1:23:54 PM] 2021/03/09 13:23:54 log candidate 1/3: log in /usr/local/go/src/log [Error - Received] 13:23:54.942 PM golang/vscode-go#25 context canceled [Error - 1:23:54 PM] Request textDocument/codeAction failed. [Info - 1:23:54 PM] 2021/03/09 13:23:54 loaded exports in dir /usr/local/go/src/log (package log): Default, Fatal, Fatalf, Fatalln, Flags, LUTC, Ldate, Llongfile, Lmicroseconds, Lmsgprefix, Logger, Lshortfile, LstdFlags, Ltime, New, Output, Panic, Panicf, Panicln, Prefix, Print, Printf, Println, SetFlags, SetOutput, SetPrefix, Writer [Trace - 13:23:54.977 PM] Received response 'textDocument/completion - (26)' in 127ms. [Trace - 13:23:55.050 PM] Sending request 'textDocument/foldingRange - (27)'. [Trace - 13:23:55.051 PM] Received response 'textDocument/foldingRange - (27)' in 0ms. [Trace - 13:23:55.099 PM] Sending request 'textDocument/codeAction - (28)'. [Trace - 13:23:55.100 PM] Received notification 'window/logMessage'. [Trace - 13:23:55.100 PM] Received notification 'window/logMessage'. [Info - 1:23:55 PM] 2021/03/09 13:23:55 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ... [Info - 1:23:55 PM] 2021/03/09 13:23:55 loading package names for 1 packages [Trace - 13:23:55.101 PM] Received notification 'window/logMessage'. [Info - 1:23:55 PM] 2021/03/09 13:23:55 done loading package names for 1 packages [Trace - 13:23:55.112 PM] Received notification 'window/logMessage'. [Trace - 13:23:55.112 PM] Received notification 'window/logMessage'. [Trace - 13:23:55.112 PM] Received notification 'window/logMessage'. [Info - 1:23:55 PM] 2021/03/09 13:23:55 log candidate 1/3: log in /usr/local/go/src/log [Trace - 13:23:55.112 PM] Received notification 'window/logMessage'. [Trace - 13:23:55.112 PM] Received response 'textDocument/codeAction - (28)' in 13ms. [Trace - 13:23:55.112 PM] Received notification 'window/logMessage'. [Trace - 13:23:55.112 PM] Received notification 'window/logMessage'. [Info - 1:23:55 PM] 2021/03/09 13:23:55 loading exports in dir /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log (seeking package log) [Info - 1:23:55 PM] 2021/03/09 13:23:55 loading exports in dir /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log (seeking package log) [Info - 1:23:55 PM] 2021/03/09 13:23:55 log candidate 3/3: github.com/opentracing/opentracing-go/log in /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log [Info - 1:23:55 PM] 2021/03/09 13:23:55 log candidate 2/3: github.com/emicklei/go-restful/log in /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log [Info - 1:23:55 PM] 2021/03/09 13:23:55 loading exports in dir /usr/local/go/src/log (seeking package log) [Trace - 13:23:55.121 PM] Sending notification 'textDocument/didChange'. [Trace - 13:23:55.122 PM] Sending request 'textDocument/completion - (29)'. [Trace - 13:23:55.140 PM] Received response 'textDocument/completion - (29)' in 18ms. [Trace - 13:23:55.323 PM] Sending request 'textDocument/foldingRange - (30)'. [Trace - 13:23:55.323 PM] Received response 'textDocument/foldingRange - (30)' in 0ms. [Trace - 13:23:55.374 PM] Sending request 'textDocument/codeAction - (31)'. [Trace - 13:23:55.375 PM] Received notification 'window/logMessage'. [Info - 1:23:55 PM] 2021/03/09 13:23:55 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ... [Trace - 13:23:55.375 PM] Received notification 'window/logMessage'. [Trace - 13:23:55.376 PM] Received notification 'window/logMessage'. [Info - 1:23:55 PM] 2021/03/09 13:23:55 loading package names for 1 packages [Info - 1:23:55 PM] 2021/03/09 13:23:55 done loading package names for 1 packages [Trace - 13:23:55.385 PM] Received notification 'window/logMessage'. [Trace - 13:23:55.385 PM] Received notification 'window/logMessage'. [Trace - 13:23:55.385 PM] Received notification 'window/logMessage'. [Trace - 13:23:55.385 PM] Received notification 'window/logMessage'. [Info - 1:23:55 PM] 2021/03/09 13:23:55 log candidate 1/3: log in /usr/local/go/src/log [Trace - 13:23:55.385 PM] Received notification 'window/logMessage'. [Trace - 13:23:55.385 PM] Received notification 'window/logMessage'. [Info - 1:23:55 PM] 2021/03/09 13:23:55 loading exports in dir /usr/local/go/src/log (seeking package log) [Info - 1:23:55 PM] 2021/03/09 13:23:55 loading exports in dir /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log (seeking package log) [Info - 1:23:55 PM] 2021/03/09 13:23:55 loading exports in dir /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log (seeking package log) [Info - 1:23:55 PM] 2021/03/09 13:23:55 log candidate 3/3: github.com/opentracing/opentracing-go/log in /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log [Info - 1:23:55 PM] 2021/03/09 13:23:55 log candidate 2/3: github.com/emicklei/go-restful/log in /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log [Trace - 13:23:55.386 PM] Received response 'textDocument/codeAction - (31)' in 11ms. [Trace - 13:23:55.568 PM] Sending request 'textDocument/documentLink - (32)'. [Trace - 13:23:55.569 PM] Received response 'textDocument/documentLink - (32)' in 0ms. [Trace - 13:23:55.881 PM] Sending request 'textDocument/codeLens - (33)'. [Trace - 13:23:55.883 PM] Received response 'textDocument/codeLens - (33)' in 2ms. [Trace - 13:23:55.930 PM] Sending request 'textDocument/documentSymbol - (34)'. [Trace - 13:23:55.931 PM] Received response 'textDocument/documentSymbol - (34)' in 0ms. |
Stumbling across this a year later, I'm running into this constantly and it ends up costing more time than it saves. Whenever I type |
Describe the bug
Getting internal packages to show up in autocomplete of absolutely unrelated projects.
Notes
There are nested module ( with different import path) in workspace
a uses b
,b located (temporary) under a
, while in b getting e in autocomplete. a and b not use e, b uses something that uses c- a (domain/a)
- b (domain/b)
- c (domain/c)
- e (domain/c/internal/e)
Screenshots or recordings
What version of Go, VS Code & VS Code Go extension are you using?
The text was updated successfully, but these errors were encountered: