Skip to content
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: incorrectly suggests internal/singleflight completion #64083

Open
findleyr opened this issue Nov 12, 2023 · 2 comments
Open

x/tools/gopls: incorrectly suggests internal/singleflight completion #64083

findleyr opened this issue Nov 12, 2023 · 2 comments
Assignees
Labels
gopls/imports gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@findleyr
Copy link
Contributor

Reported from @seankhliao in slack: gopls reported internal/singleflight (from std) as a completion candidate, while not working in std.

Though related to unimported completion of standard library candidates, I think this is distinct from #63767. Specifically, I am suspicious of the 'fast path' unimported completion which looks at packages already in the import graph:
https://cs.opensource.google/go/x/tools/+/master:gopls/internal/lsp/source/completion/completion.go;l=1695;drc=7f23bc81dc216f83d56b5256abc053109bf5c58b

@seankhliao can you go list -deps ./... | grep singleflight to confirm that this package is in your import graph?

@findleyr findleyr added gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository. labels Nov 12, 2023
@gopherbot gopherbot added this to the Unreleased milestone Nov 12, 2023
@seankhliao
Copy link
Member

seankhliao commented Nov 12, 2023

$ go list -deps ./... | grep singleflight
internal/singleflight
golang.org/x/sync/singleflight
gopls -vv -rpc.trace
[Trace - 13:39:54.119 PM] Sending request 'initialize - (1)'.
Params: {"processId":125930,"clientInfo":{"name":"Neovim","version":"0.9.4"},"initializationOptions":{},"trace":"off","capabilities":{"workspace":{"workspaceEdit":{"resourceOperations":["rename","create","delete"]},"workspaceFolders":true,"didChangeWatchedFiles":{"dynamicRegistration":false,"relativePatternSupport":true},"semanticTokens":{"refreshSupport":true},"symbol":{"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]},"dynamicRegistration":false,"hierarchicalWorkspaceSymbolSupport":true},"configuration":true,"applyEdit":true},"textDocument":{"codeAction":{"isPreferredSupport":true,"dataSupport":true,"resolveSupport":{"properties":["edit"]},"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dynamicRegistration":false},"semanticTokens":{"dynamicRegistration":false,"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"],"formats":["relative"],"overlappingTokenSupport":true,"multilineTokenSupport":false,"serverCancelSupport":false,"augmentsSyntaxTokens":true,"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"requests":{"full":{"delta":true},"range":false}},"callHierarchy":{"dynamicRegistration":false},"hover":{"dynamicRegistration":false,"contentFormat":["markdown","plaintext"]},"documentSymbol":{"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]},"dynamicRegistration":false,"hierarchicalDocumentSymbolSupport":true},"implementation":{"linkSupport":true},"definition":{"linkSupport":true},"completion":{"completionItem":{"insertTextModeSupport":{"valueSet":[1,2]},"labelDetailsSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits","sortText","filterText","insertText","textEdit","insertTextFormat","insertTextMode"]},"commitCharactersSupport":true,"preselectSupport":true,"deprecatedSupport":true,"documentationFormat":["markdown","plaintext"],"snippetSupport":true,"tagSupport":{"valueSet":[1]},"insertReplaceSupport":true},"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]},"contextSupport":true,"completionList":{"itemDefaults":["commitCharacters","editRange","insertTextFormat","insertTextMode","data"]},"insertTextMode":1,"dynamicRegistration":false},"publishDiagnostics":{"tagSupport":{"valueSet":[1,2]},"relatedInformation":true},"typeDefinition":{"linkSupport":true},"synchronization":{"didSave":true,"willSaveWaitUntil":true,"dynamicRegistration":false,"willSave":true},"rename":{"dynamicRegistration":false,"prepareSupport":true},"references":{"dynamicRegistration":false},"declaration":{"linkSupport":true},"signatureHelp":{"dynamicRegistration":false,"signatureInformation":{"activeParameterSupport":true,"parameterInformation":{"labelOffsetSupport":true},"documentationFormat":["markdown","plaintext"]}},"documentHighlight":{"dynamicRegistration":false}},"window":{"showDocument":{"support":true},"workDoneProgress":true,"showMessage":{"messageActionItem":{"additionalPropertiesSupport":false}}}},"workspaceFolders":[{"name":"\/home\/arccy\/code\/mono","uri":"file:\/\/\/home\/arccy\/code\/mono"}],"rootUri":"file:\/\/\/home\/arccy\/code\/mono","rootPath":"\/home\/arccy\/code\/mono"}


[Trace - 13:39:54.120 PM] Received response 'initialize - (1)' in 1ms.
Result: {"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"save":{}},"completionProvider":{"triggerCharacters":["."]},"hoverProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",","]},"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor.extract","refactor.inline","refactor.rewrite","source.fixAll","source.organizeImports"]},"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"renameProvider":{"prepareProvider":true},"foldingRangeProvider":true,"selectionRangeProvider":true,"executeCommandProvider":{"commands":["gopls.add_dependency","gopls.add_import","gopls.add_telemetry_counters","gopls.apply_fix","gopls.change_signature","gopls.check_upgrades","gopls.edit_go_directive","gopls.fetch_vulncheck_result","gopls.gc_details","gopls.generate","gopls.go_get_package","gopls.list_imports","gopls.list_known_packages","gopls.maybe_prompt_for_telemetry","gopls.mem_stats","gopls.regenerate_cgo","gopls.remove_dependency","gopls.reset_go_mod_diagnostics","gopls.run_go_work_command","gopls.run_govulncheck","gopls.run_tests","gopls.start_debugging","gopls.start_profile","gopls.stop_profile","gopls.test","gopls.tidy","gopls.toggle_gc_details","gopls.update_go_sum","gopls.upgrade_dependency","gopls.vendor","gopls.workspace_stats"]},"callHierarchyProvider":true,"semanticTokensProvider":{"legend":{"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"]},"range":true,"full":true},"inlayHintProvider":{},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"serverInfo":{"name":"gopls","version":"{\"GoVersion\":\"devel go1.22-0262ea1ff9 Thu Oct 26 18:46:50 2023 +0000 X:cacheprog\",\"Path\":\"golang.org/x/tools/gopls\",\"Main\":{\"Path\":\"golang.org/x/tools/gopls\",\"Version\":\"v0.14.1\",\"Sum\":\"h1:XaTETpi7Q67XO8nftquJitcx+9c2bPclO8Kz2sBVvec=\",\"Replace\":null},\"Deps\":[{\"Path\":\"github.com/BurntSushi/toml\",\"Version\":\"v1.2.1\",\"Sum\":\"h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=\",\"Replace\":null},{\"Path\":\"github.com/google/go-cmp\",\"Version\":\"v0.5.9\",\"Sum\":\"h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=\",\"Replace\":null},{\"Path\":\"github.com/sergi/go-diff\",\"Version\":\"v1.1.0\",\"Sum\":\"h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=\",\"Replace\":null},{\"Path\":\"golang.org/x/exp/typeparams\",\"Version\":\"v0.0.0-20221212164502-fae10dda9338\",\"Sum\":\"h1:2O2DON6y3XMJiQRAS1UWU+54aec2uopH3x7MAiqGW6Y=\",\"Replace\":null},{\"Path\":\"golang.org/x/mod\",\"Version\":\"v0.13.0\",\"Sum\":\"h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY=\",\"Replace\":null},{\"Path\":\"golang.org/x/sync\",\"Version\":\"v0.4.0\",\"Sum\":\"h1:zxkM55ReGkDlKSM+Fu41A+zmbZuaPVbGMzvvdUPznYQ=\",\"Replace\":null},{\"Path\":\"golang.org/x/sys\",\"Version\":\"v0.13.0\",\"Sum\":\"h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=\",\"Replace\":null},{\"Path\":\"golang.org/x/telemetry\",\"Version\":\"v0.0.0-20231011160506-788d5629a052\",\"Sum\":\"h1:1baVNneD/IRxmu8JQdBuki78zUqBtZxq8smZXQj0X2Y=\",\"Replace\":null},{\"Path\":\"golang.org/x/text\",\"Version\":\"v0.13.0\",\"Sum\":\"h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k=\",\"Replace\":null},{\"Path\":\"golang.org/x/tools\",\"Version\":\"v0.14.1-0.20231026192422-8b5abd452b28\",\"Sum\":\"h1:5YgdZAe2w0x3Xrjv0+GXrI0jvm7qCQK/ySGFfiEHMfU=\",\"Replace\":null},{\"Path\":\"golang.org/x/vuln\",\"Version\":\"v1.0.1\",\"Sum\":\"h1:KUas02EjQK5LTuIx1OylBQdKKZ9jeugs+HiqO5HormU=\",\"Replace\":null},{\"Path\":\"honnef.co/go/tools\",\"Version\":\"v0.4.5\",\"Sum\":\"h1:YGD4H+SuIOOqsyoLOpZDWcieM28W47/zRO7f+9V3nvo=\",\"Replace\":null},{\"Path\":\"mvdan.cc/gofumpt\",\"Version\":\"v0.4.0\",\"Sum\":\"h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM=\",\"Replace\":null},{\"Path\":\"mvdan.cc/xurls/v2\",\"Version\":\"v2.4.0\",\"Sum\":\"h1:tzxjVAj+wSBmDcF6zBB7/myTy3gX9xvi8Tyr28AuQgc=\",\"Replace\":null}],\"Settings\":[{\"Key\":\"-buildmode\",\"Value\":\"exe\"},{\"Key\":\"-compiler\",\"Value\":\"gc\"},{\"Key\":\"-trimpath\",\"Value\":\"true\"},{\"Key\":\"DefaultGODEBUG\",\"Value\":\"httplaxcontentlength=1,httpmuxgo121=1,panicnil=1\"},{\"Key\":\"CGO_ENABLED\",\"Value\":\"0\"},{\"Key\":\"GOARCH\",\"Value\":\"amd64\"},{\"Key\":\"GOEXPERIMENT\",\"Value\":\"cacheprog\"},{\"Key\":\"GOOS\",\"Value\":\"linux\"},{\"Key\":\"GOAMD64\",\"Value\":\"v3\"}],\"Version\":\"v0.14.1\"}"}}


[Trace - 13:39:54.123 PM] Sending notification 'initialized'.
Params: {}


[Trace - 13:39:54.123 PM] Sending notification 'workspace/didChangeConfiguration'.
Params: {"settings":{"gopls":{"gofumpt":true,"staticcheck":true,"templateExtensions":["gotmpl"]}}}


[Trace - 13:39:54.123 PM] Sending notification 'workspace/didChangeConfiguration'.
Params: {"settings":{"gopls":{"gofumpt":true,"staticcheck":true,"templateExtensions":["gotmpl"]}}}


[Trace - 13:39:54.123 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"version":0,"languageId":"go","text":"package main\n\nfunc main() {}\n","uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"}}


[Trace - 13:39:54.123 PM] Received request 'window/workDoneProgress/create - (1)'.
Params: {"token":"2702157711607756256"}


[Trace - 13:39:54.125 PM] Sending request 'textDocument/semanticTokens/full - (2)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"}}


[Trace - 13:39:54.125 PM] Sending response 'window/workDoneProgress/create - (1)' in 2ms.
Result: 


[Trace - 13:39:54.126 PM] Received notification '$/progress'.
Params: {"token":"2702157711607756256","value":{"kind":"begin","title":"Setting up workspace","message":"Loading packages..."}}


[Trace - 13:39:54.126 PM] Received request 'workspace/configuration - (2)'.
Params: {"items":[{"scopeUri":"file:///home/arccy/code/mono","section":"gopls"}]}


[Trace - 13:39:54.126 PM] Sending response 'workspace/configuration - (2)' in 0ms.
Result: [{"gofumpt":true,"staticcheck":true,"templateExtensions":["gotmpl"]}]


[Trace - 13:39:54.138 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2023/11/12 13:39:54 go info for /home/arccy/code/mono\n(go dir /home/arccy/code/mono)\n(go version go version devel go1.22-0262ea1ff9 Thu Oct 26 18:46:50 2023 +0000 linux/amd64)\n(valid build configuration = true)\n(build flags: [])\n(selected go env: [GO111MODULE=, GOCACHE=/home/arccy/.cache/go-build, GOFLAGS=-trimpath \"-ldflags=-s -w\", GOMODCACHE=/home/arccy/.data/go/pkg/mod, GOPATH=/home/arccy/.data/go, GOPRIVATE=, GOROOT=/home/arccy/sdk/gotip, GOWORK=])\n\n"}


[Trace - 13:39:54.359 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2023/11/12 13:39:54 go/packages.Load #1\n\tsnapshot=0\n\tdirectory=file:///home/arccy/code/mono\n\tquery=[/home/arccy/code/mono/... builtin]\n\tpackages=37\n"}


[Trace - 13:39:54.363 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2023/11/12 13:39:54 go/packages.Load #1: updating metadata for 608 packages\n"}


[Trace - 13:39:54.403 PM] Received notification '$/progress'.
Params: {"token":"2702157711607756256","value":{"kind":"end","message":"Finished loading packages."}}


[Trace - 13:39:54.403 PM] Received request 'workspace/configuration - (3)'.
Params: {"items":[{"section":"gopls"}]}


[Trace - 13:39:54.403 PM] Sending response 'workspace/configuration - (3)' in 0ms.
Result: [{"gofumpt":true,"staticcheck":true,"templateExtensions":["gotmpl"]}]


[Trace - 13:39:54.403 PM] Received request 'workspace/configuration - (4)'.
Params: {"items":[{"scopeUri":"file:///home/arccy/code/mono","section":"gopls"}]}


[Trace - 13:39:54.403 PM] Sending response 'workspace/configuration - (4)' in 0ms.
Result: [{"gofumpt":true,"staticcheck":true,"templateExtensions":["gotmpl"]}]


[Trace - 13:39:54.405 PM] Received request 'workspace/configuration - (5)'.
Params: {"items":[{"section":"gopls"}]}


[Trace - 13:39:54.405 PM] Sending response 'workspace/configuration - (5)' in 0ms.
Result: [{"gofumpt":true,"staticcheck":true,"templateExtensions":["gotmpl"]}]


[Trace - 13:39:54.405 PM] Received request 'workspace/configuration - (6)'.
Params: {"items":[{"scopeUri":"file:///home/arccy/code/mono","section":"gopls"}]}


[Trace - 13:39:54.405 PM] Sending response 'workspace/configuration - (6)' in 0ms.
Result: [{"gofumpt":true,"staticcheck":true,"templateExtensions":["gotmpl"]}]


[Error - Received] 13:39:54.409 PM #2 semantictokens are disabled


[Trace - 13:39:54.414 PM] Sending request 'textDocument/signatureHelp - (3)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":0,"character":0}}


[Trace - 13:39:54.415 PM] Received response 'textDocument/signatureHelp - (3)' in 0ms.
Result: null


[Trace - 13:39:54.415 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2023/11/12 13:39:54 no signature help: cannot find an enclosing function\n\tposition=0:0\n"}


[Trace - 13:39:54.431 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","diagnostics":[]}


[Trace - 13:39:55.611 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":6,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":2,"character":14},"start":{"line":2,"character":13}},"rangeLength":1,"text":"\n}"},{"range":{"end":{"line":2,"character":13},"start":{"line":2,"character":13}},"rangeLength":0,"text":"\n"},{"range":{"end":{"line":3,"character":0},"start":{"line":3,"character":0}},"rangeLength":0,"text":"        "}]}


[Trace - 13:39:55.662 PM] Sending notification '$/cancelRequest'.
Params: {"id":2}


[Trace - 13:39:55.662 PM] Sending request 'textDocument/semanticTokens/full - (4)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"}}


[Error - Received] 13:39:55.663 PM #4 semantictokens are disabled


[Trace - 13:39:55.769 PM] Sending request 'textDocument/signatureHelp - (5)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":3,"character":8}}


[Trace - 13:39:55.770 PM] Received response 'textDocument/signatureHelp - (5)' in 0ms.
Result: null


[Trace - 13:39:55.770 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2023/11/12 13:39:55 no signature help: cannot find an enclosing function\n\tposition=3:8\n"}


[Trace - 13:39:55.977 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":7,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":3,"character":8},"start":{"line":3,"character":8}},"rangeLength":0,"text":"i"}]}


[Trace - 13:39:55.981 PM] Sending request 'textDocument/completion - (6)'.
Params: {"context":{"triggerKind":1},"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":3,"character":9}}


[Trace - 13:39:56.000 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":7,"diagnostics":[{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"severity":1,"code":"UndeclaredName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredName"},"source":"compiler","message":"undefined: i"}]}


[Trace - 13:39:56.048 PM] Received response 'textDocument/completion - (6)' in 66ms.
Result: {"isIncomplete":true,"items":[{"label":"if","kind":14,"documentation":{"kind":"markdown","value":""},"preselect":true,"sortText":"00000","filterText":"if","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"if"}},{"label":"imag","kind":3,"detail":"func(c complex128) float64","documentation":{"kind":"markdown","value":""},"sortText":"00001","filterText":"imag","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"imag(${1:})"}},{"label":"int","kind":7,"documentation":{"kind":"markdown","value":""},"sortText":"00002","filterText":"int","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"int"}},{"label":"int16","kind":7,"documentation":{"kind":"markdown","value":""},"sortText":"00003","filterText":"int16","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"int16"}},{"label":"int32","kind":7,"documentation":{"kind":"markdown","value":""},"sortText":"00004","filterText":"int32","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"int32"}},{"label":"int64","kind":7,"documentation":{"kind":"markdown","value":""},"sortText":"00005","filterText":"int64","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"int64"}},{"label":"int8","kind":7,"documentation":{"kind":"markdown","value":""},"sortText":"00006","filterText":"int8","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"int8"}},{"label":"io","kind":9,"detail":"\"io\"","documentation":{"kind":"markdown","value":""},"sortText":"00007","filterText":"io","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"io"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"io\"\n"}]},{"label":"ioutil","kind":9,"detail":"\"io/ioutil\"","documentation":{"kind":"markdown","value":""},"sortText":"00008","filterText":"ioutil","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"ioutil"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"io/ioutil\"\n"}]},{"label":"internal","kind":9,"detail":"\"cuelang.org/go/internal\"","documentation":{"kind":"markdown","value":""},"sortText":"00009","filterText":"internal","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"internal"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"cuelang.org/go/internal\"\n"}]},{"label":"internal","kind":9,"detail":"\"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal\"","documentation":{"kind":"markdown","value":""},"sortText":"00010","filterText":"internal","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"internal"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc/internal\"\n"}]},{"label":"internal","kind":9,"detail":"\"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal\"","documentation":{"kind":"markdown","value":""},"sortText":"00011","filterText":"internal","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"internal"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal\"\n"}]}]}


[Trace - 13:39:56.177 PM] Sending notification '$/cancelRequest'.
Params: {"id":4}


[Trace - 13:39:56.177 PM] Sending request 'textDocument/semanticTokens/full - (7)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"}}


[Error - Received] 13:39:56.177 PM #7 semantictokens are disabled


[Trace - 13:39:56.301 PM] Sending request 'textDocument/signatureHelp - (8)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":3,"character":9}}


[Trace - 13:39:56.302 PM] Received response 'textDocument/signatureHelp - (8)' in 0ms.
Result: null


[Trace - 13:39:56.302 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2023/11/12 13:39:56 no signature help: cannot find an enclosing function\n\tposition=3:9\n"}


[Trace - 13:39:56.519 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":8,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":3,"character":9},"start":{"line":3,"character":8}},"rangeLength":1,"text":""}]}


[Trace - 13:39:56.544 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":8,"diagnostics":[]}


[Trace - 13:39:56.689 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":9,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":3,"character":8},"start":{"line":3,"character":8}},"rangeLength":0,"text":"s"}]}


[Trace - 13:39:56.692 PM] Sending request 'textDocument/completion - (9)'.
Params: {"context":{"triggerKind":1},"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":3,"character":9}}


[Trace - 13:39:56.695 PM] Received response 'textDocument/completion - (9)' in 3ms.
Result: {"isIncomplete":true,"items":[{"label":"select","kind":14,"documentation":{"kind":"markdown","value":""},"preselect":true,"sortText":"00000","filterText":"select","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"select"}},{"label":"switch","kind":14,"documentation":{"kind":"markdown","value":""},"sortText":"00001","filterText":"switch","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"switch"}},{"label":"string","kind":7,"documentation":{"kind":"markdown","value":""},"sortText":"00002","filterText":"string","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"string"}},{"label":"sha1","kind":9,"detail":"\"crypto/sha1\"","documentation":{"kind":"markdown","value":""},"sortText":"00003","filterText":"sha1","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"sha1"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"crypto/sha1\"\n"}]},{"label":"sha256","kind":9,"detail":"\"crypto/sha256\"","documentation":{"kind":"markdown","value":""},"sortText":"00004","filterText":"sha256","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"sha256"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"crypto/sha256\"\n"}]},{"label":"sha512","kind":9,"detail":"\"crypto/sha512\"","documentation":{"kind":"markdown","value":""},"sortText":"00005","filterText":"sha512","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"sha512"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"crypto/sha512\"\n"}]},{"label":"sql","kind":9,"detail":"\"database/sql\"","documentation":{"kind":"markdown","value":""},"sortText":"00006","filterText":"sql","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"sql"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"database/sql\"\n"}]},{"label":"subtle","kind":9,"detail":"\"crypto/subtle\"","documentation":{"kind":"markdown","value":""},"sortText":"00007","filterText":"subtle","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"newText":"subtle"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"crypto/subtle\"\n"}]}]}


[Trace - 13:39:56.711 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":9,"diagnostics":[{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":9}},"severity":1,"code":"UndeclaredName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredName"},"source":"compiler","message":"undefined: s"}]}


[Trace - 13:39:56.879 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":10,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":3,"character":9},"start":{"line":3,"character":9}},"rangeLength":0,"text":"i"}]}


[Trace - 13:39:56.880 PM] Sending request 'textDocument/completion - (10)'.
Params: {"context":{"triggerKind":3},"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":3,"character":10}}


[Trace - 13:39:56.900 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":10,"diagnostics":[{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":10}},"severity":1,"code":"UndeclaredName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredName"},"source":"compiler","message":"undefined: si"}]}


[Trace - 13:39:56.981 PM] Received response 'textDocument/completion - (10)' in 100ms.
Result: {"isIncomplete":true,"items":[{"label":"signal","kind":9,"detail":"\"os/signal\"","documentation":{"kind":"markdown","value":""},"preselect":true,"sortText":"00000","filterText":"signal","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":10}},"newText":"signal"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"os/signal\"\n"}]},{"label":"singleflight","kind":9,"detail":"\"golang.org/x/sync/singleflight\"","documentation":{"kind":"markdown","value":""},"sortText":"00001","filterText":"singleflight","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":10}},"newText":"singleflight"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"golang.org/x/sync/singleflight\"\n"}]},{"label":"sig","kind":9,"detail":"\"crypto/internal/boring/sig\"","documentation":{"kind":"markdown","value":""},"sortText":"00002","filterText":"sig","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":10}},"newText":"sig"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"crypto/internal/boring/sig\"\n"}]},{"label":"singleflight","kind":9,"detail":"\"internal/singleflight\"","documentation":{"kind":"markdown","value":""},"sortText":"00003","filterText":"singleflight","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":10}},"newText":"singleflight"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"internal/singleflight\"\n"}]},{"label":"switch","kind":14,"documentation":{"kind":"markdown","value":""},"sortText":"00004","filterText":"switch","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":10}},"newText":"switch"}},{"label":"string","kind":7,"documentation":{"kind":"markdown","value":""},"sortText":"00005","filterText":"string","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":10}},"newText":"string"}}]}


[Trace - 13:39:57.061 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":11,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":3,"character":10},"start":{"line":3,"character":10}},"rangeLength":0,"text":"n"}]}


[Trace - 13:39:57.062 PM] Sending request 'textDocument/completion - (11)'.
Params: {"context":{"triggerKind":3},"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":3,"character":11}}


[Trace - 13:39:57.082 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":11,"diagnostics":[{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":11}},"severity":1,"code":"UndeclaredName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredName"},"source":"compiler","message":"undefined: sin"}]}


[Trace - 13:39:57.163 PM] Received response 'textDocument/completion - (11)' in 100ms.
Result: {"isIncomplete":true,"items":[{"label":"singleflight","kind":9,"detail":"\"golang.org/x/sync/singleflight\"","documentation":{"kind":"markdown","value":""},"preselect":true,"sortText":"00000","filterText":"singleflight","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":11}},"newText":"singleflight"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"golang.org/x/sync/singleflight\"\n"}]},{"label":"singleflight","kind":9,"detail":"\"internal/singleflight\"","documentation":{"kind":"markdown","value":""},"sortText":"00001","filterText":"singleflight","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":11}},"newText":"singleflight"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"internal/singleflight\"\n"}]},{"label":"string","kind":7,"documentation":{"kind":"markdown","value":""},"sortText":"00002","filterText":"string","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":11}},"newText":"string"}}]}


[Trace - 13:39:57.164 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":12,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":3,"character":11},"start":{"line":3,"character":11}},"rangeLength":0,"text":"g"}]}


[Trace - 13:39:57.164 PM] Sending request 'textDocument/completion - (12)'.
Params: {"context":{"triggerKind":3},"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":3,"character":12}}


[Trace - 13:39:57.185 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":12,"diagnostics":[{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":12}},"severity":1,"code":"UndeclaredName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredName"},"source":"compiler","message":"undefined: sing"}]}


[Trace - 13:39:57.264 PM] Received response 'textDocument/completion - (12)' in 100ms.
Result: {"isIncomplete":true,"items":[{"label":"singleflight","kind":9,"detail":"\"golang.org/x/sync/singleflight\"","documentation":{"kind":"markdown","value":""},"preselect":true,"sortText":"00000","filterText":"singleflight","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":12}},"newText":"singleflight"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"golang.org/x/sync/singleflight\"\n"}]},{"label":"singleflight","kind":9,"detail":"\"internal/singleflight\"","documentation":{"kind":"markdown","value":""},"sortText":"00001","filterText":"singleflight","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":12}},"newText":"singleflight"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"internal/singleflight\"\n"}]},{"label":"string","kind":7,"documentation":{"kind":"markdown","value":""},"sortText":"00002","filterText":"string","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":12}},"newText":"string"}}]}


[Trace - 13:39:57.299 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":13,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":3,"character":12},"start":{"line":3,"character":12}},"rangeLength":0,"text":"l"}]}


[Trace - 13:39:57.299 PM] Sending request 'textDocument/completion - (13)'.
Params: {"context":{"triggerKind":3},"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":3,"character":13}}


[Trace - 13:39:57.320 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":13,"diagnostics":[{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":13}},"severity":1,"code":"UndeclaredName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredName"},"source":"compiler","message":"undefined: singl"}]}


[Trace - 13:39:57.399 PM] Received response 'textDocument/completion - (13)' in 100ms.
Result: {"isIncomplete":true,"items":[{"label":"singleflight","kind":9,"detail":"\"golang.org/x/sync/singleflight\"","documentation":{"kind":"markdown","value":""},"preselect":true,"sortText":"00000","filterText":"singleflight","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":13}},"newText":"singleflight"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"golang.org/x/sync/singleflight\"\n"}]},{"label":"singleflight","kind":9,"detail":"\"internal/singleflight\"","documentation":{"kind":"markdown","value":""},"sortText":"00001","filterText":"singleflight","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":13}},"newText":"singleflight"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"internal/singleflight\"\n"}]}]}


[Trace - 13:39:57.401 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":14,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":3,"character":13},"start":{"line":3,"character":13}},"rangeLength":0,"text":"e"}]}


[Trace - 13:39:57.402 PM] Sending request 'textDocument/completion - (14)'.
Params: {"context":{"triggerKind":3},"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":3,"character":14}}


[Trace - 13:39:57.422 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":14,"diagnostics":[{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":14}},"severity":1,"code":"UndeclaredName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredName"},"source":"compiler","message":"undefined: single"}]}


[Trace - 13:39:57.502 PM] Received response 'textDocument/completion - (14)' in 100ms.
Result: {"isIncomplete":true,"items":[{"label":"singleflight","kind":9,"detail":"\"golang.org/x/sync/singleflight\"","documentation":{"kind":"markdown","value":""},"preselect":true,"sortText":"00000","filterText":"singleflight","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":14}},"newText":"singleflight"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"golang.org/x/sync/singleflight\"\n"}]},{"label":"singleflight","kind":9,"detail":"\"internal/singleflight\"","documentation":{"kind":"markdown","value":""},"sortText":"00001","filterText":"singleflight","insertTextFormat":2,"textEdit":{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":14}},"newText":"singleflight"},"additionalTextEdits":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"newText":"\nimport \"internal/singleflight\"\n"}]}]}


[Trace - 13:39:57.591 PM] Sending notification '$/cancelRequest'.
Params: {"id":7}


[Trace - 13:39:57.591 PM] Sending request 'textDocument/semanticTokens/full - (15)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"}}


[Error - Received] 13:39:57.591 PM #15 semantictokens are disabled


[Trace - 13:39:57.718 PM] Sending request 'textDocument/signatureHelp - (16)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":3,"character":14}}


[Trace - 13:39:57.718 PM] Received response 'textDocument/signatureHelp - (16)' in 0ms.
Result: null


[Trace - 13:39:57.718 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2023/11/12 13:39:57 no signature help: cannot find an enclosing function\n\tposition=3:14\n"}


[Trace - 13:39:58.178 PM] Sending request 'textDocument/signatureHelp - (17)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":3,"character":14}}


[Trace - 13:39:58.178 PM] Received response 'textDocument/signatureHelp - (17)' in 0ms.
Result: null


[Trace - 13:39:58.178 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2023/11/12 13:39:58 no signature help: cannot find an enclosing function\n\tposition=3:14\n"}


[Trace - 13:39:58.600 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":15,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":3,"character":14},"start":{"line":3,"character":13}},"rangeLength":1,"text":""}]}


[Trace - 13:39:58.621 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":15,"diagnostics":[{"range":{"start":{"line":3,"character":8},"end":{"line":3,"character":13}},"severity":1,"code":"UndeclaredName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredName"},"source":"compiler","message":"undefined: singl"}]}


[Trace - 13:39:58.744 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":37,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":3,"character":13},"start":{"line":3,"character":12}},"rangeLength":1,"text":""},{"range":{"end":{"line":3,"character":12},"start":{"line":3,"character":11}},"rangeLength":1,"text":""},{"range":{"end":{"line":3,"character":11},"start":{"line":3,"character":10}},"rangeLength":1,"text":""},{"range":{"end":{"line":3,"character":10},"start":{"line":3,"character":9}},"rangeLength":1,"text":""},{"range":{"end":{"line":3,"character":9},"start":{"line":3,"character":8}},"rangeLength":1,"text":""},{"range":{"end":{"line":3,"character":8},"start":{"line":3,"character":8}},"rangeLength":0,"text":"s"},{"range":{"end":{"line":3,"character":9},"start":{"line":3,"character":9}},"rangeLength":0,"text":"i"},{"range":{"end":{"line":3,"character":10},"start":{"line":3,"character":10}},"rangeLength":0,"text":"n"},{"range":{"end":{"line":3,"character":11},"start":{"line":3,"character":11}},"rangeLength":0,"text":"g"},{"range":{"end":{"line":3,"character":12},"start":{"line":3,"character":12}},"rangeLength":0,"text":"l"},{"range":{"end":{"line":3,"character":13},"start":{"line":3,"character":13}},"rangeLength":0,"text":"e"},{"range":{"end":{"line":3,"character":14},"start":{"line":3,"character":14}},"rangeLength":0,"text":"f"},{"range":{"end":{"line":3,"character":15},"start":{"line":3,"character":15}},"rangeLength":0,"text":"l"},{"range":{"end":{"line":3,"character":16},"start":{"line":3,"character":16}},"rangeLength":0,"text":"i"},{"range":{"end":{"line":3,"character":17},"start":{"line":3,"character":17}},"rangeLength":0,"text":"g"},{"range":{"end":{"line":3,"character":18},"start":{"line":3,"character":18}},"rangeLength":0,"text":"h"},{"range":{"end":{"line":3,"character":19},"start":{"line":3,"character":19}},"rangeLength":0,"text":"t"},{"range":{"end":{"line":3,"character":20},"start":{"line":3,"character":14}},"rangeLength":6,"text":""},{"range":{"end":{"line":1,"character":0},"start":{"line":1,"character":0}},"rangeLength":0,"text":"\nimport \"internal\/singleflight\"\n"},{"range":{"end":{"line":5,"character":14},"start":{"line":5,"character":8}},"rangeLength":6,"text":""},{"range":{"end":{"line":5,"character":8},"start":{"line":5,"character":8}},"rangeLength":0,"text":"singleflight"},{"range":{"end":{"line":5,"character":20},"start":{"line":5,"character":20}},"rangeLength":0,"text":""}]}


[Trace - 13:39:58.803 PM] Sending notification '$/cancelRequest'.
Params: {"id":15}


[Trace - 13:39:58.803 PM] Sending request 'textDocument/semanticTokens/full - (18)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"}}


[Error - Received] 13:39:58.803 PM #18 semantictokens are disabled


[Trace - 13:39:58.825 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2023/11/12 13:39:58 go/packages.Load #2\n\tsnapshot=14\n\tdirectory=file:///home/arccy/code/mono\n\tquery=[file=/home/arccy/code/mono/xxx/main.go]\n\tpackages=1\n"}


[Trace - 13:39:58.825 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2023/11/12 13:39:58 go/packages.Load #2\n\tsnapshot=14\n\tdirectory=file:///home/arccy/code/mono\n\tpackage=\"go.seankhliao.com/mono/xxx\"\n\tfiles=[/home/arccy/code/mono/xxx/main.go]\n"}


[Trace - 13:39:58.826 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2023/11/12 13:39:58 go/packages.Load #2: updating metadata for 1 packages\n"}


[Trace - 13:39:58.833 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":37,"diagnostics":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"severity":1,"source":"go list","message":"use of internal package internal/singleflight not allowed"},{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":30}},"severity":1,"code":"UnusedImport","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UnusedImport"},"source":"compiler","message":"\"internal/singleflight\" imported and not used","tags":[1]},{"range":{"start":{"line":5,"character":8},"end":{"line":5,"character":20}},"severity":1,"code":"InvalidPkgUse","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#InvalidPkgUse"},"source":"compiler","message":"use of package singleflight not in selector"}]}


[Trace - 13:39:58.921 PM] Sending request 'textDocument/signatureHelp - (19)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":5,"character":20}}


[Trace - 13:39:58.923 PM] Received response 'textDocument/signatureHelp - (19)' in 1ms.
Result: null


[Trace - 13:39:58.923 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2023/11/12 13:39:58 no signature help: cannot find an enclosing function\n\tposition=5:20\n"}


[Trace - 13:40:00.158 PM] Sending request 'textDocument/signatureHelp - (20)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":5,"character":19}}


[Trace - 13:40:00.159 PM] Received response 'textDocument/signatureHelp - (20)' in 0ms.
Result: null


[Trace - 13:40:00.159 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2023/11/12 13:40:00 no signature help: cannot find an enclosing function\n\tposition=5:19\n"}


[Trace - 13:40:01.141 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":38,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":5,"character":20},"start":{"line":5,"character":20}},"rangeLength":0,"text":"."}]}


[Trace - 13:40:01.144 PM] Sending request 'textDocument/completion - (21)'.
Params: {"context":{"triggerCharacter":".","triggerKind":2},"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":5,"character":21}}


[Trace - 13:40:01.146 PM] Received response 'textDocument/completion - (21)' in 1ms.
Result: {"isIncomplete":true,"items":[{"label":"Group","kind":22,"detail":"struct{...}","documentation":{"kind":"markdown","value":"Group represents a class of work and forms a namespace in which units of work can be executed with duplicate suppression.\n"},"preselect":true,"sortText":"00000","filterText":"Group","insertTextFormat":2,"textEdit":{"range":{"start":{"line":5,"character":21},"end":{"line":5,"character":21}},"newText":"Group"}},{"label":"Result","kind":22,"detail":"struct{...}","documentation":{"kind":"markdown","value":"Result holds the results of Do, so they can be passed on a channel.\n"},"sortText":"00001","filterText":"Result","insertTextFormat":2,"textEdit":{"range":{"start":{"line":5,"character":21},"end":{"line":5,"character":21}},"newText":"Result"}}]}


[Trace - 13:40:01.165 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":38,"diagnostics":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"severity":1,"source":"go list","message":"use of internal package internal/singleflight not allowed"},{"range":{"start":{"line":5,"character":22},"end":{"line":5,"character":22}},"severity":1,"source":"syntax","message":"expected selector or type assertion, found '}'"}]}


[Trace - 13:40:01.340 PM] Sending notification '$/cancelRequest'.
Params: {"id":18}


[Trace - 13:40:01.341 PM] Sending request 'textDocument/semanticTokens/full - (22)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"}}


[Error - Received] 13:40:01.341 PM #22 semantictokens are disabled


[Trace - 13:40:01.488 PM] Sending request 'textDocument/signatureHelp - (23)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":5,"character":21}}


[Trace - 13:40:01.489 PM] Received response 'textDocument/signatureHelp - (23)' in 0ms.
Result: null


[Trace - 13:40:01.489 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2023/11/12 13:40:01 no signature help: cannot find an enclosing function\n\tposition=5:21\n"}


[Trace - 13:40:02.096 PM] Sending request 'textDocument/signatureHelp - (24)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":5,"character":21}}


[Trace - 13:40:02.097 PM] Received response 'textDocument/signatureHelp - (24)' in 0ms.
Result: null


[Trace - 13:40:02.097 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2023/11/12 13:40:02 no signature help: cannot find an enclosing function\n\tposition=5:21\n"}


[Trace - 13:40:02.625 PM] Sending request 'textDocument/signatureHelp - (25)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":5,"character":21}}


[Trace - 13:40:02.626 PM] Received response 'textDocument/signatureHelp - (25)' in 0ms.
Result: null


[Trace - 13:40:02.626 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2023/11/12 13:40:02 no signature help: cannot find an enclosing function\n\tposition=5:21\n"}


[Trace - 13:40:02.725 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":39,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":5,"character":21},"start":{"line":5,"character":21}},"rangeLength":0,"text":"G"}]}


[Trace - 13:40:02.746 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":39,"diagnostics":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"severity":1,"source":"go list","message":"use of internal package internal/singleflight not allowed"},{"range":{"start":{"line":5,"character":21},"end":{"line":5,"character":22}},"severity":1,"code":"UndeclaredImportedName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredImportedName"},"source":"compiler","message":"undefined: singleflight.G"}]}


[Trace - 13:40:02.873 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":47,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":5,"character":22},"start":{"line":5,"character":22}},"rangeLength":0,"text":"r"},{"range":{"end":{"line":5,"character":23},"start":{"line":5,"character":23}},"rangeLength":0,"text":"o"},{"range":{"end":{"line":5,"character":24},"start":{"line":5,"character":24}},"rangeLength":0,"text":"u"},{"range":{"end":{"line":5,"character":25},"start":{"line":5,"character":25}},"rangeLength":0,"text":"p"},{"range":{"end":{"line":5,"character":26},"start":{"line":5,"character":21}},"rangeLength":5,"text":""},{"range":{"end":{"line":5,"character":21},"start":{"line":5,"character":21}},"rangeLength":0,"text":""},{"range":{"end":{"line":5,"character":21},"start":{"line":5,"character":21}},"rangeLength":0,"text":"Group"},{"range":{"end":{"line":5,"character":26},"start":{"line":5,"character":26}},"rangeLength":0,"text":""}]}


[Trace - 13:40:02.897 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":47,"diagnostics":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"severity":1,"source":"go list","message":"use of internal package internal/singleflight not allowed"},{"range":{"start":{"line":5,"character":8},"end":{"line":5,"character":26}},"severity":1,"code":"NotAnExpr","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#NotAnExpr"},"source":"compiler","message":"singleflight.Group (type) is not an expression"}]}


[Trace - 13:40:02.926 PM] Sending notification '$/cancelRequest'.
Params: {"id":22}


[Trace - 13:40:02.926 PM] Sending request 'textDocument/semanticTokens/full - (26)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"}}


[Error - Received] 13:40:02.926 PM #26 semantictokens are disabled


[Trace - 13:40:03.036 PM] Sending request 'textDocument/signatureHelp - (27)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":5,"character":26}}


[Trace - 13:40:03.036 PM] Received response 'textDocument/signatureHelp - (27)' in 0ms.
Result: null


[Trace - 13:40:03.037 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2023/11/12 13:40:03 no signature help: cannot find an enclosing function\n\tposition=5:26\n"}


[Trace - 13:40:03.816 PM] Sending request 'textDocument/codeAction - (28)'.
Params: {"context":{"only":["source.organizeImports"]},"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"range":{"end":{"line":5,"character":25},"start":{"line":5,"character":25}}}


[Trace - 13:40:03.817 PM] Received response 'textDocument/codeAction - (28)' in 1ms.
Result: null


[Trace - 13:40:03.818 PM] Sending request 'textDocument/formatting - (29)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"options":{"tabSize":8,"insertSpaces":true}}


[Trace - 13:40:03.819 PM] Received response 'textDocument/formatting - (29)' in 0ms.
Result: [{"range":{"start":{"line":5,"character":0},"end":{"line":5,"character":8}},"newText":"\t"}]


[Trace - 13:40:03.820 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"version":48,"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"contentChanges":[{"range":{"end":{"line":5,"character":8},"start":{"line":5,"character":0}},"rangeLength":8,"text":"\t"}]}


[Trace - 13:40:03.843 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":48,"diagnostics":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"severity":1,"source":"go list","message":"use of internal package internal/singleflight not allowed"},{"range":{"start":{"line":5,"character":1},"end":{"line":5,"character":19}},"severity":1,"code":"NotAnExpr","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#NotAnExpr"},"source":"compiler","message":"singleflight.Group (type) is not an expression"}]}


[Trace - 13:40:03.843 PM] Sending notification 'textDocument/didSave'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"}}


[Trace - 13:40:04.022 PM] Sending notification '$/cancelRequest'.
Params: {"id":26}


[Trace - 13:40:04.022 PM] Sending request 'textDocument/semanticTokens/full - (30)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"}}


[Error - Received] 13:40:04.022 PM #30 semantictokens are disabled


[Trace - 13:40:04.166 PM] Sending request 'textDocument/signatureHelp - (31)'.
Params: {"textDocument":{"uri":"file:\/\/\/home\/arccy\/code\/mono\/xxx\/main.go"},"position":{"line":5,"character":18}}


[Trace - 13:40:04.167 PM] Received response 'textDocument/signatureHelp - (31)' in 1ms.
Result: null


[Trace - 13:40:04.167 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2023/11/12 13:40:04 no signature help: cannot find an enclosing function\n\tposition=5:18\n"}


[Trace - 13:40:04.973 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/arccy/code/mono/xxx/main.go","version":48,"diagnostics":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"severity":1,"source":"go list","message":"use of internal package internal/singleflight not allowed"},{"range":{"start":{"line":5,"character":1},"end":{"line":5,"character":19}},"severity":1,"code":"NotAnExpr","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#NotAnExpr"},"source":"compiler","message":"singleflight.Group (type) is not an expression"}]}


[Trace - 13:40:06.333 PM] Sending request 'shutdown - (32)'.
Params: 


[Trace - 13:40:06.334 PM] Received response 'shutdown - (32)' in 1ms.
Result: null


[Trace - 13:40:06.334 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2023/11/12 13:40:06 Shutdown session\n\tshutdown_session=1\n"}


[Trace - 13:40:06.358 PM] Sending notification 'exit'.
Params: 


nvim lsp log
[START][2023-11-12 13:39:54] LSP logging initiated
[ERROR][2023-11-12 13:39:54] ...lsp/handlers.lua:535	"2023/11/12 13:39:54 no signature help: cannot find an enclosing function\n\tposition=0:0\n"
[ERROR][2023-11-12 13:39:55] ...lsp/handlers.lua:535	"2023/11/12 13:39:55 no signature help: cannot find an enclosing function\n\tposition=3:8\n"
[ERROR][2023-11-12 13:39:56] ...lsp/handlers.lua:535	"2023/11/12 13:39:56 no signature help: cannot find an enclosing function\n\tposition=3:9\n"
[ERROR][2023-11-12 13:39:57] ...lsp/handlers.lua:535	"2023/11/12 13:39:57 no signature help: cannot find an enclosing function\n\tposition=3:14\n"
[ERROR][2023-11-12 13:39:58] ...lsp/handlers.lua:535	"2023/11/12 13:39:58 no signature help: cannot find an enclosing function\n\tposition=3:14\n"
[ERROR][2023-11-12 13:39:58] ...lsp/handlers.lua:535	"2023/11/12 13:39:58 no signature help: cannot find an enclosing function\n\tposition=5:20\n"
[ERROR][2023-11-12 13:40:00] ...lsp/handlers.lua:535	"2023/11/12 13:40:00 no signature help: cannot find an enclosing function\n\tposition=5:19\n"
[ERROR][2023-11-12 13:40:01] ...lsp/handlers.lua:535	"2023/11/12 13:40:01 no signature help: cannot find an enclosing function\n\tposition=5:21\n"
[ERROR][2023-11-12 13:40:02] ...lsp/handlers.lua:535	"2023/11/12 13:40:02 no signature help: cannot find an enclosing function\n\tposition=5:21\n"
[ERROR][2023-11-12 13:40:02] ...lsp/handlers.lua:535	"2023/11/12 13:40:02 no signature help: cannot find an enclosing function\n\tposition=5:21\n"
[ERROR][2023-11-12 13:40:03] ...lsp/handlers.lua:535	"2023/11/12 13:40:03 no signature help: cannot find an enclosing function\n\tposition=5:26\n"
[ERROR][2023-11-12 13:40:04] ...lsp/handlers.lua:535	"2023/11/12 13:40:04 no signature help: cannot find an enclosing function\n\tposition=5:18\n"

recording:

recording.mp4

@findleyr
Copy link
Contributor Author

findleyr commented Feb 4, 2024

This can wait until v0.16.0,

@findleyr findleyr modified the milestones: gopls/v0.15.0, gopls/v0.16.0 Feb 4, 2024
@findleyr findleyr modified the milestones: gopls/v0.16.0, gopls/v0.17.0 May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gopls/imports gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

4 participants