Skip to content

Instantly share code, notes, and snippets.

@EnigmaCurry
Created July 8, 2022 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EnigmaCurry/db841702eb997a2d211f45d11ab7f69c to your computer and use it in GitHub Desktop.
Save EnigmaCurry/db841702eb997a2d211f45d11ab7f69c to your computer and use it in GitHub Desktop.
This is the WORKING gopls session in ~/git/go-play/hello.go
[Trace - 09:39:22.092 AM] Sending request 'initialize - (1)'.
Params: {"processId":null,"rootPath":"/home/ryan/git/go-play","clientInfo":{"name":"emacs","version":"GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6)\n of 2022-04-27"},"rootUri":"file:///home/ryan/git/go-play","capabilities":{"workspace":{"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"]},"applyEdit":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]}},"executeCommand":{"dynamicRegistration":false},"didChangeWatchedFiles":{"dynamicRegistration":true},"workspaceFolders":true,"configuration":true,"codeLens":{"refreshSupport":true},"fileOperations":{"didCreate":false,"willCreate":false,"didRename":true,"willRename":true,"didDelete":false,"willDelete":false}},"textDocument":{"declaration":{"linkSupport":true},"definition":{"linkSupport":true},"implementation":{"linkSupport":true},"typeDefinition":{"linkSupport":true},"synchronization":{"willSave":true,"didSave":true,"willSaveWaitUntil":true},"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]},"hierarchicalDocumentSymbolSupport":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"resolveSupport":{"properties":["edit","command"]},"dataSupport":true},"completion":{"completionItem":{"snippetSupport":false,"documentationFormat":["markdown","plaintext"],"resolveAdditionalTextEditsSupport":true,"insertReplaceSupport":true,"deprecatedSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits","command"]},"insertTextModeSupport":{"valueSet":[1,2]}},"contextSupport":true},"signatureHelp":{"signatureInformation":{"parameterInformation":{"labelOffsetSupport":true}}},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"hover":{"contentFormat":["markdown","plaintext"]},"foldingRange":{"dynamicRegistration":true},"callHierarchy":{"dynamicRegistration":false},"publishDiagnostics":{"relatedInformation":true,"tagSupport":{"valueSet":[1,2]},"versionSupport":true},"linkedEditingRange":{"dynamicRegistration":true}},"window":{"workDoneProgress":true,"showMessage":null,"showDocument":{"support":true}}},"initializationOptions":null,"workDoneToken":"1"}
[Trace - 09:39:22.094 AM] Received response 'initialize - (1)' in 1ms.
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,"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"}}},"serverInfo":{"name":"gopls","version":"{\"GoVersion\":\"go1.18.2\",\"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.0.0\",\"Sum\":\"h1:dtDWrepsVPfW9H/4y7dDgFc2MBUSeJhlaDtK13CxFlU=\",\"Replace\":null},{\"Path\":\"github.com/google/go-cmp\",\"Version\":\"v0.5.7\",\"Sum\":\"h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=\",\"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-20220218215828-6cf2b201936e\",\"Sum\":\"h1:qyrTQ++p1afMkO4DPEeLGq/3oTsdlvdH4vqZUBWzUKM=\",\"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-20210220032951-036812b2e83c\",\"Sum\":\"h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=\",\"Replace\":null},{\"Path\":\"golang.org/x/sys\",\"Version\":\"v0.0.0-20220209214540-3681064d5158\",\"Sum\":\"h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=\",\"Replace\":null},{\"Path\":\"golang.org/x/text\",\"Version\":\"v0.3.7\",\"Sum\":\"h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=\",\"Replace\":null},{\"Path\":\"golang.org/x/tools\",\"Version\":\"v0.1.11-0.20220513164230-dfee1649af67\",\"Sum\":\"h1:CJwk4qG1fov4WP7/DWhhb7OQVZlQKAl1rEMnDF+ceGU=\",\"Replace\":null},{\"Path\":\"golang.org/x/vuln\",\"Version\":\"v0.0.0-20220503210553-a5481fb0c8be\",\"Sum\":\"h1:jokAF1mfylAi1iTQx7C44B7vyXUcSEMw8eDv0PzNu8s=\",\"Replace\":null},{\"Path\":\"honnef.co/go/tools\",\"Version\":\"v0.3.0\",\"Sum\":\"h1:2LdYUZ7CIxnYgskbUZfY7FPggmqnh6shBqfWa8Tn3XU=\",\"Replace\":null},{\"Path\":\"mvdan.cc/gofumpt\",\"Version\":\"v0.3.0\",\"Sum\":\"h1:kTojdZo9AcEYbQYhGuLf/zszYthRdhDNDUi2JKTxas4=\",\"Replace\":null},{\"Path\":\"mvdan.cc/xurls/v2\",\"Version\":\"v2.4.0\",\"Sum\":\"h1:tzxjVAj+wSBmDcF6zBB7/myTy3gX9xvi8Tyr28AuQgc=\",\"Replace\":null}],\"Settings\":[{\"Key\":\"-compiler\",\"Value\":\"gc\"},{\"Key\":\"-ldflags\",\"Value\":\"-linkmode=external\"},{\"Key\":\"CGO_ENABLED\",\"Value\":\"1\"},{\"Key\":\"CGO_CFLAGS\",\"Value\":\"-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto\"},{\"Key\":\"CGO_CPPFLAGS\",\"Value\":\"\"},{\"Key\":\"CGO_CXXFLAGS\",\"Value\":\"-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto\"},{\"Key\":\"CGO_LDFLAGS\",\"Value\":\"-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto\"},{\"Key\":\"GOARCH\",\"Value\":\"amd64\"},{\"Key\":\"GOOS\",\"Value\":\"linux\"},{\"Key\":\"GOAMD64\",\"Value\":\"v1\"}],\"Version\":\"v0.8.4\"}"}}
[Trace - 09:39:22.095 AM] Sending notification 'initialized'.
Params: {}
[Trace - 09:39:22.095 AM] Received request 'window/workDoneProgress/create - (1)'.
Params: {"token":"5577006791947779410"}
[Trace - 09:39:22.095 AM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go","languageId":"go","version":0,"text":"package main\n\nimport (\n\t\"fmt\"\n)\n\nfunc main() {\n\tfmt.\n}\n"}}
[Trace - 09:39:22.200 AM] Sending request 'textDocument/codeLens - (2)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"}}
[Trace - 09:39:22.293 AM] Sending request 'textDocument/documentSymbol - (3)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"}}
[Trace - 09:39:22.293 AM] Sending request 'textDocument/codeAction - (4)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"},"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"context":{"diagnostics":[]}}
[Trace - 09:39:22.294 AM] Sending request 'textDocument/documentLink - (5)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"}}
[Trace - 09:39:22.294 AM] Sending request 'textDocument/documentSymbol - (6)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"}}
[Trace - 09:39:22.294 AM] Sending notification '$/cancelRequest'.
Params: {"id":4}
[Trace - 09:39:22.294 AM] Sending request 'textDocument/codeAction - (7)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"},"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"context":{"diagnostics":[]}}
[Trace - 09:39:22.294 AM] Sending request 'textDocument/documentLink - (8)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"}}
[Trace - 09:39:22.300 AM] Sending notification '$/cancelRequest'.
Params: {"id":2}
[Trace - 09:39:22.300 AM] Sending request 'textDocument/codeLens - (9)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"}}
[Trace - 09:39:22.301 AM] Sending response 'window/workDoneProgress/create - (1)' in 206ms.
Result:
[Trace - 09:39:22.301 AM] Received notification '$/progress'.
Params: {"token":"5577006791947779410","value":{"kind":"begin","title":"Setting up workspace","message":"Loading packages..."}}
[Trace - 09:39:22.302 AM] Received request 'workspace/configuration - (2)'.
Params: {"items":[{"scopeUri":"file:///home/ryan/git/go-play","section":"gopls"}]}
[Trace - 09:39:23.208 AM] Sending notification '$/cancelRequest'.
Params: {"id":9}
[Trace - 09:39:23.208 AM] Sending notification '$/cancelRequest'.
Params: {"id":8}
[Trace - 09:39:23.209 AM] Sending notification '$/cancelRequest'.
Params: {"id":7}
[Trace - 09:39:23.209 AM] Sending notification '$/cancelRequest'.
Params: {"id":5}
[Trace - 09:39:23.209 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go","version":1},"contentChanges":[{"range":{"start":{"line":7,"character":4},"end":{"line":7,"character":5}},"rangeLength":1,"text":""}]}
[Trace - 09:39:23.212 AM] Sending response 'workspace/configuration - (2)' in 910ms.
Result: [{"usePlaceholders":true,"hoverKind":"SynopsisDocumentation","buildFlags":[],"linkTarget":"pkg.go.dev","codelenses":{"gc_details":false,"generate":true,"regenerate_cgo":true,"tidy":true,"upgrade_dependency":true,"test":true,"vendor":true},"linksInHover":true,"gofumpt":false,"local":"","directoryFilters":[],"importShortcut":"Both","symbolMatcher":"Fuzzy","symbolStyle":"Dynamic","completeUnimported":true,"staticcheck":true}]
[Trace - 09:39:23.227 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/07/08 09:39:23 go env for /home/ryan/git/go-play\n(root /home/ryan/git/go-play)\n(go version go version go1.18.3 linux/amd64)\n(valid build configuration = false)\n(build flags: [])\nGOPATH=/home/ryan/go\nGOPRIVATE=\nGOFLAGS=\nGOMODCACHE=/home/ryan/go/pkg/mod\nGOMOD=/dev/null\nGOINSECURE=\nGOWORK=\nGO111MODULE=\nGOSUMDB=sum.golang.org\nGOPROXY=https://proxy.golang.org,direct\nGOCACHE=/home/ryan/.cache/go-build\nGONOPROXY=\nGONOSUMDB=\nGOROOT=/usr/lib/go\n\n"}
[Trace - 09:39:23.316 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/07/08 09:39:23 go/packages.Load\n\tsnapshot=0\n\tdirectory=/home/ryan/git/go-play\n\tquery=[./ builtin]\n\tpackages=2\n"}
[Trace - 09:39:23.348 AM] Received notification '$/progress'.
Params: {"token":"5577006791947779410","value":{"kind":"end","message":"Finished loading packages."}}
[Trace - 09:39:23.351 AM] Received request 'client/registerCapability - (3)'.
Params: {"registrations":[{"id":"workspace/didChangeWatchedFiles-0","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"**/*.{go,mod,sum,work}","kind":7}]}}]}
[Trace - 09:39:23.392 AM] Sending request 'textDocument/codeLens - (10)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"}}
[Trace - 09:39:23.392 AM] Sending response 'client/registerCapability - (3)' in 40ms.
Result:
[Error - Received] 09:39:23.393 AM #2 JSON RPC cancelled
[Trace - 09:39:23.487 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2022/07/08 09:39:23 falling back to safe trimming due to type errors: [/usr/lib/go/src/runtime/vdso_linux.go:53:38: invalid operation: division by zero /usr/lib/go/src/runtime/vdso_linux.go:54:38: invalid operation: division by zero] or still-missing identifiers: map[memRecordCycle:true pageBits:true]\n\tpackage=\"runtime\"\n"}
[Trace - 09:39:23.654 AM] Received response 'textDocument/documentSymbol - (3)' in 1361ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":6,"character":0},"end":{"line":8,"character":1}},"selectionRange":{"start":{"line":6,"character":5},"end":{"line":6,"character":9}}}]
[Error - Received] 09:39:23.655 AM #4 JSON RPC cancelled
[Error - Received] 09:39:23.655 AM #5 JSON RPC cancelled
[Trace - 09:39:23.655 AM] Received response 'textDocument/documentSymbol - (6)' in 1361ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":6,"character":0},"end":{"line":8,"character":1}},"selectionRange":{"start":{"line":6,"character":5},"end":{"line":6,"character":9}}}]
[Error - Received] 09:39:23.655 AM #7 JSON RPC cancelled
[Error - Received] 09:39:23.655 AM #8 JSON RPC cancelled
[Trace - 09:39:23.655 AM] Sending request 'textDocument/documentSymbol - (11)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"}}
[Error - Received] 09:39:23.655 AM #9 JSON RPC cancelled
[Trace - 09:39:23.655 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/ryan/git/go-play/hello.go","diagnostics":[{"range":{"start":{"line":7,"character":6},"end":{"line":7,"character":6}},"severity":1,"source":"syntax","message":"expected selector or type assertion, found '}'"}]}
[Trace - 09:39:23.656 AM] Sending request 'textDocument/documentSymbol - (12)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"}}
[Trace - 09:39:23.657 AM] Received response 'textDocument/codeLens - (10)' in 264ms.
Result: null
[Trace - 09:39:23.657 AM] Received response 'textDocument/documentSymbol - (11)' in 1ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":6,"character":0},"end":{"line":8,"character":1}},"selectionRange":{"start":{"line":6,"character":5},"end":{"line":6,"character":9}}}]
[Trace - 09:39:23.657 AM] Received response 'textDocument/documentSymbol - (12)' in 1ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":6,"character":0},"end":{"line":8,"character":1}},"selectionRange":{"start":{"line":6,"character":5},"end":{"line":6,"character":9}}}]
[Trace - 09:39:23.658 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/ryan/git/go-play/hello.go","version":1,"diagnostics":[{"range":{"start":{"line":3,"character":1},"end":{"line":3,"character":6}},"severity":1,"code":"UnusedImport","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal?utm_source=gopls#UnusedImport"},"source":"compiler","message":"\"fmt\" imported but not used"},{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":4}},"severity":1,"code":"InvalidPkgUse","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal?utm_source=gopls#InvalidPkgUse"},"source":"compiler","message":"use of package fmt not in selector"}]}
[Trace - 09:39:23.713 AM] Sending request 'textDocument/codeAction - (13)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"},"range":{"start":{"line":7,"character":4},"end":{"line":7,"character":4}},"context":{"diagnostics":[{"range":{"start":{"line":7,"character":1},"end":{"line":7,"character":4}},"severity":1,"code":"InvalidPkgUse","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal?utm_source=gopls#InvalidPkgUse"},"source":"compiler","message":"use of package fmt not in selector"}]}}
[Trace - 09:39:23.713 AM] Sending request 'textDocument/documentLink - (14)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"}}
[Trace - 09:39:23.714 AM] Received response 'textDocument/codeAction - (13)' in 1ms.
Result: [{"title":"Organize Imports","kind":"source.organizeImports","edit":{"documentChanges":[{"textDocument":{"version":1,"uri":"file:///home/ryan/git/go-play/hello.go"},"edits":[{"range":{"start":{"line":1,"character":0},"end":{"line":5,"character":0}},"newText":""}]}]}}]
[Trace - 09:39:23.714 AM] Received response 'textDocument/documentLink - (14)' in 0ms.
Result: [{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":5}},"target":"https://pkg.go.dev/fmt?utm_source=gopls"}]
[Trace - 09:39:23.717 AM] Sending request 'textDocument/codeLens - (15)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"}}
[Trace - 09:39:23.718 AM] Received response 'textDocument/codeLens - (15)' in 0ms.
Result: null
[Trace - 09:39:24.255 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go","version":2},"contentChanges":[{"range":{"start":{"line":7,"character":4},"end":{"line":7,"character":4}},"rangeLength":0,"text":"."}]}
[Trace - 09:39:24.258 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/ryan/git/go-play/hello.go","version":2,"diagnostics":[{"range":{"start":{"line":7,"character":6},"end":{"line":7,"character":6}},"severity":1,"source":"syntax","message":"expected selector or type assertion, found '}'"}]}
[Trace - 09:39:24.456 AM] Sending request 'textDocument/completion - (16)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"},"position":{"line":7,"character":5},"context":{"triggerKind":2,"triggerCharacter":"."}}
[Trace - 09:39:24.492 AM] Received response 'textDocument/completion - (16)' in 36ms.
Result: {"isIncomplete":true,"itemDefaults":{"editRange":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}}},"items":[{"label":"Errorf","labelDetails":{},"kind":3,"detail":"func(format string, a ...any) error","documentation":"Errorf formats according to a format specifier and returns the string as a value that satisfies error.","preselect":true,"sortText":"00000","filterText":"Errorf","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Errorf"}},{"label":"Formatter","labelDetails":{},"kind":8,"detail":"interface{...}","documentation":"Formatter is implemented by any value that has a Format method.","sortText":"00001","filterText":"Formatter","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Formatter"}},{"label":"Fprint","labelDetails":{},"kind":3,"detail":"func(w io.Writer, a ...any) (n int, err error)","documentation":"Fprint formats using the default formats for its operands and writes to w.","sortText":"00002","filterText":"Fprint","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Fprint"}},{"label":"Fprintf","labelDetails":{},"kind":3,"detail":"func(w io.Writer, format string, a ...any) (n int, err error)","documentation":"Fprintf formats according to a format specifier and writes to w.","sortText":"00003","filterText":"Fprintf","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Fprintf"}},{"label":"Fprintln","labelDetails":{},"kind":3,"detail":"func(w io.Writer, a ...any) (n int, err error)","documentation":"Fprintln formats using the default formats for its operands and writes to w.","sortText":"00004","filterText":"Fprintln","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Fprintln"}},{"label":"Fscan","labelDetails":{},"kind":3,"detail":"func(r io.Reader, a ...any) (n int, err error)","documentation":"Fscan scans text read from r, storing successive space-separated values into successive arguments.","sortText":"00005","filterText":"Fscan","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Fscan"}},{"label":"Fscanf","labelDetails":{},"kind":3,"detail":"func(r io.Reader, format string, a ...any) (n int, err error)","documentation":"Fscanf scans text read from r, storing successive space-separated values into successive arguments as determined by the format.","sortText":"00006","filterText":"Fscanf","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Fscanf"}},{"label":"Fscanln","labelDetails":{},"kind":3,"detail":"func(r io.Reader, a ...any) (n int, err error)","documentation":"Fscanln is similar to Fscan, but stops scanning at a newline and after the final item there must be a newline or EOF.","sortText":"00007","filterText":"Fscanln","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Fscanln"}},{"label":"GoStringer","labelDetails":{},"kind":8,"detail":"interface{...}","documentation":"GoStringer is implemented by any value that has a GoString method, which defines the Go syntax for that value.","sortText":"00008","filterText":"GoStringer","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"GoStringer"}},{"label":"Print","labelDetails":{},"kind":3,"detail":"func(a ...any) (n int, err error)","documentation":"Print formats using the default formats for its operands and writes to standard output.","sortText":"00009","filterText":"Print","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Print"}},{"label":"Printf","labelDetails":{},"kind":3,"detail":"func(format string, a ...any) (n int, err error)","documentation":"Printf formats according to a format specifier and writes to standard output.","sortText":"00010","filterText":"Printf","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Printf"}},{"label":"Println","labelDetails":{},"kind":3,"detail":"func(a ...any) (n int, err error)","documentation":"Println formats using the default formats for its operands and writes to standard output.","sortText":"00011","filterText":"Println","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Println"}},{"label":"Scan","labelDetails":{},"kind":3,"detail":"func(a ...any) (n int, err error)","documentation":"Scan scans text read from standard input, storing successive space-separated values into successive arguments.","sortText":"00012","filterText":"Scan","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Scan"}},{"label":"ScanState","labelDetails":{},"kind":8,"detail":"interface{...}","documentation":"ScanState represents the scanner state passed to custom scanners.","sortText":"00013","filterText":"ScanState","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"ScanState"}},{"label":"Scanf","labelDetails":{},"kind":3,"detail":"func(format string, a ...any) (n int, err error)","documentation":"Scanf scans text read from standard input, storing successive space-separated values into successive arguments as determined by the format.","sortText":"00014","filterText":"Scanf","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Scanf"}},{"label":"Scanln","labelDetails":{},"kind":3,"detail":"func(a ...any) (n int, err error)","documentation":"Scanln is similar to Scan, but stops scanning at a newline and after the final item there must be a newline or EOF.","sortText":"00015","filterText":"Scanln","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Scanln"}},{"label":"Scanner","labelDetails":{},"kind":8,"detail":"interface{...}","documentation":"Scanner is implemented by any value that has a Scan method, which scans the input for the representation of a value and stores the result in the receiver, which must be a pointer to be useful.","sortText":"00016","filterText":"Scanner","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Scanner"}},{"label":"Sprint","labelDetails":{},"kind":3,"detail":"func(a ...any) string","documentation":"Sprint formats using the default formats for its operands and returns the resulting string.","sortText":"00017","filterText":"Sprint","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Sprint"}},{"label":"Sprintf","labelDetails":{},"kind":3,"detail":"func(format string, a ...any) string","documentation":"Sprintf formats according to a format specifier and returns the resulting string.","sortText":"00018","filterText":"Sprintf","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Sprintf"}},{"label":"Sprintln","labelDetails":{},"kind":3,"detail":"func(a ...any) string","documentation":"Sprintln formats using the default formats for its operands and returns the resulting string.","sortText":"00019","filterText":"Sprintln","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Sprintln"}},{"label":"Sscan","labelDetails":{},"kind":3,"detail":"func(str string, a ...any) (n int, err error)","documentation":"Sscan scans the argument string, storing successive space-separated values into successive arguments.","sortText":"00020","filterText":"Sscan","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Sscan"}},{"label":"Sscanf","labelDetails":{},"kind":3,"detail":"func(str string, format string, a ...any) (n int, err error)","documentation":"Sscanf scans the argument string, storing successive space-separated values into successive arguments as determined by the format.","sortText":"00021","filterText":"Sscanf","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Sscanf"}},{"label":"Sscanln","labelDetails":{},"kind":3,"detail":"func(str string, a ...any) (n int, err error)","documentation":"Sscanln is similar to Sscan, but stops scanning at a newline and after the final item there must be a newline or EOF.","sortText":"00022","filterText":"Sscanln","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Sscanln"}},{"label":"State","labelDetails":{},"kind":8,"detail":"interface{...}","documentation":"State represents the printer state passed to custom formatters.","sortText":"00023","filterText":"State","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"State"}},{"label":"Stringer","labelDetails":{},"kind":8,"detail":"interface{...}","documentation":"Stringer is implemented by any value that has a String method, which defines the “native” format for that value.","sortText":"00024","filterText":"Stringer","insertTextFormat":1,"textEdit":{"range":{"start":{"line":7,"character":5},"end":{"line":7,"character":5}},"newText":"Stringer"}}]}
[Trace - 09:39:26.054 AM] Sending request 'textDocument/formatting - (17)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"},"options":{"tabSize":4,"insertSpaces":false}}
[Error - Received] 09:39:26.054 AM #17 9:1: expected selector or type assertion, found '}'
[Trace - 09:39:26.064 AM] Sending notification 'textDocument/didSave'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go","version":2}}
[Trace - 09:39:26.067 AM] Sending request 'textDocument/codeLens - (18)'.
Params: {"textDocument":{"uri":"file:///home/ryan/git/go-play/hello.go"}}
[Trace - 09:39:26.067 AM] Received response 'textDocument/codeLens - (18)' in 0ms.
Result: null
[Trace - 09:39:26.068 AM] Sending notification 'workspace/didChangeWatchedFiles'.
Params: {"changes":[{"type":2,"uri":"file:///home/ryan/git/go-play/hello.go"}]}
[Trace - 09:39:28.607 AM] Sending request 'shutdown - (19)'.
Params: {}
[Error - Received] 09:39:28.608 AM #19 JSON RPC invalid params: expected no params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment