x/tools/gopls: diagnostic doesn't go away #54777
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
Build info
golang.org/x/tools/gopls master
golang.org/x/tools/gopls@(devel)
github.com/BurntSushi/toml@v1.2.0 h1:Rt8g24XnyGTyglgET/PRUNlrUeu9F5L+7FilkXfZgs0=
github.com/google/go-cmp@v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
github.com/sergi/go-diff@v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
golang.org/x/exp/typeparams@v0.0.0-20220722155223-a9213eeb770e h1:7Xs2YCOpMlNqSQSmrrnhlzBXIE/bpMecZplbLePTJvE=
golang.org/x/mod@v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s=
golang.org/x/sync@v0.0.0-20220722155255-886fb9371eb4 h1:uVc8UZUe6tr40fFVnUP5Oj+veunVezqYl9z7DYw9xzw=
golang.org/x/sys@v0.0.0-20220808155132-1c4a2a72c664 h1:v1W7bwXHsnLLloWYTVEdvGvA7BHMeBYsPcF0GLDxIRs=
golang.org/x/text@v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
golang.org/x/tools@(devel)
golang.org/x/vuln@v0.0.0-20220809164104-12ff722659c1 h1:wxIK8Hnmd3ervTxk4aON+gAbfWbb2hToeKSTQd0eXgo=
honnef.co/go/tools@v0.3.3 h1:oDx7VAwstgpYpb3wv0oxiZlxY+foCpRAwY7Vk6XpAgA=
mvdan.cc/gofumpt@v0.3.1 h1:avhhrOmv0IuvQVK7fvwV91oFSGAk5/6Po8GXTzICeu8=
mvdan.cc/xurls/v2@v2.4.0 h1:tzxjVAj+wSBmDcF6zBB7/myTy3gX9xvi8Tyr28AuQgc=
go: go1.19-pre4 cl/455575533 +12f49fe0ed
go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/usr/local/google/home/pjw/.cache/go-build"
GOENV="/usr/local/google/home/pjw/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/usr/local/google/home/pjw/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/usr/local/google/home/pjw/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/google-golang"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/google-golang/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19-pre4 cl/455575533 +12f49fe0ed"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1262898407=/tmp/go-build -gno-record-gcc-switches"
What did you do?
I did a range format, which should have made no change, but which removed the last newline of the file, and then I undid it.
What did you expect to see?
no change
What did you see instead?
a diagnostic
Logs [The whole log is long. The relevant log records are for the file implementation.go]
[Trace - 12:52:04.573 PM] Sending notification 'textDocument/didOpen'.
[Trace - 12:52:17.451 PM] Sending request 'textDocument/rangeFormatting - (12)'.
[Trace - 12:52:17.452 PM] Received response 'textDocument/rangeFormatting - (12)' in 1ms.
Result: [{"range":{"start":{"line":24,"character":1},"end":{"line":26,"character":0}},"newText":""}]
[Trace - 12:52:17.492 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","version":2},"contentChanges":[{"range":{"start":{"line":24,"character":1},"end":{"line":25,"character":0}},"rangeLength":1,"text":""}]}
[Trace - 12:52:17.617 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","version":2,"diagnostics":[{"range":{"start":{"line":24,"character":1},"end":{"line":24,"character":1}},"severity":1,"source":"syntax","message":"expected declaration, found '}'"}]}
[Trace - 12:52:31.188 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","version":3},"contentChanges":[{"range":{"start":{"line":24,"character":1},"end":{"line":24,"character":1}},"rangeLength":0,"text":"\n"}]}
[Trace - 12:52:31.297 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","version":3,"diagnostics":[{"range":{"start":{"line":25,"character":0},"end":{"line":25,"character":0}},"severity":1,"source":"syntax","message":"expected declaration, found '}'"}]}
this last one seems wrong, as the diagnostic should not be there, and indeed the program builds without errors.
----- Full log -----
serve.go:442: debug server listening at http://localhost:46231
[Trace - 12:52:04.503 PM] Sending request 'initialize - (0)'.
Params: {"processId":1217840,"clientInfo":{"name":"Visual Studio Code","version":"1.69.1"},"locale":"en-us","rootPath":"/usr/local/google/home/pjw/tools","rootUri":"file:///usr/local/google/home/pjw/tools","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional","normalizesLineEndings":true,"changeAnnotationSupport":{"groupsOnLabel":true}},"configuration":true,"didChangeWatchedFiles":{"dynamicRegistration":true,"relativePatternSupport":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]},"resolveSupport":{"properties":["location.range"]}},"codeLens":{"refreshSupport":true},"executeCommand":{"dynamicRegistration":true},"didChangeConfiguration":{"dynamicRegistration":true},"workspaceFolders":true,"semanticTokens":{"refreshSupport":true},"fileOperations":{"dynamicRegistration":true,"didCreate":true,"didRename":true,"didDelete":true,"willCreate":true,"willRename":true,"willDelete":true},"inlineValue":{"refreshSupport":true},"inlayHint":{"refreshSupport":true},"diagnostics":{"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"]},"insertTextModeSupport":{"valueSet":[1,2]},"labelDetailsSupport":true},"insertTextMode":2,"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]},"completionList":{"itemDefaults":["commitCharacters","editRange","insertTextFormat","insertTextMode"]}},"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"]}},"honorsChangeAnnotations":false},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true,"prepareSupportDefaultBehavior":1,"honorsChangeAnnotations":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,"foldingRangeKind":{"valueSet":["comment","imports","region"]},"foldingRange":{"collapsedText":false}},"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","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"formats":["relative"],"requests":{"range":true,"full":{"delta":true}},"multilineTokenSupport":false,"overlappingTokenSupport":false,"serverCancelSupport":true,"augmentsSyntaxTokens":true},"linkedEditingRange":{"dynamicRegistration":true},"typeHierarchy":{"dynamicRegistration":true},"inlineValue":{"dynamicRegistration":true},"inlayHint":{"dynamicRegistration":true,"resolveSupport":{"properties":["tooltip","textEdits","label.tooltip","label.location","label.command"]}},"diagnostic":{"dynamicRegistration":true,"relatedDocumentSupport":false}},"window":{"showMessage":{"messageActionItem":{"additionalPropertiesSupport":true}},"showDocument":{"support":true},"workDoneProgress":true},"general":{"staleRequestSupport":{"cancel":true,"retryOnContentModified":["textDocument/semanticTokens/full","textDocument/semanticTokens/range","textDocument/semanticTokens/full/delta"]},"regularExpressions":{"engine":"ECMAScript","version":"ES2020"},"markdown":{"parser":"marked","version":"1.1.0"},"positionEncodings":["utf-16"]},"notebookDocument":{"synchronization":{"dynamicRegistration":true,"executionSummarySupport":true}}},"initializationOptions":{"usePlaceholders":true,"completionDocumentation":true,"verboseOutput":false,"build.directoryFilters":["-foof","-internal/lsp/protocol/typescript"],"codelenses":{"gc_details":true},"analyses":{"fillstruct":true,"staticcheck":true,"unusedparams":false},"build.experimentalWorkspaceModule":true,"build.experimentalUseInvalidMetadata":true,"semanticTokens":true,"templateExtensions":["tmpl","gotmpl"],"ui.completion.matcher":"Fuzzy","newDiff":"both","ui.inlayhint.hints":{"assignVariableTypes":false,"compositeLiteralFields":false,"compositeLiteralTypes":false,"constantValues":false,"functionTypeParameters":false,"parameterNames":false,"rangeVariableTypes":false}},"trace":"off","workspaceFolders":[{"uri":"file:///usr/local/google/home/pjw/tools","name":"tools"}]}
[Trace - 12:52:04.507 PM] Received response 'initialize - (0)' in 4ms.
Result: {"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"save":{}},"completionProvider":{"triggerCharacters":["."],"completionItem":{}},"hoverProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",","]},"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor.extract","refactor.rewrite","source.fixAll","source.organizeImports"]},"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"documentRangeFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":""},"renameProvider":{"prepareProvider":true},"foldingRangeProvider":true,"executeCommandProvider":{"commands":["gopls.add_dependency","gopls.add_import","gopls.apply_fix","gopls.check_upgrades","gopls.edit_go_directive","gopls.gc_details","gopls.generate","gopls.generate_gopls_mod","gopls.go_get_package","gopls.list_imports","gopls.list_known_packages","gopls.regenerate_cgo","gopls.remove_dependency","gopls.run_tests","gopls.run_vulncheck_exp","gopls.start_debugging","gopls.test","gopls.tidy","gopls.toggle_gc_details","gopls.update_go_sum","gopls.upgrade_dependency","gopls.vendor"]},"callHierarchyProvider":true,"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}},"inlayHintProvider":{}},"serverInfo":{"name":"gopls","version":"{"GoVersion":"go1.19-pre4 cl/455575533 +12f49fe0ed","Path":"golang.org/x/tools/gopls","Main":{"Path":"golang.org/x/tools/gopls","Version":"(devel)","Sum":"","Replace":null},"Deps":[{"Path":"github.com/BurntSushi/toml","Version":"v1.2.0","Sum":"h1:Rt8g24XnyGTyglgET/PRUNlrUeu9F5L+7FilkXfZgs0=","Replace":null},{"Path":"github.com/google/go-cmp","Version":"v0.5.8","Sum":"h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=","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-20220722155223-a9213eeb770e","Sum":"h1:7Xs2YCOpMlNqSQSmrrnhlzBXIE/bpMecZplbLePTJvE=","Replace":null},{"Path":"golang.org/x/mod","Version":"v0.6.0-dev.0.20220419223038-86c51ed26bb4","Sum":"h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s=","Replace":null},{"Path":"golang.org/x/sync","Version":"v0.0.0-20220722155255-886fb9371eb4","Sum":"h1:uVc8UZUe6tr40fFVnUP5Oj+veunVezqYl9z7DYw9xzw=","Replace":null},{"Path":"golang.org/x/sys","Version":"v0.0.0-20220808155132-1c4a2a72c664","Sum":"h1:v1W7bwXHsnLLloWYTVEdvGvA7BHMeBYsPcF0GLDxIRs=","Replace":null},{"Path":"golang.org/x/text","Version":"v0.3.7","Sum":"h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=","Replace":null},{"Path":"golang.org/x/tools","Version":"(devel)","Sum":"","Replace":null},{"Path":"golang.org/x/vuln","Version":"v0.0.0-20220809164104-12ff722659c1","Sum":"h1:wxIK8Hnmd3ervTxk4aON+gAbfWbb2hToeKSTQd0eXgo=","Replace":null},{"Path":"honnef.co/go/tools","Version":"v0.3.3","Sum":"h1:oDx7VAwstgpYpb3wv0oxiZlxY+foCpRAwY7Vk6XpAgA=","Replace":null},{"Path":"mvdan.cc/gofumpt","Version":"v0.3.1","Sum":"h1:avhhrOmv0IuvQVK7fvwV91oFSGAk5/6Po8GXTzICeu8=","Replace":null},{"Path":"mvdan.cc/xurls/v2","Version":"v2.4.0","Sum":"h1:tzxjVAj+wSBmDcF6zBB7/myTy3gX9xvi8Tyr28AuQgc=","Replace":null}],"Settings":[{"Key":"-compiler","Value":"gc"},{"Key":"CGO_ENABLED","Value":"1"},{"Key":"CGO_CFLAGS","Value":""},{"Key":"CGO_CPPFLAGS","Value":""},{"Key":"CGO_CXXFLAGS","Value":""},{"Key":"CGO_LDFLAGS","Value":""},{"Key":"GOARCH","Value":"amd64"},{"Key":"GOOS","Value":"linux"},{"Key":"GOAMD64","Value":"v1"},{"Key":"vcs","Value":"git"},{"Key":"vcs.revision","Value":"717a671622f7b89965123f259e4db4c2fccbeb4e"},{"Key":"vcs.time","Value":"2022-08-26T17:59:00Z"},{"Key":"vcs.modified","Value":"true"}],"Version":"master"}"}}
[Trace - 12:52:04.546 PM] Sending notification 'initialized'.
Params: {}
[Trace - 12:52:04.547 PM] Received request 'window/workDoneProgress/create - (1)'.
Params: {"token":"5577006791947779410"}
[Trace - 12:52:04.573 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","languageId":"go","version":1,"text":"// Copyright 2019 The Go Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file.\n\n// Copyright 2019 The Go Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file.\n\npackage lsp\n\nimport (\n\t"context"\n\n\t"golang.org/x/tools/internal/lsp/protocol"\n\t"golang.org/x/tools/internal/lsp/source"\n)\n\nfunc (s *Server) implementation(ctx context.Context, params *protocol.ImplementationParams) ([]protocol.Location, error) {\n\tsnapshot, fh, ok, release, err := s.beginFileRequest(ctx, params.TextDocument.URI, source.Go)\n\tdefer release()\n\tif !ok {\n\t\treturn nil, err\n\t}\n\treturn source.Implementation(ctx, snapshot, fh, params.Position)\n}\n"}}
[Trace - 12:52:04.583 PM] Sending response 'window/workDoneProgress/create - (1)' in 36ms.
Result:
[Trace - 12:52:04.584 PM] Received notification '$/progress'.
Params: {"token":"5577006791947779410","value":{"kind":"begin","title":"Setting up workspace","message":"Loading packages..."}}
[Trace - 12:52:04.584 PM] Received request 'workspace/configuration - (2)'.
Params: {"items":[{"scopeUri":"file:///usr/local/google/home/pjw/tools","section":"gopls"}]}
[Trace - 12:52:04.621 PM] Sending response 'workspace/configuration - (2)' in 37ms.
Result: [{"usePlaceholders":true,"completionDocumentation":true,"verboseOutput":false,"build.directoryFilters":["-foof","-internal/lsp/protocol/typescript"],"codelenses":{"gc_details":true},"analyses":{"fillstruct":true,"staticcheck":true,"unusedparams":false},"build.experimentalWorkspaceModule":true,"build.experimentalUseInvalidMetadata":true,"semanticTokens":true,"templateExtensions":["tmpl","gotmpl"],"ui.completion.matcher":"Fuzzy","newDiff":"both","ui.inlayhint.hints":{"assignVariableTypes":false,"compositeLiteralFields":false,"compositeLiteralTypes":false,"constantValues":false,"functionTypeParameters":false,"parameterNames":false,"rangeVariableTypes":false}}]
[Trace - 12:52:04.652 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:04 go env for /usr/local/google/home/pjw/tools\n(root /usr/local/google/home/pjw/tools)\n(go version go version go1.19 linux/amd64)\n(valid build configuration = true)\n(build flags: [])\nGOROOT=/usr/local/google/home/pjw/sdk/go1.19\nGOPATH=/usr/local/google/home/pjw/go\nGOCACHE=/usr/local/google/home/pjw/.cache/go-build\nGONOSUMDB=\nGOPRIVATE=\nGO111MODULE=\nGONOPROXY=\nGOSUMDB=sum.golang.org\nGOMOD=/usr/local/google/home/pjw/tools/go.mod\nGOWORK=/usr/local/google/home/pjw/tools/go.work\nGOINSECURE=\nGOMODCACHE=/usr/local/google/home/pjw/go/pkg/mod\nGOFLAGS=\nGOPROXY=https://proxy.golang.org,direct\n\n"}
[Trace - 12:52:04.702 PM] Sending request 'textDocument/codeAction - (1)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"},"range":{"start":{"line":14,"character":41},"end":{"line":14,"character":41}},"context":{"diagnostics":[],"triggerKind":2}}
[Trace - 12:52:04.748 PM] Sending request 'textDocument/inlayHint - (2)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"},"range":{"start":{"line":0,"character":0},"end":{"line":25,"character":0}}}
[Trace - 12:52:05.071 PM] Sending notification '$/cancelRequest'.
Params: {"id":1}
[Trace - 12:52:05.072 PM] Sending request 'textDocument/codeAction - (3)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"},"range":{"start":{"line":14,"character":41},"end":{"line":14,"character":41}},"context":{"diagnostics":[],"triggerKind":2}}
[Trace - 12:52:05.168 PM] Sending request 'textDocument/documentSymbol - (4)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"}}
[Trace - 12:52:05.426 PM] Sending notification '$/cancelRequest'.
Params: {"id":2}
[Trace - 12:52:05.426 PM] Sending request 'textDocument/inlayHint - (5)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"},"range":{"start":{"line":0,"character":0},"end":{"line":25,"character":0}}}
[Trace - 12:52:06.101 PM] Sending request 'textDocument/codeLens - (6)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"}}
[Trace - 12:52:06.157 PM] Sending request 'textDocument/foldingRange - (7)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"}}
[Trace - 12:52:06.980 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:06 go/packages.Load #1\n\tsnapshot=0\n\tdirectory=/usr/local/google/home/pjw/tools\n\tquery=[builtin golang.org/x/tools/... golang.org/x/tools/gopls/...]\n\tpackages=626\n"}
[Trace - 12:52:06.991 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:06 go/packages.Load #1: updating metadata for 694 packages\n"}
[Trace - 12:52:07.420 PM] Received notification '$/progress'.
Params: {"token":"5577006791947779410","value":{"kind":"end","message":"Finished loading packages."}}
[Trace - 12:52:07.442 PM] Received request 'client/registerCapability - (3)'.
Params: {"registrations":[{"id":"workspace/didChangeWatchedFiles-0","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"**/*.{go,mod,sum,work,tmpl,gotmpl}","kind":7},{"globPattern":"{/usr/local/google/home/pjw/tools/benchmark,/usr/local/google/home/pjw/tools/benchmark/parse,/usr/local/google/home/pjw/tools/blog,/usr/local/google/home/pjw/tools/blog/atom,/usr/local/google/home/pjw/tools/cmd,/usr/local/google/home/pjw/tools/cmd/auth,/usr/local/google/home/pjw/tools/cmd/auth/authtest,/usr/local/google/home/pjw/tools/cmd/auth/cookieauth,/usr/local/google/home/pjw/tools/cmd/auth/gitauth,/usr/local/google/home/pjw/tools/cmd/auth/netrcauth,/usr/local/google/home/pjw/tools/cmd/benchcmp,/usr/local/google/home/pjw/tools/cmd/bundle,/usr/local/google/home/pjw/tools/cmd/callgraph,/usr/local/google/home/pjw/tools/cmd/compilebench,/usr/local/google/home/pjw/tools/cmd/cover,/usr/local/google/home/pjw/tools/cmd/digraph,/usr/local/google/home/pjw/tools/cmd/eg,/usr/local/google/home/pjw/tools/cmd/file2fuzz,/usr/local/google/home/pjw/tools/cmd/fiximports,/usr/local/google/home/pjw/tools/cmd/getgo,/usr/local/google/home/pjw/tools/cmd/getgo/server,/usr/local/google/home/pjw/tools/cmd/go-contrib-init,/usr/local/google/home/pjw/tools/cmd/godex,/usr/local/google/home/pjw/tools/cmd/godoc,/usr/local/google/home/pjw/tools/cmd/goimports,/usr/local/google/home/pjw/tools/cmd/gomvpkg,/usr/local/google/home/pjw/tools/cmd/gorename,/usr/local/google/home/pjw/tools/cmd/gotype,/usr/local/google/home/pjw/tools/cmd/goyacc,/usr/local/google/home/pjw/tools/cmd/guru,/usr/local/google/home/pjw/tools/cmd/guru/serial,/usr/local/google/home/pjw/tools/cmd/html2article,/usr/local/google/home/pjw/tools/cmd/present,/usr/local/google/home/pjw/tools/cmd/present/templates,/usr/local/google/home/pjw/tools/cmd/present2md,/usr/local/google/home/pjw/tools/cmd/signature-fuzzer,/usr/local/google/home/pjw/tools/cmd/signature-fuzzer/fuzz-driver,/usr/local/google/home/pjw/tools/cmd/signature-fuzzer/fuzz-runner,/usr/local/google/home/pjw/tools/cmd/signature-fuzzer/internal,/usr/local/google/home/pjw/tools/cmd/signature-fuzzer/internal/fuzz-generator,/usr/local/google/home/pjw/tools/cmd/splitdwarf,/usr/local/google/home/pjw/tools/cmd/splitdwarf/internal,/usr/local/google/home/pjw/tools/cmd/splitdwarf/internal/macho,/usr/local/google/home/pjw/tools/cmd/ssadump,/usr/local/google/home/pjw/tools/cmd/stress,/usr/local/google/home/pjw/tools/cmd/stringer,/usr/local/google/home/pjw/tools/cmd/toolstash,/usr/local/google/home/pjw/tools/container,/usr/local/google/home/pjw/tools/container/intsets,/usr/local/google/home/pjw/tools/copyright,/usr/local/google/home/pjw/tools/cover,/usr/local/google/home/pjw/tools/go,/usr/local/google/home/pjw/tools/go/analysis,/usr/local/google/home/pjw/tools/go/analysis/analysistest,/usr/local/google/home/pjw/tools/go/analysis/internal,/usr/local/google/home/pjw/tools/go/analysis/internal/analysisflags,/usr/local/google/home/pjw/tools/go/analysis/internal/checker,/usr/local/google/home/pjw/tools/go/analysis/internal/facts,/usr/local/google/home/pjw/tools/go/analysis/multichecker,/usr/local/google/home/pjw/tools/go/analysis/passes,/usr/local/google/home/pjw/tools/go/analysis/passes/asmdecl,/usr/local/google/home/pjw/tools/go/analysis/passes/assign,/usr/local/google/home/pjw/tools/go/analysis/passes/atomic,/usr/local/google/home/pjw/tools/go/analysis/passes/atomicalign,/usr/local/google/home/pjw/tools/go/analysis/passes/bools,/usr/local/google/home/pjw/tools/go/analysis/passes/buildssa,/usr/local/google/home/pjw/tools/go/analysis/passes/buildtag,/usr/local/google/home/pjw/tools/go/analysis/passes/cgocall,/usr/local/google/home/pjw/tools/go/analysis/passes/composite,/usr/local/google/home/pjw/tools/go/analysis/passes/copylock,/usr/local/google/home/pjw/tools/go/analysis/passes/ctrlflow,/usr/local/google/home/pjw/tools/go/analysis/passes/deepequalerrors,/usr/local/google/home/pjw/tools/go/analysis/passes/errorsas,/usr/local/google/home/pjw/tools/go/analysis/passes/fieldalignment,/usr/local/google/home/pjw/tools/go/analysis/passes/fieldalignment/cmd,/usr/local/google/home/pjw/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment,/usr/local/google/home/pjw/tools/go/analysis/passes/findcall,/usr/local/google/home/pjw/tools/go/analysis/passes/findcall/cmd,/usr/local/google/home/pjw/tools/go/analysis/passes/findcall/cmd/findcall,/usr/local/google/home/pjw/tools/go/analysis/passes/framepointer,/usr/local/google/home/pjw/tools/go/analysis/passes/httpresponse,/usr/local/google/home/pjw/tools/go/analysis/passes/ifaceassert,/usr/local/google/home/pjw/tools/go/analysis/passes/ifaceassert/cmd,/usr/local/google/home/pjw/tools/go/analysis/passes/ifaceassert/cmd/ifaceassert,/usr/local/google/home/pjw/tools/go/analysis/passes/inspect,/usr/local/google/home/pjw/tools/go/analysis/passes/internal,/usr/local/google/home/pjw/tools/go/analysis/passes/internal/analysisutil,/usr/local/google/home/pjw/tools/go/analysis/passes/loopclosure,/usr/local/google/home/pjw/tools/go/analysis/passes/lostcancel,/usr/local/google/home/pjw/tools/go/analysis/passes/lostcancel/cmd,/usr/local/google/home/pjw/tools/go/analysis/passes/lostcancel/cmd/lostcancel,/usr/local/google/home/pjw/tools/go/analysis/passes/nilfunc,/usr/local/google/home/pjw/tools/go/analysis/passes/nilness,/usr/local/google/home/pjw/tools/go/analysis/passes/nilness/cmd,/usr/local/google/home/pjw/tools/go/analysis/passes/nilness/cmd/nilness,/usr/local/google/home/pjw/tools/go/analysis/passes/pkgfact,/usr/local/google/home/pjw/tools/go/analysis/passes/printf,/usr/local/google/home/pjw/tools/go/analysis/passes/reflectvaluecompare,/usr/local/google/home/pjw/tools/go/analysis/passes/shadow,/usr/local/google/home/pjw/tools/go/analysis/passes/shadow/cmd,/usr/local/google/home/pjw/tools/go/analysis/passes/shadow/cmd/shadow,/usr/local/google/home/pjw/tools/go/analysis/passes/shift,/usr/local/google/home/pjw/tools/go/analysis/passes/sigchanyzer,/usr/local/google/home/pjw/tools/go/analysis/passes/sortslice,/usr/local/google/home/pjw/tools/go/analysis/passes/stdmethods,/usr/local/google/home/pjw/tools/go/analysis/passes/stringintconv,/usr/local/google/home/pjw/tools/go/analysis/passes/stringintconv/cmd,/usr/local/google/home/pjw/tools/go/analysis/passes/stringintconv/cmd/stringintconv,/usr/local/google/home/pjw/tools/go/analysis/passes/structtag,/usr/local/google/home/pjw/tools/go/analysis/passes/testinggoroutine,/usr/local/google/home/pjw/tools/go/analysis/passes/tests,/usr/local/google/home/pjw/tools/go/analysis/passes/timeformat,/usr/local/google/home/pjw/tools/go/analysis/passes/unmarshal,/usr/local/google/home/pjw/tools/go/analysis/passes/unmarshal/cmd,/usr/local/google/home/pjw/tools/go/analysis/passes/unmarshal/cmd/unmarshal,/usr/local/google/home/pjw/tools/go/analysis/passes/unreachable,/usr/local/google/home/pjw/tools/go/analysis/passes/unsafeptr,/usr/local/google/home/pjw/tools/go/analysis/passes/unusedresult,/usr/local/google/home/pjw/tools/go/analysis/passes/unusedwrite,/usr/local/google/home/pjw/tools/go/analysis/passes/usesgenerics,/usr/local/google/home/pjw/tools/go/analysis/singlechecker,/usr/local/google/home/pjw/tools/go/analysis/unitchecker,/usr/local/google/home/pjw/tools/go/ast,/usr/local/google/home/pjw/tools/go/ast/astutil,/usr/local/google/home/pjw/tools/go/ast/inspector,/usr/local/google/home/pjw/tools/go/buildutil,/usr/local/google/home/pjw/tools/go/callgraph,/usr/local/google/home/pjw/tools/go/callgraph/cha,/usr/local/google/home/pjw/tools/go/callgraph/rta,/usr/local/google/home/pjw/tools/go/callgraph/static,/usr/local/google/home/pjw/tools/go/callgraph/vta,/usr/local/google/home/pjw/tools/go/callgraph/vta/internal,/usr/local/google/home/pjw/tools/go/callgraph/vta/internal/trie,/usr/local/google/home/pjw/tools/go/cfg,/usr/local/google/home/pjw/tools/go/expect,/usr/local/google/home/pjw/tools/go/gccgoexportdata,/usr/local/google/home/pjw/tools/go/gcexportdata,/usr/local/google/home/pjw/tools/go/internal,/usr/local/google/home/pjw/tools/go/internal/cgo,/usr/local/google/home/pjw/tools/go/internal/gccgoimporter,/usr/local/google/home/pjw/tools/go/internal/gcimporter,/usr/local/google/home/pjw/tools/go/internal/packagesdriver,/usr/local/google/home/pjw/tools/go/internal/pkgbits,/usr/local/google/home/pjw/tools/go/loader,/usr/local/google/home/pjw/tools/go/packages,/usr/local/google/home/pjw/tools/go/packages/gopackages,/usr/local/google/home/pjw/tools/go/packages/packagestest,/usr/local/google/home/pjw/tools/go/pointer,/usr/local/google/home/pjw/tools/go/ssa,/usr/local/google/home/pjw/tools/go/ssa/interp,/usr/local/google/home/pjw/tools/go/ssa/ssautil,/usr/local/google/home/pjw/tools/go/types,/usr/local/google/home/pjw/tools/go/types/objectpath,/usr/local/google/home/pjw/tools/go/types/typeutil,/usr/local/google/home/pjw/tools/go/vcs,/usr/local/google/home/pjw/tools/godoc,/usr/local/google/home/pjw/tools/godoc/analysis,/usr/local/google/home/pjw/tools/godoc/redirect,/usr/local/google/home/pjw/tools/godoc/static,/usr/local/google/home/pjw/tools/godoc/util,/usr/local/google/home/pjw/tools/godoc/vfs,/usr/local/google/home/pjw/tools/godoc/vfs/gatefs,/usr/local/google/home/pjw/tools/godoc/vfs/httpfs,/usr/local/google/home/pjw/tools/godoc/vfs/mapfs,/usr/local/google/home/pjw/tools/godoc/vfs/zipfs,/usr/local/google/home/pjw/tools/gopls,/usr/local/google/home/pjw/tools/gopls/api-diff,/usr/local/google/home/pjw/tools/gopls/doc,/usr/local/google/home/pjw/tools/gopls/integration,/usr/local/google/home/pjw/tools/gopls/integration/govim,/usr/local/google/home/pjw/tools/gopls/internal,/usr/local/google/home/pjw/tools/gopls/internal/govulncheck,/usr/local/google/home/pjw/tools/gopls/internal/hooks,/usr/local/google/home/pjw/tools/gopls/internal/regtest,/usr/local/google/home/pjw/tools/gopls/internal/regtest/bench,/usr/local/google/home/pjw/tools/gopls/internal/regtest/codelens,/usr/local/google/home/pjw/tools/gopls/internal/regtest/completion,/usr/local/google/home/pjw/tools/gopls/internal/regtest/debug,/usr/local/google/home/pjw/tools/gopls/internal/regtest/diagnostics,/usr/local/google/home/pjw/tools/gopls/internal/regtest/inlayhints,/usr/local/google/home/pjw/tools/gopls/internal/regtest/misc,/usr/local/google/home/pjw/tools/gopls/internal/regtest/modfile,/usr/local/google/home/pjw/tools/gopls/internal/regtest/template,/usr/local/google/home/pjw/tools/gopls/internal/regtest/watch,/usr/local/google/home/pjw/tools/gopls/internal/regtest/workspace,/usr/local/google/home/pjw/tools/gopls/internal/vulncheck,/usr/local/google/home/pjw/tools/gopls/release,/usr/local/google/home/pjw/tools/gopls/test,/usr/local/google/home/pjw/tools/gopls/test/debug,/usr/local/google/home/pjw/tools/imports,/usr/local/google/home/pjw/tools/internal,/usr/local/google/home/pjw/tools/internal/analysisinternal,/usr/local/google/home/pjw/tools/internal/apidiff,/usr/local/google/home/pjw/tools/internal/event,/usr/local/google/home/pjw/tools/internal/event/core,/usr/local/google/home/pjw/tools/internal/event/export,/usr/local/google/home/pjw/tools/internal/event/export/eventtest,/usr/local/google/home/pjw/tools/internal/event/export/metric,/usr/local/google/home/pjw/tools/internal/event/export/ocagent,/usr/local/google/home/pjw/tools/internal/event/export/ocagent/wire,/usr/local/google/home/pjw/tools/internal/event/export/prometheus,/usr/local/google/home/pjw/tools/internal/event/keys,/usr/local/google/home/pjw/tools/internal/event/label,/usr/local/google/home/pjw/tools/internal/fakenet,/usr/local/google/home/pjw/tools/internal/fastwalk,/usr/local/google/home/pjw/tools/internal/gocommand,/usr/local/google/home/pjw/tools/internal/gopathwalk,/usr/local/google/home/pjw/tools/internal/imports,/usr/local/google/home/pjw/tools/internal/jsonrpc2,/usr/local/google/home/pjw/tools/internal/jsonrpc2/servertest,/usr/local/google/home/pjw/tools/internal/jsonrpc2_v2,/usr/local/google/home/pjw/tools/internal/lsp,/usr/local/google/home/pjw/tools/internal/lsp/analysis,/usr/local/google/home/pjw/tools/internal/lsp/analysis/embeddirective,/usr/local/google/home/pjw/tools/internal/lsp/analysis/fillreturns,/usr/local/google/home/pjw/tools/internal/lsp/analysis/fillstruct,/usr/local/google/home/pjw/tools/internal/lsp/analysis/infertypeargs,/usr/local/google/home/pjw/tools/internal/lsp/analysis/nonewvars,/usr/local/google/home/pjw/tools/internal/lsp/analysis/noresultvalues,/usr/local/google/home/pjw/tools/internal/lsp/analysis/simplifycompositelit,/usr/local/google/home/pjw/tools/internal/lsp/analysis/simplifyrange,/usr/local/google/home/pjw/tools/internal/lsp/analysis/simplifyslice,/usr/local/google/home/pjw/tools/internal/lsp/analysis/stubmethods,/usr/local/google/home/pjw/tools/internal/lsp/analysis/undeclaredname,/usr/local/google/home/pjw/tools/internal/lsp/analysis/unusedparams,/usr/local/google/home/pjw/tools/internal/lsp/analysis/unusedvariable,/usr/local/google/home/pjw/tools/internal/lsp/analysis/useany,/usr/local/google/home/pjw/tools/internal/lsp/browser,/usr/local/google/home/pjw/tools/internal/lsp/bug,/usr/local/google/home/pjw/tools/internal/lsp/cache,/usr/local/google/home/pjw/tools/internal/lsp/cmd,/usr/local/google/home/pjw/tools/internal/lsp/cmd/test,/usr/local/google/home/pjw/tools/internal/lsp/command,/usr/local/google/home/pjw/tools/internal/lsp/command/commandmeta,/usr/local/google/home/pjw/tools/internal/lsp/command/gen,/usr/local/google/home/pjw/tools/internal/lsp/debug,/usr/local/google/home/pjw/tools/internal/lsp/debug/log,/usr/local/google/home/pjw/tools/internal/lsp/debug/tag,/usr/local/google/home/pjw/tools/internal/lsp/diff,/usr/local/google/home/pjw/tools/internal/lsp/diff/difftest,/usr/local/google/home/pjw/tools/internal/lsp/diff/lcs,/usr/local/google/home/pjw/tools/internal/lsp/diff/myers,/usr/local/google/home/pjw/tools/internal/lsp/fake,/usr/local/google/home/pjw/tools/internal/lsp/fuzzy,/usr/local/google/home/pjw/tools/internal/lsp/helper,/usr/local/google/home/pjw/tools/internal/lsp/lsppos,/usr/local/google/home/pjw/tools/internal/lsp/lsprpc,/usr/local/google/home/pjw/tools/internal/lsp/mod,/usr/local/google/home/pjw/tools/internal/lsp/progress,/usr/local/google/home/pjw/tools/internal/lsp/protocol,/usr/local/google/home/pjw/tools/internal/lsp/regtest,/usr/local/google/home/pjw/tools/internal/lsp/safetoken,/usr/local/google/home/pjw/tools/internal/lsp/snippet,/usr/local/google/home/pjw/tools/internal/lsp/source,/usr/local/google/home/pjw/tools/internal/lsp/source/completion,/usr/local/google/home/pjw/tools/internal/lsp/template,/usr/local/google/home/pjw/tools/internal/lsp/tests,/usr/local/google/home/pjw/tools/internal/lsp/work,/usr/local/google/home/pjw/tools/internal/memoize,/usr/local/google/home/pjw/tools/internal/packagesinternal,/usr/local/google/home/pjw/tools/internal/persistent,/usr/local/google/home/pjw/tools/internal/proxydir,/usr/local/google/home/pjw/tools/internal/span,/usr/local/google/home/pjw/tools/internal/stack,/usr/local/google/home/pjw/tools/internal/stack/gostacks,/usr/local/google/home/pjw/tools/internal/stack/stacktest,/usr/local/google/home/pjw/tools/internal/testenv,/usr/local/google/home/pjw/tools/internal/tool,/usr/local/google/home/pjw/tools/internal/typeparams,/usr/local/google/home/pjw/tools/internal/typeparams/genericfeatures,/usr/local/google/home/pjw/tools/internal/typesinternal,/usr/local/google/home/pjw/tools/internal/xcontext,/usr/local/google/home/pjw/tools/playground,/usr/local/google/home/pjw/tools/playground/socket,/usr/local/google/home/pjw/tools/present,/usr/local/google/home/pjw/tools/refactor,/usr/local/google/home/pjw/tools/refactor/eg,/usr/local/google/home/pjw/tools/refactor/importgraph,/usr/local/google/home/pjw/tools/refactor/rename,/usr/local/google/home/pjw/tools/refactor/satisfy,/usr/local/google/home/pjw/tools/txtar}","kind":7}]}}]}
[Trace - 12:52:07.510 PM] Sending response 'client/registerCapability - (3)' in 67ms.
Result:
[Trace - 12:52:07.511 PM] Received request 'client/registerCapability - (4)'.
Params: {"registrations":[{"id":"workspace/didChangeConfiguration","method":"workspace/didChangeConfiguration"},{"id":"textDocument/semanticTokens","method":"textDocument/semanticTokens","registerOptions":{"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}}]}
[Trace - 12:52:07.513 PM] Sending response 'client/registerCapability - (4)' in 2ms.
Result:
[Error - Received] 12:52:07.552 PM #1 JSON RPC cancelled
[Error - Received] 12:52:07.553 PM #2 JSON RPC cancelled
[Trace - 12:52:07.865 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:07 falling back to safe trimming due to type errors: [/usr/local/google/home/pjw/sdk/go1.19/src/runtime/vdso_linux.go:53:38: invalid operation: division by zero /usr/local/google/home/pjw/sdk/go1.19/src/runtime/vdso_linux.go:54:38: invalid operation: division by zero] or still-missing identifiers: map[]\n\tpackage="runtime"\n"}
[Trace - 12:52:07.876 PM] Sending notification '$/cancelRequest'.
Params: {"id":3}
[Trace - 12:52:07.876 PM] Sending request 'textDocument/codeAction - (8)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"},"range":{"start":{"line":19,"character":16},"end":{"line":19,"character":16}},"context":{"diagnostics":[],"triggerKind":2}}
[Error - Received] 12:52:07.877 PM #3 context canceled
[Trace - 12:52:08.019 PM] Sending request 'textDocument/semanticTokens/range - (9)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"},"range":{"start":{"line":0,"character":0},"end":{"line":25,"character":0}}}
[Trace - 12:52:08.087 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:08 discovered missing identifiers: map[encOpts:true encodeState:true]\n\tpackage="encoding/json"\n"}
[Trace - 12:52:08.097 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:08 discovered missing identifiers: map[_Ctype___socklen_t:true _Ctype_ushort:true]\n\tpackage="net"\n"}
[Trace - 12:52:08.107 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:08 discovered missing identifiers: map[message:true]\n\tpackage="internal/profile"\n"}
[Trace - 12:52:08.110 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:08 discovered missing identifiers: map[bracketPair:true]\n\tpackage="vendor/golang.org/x/text/unicode/bidi"\n"}
[Trace - 12:52:08.119 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:08 discovered missing identifiers: map[nistPoint:true]\n\tpackage="crypto/elliptic"\n"}
[Trace - 12:52:08.132 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:08 discovered missing identifiers: map[graphNode:true term:true]\n\tpackage="go/types"\n"}
[Trace - 12:52:08.143 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:08 falling back to safe trimming due to type errors: [] or still-missing identifiers: map[_Ctype_uint:true]\n\tpackage="net"\n"}
[Trace - 12:52:08.343 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:08 discovered missing identifiers: map[markdown:true]\n\tpackage="github.com/yuin/goldmark"\n"}
[Trace - 12:52:08.459 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:08 discovered missing identifiers: map[abbrev:true]\n\tpackage="debug/dwarf"\n"}
[Trace - 12:52:08.605 PM] Received response 'textDocument/documentSymbol - (4)' in 3437ms.
Result: [{"name":"(*Server).implementation","detail":"(ctx context.Context, params *protocol.ImplementationParams)","kind":6,"range":{"start":{"line":17,"character":0},"end":{"line":24,"character":1}},"selectionRange":{"start":{"line":17,"character":17},"end":{"line":17,"character":31}}}]
[Trace - 12:52:08.605 PM] Received response 'textDocument/inlayHint - (5)' in 3179ms.
Result: null
[Trace - 12:52:08.681 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:08 falling back to safe trimming due to type errors: [/usr/local/google/home/pjw/sdk/go1.19/src/os/user/cgo_lookup_unix.go:195:19: int not declared by package C /usr/local/google/home/pjw/sdk/go1.19/src/os/user/cgo_lookup_unix.go:198:27: cannot convert C._SC_GETPW_R_SIZE_MAX (untyped int constant 70) to bufferKind /usr/local/google/home/pjw/sdk/go1.19/src/os/user/cgo_lookup_unix.go:199:27: cannot convert C._SC_GETGR_R_SIZE_MAX (untyped int constant 69) to bufferKind] or still-missing identifiers: map[_Ctype_uint:true]\n\tpackage="os/user"\n"}
[Trace - 12:52:08.721 PM] Sending request 'textDocument/semanticTokens/full - (10)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"}}
[Trace - 12:52:08.726 PM] Received response 'textDocument/codeLens - (6)' in 2624ms.
Result: [{"range":{"start":{"line":8,"character":0},"end":{"line":8,"character":0}},"command":{"title":"Toggle gc annotation details","command":"gopls.gc_details","arguments":["file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"]}}]
[Trace - 12:52:08.726 PM] Received response 'textDocument/foldingRange - (7)' in 2568ms.
Result: [{"startLine":0,"startCharacter":54,"endLine":2,"endCharacter":49,"kind":"comment"},{"startLine":4,"startCharacter":54,"endLine":6,"endCharacter":49,"kind":"comment"},{"startLine":10,"startCharacter":8,"endLine":14,"endCharacter":41,"kind":"imports"},{"startLine":17,"startCharacter":122,"endLine":23,"endCharacter":65},{"startLine":20,"startCharacter":9,"endLine":21,"endCharacter":17}]
[Trace - 12:52:08.797 PM] Received response 'textDocument/codeAction - (8)' in 921ms.
Result: null
[Trace - 12:52:08.798 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","version":1,"diagnostics":[]}
[Trace - 12:52:08.798 PM] Received response 'textDocument/semanticTokens/range - (9)' in 779ms.
Result: {"resultId":"2022-08-30 12:52:08.79819159 -0400 EDT m=+4.396170724","data":[0,0,54,17,0,1,0,53,17,0,1,0,49,17,0,2,0,54,17,0,1,0,53,17,0,1,0,49,17,0,2,0,7,15,0,0,8,3,0,0,2,0,6,15,0,1,2,7,0,0,2,34,8,0,0,1,34,6,0,0,3,0,4,15,0,0,6,1,8,0,0,2,1,21,0,0,1,6,1,0,0,8,14,13,2,0,15,3,7,2,0,4,7,0,0,0,8,7,1,0,0,9,6,7,2,0,7,1,21,0,0,1,8,0,0,0,9,20,1,0,0,25,8,0,0,0,9,8,1,0,0,10,5,1,0,1,1,8,8,2,0,10,2,8,2,0,4,2,8,2,0,4,7,8,2,0,9,3,8,2,0,4,2,21,0,0,3,1,8,0,0,2,16,12,0,0,17,3,8,0,0,5,6,8,0,0,7,12,8,0,0,13,3,8,0,0,5,6,0,0,0,7,2,8,4,1,1,5,15,0,0,6,7,8,0,1,1,2,15,0,0,3,1,21,0,0,1,2,8,0,1,2,6,15,0,0,7,3,8,516,0,5,3,8,0,2,1,6,15,0,0,7,6,0,0,0,7,14,12,0,0,15,3,8,0,0,5,8,8,0,0,10,2,8,0,0,4,6,8,0,0,7,8,8,0]}
[Trace - 12:52:08.798 PM] Received response 'textDocument/semanticTokens/full - (10)' in 76ms.
Result: {"resultId":"2022-08-30 12:52:08.79868174 -0400 EDT m=+4.396660870","data":[0,0,54,17,0,1,0,53,17,0,1,0,49,17,0,2,0,54,17,0,1,0,53,17,0,1,0,49,17,0,2,0,7,15,0,0,8,3,0,0,2,0,6,15,0,1,2,7,0,0,2,34,8,0,0,1,34,6,0,0,3,0,4,15,0,0,6,1,8,0,0,2,1,21,0,0,1,6,1,0,0,8,14,13,2,0,15,3,7,2,0,4,7,0,0,0,8,7,1,0,0,9,6,7,2,0,7,1,21,0,0,1,8,0,0,0,9,20,1,0,0,25,8,0,0,0,9,8,1,0,0,10,5,1,0,1,1,8,8,2,0,10,2,8,2,0,4,2,8,2,0,4,7,8,2,0,9,3,8,2,0,4,2,21,0,0,3,1,8,0,0,2,16,12,0,0,17,3,8,0,0,5,6,8,0,0,7,12,8,0,0,13,3,8,0,0,5,6,0,0,0,7,2,8,4,1,1,5,15,0,0,6,7,8,0,1,1,2,15,0,0,3,1,21,0,0,1,2,8,0,1,2,6,15,0,0,7,3,8,516,0,5,3,8,0,2,1,6,15,0,0,7,6,0,0,0,7,14,12,0,0,15,3,8,0,0,5,8,8,0,0,10,2,8,0,0,4,6,8,0,0,7,8,8,0]}
[Trace - 12:52:09.101 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:09 discovered missing identifiers: map[term:true]\n\tpackage="golang.org/x/exp/typeparams"\n"}
[Trace - 12:52:09.212 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:09 discovered missing identifiers: map[sparseEntry:true]\n\tpackage="archive/tar"\n"}
[Trace - 12:52:10.203 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:10 discovered missing identifiers: map[parser:true]\n\tpackage="golang.org/x/net/html"\n"}
[Trace - 12:52:12.239 PM] Sending request 'textDocument/codeAction - (11)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"},"range":{"start":{"line":19,"character":16},"end":{"line":22,"character":2}},"context":{"diagnostics":[],"triggerKind":2}}
[Trace - 12:52:12.240 PM] Received response 'textDocument/codeAction - (11)' in 1ms.
Result: [{"title":"Extract function","kind":"refactor.extract","edit":{},"command":{"title":"Extract function","command":"gopls.apply_fix","arguments":[{"Fix":"extract_function","URI":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","Range":{"start":{"line":19,"character":16},"end":{"line":22,"character":2}}}]}},{"title":"Extract method","kind":"refactor.extract","edit":{},"command":{"title":"Extract method","command":"gopls.apply_fix","arguments":[{"Fix":"extract_method","URI":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","Range":{"start":{"line":19,"character":16},"end":{"line":22,"character":2}}}]}}]
[Trace - 12:52:17.451 PM] Sending request 'textDocument/rangeFormatting - (12)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"},"range":{"start":{"line":19,"character":16},"end":{"line":22,"character":2}},"options":{"tabSize":4,"insertSpaces":false,"trimTrailingWhitespace":true}}
format_range.go:35: LOG FILE "/tmp/gopls-1217959-log.txt"
[Trace - 12:52:17.452 PM] Received response 'textDocument/rangeFormatting - (12)' in 1ms.
Result: [{"range":{"start":{"line":24,"character":1},"end":{"line":26,"character":0}},"newText":""}]
[Trace - 12:52:17.492 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","version":2},"contentChanges":[{"range":{"start":{"line":24,"character":1},"end":{"line":25,"character":0}},"rangeLength":1,"text":""}]}
[Trace - 12:52:17.617 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","version":2,"diagnostics":[{"range":{"start":{"line":24,"character":1},"end":{"line":24,"character":1}},"severity":1,"source":"syntax","message":"expected declaration, found '}'"}]}
[Trace - 12:52:17.764 PM] Sending request 'textDocument/semanticTokens/full - (13)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"}}
[Trace - 12:52:17.765 PM] Received response 'textDocument/semanticTokens/full - (13)' in 0ms.
Result: {"resultId":"2022-08-30 12:52:17.765493561 -0400 EDT m=+13.363472691","data":[0,0,54,17,0,1,0,53,17,0,1,0,49,17,0,2,0,54,17,0,1,0,53,17,0,1,0,49,17,0,2,0,7,15,0,0,8,3,0,0,2,0,6,15,0,1,2,7,0,0,2,34,8,0,0,1,34,6,0,0,3,0,4,15,0,0,6,1,8,0,0,2,1,21,0,0,1,6,1,0,0,8,14,13,2,0,15,3,7,2,0,4,7,0,0,0,8,7,1,0,0,9,6,7,2,0,7,1,21,0,0,1,8,0,0,0,9,20,1,0,0,25,8,0,0,0,9,8,1,0,0,10,5,1,0,1,1,8,8,2,0,10,2,8,2,0,4,2,8,2,0,4,7,8,2,0,9,3,8,2,0,4,2,21,0,0,3,1,8,0,0,2,16,12,0,0,17,3,8,0,0,5,6,8,0,0,7,12,8,0,0,13,3,8,0,0,5,6,0,0,0,7,2,8,4,1,1,5,15,0,0,6,7,8,0,1,1,2,15,0,0,3,1,21,0,0,1,2,8,0,1,1,6,15,0,0,7,3,8,516,0,5,3,8,0,2,1,6,15,0,0,7,6,0,0,0,7,14,12,0,0,15,3,8,0,0,5,8,8,0,0,10,2,8,0,0,4,6,8,0,0,7,8,8,0]}
[Trace - 12:52:17.881 PM] Sending request 'textDocument/codeAction - (14)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"},"range":{"start":{"line":19,"character":16},"end":{"line":22,"character":2}},"context":{"diagnostics":[],"triggerKind":2}}
[Trace - 12:52:17.883 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2022/08/30 12:52:17 imports fixes: AllImportsFixes: /usr/local/google/home/pjw/tools/internal/lsp/implementation.go:25:2: expected declaration, found '}'\n\tfile="/usr/local/google/home/pjw/tools/internal/lsp/implementation.go"\n"}
[Trace - 12:52:17.986 PM] Received response 'textDocument/codeAction - (14)' in 105ms.
Result: [{"title":"Extract function","kind":"refactor.extract","edit":{},"command":{"title":"Extract function","command":"gopls.apply_fix","arguments":[{"Fix":"extract_function","URI":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","Range":{"start":{"line":19,"character":16},"end":{"line":22,"character":2}}}]}},{"title":"Extract method","kind":"refactor.extract","edit":{},"command":{"title":"Extract method","command":"gopls.apply_fix","arguments":[{"Fix":"extract_method","URI":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","Range":{"start":{"line":19,"character":16},"end":{"line":22,"character":2}}}]}}]
[Trace - 12:52:18.724 PM] Sending request 'textDocument/inlayHint - (15)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"},"range":{"start":{"line":0,"character":0},"end":{"line":24,"character":1}}}
[Trace - 12:52:18.724 PM] Received response 'textDocument/inlayHint - (15)' in 0ms.
Result: null
[Trace - 12:52:20.049 PM] Sending request 'textDocument/foldingRange - (16)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"}}
[Trace - 12:52:20.050 PM] Received response 'textDocument/foldingRange - (16)' in 0ms.
Result: []
[Trace - 12:52:20.106 PM] Sending request 'textDocument/codeLens - (17)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"}}
[Trace - 12:52:20.107 PM] Received response 'textDocument/codeLens - (17)' in 0ms.
Result: [{"range":{"start":{"line":8,"character":0},"end":{"line":8,"character":0}},"command":{"title":"Toggle gc annotation details","command":"gopls.gc_details","arguments":["file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"]}}]
[Trace - 12:52:20.959 PM] Sending request 'textDocument/documentSymbol - (18)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"}}
[Trace - 12:52:20.960 PM] Received response 'textDocument/documentSymbol - (18)' in 0ms.
Result: [{"name":"(*Server).implementation","detail":"(ctx context.Context, params *protocol.ImplementationParams)","kind":6,"range":{"start":{"line":17,"character":0},"end":{"line":24,"character":1}},"selectionRange":{"start":{"line":17,"character":17},"end":{"line":17,"character":31}}}]
[Trace - 12:52:23.912 PM] Sending request 'textDocument/codeAction - (19)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"},"range":{"start":{"line":24,"character":1},"end":{"line":24,"character":1}},"context":{"diagnostics":[{"range":{"start":{"line":24,"character":1},"end":{"line":24,"character":1}},"message":"expected declaration, found '}'","severity":1,"source":"syntax"}],"only":["quickfix"],"triggerKind":1}}
[Trace - 12:52:23.913 PM] Received response 'textDocument/codeAction - (19)' in 1ms.
Result: null
[Trace - 12:52:23.913 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2022/08/30 12:52:23 imports fixes: AllImportsFixes: /usr/local/google/home/pjw/tools/internal/lsp/implementation.go:25:2: expected declaration, found '}'\n\tfile="/usr/local/google/home/pjw/tools/internal/lsp/implementation.go"\n"}
[Trace - 12:52:31.188 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","version":3},"contentChanges":[{"range":{"start":{"line":24,"character":1},"end":{"line":24,"character":1}},"rangeLength":0,"text":"\n"}]}
[Trace - 12:52:31.297 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","version":3,"diagnostics":[{"range":{"start":{"line":25,"character":0},"end":{"line":25,"character":0}},"severity":1,"source":"syntax","message":"expected declaration, found '}'"}]}
[Trace - 12:52:31.455 PM] Sending request 'textDocument/semanticTokens/full - (20)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"}}
[Trace - 12:52:31.455 PM] Received response 'textDocument/semanticTokens/full - (20)' in 0ms.
Result: {"resultId":"2022-08-30 12:52:31.455667738 -0400 EDT m=+27.053646867","data":[0,0,54,17,0,1,0,53,17,0,1,0,49,17,0,2,0,54,17,0,1,0,53,17,0,1,0,49,17,0,2,0,7,15,0,0,8,3,0,0,2,0,6,15,0,1,2,7,0,0,2,34,8,0,0,1,34,6,0,0,3,0,4,15,0,0,6,1,8,0,0,2,1,21,0,0,1,6,1,0,0,8,14,13,2,0,15,3,7,2,0,4,7,0,0,0,8,7,1,0,0,9,6,7,2,0,7,1,21,0,0,1,8,0,0,0,9,20,1,0,0,25,8,0,0,0,9,8,1,0,0,10,5,1,0,1,1,8,8,2,0,10,2,8,2,0,4,2,8,2,0,4,7,8,2,0,9,3,8,2,0,4,2,21,0,0,3,1,8,0,0,2,16,12,0,0,17,3,8,0,0,5,6,8,0,0,7,12,8,0,0,13,3,8,0,0,5,6,0,0,0,7,2,8,4,1,1,5,15,0,0,6,7,8,0,1,1,2,15,0,0,3,1,21,0,0,1,2,8,0,1,1,6,15,0,0,7,3,8,516,0,5,3,8,0,2,1,6,15,0,0,7,6,0,0,0,7,14,12,0,0,15,3,8,0,0,5,8,8,0,0,10,2,8,0,0,4,6,8,0,0,7,8,8,0]}
[Trace - 12:52:31.557 PM] Sending request 'textDocument/codeAction - (21)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"},"range":{"start":{"line":19,"character":16},"end":{"line":22,"character":2}},"context":{"diagnostics":[],"triggerKind":2}}
[Trace - 12:52:31.558 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2022/08/30 12:52:31 imports fixes: AllImportsFixes: /usr/local/google/home/pjw/tools/internal/lsp/implementation.go:26:1: expected declaration, found '}'\n\tfile="/usr/local/google/home/pjw/tools/internal/lsp/implementation.go"\n"}
[Trace - 12:52:31.624 PM] Received response 'textDocument/codeAction - (21)' in 66ms.
Result: [{"title":"Extract function","kind":"refactor.extract","edit":{},"command":{"title":"Extract function","command":"gopls.apply_fix","arguments":[{"Fix":"extract_function","URI":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","Range":{"start":{"line":19,"character":16},"end":{"line":22,"character":2}}}]}},{"title":"Extract method","kind":"refactor.extract","edit":{},"command":{"title":"Extract method","command":"gopls.apply_fix","arguments":[{"Fix":"extract_method","URI":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go","Range":{"start":{"line":19,"character":16},"end":{"line":22,"character":2}}}]}}]
[Trace - 12:52:32.034 PM] Sending request 'textDocument/codeLens - (22)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"}}
[Trace - 12:52:32.035 PM] Received response 'textDocument/codeLens - (22)' in 0ms.
Result: [{"range":{"start":{"line":8,"character":0},"end":{"line":8,"character":0}},"command":{"title":"Toggle gc annotation details","command":"gopls.gc_details","arguments":["file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"]}}]
[Trace - 12:52:32.404 PM] Sending request 'textDocument/inlayHint - (23)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"},"range":{"start":{"line":0,"character":0},"end":{"line":25,"character":0}}}
[Trace - 12:52:32.405 PM] Received response 'textDocument/inlayHint - (23)' in 0ms.
Result: null
[Trace - 12:52:32.900 PM] Sending request 'textDocument/documentSymbol - (24)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"}}
[Trace - 12:52:32.901 PM] Received response 'textDocument/documentSymbol - (24)' in 0ms.
Result: [{"name":"(*Server).implementation","detail":"(ctx context.Context, params *protocol.ImplementationParams)","kind":6,"range":{"start":{"line":17,"character":0},"end":{"line":24,"character":1}},"selectionRange":{"start":{"line":17,"character":17},"end":{"line":17,"character":31}}}]
[Trace - 12:52:33.731 PM] Sending request 'textDocument/foldingRange - (25)'.
Params: {"textDocument":{"uri":"file:///usr/local/google/home/pjw/tools/internal/lsp/implementation.go"}}
[Trace - 12:52:33.732 PM] Received response 'textDocument/foldingRange - (25)' in 0ms.
Result: []
[Trace - 12:52:37.562 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:37 background imports cache refresh starting\n"}
[Trace - 12:52:37.631 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:37 background refresh finished after 75.051084ms\n"}
[Trace - 12:52:45.580 PM] Sending request 'shutdown - (26)'.
Params:
[Trace - 12:52:45.585 PM] Received response 'shutdown - (26)' in 4ms.
Result: null
[Trace - 12:52:45.585 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/08/30 12:52:45 Shutdown session\n\tshutdown_session=1\n"}
[Trace - 12:52:45.586 PM] Sending notification 'exit'.
Params:
The text was updated successfully, but these errors were encountered: