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: auto import failed #32612

Closed
hansnow opened this issue Jun 14, 2019 · 5 comments
Closed

x/tools/gopls: auto import failed #32612

hansnow opened this issue Jun 14, 2019 · 5 comments

Comments

@hansnow
Copy link

@hansnow hansnow commented Jun 14, 2019

What version of Go are you using (go version)?

$ go version
go version go1.12.5 darwin/amd64

Does this issue reproduce with the latest release?

Yes.

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/han/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/han/golang"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.5/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.5/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/han/code/ss-subscribe/go.mod"
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 -fmessage-length=0 -fdebug-prefix-map=/var/folders/5w/89lbn1hs3xsfxp6bxmvgm4pc0000gn/T/go-build974469556=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Kapture 2019-06-13 at 17 39 39

What did you expect to see?

package testing is imported correctly.

What did you see instead?

VSCode warns that could not import testing (no known ID for testing)

gopls output(with -rpc.trace flag)

gopls Output
[Trace - 8:41:16 AM] Sending request 'initialize - (0)'.
Params: {"processId":21292,"rootPath":"/Users/han/code/ss-subscribe","rootUri":"file:///Users/han/code/ss-subscribe","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true},"textDocument":{"publishDiagnostics":{"relatedInformation":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},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"]}},"definition":{"dynamicRegistration":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},"codeAction":{"dynamicRegistration":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true},"documentLink":{"dynamicRegistration":true},"typeDefinition":{"dynamicRegistration":true},"implementation":{"dynamicRegistration":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true}}},"initializationOptions":{"funcSnippetEnabled":false,"gocodeCompletionEnabled":true},"trace":"off","workspaceFolders":[{"uri":"file:///Users/han/code/ss-subscribe","name":"ss-subscribe"}]}

[Trace - 8:41:16 AM] Received response 'initialize - (0)' in 36ms.
Params: {"capabilities":{"textDocumentSync":{"openClose":true,"change":1},"hoverProvider":true,"completionProvider":{"triggerCharacters":["."]},"signatureHelpProvider":{"triggerCharacters":["(",","]},"definitionProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"codeActionProvider":true,"documentFormattingProvider":true,"documentLinkProvider":{},"typeDefinitionProvider":true,"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"custom":null}

[Trace - 8:41:16 AM] Sending notification 'initialized'.
Params: {}

[Trace - 8:41:16 AM] Received request 'client/registerCapability - (1)'.
Params: {"registrations":[{"id":"workspace/didChangeConfiguration","method":"workspace/didChangeConfiguration"},{"id":"workspace/didChangeWorkspaceFolders","method":"workspace/didChangeWorkspaceFolders"}]}

[Trace - 8:41:16 AM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","languageId":"go","version":1,"text":"package main\n"}}

[Trace - 8:41:16 AM] Sending response 'client/registerCapability - (1)' in 2ms.
Params: {}

[Trace - 8:41:16 AM] Received request 'workspace/configuration - (2)'.
Params: {"items":[{"scopeUri":"file:///Users/han/code/ss-subscribe","section":"gopls"}]}

[Trace - 8:41:16 AM] Sending response 'workspace/configuration - (2)' in 3ms.
Params: [{"usePlaceholders":true}]

[Trace - 8:41:16 AM] Sending request 'textDocument/documentSymbol - (1)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:16 AM] Sending request 'textDocument/documentLink - (2)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:16 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"Build info\n----------\nversion v0.1.0-cmd.gopls, built in $GOPATH mode\n\nGo info\n-------\ngo version go1.12.5 darwin/amd64\n\nGOARCH="amd64"\nGOBIN=""\nGOCACHE="/Users/han/Library/Caches/go-build"\nGOEXE=""\nGOFLAGS=""\nGOHOSTARCH="amd64"\nGOHOSTOS="darwin"\nGOOS="darwin"\nGOPATH="/Users/han/golang"\nGOPROXY=""\nGORACE=""\nGOROOT="/usr/local/Cellar/go/1.12.5/libexec"\nGOTMPDIR=""\nGOTOOLDIR="/usr/local/Cellar/go/1.12.5/libexec/pkg/tool/darwin_amd64"\nGCCGO="gccgo"\nCC="clang"\nCXX="clang++"\nCGO_ENABLED="1"\nGOMOD="/Users/han/code/ss-subscribe/go.mod"\nCGO_CFLAGS="-g -O2"\nCGO_CPPFLAGS=""\nCGO_CXXFLAGS="-g -O2"\nCGO_FFLAGS="-g -O2"\nCGO_LDFLAGS="-g -O2"\nPKG_CONFIG="pkg-config"\nGOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/5w/89lbn1hs3xsfxp6bxmvgm4pc0000gn/T/go-build354680539=/tmp/go-build -gno-record-gcc-switches -fno-common"\n"}

[Info - 8:41:16 AM] Build info

version v0.1.0-cmd.gopls, built in $GOPATH mode

Go info

go version go1.12.5 darwin/amd64

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/han/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/han/golang"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.5/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.5/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/han/code/ss-subscribe/go.mod"
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 -fmessage-length=0 -fdebug-prefix-map=/var/folders/5w/89lbn1hs3xsfxp6bxmvgm4pc0000gn/T/go-build354680539=/tmp/go-build -gno-record-gcc-switches -fno-common"

[Trace - 8:41:17 AM] Received response 'textDocument/documentSymbol - (1)' in 1277ms.
Params: []

[Trace - 8:41:17 AM] Received response 'textDocument/documentLink - (2)' in 1276ms.
Params: {}

[Trace - 8:41:17 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:17 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[]}

[Trace - 8:41:32 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":2},"contentChanges":[{"text":"package main\n\n"}]}

[Trace - 8:41:32 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:32 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[]}

[Trace - 8:41:32 AM] Sending request 'textDocument/documentSymbol - (3)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:32 AM] Received response 'textDocument/documentSymbol - (3)' in 0ms.
Params: []

[Trace - 8:41:33 AM] Sending request 'textDocument/documentLink - (4)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:33 AM] Received response 'textDocument/documentLink - (4)' in 0ms.
Params: {}

[Trace - 8:41:36 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":3},"contentChanges":[{"text":"package main\n\nf"}]}

[Trace - 8:41:36 AM] Sending request 'textDocument/completion - (5)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":1},"context":{"triggerKind":1}}

[Trace - 8:41:36 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"severity":1,"source":"LSP","message":"expected declaration, found f"}]}

[Trace - 8:41:36 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:36 AM] Received response 'textDocument/completion - (5)' in 1ms.
Params: {"isIncomplete":false,"items":[{"label":"getSubscribeContent(url string)","kind":3,"detail":"string","preselect":true,"sortText":"00000","filterText":"getSubscribeContent","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"getSubscribeContent(${1:url string})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"main()","kind":3,"sortText":"00001","filterText":"main","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"main()"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"append(slice []Type, elems ...Type)","kind":3,"detail":"[]Type","sortText":"00002","filterText":"append","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"append(${1:slice []Type}, ${2:elems ...Type})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"bool","kind":25,"sortText":"00003","filterText":"bool","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"bool"}},{"label":"byte","kind":25,"sortText":"00004","filterText":"byte","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"byte"}},{"label":"cap(v Type)","kind":3,"detail":"int","sortText":"00005","filterText":"cap","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"cap(${1:v Type})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"close(c chan\u003c- Type)","kind":3,"sortText":"00006","filterText":"close","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"close(${1:c chan\u003c- Type})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"complex(r float64, i float64)","kind":3,"detail":"complex128","sortText":"00007","filterText":"complex","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"complex(${1:r float64}, ${2:i float64})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"complex128","kind":25,"sortText":"00008","filterText":"complex128","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"complex128"}},{"label":"complex64","kind":25,"sortText":"00009","filterText":"complex64","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"complex64"}},{"label":"copy(dst []Type, src []Type)","kind":3,"detail":"int","sortText":"00010","filterText":"copy","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"copy(${1:dst []Type}, ${2:src []Type})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"delete(m map[Type]Type1, key Type)","kind":3,"sortText":"00011","filterText":"delete","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"delete(${1:m map[Type]Type1}, ${2:key Type})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"error","kind":8,"sortText":"00012","filterText":"error","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"error"}},{"label":"false","kind":21,"sortText":"00013","filterText":"false","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"false"}},{"label":"float32","kind":25,"sortText":"00014","filterText":"float32","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"float32"}},{"label":"float64","kind":25,"sortText":"00015","filterText":"float64","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"float64"}},{"label":"imag(c complex128)","kind":3,"detail":"float64","sortText":"00016","filterText":"imag","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"imag(${1:c complex128})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"int","kind":25,"sortText":"00017","filterText":"int","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"int"}},{"label":"int16","kind":25,"sortText":"00018","filterText":"int16","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"int16"}},{"label":"int32","kind":25,"sortText":"00019","filterText":"int32","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"int32"}},{"label":"int64","kind":25,"sortText":"00020","filterText":"int64","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"int64"}},{"label":"int8","kind":25,"sortText":"00021","filterText":"int8","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"int8"}},{"label":"iota","kind":21,"sortText":"00022","filterText":"iota","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"iota"}},{"label":"len(v Type)","kind":3,"detail":"int","sortText":"00023","filterText":"len","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"len(${1:v Type})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"make(t Type, size ...int)","kind":3,"detail":"Type","sortText":"00024","filterText":"make","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"make(${1:t Type}, ${2:size ...int})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"new(Type)","kind":3,"detail":"*Type","sortText":"00025","filterText":"new","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"new(${1:Type})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"nil","kind":6,"sortText":"00026","filterText":"nil","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"nil"}},{"label":"panic(v interface{})","kind":3,"sortText":"00027","filterText":"panic","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"panic(${1:v interface{\}})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"print(args ...Type)","kind":3,"sortText":"00028","filterText":"print","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"print(${1:args ...Type})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"println(args ...Type)","kind":3,"sortText":"00029","filterText":"println","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"println(${1:args ...Type})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"real(c complex128)","kind":3,"detail":"float64","sortText":"00030","filterText":"real","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"real(${1:c complex128})"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"recover()","kind":3,"detail":"interface{}","sortText":"00031","filterText":"recover","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"recover()"},"command":{"title":"","command":"editor.action.triggerParameterHints"}},{"label":"rune","kind":25,"sortText":"00032","filterText":"rune","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"rune"}},{"label":"string","kind":25,"sortText":"00033","filterText":"string","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"string"}},{"label":"true","kind":21,"sortText":"00034","filterText":"true","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"true"}},{"label":"uint","kind":25,"sortText":"00035","filterText":"uint","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"uint"}},{"label":"uint16","kind":25,"sortText":"00036","filterText":"uint16","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"uint16"}},{"label":"uint32","kind":25,"sortText":"00037","filterText":"uint32","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"uint32"}},{"label":"uint64","kind":25,"sortText":"00038","filterText":"uint64","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"uint64"}},{"label":"uint8","kind":25,"sortText":"00039","filterText":"uint8","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"uint8"}},{"label":"uintptr","kind":25,"sortText":"00040","filterText":"uintptr","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"newText":"uintptr"}}]}

[Trace - 8:41:36 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":4},"contentChanges":[{"text":"package main\n\nfu"}]}

[Trace - 8:41:36 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:36 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"severity":1,"source":"LSP","message":"expected declaration, found fu"}]}

[Trace - 8:41:37 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":6},"contentChanges":[{"text":"package main\n\nfunc"}]}

[Trace - 8:41:37 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:37 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":4},"end":{"line":2,"character":4}},"severity":1,"source":"LSP","message":"expected '(', found 'EOF'"}]}

[Trace - 8:41:37 AM] Sending request 'textDocument/documentSymbol - (6)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:37 AM] Received response 'textDocument/documentSymbol - (6)' in 0ms.
Params: [{"name":"_","detail":"(invalid type)","kind":12,"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"selectionRange":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}}}]

[Trace - 8:41:37 AM] Sending request 'textDocument/codeAction - (7)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"range":{"start":{"line":2,"character":4},"end":{"line":2,"character":4}},"context":{"diagnostics":[{"range":{"start":{"line":2,"character":4},"end":{"line":2,"character":4}},"message":"expected '(', found 'EOF'","severity":1,"source":"LSP"}]}}

[Error - 8:41:37 AM] send textDocument/codeAction#7 /Users/han/code/ss-subscribe/subscribe_test.go:3:5: expected 'IDENT', found 'EOF'

[Error - 8:41:37 AM] Request textDocument/codeAction failed.
Message: /Users/han/code/ss-subscribe/subscribe_test.go:3:5: expected 'IDENT', found 'EOF'
Code: 0
[Trace - 8:41:37 AM] Sending request 'textDocument/documentLink - (8)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:37 AM] Received response 'textDocument/documentLink - (8)' in 0ms.
Params: {}

[Trace - 8:41:38 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":7},"contentChanges":[{"text":"package main\n\nfunc "}]}

[Trace - 8:41:38 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:38 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":5},"end":{"line":2,"character":5}},"severity":1,"source":"LSP","message":"expected '(', found 'EOF'"}]}

[Trace - 8:41:39 AM] Sending request 'textDocument/documentSymbol - (9)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:39 AM] Received response 'textDocument/documentSymbol - (9)' in 0ms.
Params: [{"name":"_","detail":"(invalid type)","kind":12,"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"selectionRange":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}}}]

[Trace - 8:41:39 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":8},"contentChanges":[{"text":"package main\n\nfunc T"}]}

[Trace - 8:41:39 AM] Sending request 'textDocument/completion - (10)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":6},"context":{"triggerKind":1}}

[Trace - 8:41:39 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:6: this is a definition, of func T(invalid type)"}

[Trace - 8:41:39 AM] Received response 'textDocument/completion - (10)' in 1ms.
Params: {"isIncomplete":false,"items":[]}

[Trace - 8:41:39 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:39 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":6},"end":{"line":2,"character":6}},"severity":1,"source":"LSP","message":"expected '(', found newline"}]}

[Info - 8:41:39 AM] no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:6: this is a definition, of func T(invalid type)
[Trace - 8:41:39 AM] Sending request 'textDocument/documentLink - (11)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:39 AM] Received response 'textDocument/documentLink - (11)' in 0ms.
Params: {}

[Trace - 8:41:39 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":9},"contentChanges":[{"text":"package main\n\nfunc Te"}]}

[Trace - 8:41:39 AM] Sending request 'textDocument/completion - (12)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":7},"context":{"triggerKind":1}}

[Trace - 8:41:39 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:39 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:7: this is a definition, of func Te(invalid type)"}

[Trace - 8:41:39 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"severity":1,"source":"LSP","message":"expected '(', found newline"}]}

[Trace - 8:41:39 AM] Received response 'textDocument/completion - (12)' in 0ms.
Params: {"isIncomplete":false,"items":[]}

[Info - 8:41:39 AM] no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:7: this is a definition, of func Te(invalid type)
[Trace - 8:41:39 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":10},"contentChanges":[{"text":"package main\n\nfunc Tes"}]}

[Trace - 8:41:39 AM] Sending request 'textDocument/completion - (13)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":8},"context":{"triggerKind":1}}

[Trace - 8:41:39 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":8},"end":{"line":2,"character":8}},"severity":1,"source":"LSP","message":"expected '(', found newline"}]}

[Trace - 8:41:39 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:39 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:8: this is a definition, of func Tes(invalid type)"}

[Trace - 8:41:39 AM] Received response 'textDocument/completion - (13)' in 0ms.
Params: {"isIncomplete":false,"items":[]}

[Info - 8:41:39 AM] no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:8: this is a definition, of func Tes(invalid type)
[Trace - 8:41:39 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":11},"contentChanges":[{"text":"package main\n\nfunc Test"}]}

[Trace - 8:41:39 AM] Sending request 'textDocument/completion - (14)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":9},"context":{"triggerKind":1}}

[Trace - 8:41:39 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:39 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":9},"end":{"line":2,"character":9}},"severity":1,"source":"LSP","message":"expected '(', found newline"}]}

[Trace - 8:41:39 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:9: this is a definition, of func Test(invalid type)"}

[Trace - 8:41:39 AM] Received response 'textDocument/completion - (14)' in 0ms.
Params: {"isIncomplete":false,"items":[]}

[Info - 8:41:39 AM] no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:9: this is a definition, of func Test(invalid type)
[Trace - 8:41:40 AM] Sending request 'textDocument/codeAction - (15)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"range":{"start":{"line":2,"character":9},"end":{"line":2,"character":9}},"context":{"diagnostics":[{"range":{"start":{"line":2,"character":9},"end":{"line":2,"character":9}},"message":"expected '(', found newline","severity":1,"source":"LSP"}]}}

[Error - 8:41:40 AM] send textDocument/codeAction#15 /Users/han/code/ss-subscribe/subscribe_test.go:3:10: expected '(', found newline

[Error - 8:41:40 AM] Request textDocument/codeAction failed.
Message: /Users/han/code/ss-subscribe/subscribe_test.go:3:10: expected '(', found newline
Code: 0
[Trace - 8:41:40 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":12},"contentChanges":[{"text":"package main\n\nfunc TestT"}]}

[Trace - 8:41:40 AM] Sending request 'textDocument/completion - (16)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":10},"context":{"triggerKind":1}}

[Trace - 8:41:40 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:40 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":10},"end":{"line":2,"character":10}},"severity":1,"source":"LSP","message":"expected '(', found newline"}]}

[Trace - 8:41:40 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:10: this is a definition, of func TestT(invalid type)"}

[Trace - 8:41:40 AM] Received response 'textDocument/completion - (16)' in 0ms.
Params: {"isIncomplete":false,"items":[]}

[Info - 8:41:40 AM] no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:10: this is a definition, of func TestT(invalid type)
[Trace - 8:41:40 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":13},"contentChanges":[{"text":"package main\n\nfunc TestTe"}]}

[Trace - 8:41:40 AM] Sending request 'textDocument/completion - (17)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":11},"context":{"triggerKind":1}}

[Trace - 8:41:40 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:11: this is a definition, of func TestTe(invalid type)"}

[Trace - 8:41:40 AM] Received response 'textDocument/completion - (17)' in 0ms.
Params: {"isIncomplete":false,"items":[]}

[Trace - 8:41:40 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:40 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":11},"end":{"line":2,"character":11}},"severity":1,"source":"LSP","message":"expected '(', found newline"}]}

[Info - 8:41:40 AM] no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:11: this is a definition, of func TestTe(invalid type)
[Trace - 8:41:40 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":14},"contentChanges":[{"text":"package main\n\nfunc TestTes"}]}

[Trace - 8:41:40 AM] Sending request 'textDocument/completion - (18)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":12},"context":{"triggerKind":1}}

[Trace - 8:41:40 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:12: this is a definition, of func TestTes(invalid type)"}

[Trace - 8:41:40 AM] Received response 'textDocument/completion - (18)' in 0ms.
Params: {"isIncomplete":false,"items":[]}

[Trace - 8:41:40 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":12},"end":{"line":2,"character":12}},"severity":1,"source":"LSP","message":"expected '(', found newline"}]}

[Trace - 8:41:40 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Info - 8:41:40 AM] no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:12: this is a definition, of func TestTes(invalid type)
[Trace - 8:41:40 AM] Sending request 'textDocument/documentLink - (19)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:40 AM] Received response 'textDocument/documentLink - (19)' in 0ms.
Params: {}

[Trace - 8:41:40 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":15},"contentChanges":[{"text":"package main\n\nfunc TestTest"}]}

[Trace - 8:41:40 AM] Sending request 'textDocument/completion - (20)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":13},"context":{"triggerKind":1}}

[Trace - 8:41:40 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:40 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":13},"end":{"line":2,"character":13}},"severity":1,"source":"LSP","message":"expected '(', found newline"}]}

[Trace - 8:41:40 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:13: this is a definition, of func TestTest(invalid type)"}

[Trace - 8:41:40 AM] Received response 'textDocument/completion - (20)' in 0ms.
Params: {"isIncomplete":false,"items":[]}

[Info - 8:41:40 AM] no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:13: this is a definition, of func TestTest(invalid type)
[Trace - 8:41:41 AM] Sending request 'textDocument/codeAction - (21)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"range":{"start":{"line":2,"character":13},"end":{"line":2,"character":13}},"context":{"diagnostics":[{"range":{"start":{"line":2,"character":13},"end":{"line":2,"character":13}},"message":"expected '(', found newline","severity":1,"source":"LSP"}]}}

[Error - 8:41:41 AM] send textDocument/codeAction#21 /Users/han/code/ss-subscribe/subscribe_test.go:3:14: expected '(', found newline

[Error - 8:41:41 AM] Request textDocument/codeAction failed.
Message: /Users/han/code/ss-subscribe/subscribe_test.go:3:14: expected '(', found newline
Code: 0
[Trace - 8:41:41 AM] Sending request 'textDocument/documentSymbol - (22)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:41 AM] Received response 'textDocument/documentSymbol - (22)' in 0ms.
Params: [{"name":"TestTest","detail":"(invalid type)","kind":12,"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"selectionRange":{"start":{"line":2,"character":5},"end":{"line":2,"character":13}}}]

[Trace - 8:41:41 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":16},"contentChanges":[{"text":"package main\n\nfunc TestTest()"}]}

[Trace - 8:41:41 AM] Sending request 'textDocument/signatureHelp - (23)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":14}}

[Trace - 8:41:41 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"no signature help for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:14 : cannot find an enclosing function"}

[Trace - 8:41:41 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:41 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[]}

[Trace - 8:41:41 AM] Received response 'textDocument/signatureHelp - (23)' in 1ms.
Params: {}

[Info - 8:41:41 AM] no signature help for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:14 : cannot find an enclosing function
[Trace - 8:41:41 AM] Sending request 'textDocument/documentSymbol - (24)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:41 AM] Received response 'textDocument/documentSymbol - (24)' in 0ms.
Params: [{"name":"TestTest","detail":"()","kind":12,"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":15}},"selectionRange":{"start":{"line":2,"character":5},"end":{"line":2,"character":13}}}]

[Trace - 8:41:41 AM] Sending request 'textDocument/codeAction - (25)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"range":{"start":{"line":2,"character":14},"end":{"line":2,"character":14}},"context":{"diagnostics":[]}}

[Trace - 8:41:41 AM] Received response 'textDocument/codeAction - (25)' in 0ms.
Params: [{"title":"Organize Imports","kind":"source.organizeImports","edit":{"changes":{"file:///Users/han/code/ss-subscribe/subscribe_test.go":[{"range":{"start":{"line":2,"character":0},"end":{"line":3,"character":0}},"newText":""},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"func TestTest()\n"}]}}}]

[Trace - 8:41:41 AM] Sending request 'textDocument/documentLink - (26)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:41 AM] Received response 'textDocument/documentLink - (26)' in 0ms.
Params: {}

[Trace - 8:41:44 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":17},"contentChanges":[{"text":"package main\n\nfunc TestTest(t)"}]}

[Trace - 8:41:44 AM] Sending request 'textDocument/completion - (27)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":15},"context":{"triggerKind":1}}

[Trace - 8:41:44 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:44 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":14},"end":{"line":2,"character":15}},"severity":1,"source":"LSP","message":"undeclared name: t"}]}

[Trace - 8:41:44 AM] Received response 'textDocument/completion - (27)' in 1ms.
Params: {"isIncomplete":false,"items":[{"label":"true","kind":21,"sortText":"00041","filterText":"true","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":14},"end":{"line":2,"character":15}},"newText":"true"}}]}

[Trace - 8:41:44 AM] Sending request 'textDocument/codeAction - (28)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"range":{"start":{"line":2,"character":15},"end":{"line":2,"character":15}},"context":{"diagnostics":[{"range":{"start":{"line":2,"character":14},"end":{"line":2,"character":15}},"message":"undeclared name: t","severity":1,"source":"LSP"}]}}

[Trace - 8:41:44 AM] Received response 'textDocument/codeAction - (28)' in 0ms.
Params: [{"title":"Organize Imports","kind":"source.organizeImports","edit":{"changes":{"file:///Users/han/code/ss-subscribe/subscribe_test.go":[{"range":{"start":{"line":2,"character":0},"end":{"line":3,"character":0}},"newText":""},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"func TestTest(t)\n"}]}}},{"title":"Organize All Imports","kind":"quickfix","edit":{"changes":{"file:///Users/han/code/ss-subscribe/subscribe_test.go":[{"range":{"start":{"line":2,"character":0},"end":{"line":3,"character":0}},"newText":""},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"func TestTest(t)\n"}]}}}]

[Trace - 8:41:45 AM] Sending request 'textDocument/documentSymbol - (29)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:45 AM] Received response 'textDocument/documentSymbol - (29)' in 0ms.
Params: [{"name":"TestTest","detail":"(invalid type)","kind":12,"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":16}},"selectionRange":{"start":{"line":2,"character":5},"end":{"line":2,"character":13}}}]

[Trace - 8:41:45 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":18},"contentChanges":[{"text":"package main\n\nfunc TestTest(t )"}]}

[Trace - 8:41:45 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:45 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":14},"end":{"line":2,"character":15}},"severity":1,"source":"LSP","message":"undeclared name: t"}]}

[Trace - 8:41:45 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":19},"contentChanges":[{"text":"package main\n\nfunc TestTest(t *)"}]}

[Trace - 8:41:45 AM] Sending request 'textDocument/documentLink - (30)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:45 AM] Received response 'textDocument/documentLink - (30)' in 0ms.
Params: {}

[Trace - 8:41:45 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:45 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":17}},"severity":1,"source":"LSP","message":"expected type, found ')'"}]}

[Trace - 8:41:45 AM] Sending request 'textDocument/codeAction - (31)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":17}},"context":{"diagnostics":[{"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":17}},"message":"expected type, found ')'","severity":1,"source":"LSP"}]}}

[Error - 8:41:45 AM] send textDocument/codeAction#31 /Users/han/code/ss-subscribe/subscribe_test.go:3:18: expected type, found ')'

[Error - 8:41:45 AM] Request textDocument/codeAction failed.
Message: /Users/han/code/ss-subscribe/subscribe_test.go:3:18: expected type, found ')'
Code: 0
[Trace - 8:41:46 AM] Sending request 'textDocument/documentSymbol - (32)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:46 AM] Received response 'textDocument/documentSymbol - (32)' in 0ms.
Params: [{"name":"TestTest","detail":"(t *invalid type)","kind":12,"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":18}},"selectionRange":{"start":{"line":2,"character":5},"end":{"line":2,"character":13}}}]

[Trace - 8:41:46 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":20},"contentChanges":[{"text":"package main\n\nfunc TestTest(t *t)"}]}

[Trace - 8:41:46 AM] Sending request 'textDocument/completion - (33)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":18},"context":{"triggerKind":1}}

[Trace - 8:41:46 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:46 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":18}},"severity":1,"source":"LSP","message":"undeclared name: t"}]}

[Trace - 8:41:46 AM] Received response 'textDocument/completion - (33)' in 1ms.
Params: {"isIncomplete":false,"items":[{"label":"t","kind":6,"detail":"*invalid type","sortText":"00020","filterText":"t","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":18}},"newText":"t"}},{"label":"true","kind":21,"sortText":"00042","filterText":"true","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":18}},"newText":"true"}}]}

[Trace - 8:41:46 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":23},"contentChanges":[{"text":"package main\n\nfunc TestTest(t *test)"}]}

[Trace - 8:41:46 AM] Sending request 'textDocument/completion - (34)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":21},"context":{"triggerKind":1}}

[Trace - 8:41:46 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:46 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":21}},"severity":1,"source":"LSP","message":"undeclared name: test"}]}

[Trace - 8:41:46 AM] Received response 'textDocument/completion - (34)' in 1ms.
Params: {"isIncomplete":false,"items":[]}

[Trace - 8:41:47 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":25},"contentChanges":[{"text":"package main\n\nfunc TestTest(t *testin)"}]}

[Trace - 8:41:47 AM] Sending request 'textDocument/completion - (35)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":23},"context":{"triggerKind":1}}

[Trace - 8:41:47 AM] Received response 'textDocument/completion - (35)' in 1ms.
Params: {"isIncomplete":false,"items":[]}

[Trace - 8:41:47 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:47 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":23}},"severity":1,"source":"LSP","message":"undeclared name: testin"}]}

[Trace - 8:41:47 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":26},"contentChanges":[{"text":"package main\n\nfunc TestTest(t *testing)"}]}

[Trace - 8:41:47 AM] Sending request 'textDocument/completion - (36)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":24},"context":{"triggerKind":1}}

[Trace - 8:41:47 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:47 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":24}},"severity":1,"source":"LSP","message":"undeclared name: testing"}]}

[Trace - 8:41:47 AM] Received response 'textDocument/completion - (36)' in 1ms.
Params: {"isIncomplete":false,"items":[]}

[Trace - 8:41:47 AM] Sending request 'textDocument/codeAction - (37)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"range":{"start":{"line":2,"character":24},"end":{"line":2,"character":24}},"context":{"diagnostics":[{"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":24}},"message":"undeclared name: testing","severity":1,"source":"LSP"}]}}

[Trace - 8:41:47 AM] Received response 'textDocument/codeAction - (37)' in 0ms.
Params: [{"title":"Organize Imports","kind":"source.organizeImports","edit":{"changes":{"file:///Users/han/code/ss-subscribe/subscribe_test.go":[{"range":{"start":{"line":2,"character":0},"end":{"line":3,"character":0}},"newText":""},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"func TestTest(t *testing)\n"}]}}},{"title":"Organize All Imports","kind":"quickfix","edit":{"changes":{"file:///Users/han/code/ss-subscribe/subscribe_test.go":[{"range":{"start":{"line":2,"character":0},"end":{"line":3,"character":0}},"newText":""},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"func TestTest(t *testing)\n"}]}}}]

[Trace - 8:41:47 AM] Sending request 'textDocument/documentSymbol - (38)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:47 AM] Received response 'textDocument/documentSymbol - (38)' in 0ms.
Params: [{"name":"TestTest","detail":"(t *invalid type)","kind":12,"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":25}},"selectionRange":{"start":{"line":2,"character":5},"end":{"line":2,"character":13}}}]

[Trace - 8:41:47 AM] Sending request 'textDocument/documentLink - (39)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:47 AM] Received response 'textDocument/documentLink - (39)' in 0ms.
Params: {}

[Trace - 8:41:48 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":27},"contentChanges":[{"text":"package main\n\nfunc TestTest(t *testing.)"}]}

[Trace - 8:41:48 AM] Sending request 'textDocument/completion - (40)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":25},"context":{"triggerKind":2,"triggerCharacter":"."}}

[Trace - 8:41:48 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:48 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:25: cannot resolve testing"}

[Trace - 8:41:48 AM] Received response 'textDocument/completion - (40)' in 0ms.
Params: {"isIncomplete":false,"items":[]}

[Trace - 8:41:48 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":25},"end":{"line":2,"character":25}},"severity":1,"source":"LSP","message":"expected 'IDENT', found ')'"}]}

[Info - 8:41:48 AM] no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:25: cannot resolve testing
[Trace - 8:41:48 AM] Sending request 'textDocument/codeAction - (41)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"range":{"start":{"line":2,"character":25},"end":{"line":2,"character":25}},"context":{"diagnostics":[{"range":{"start":{"line":2,"character":25},"end":{"line":2,"character":25}},"message":"expected 'IDENT', found ')'","severity":1,"source":"LSP"}]}}

[Error - 8:41:48 AM] send textDocument/codeAction#41 /Users/han/code/ss-subscribe/subscribe_test.go:3:26: expected 'IDENT', found ')'

[Error - 8:41:48 AM] Request textDocument/codeAction failed.
Message: /Users/han/code/ss-subscribe/subscribe_test.go:3:26: expected 'IDENT', found ')'
Code: 0
[Trace - 8:41:49 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":28},"contentChanges":[{"text":"package main\n\nfunc TestTest(t *testing.T)"}]}

[Trace - 8:41:49 AM] Sending request 'textDocument/completion - (42)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":26},"context":{"triggerKind":1}}

[Trace - 8:41:49 AM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:26: cannot resolve testing"}

[Trace - 8:41:49 AM] Received response 'textDocument/completion - (42)' in 0ms.
Params: {"isIncomplete":false,"items":[]}

[Trace - 8:41:49 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:49 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":26}},"severity":1,"source":"LSP","message":"undeclared name: testing"}]}

[Info - 8:41:49 AM] no completions found for file:///Users/han/code/ss-subscribe/subscribe_test.go:2:26: cannot resolve testing
[Trace - 8:41:49 AM] Sending request 'textDocument/codeAction - (43)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"range":{"start":{"line":2,"character":26},"end":{"line":2,"character":26}},"context":{"diagnostics":[{"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":26}},"message":"undeclared name: testing","severity":1,"source":"LSP"}]}}

[Trace - 8:41:49 AM] Received response 'textDocument/codeAction - (43)' in 1ms.
Params: [{"title":"Organize Imports","kind":"source.organizeImports","edit":{"changes":{"file:///Users/han/code/ss-subscribe/subscribe_test.go":[{"range":{"start":{"line":2,"character":0},"end":{"line":3,"character":0}},"newText":""},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"import "testing"\n"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"\n"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"func TestTest(t *testing.T)\n"}]}}},{"title":"Organize All Imports","kind":"quickfix","edit":{"changes":{"file:///Users/han/code/ss-subscribe/subscribe_test.go":[{"range":{"start":{"line":2,"character":0},"end":{"line":3,"character":0}},"newText":""},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"import "testing"\n"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"\n"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"func TestTest(t *testing.T)\n"}]}}}]

[Trace - 8:41:49 AM] Sending request 'textDocument/documentSymbol - (44)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:49 AM] Received response 'textDocument/documentSymbol - (44)' in 0ms.
Params: [{"name":"TestTest","detail":"(t *invalid type)","kind":12,"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":27}},"selectionRange":{"start":{"line":2,"character":5},"end":{"line":2,"character":13}}}]

[Trace - 8:41:49 AM] Sending request 'textDocument/documentLink - (45)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:49 AM] Received response 'textDocument/documentLink - (45)' in 0ms.
Params: {}

[Trace - 8:41:51 AM] Sending request 'textDocument/codeAction - (46)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"range":{"start":{"line":2,"character":27},"end":{"line":2,"character":27}},"context":{"diagnostics":[]}}

[Trace - 8:41:51 AM] Received response 'textDocument/codeAction - (46)' in 1ms.
Params: [{"title":"Organize Imports","kind":"source.organizeImports","edit":{"changes":{"file:///Users/han/code/ss-subscribe/subscribe_test.go":[{"range":{"start":{"line":2,"character":0},"end":{"line":3,"character":0}},"newText":""},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"import "testing"\n"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"\n"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"func TestTest(t *testing.T)\n"}]}}}]

[Trace - 8:41:51 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":29},"contentChanges":[{"text":"package main\n\nfunc TestTest(t *testing.T) "}]}

[Trace - 8:41:51 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:51 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":26}},"severity":1,"source":"LSP","message":"undeclared name: testing"}]}

[Trace - 8:41:51 AM] Sending request 'textDocument/documentSymbol - (47)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:51 AM] Received response 'textDocument/documentSymbol - (47)' in 0ms.
Params: [{"name":"TestTest","detail":"(t *invalid type)","kind":12,"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":27}},"selectionRange":{"start":{"line":2,"character":5},"end":{"line":2,"character":13}}}]

[Trace - 8:41:52 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":30},"contentChanges":[{"text":"package main\n\nfunc TestTest(t *testing.T) {}"}]}

[Trace - 8:41:52 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:52 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":26}},"severity":1,"source":"LSP","message":"undeclared name: testing"}]}

[Trace - 8:41:52 AM] Sending request 'textDocument/documentLink - (48)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:52 AM] Received response 'textDocument/documentLink - (48)' in 0ms.
Params: {}

[Trace - 8:41:52 AM] Sending request 'textDocument/documentSymbol - (49)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:52 AM] Received response 'textDocument/documentSymbol - (49)' in 0ms.
Params: [{"name":"TestTest","detail":"(t *invalid type)","kind":12,"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":30}},"selectionRange":{"start":{"line":2,"character":5},"end":{"line":2,"character":13}}}]

[Trace - 8:41:52 AM] Sending request 'textDocument/codeAction - (50)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"range":{"start":{"line":2,"character":29},"end":{"line":2,"character":29}},"context":{"diagnostics":[]}}

[Trace - 8:41:52 AM] Received response 'textDocument/codeAction - (50)' in 1ms.
Params: [{"title":"Organize Imports","kind":"source.organizeImports","edit":{"changes":{"file:///Users/han/code/ss-subscribe/subscribe_test.go":[{"range":{"start":{"line":2,"character":0},"end":{"line":3,"character":0}},"newText":""},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"import "testing"\n"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"\n"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"func TestTest(t *testing.T) {}\n"}]}}}]

[Trace - 8:41:53 AM] Sending request 'textDocument/codeAction - (51)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"range":{"start":{"line":0,"character":0},"end":{"line":2,"character":30}},"context":{"diagnostics":[{"range":{"start":{"line":2,"character":17},"end":{"line":2,"character":26}},"message":"undeclared name: testing","severity":1,"source":"LSP"}]}}

[Trace - 8:41:53 AM] Received response 'textDocument/codeAction - (51)' in 0ms.
Params: [{"title":"Organize Imports","kind":"source.organizeImports","edit":{"changes":{"file:///Users/han/code/ss-subscribe/subscribe_test.go":[{"range":{"start":{"line":2,"character":0},"end":{"line":3,"character":0}},"newText":""},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"import "testing"\n"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"\n"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"func TestTest(t *testing.T) {}\n"}]}}},{"title":"Organize All Imports","kind":"quickfix","edit":{"changes":{"file:///Users/han/code/ss-subscribe/subscribe_test.go":[{"range":{"start":{"line":2,"character":0},"end":{"line":3,"character":0}},"newText":""},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"import "testing"\n"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"\n"},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":0}},"newText":"func TestTest(t *testing.T) {}\n"}]}}}]

[Trace - 8:41:53 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","version":31},"contentChanges":[{"text":"package main\n\nimport "testing"\n\nfunc TestTest(t *testing.T) {}\n"}]}

[Trace - 8:41:53 AM] Sending request 'textDocument/formatting - (52)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"options":{"tabSize":4,"insertSpaces":false}}

[Trace - 8:41:53 AM] Sending request 'textDocument/codeAction - (53)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"context":{"diagnostics":[]}}

[Trace - 8:41:53 AM] Sending request 'textDocument/documentSymbol - (54)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:53 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe.go","diagnostics":[]}

[Trace - 8:41:53 AM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go","diagnostics":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":16}},"severity":1,"source":"LSP","message":"could not import testing (no known ID for testing)"}]}

[Trace - 8:41:53 AM] Received response 'textDocument/formatting - (52)' in 406ms.
Params: []

[Trace - 8:41:53 AM] Received response 'textDocument/codeAction - (53)' in 139ms.
Params: {}

[Trace - 8:41:53 AM] Received response 'textDocument/documentSymbol - (54)' in 58ms.
Params: [{"name":"TestTest","detail":"(t *invalid type)","kind":12,"range":{"start":{"line":4,"character":0},"end":{"line":4,"character":30}},"selectionRange":{"start":{"line":4,"character":5},"end":{"line":4,"character":13}}}]

[Trace - 8:41:54 AM] Sending request 'textDocument/codeAction - (55)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"context":{"diagnostics":[]}}

[Trace - 8:41:54 AM] Received response 'textDocument/codeAction - (55)' in 0ms.
Params: {}

[Trace - 8:41:54 AM] Sending request 'textDocument/documentLink - (56)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"}}

[Trace - 8:41:54 AM] Received response 'textDocument/documentLink - (56)' in 0ms.
Params: [{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":16}},"target":"https://godoc.org/testing"}]

[Trace - 8:41:56 AM] Sending request 'textDocument/hover - (57)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":15}}

[Error - 8:41:56 AM] send textDocument/hover#57 no import for "testing"

[Error - 8:41:56 AM] Request textDocument/hover failed.
Message: no import for "testing"
Code: 0
[Trace - 8:41:56 AM] Sending request 'textDocument/hover - (58)'.
Params: {"textDocument":{"uri":"file:///Users/han/code/ss-subscribe/subscribe_test.go"},"position":{"line":2,"character":13}}

[Error - 8:41:56 AM] send textDocument/hover#58 no import for "testing"

[Error - 8:41:56 AM] Request textDocument/hover failed.
Message: no import for "testing"
Code: 0

@stamblerre

This comment has been minimized.

Copy link
Contributor

@stamblerre stamblerre commented Jun 28, 2019

Does this fix itself after you save the file and type some more or does the error never go away?

@hansnow

This comment has been minimized.

Copy link
Author

@hansnow hansnow commented Jun 28, 2019

The error will disappear after I save and reopen vscode. But if I import a new package in the project, the error appears again.

@stamblerre

This comment has been minimized.

Copy link
Contributor

@stamblerre stamblerre commented Jun 28, 2019

Can you confirm that you still see this error with the latest version of gopls (go get -u golang.org/x/tools/gopls@master)?

@hansnow

This comment has been minimized.

Copy link
Author

@hansnow hansnow commented Jun 29, 2019

Oh, the error disappeared after I run go get -u golang.org/x/tools/gopls@master, thank you!

➜  test-gopls gopls version
version v0.1.0-cmd.gopls, built in $GOPATH mode
➜  test-gopls go get -u golang.org/x/tools/gopls@master
go: finding golang.org/x/tools/gopls master
go: finding golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0
go: finding golang.org/x/tools latest
go: finding golang.org/x/net v0.0.0-20190620200207-3b0461eec859
go: finding golang.org/x/sync latest
go: finding golang.org/x/crypto latest
go: finding golang.org/x/net latest
go: finding golang.org/x/sys latest
go: downloading golang.org/x/tools v0.0.0-20190628222527-fb37f6ba8261
go: extracting golang.org/x/tools v0.0.0-20190628222527-fb37f6ba8261
go: downloading golang.org/x/tools/gopls v0.0.0-20190628222527-fb37f6ba8261
go: extracting golang.org/x/tools/gopls v0.0.0-20190628222527-fb37f6ba8261
➜  test-gopls gopls version
golang.org/x/tools/gopls v0.1.1
    golang.org/x/tools/gopls@v0.0.0-20190628222527-fb37f6ba8261 h1:HxJSl0Cm4TcRgnaSoS8infmjD8OEt9HGB0UZc8NG+6w=
@stamblerre

This comment has been minimized.

Copy link
Contributor

@stamblerre stamblerre commented Jul 1, 2019

Glad to hear that this is resolved!

@stamblerre stamblerre closed this Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.