-
-
Save myitcv/6a5550365272416fb4d8673ff7fa8460 to your computer and use it in GitHub Desktop.
New context cancelled error log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gopls.Initialize() call; params: | |
&protocol.InitializeParams{ | |
ProcessID: 0, | |
RootPath: "", | |
RootURI: "file:///tmp/go-test-script292517338/script-complete_watched", | |
Capabilities: protocol.ClientCapabilities{ | |
Workspace: struct { ApplyEdit bool "json:\"applyEdit,omitempty\""; WorkspaceEdit struct { DocumentChanges bool "json:\"documentChanges,omitempty\""; ResourceOperations []protocol.ResourceOperationKind "json:\"resourceOperations,omitempty\""; FailureHandling protocol.FailureHandlingKind "json:\"failureHandling,omitempty\"" } "json:\"workspaceEdit,omitempty\""; DidChangeConfiguration struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" } "json:\"didChangeConfiguration,omitempty\""; DidChangeWatchedFiles struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" } "json:\"didChangeWatchedFiles,omitempty\""; Symbol struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; SymbolKind struct { ValueSet []protocol.SymbolKind "json:\"valueSet,omitempty\"" } "json:\"symbolKind,omitempty\"" } "json:\"symbol,omitempty\""; ExecuteCommand struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" } "json:\"executeCommand,omitempty\""; WorkspaceFolders bool "json:\"workspaceFolders,omitempty\""; Configuration bool "json:\"configuration,omitempty\"" }{ | |
ApplyEdit: false, | |
WorkspaceEdit: struct { DocumentChanges bool "json:\"documentChanges,omitempty\""; ResourceOperations []protocol.ResourceOperationKind "json:\"resourceOperations,omitempty\""; FailureHandling protocol.FailureHandlingKind "json:\"failureHandling,omitempty\"" }{}, | |
DidChangeConfiguration: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" }{DynamicRegistration:true}, | |
DidChangeWatchedFiles: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" }{}, | |
Symbol: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; SymbolKind struct { ValueSet []protocol.SymbolKind "json:\"valueSet,omitempty\"" } "json:\"symbolKind,omitempty\"" }{}, | |
ExecuteCommand: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" }{}, | |
WorkspaceFolders: false, | |
Configuration: true, | |
}, | |
TextDocument: struct { Synchronization struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; WillSave bool "json:\"willSave,omitempty\""; WillSaveWaitUntil bool "json:\"willSaveWaitUntil,omitempty\""; DidSave bool "json:\"didSave,omitempty\"" } "json:\"synchronization,omitempty\""; Completion struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; CompletionItem struct { SnippetSupport bool "json:\"snippetSupport,omitempty\""; CommitCharactersSupport bool "json:\"commitCharactersSupport,omitempty\""; DocumentationFormat []protocol.MarkupKind "json:\"documentationFormat,omitempty\""; DeprecatedSupport bool "json:\"deprecatedSupport,omitempty\""; PreselectSupport bool "json:\"preselectSupport,omitempty\"" } "json:\"completionItem,omitempty\""; CompletionItemKind struct { ValueSet []protocol.CompletionItemKind "json:\"valueSet,omitempty\"" } "json:\"completionItemKind,omitempty\""; ContextSupport bool "json:\"contextSupport,omitempty\"" } "json:\"completion,omitempty\""; Hover struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; ContentFormat []protocol.MarkupKind "json:\"contentFormat,omitempty\"" } "json:\"hover,omitempty\""; SignatureHelp struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; SignatureInformation struct { DocumentationFormat []protocol.MarkupKind "json:\"documentationFormat,omitempty\""; ParameterInformation struct { LabelOffsetSupport bool "json:\"labelOffsetSupport,omitempty\"" } "json:\"parameterInformation,omitempty\"" } "json:\"signatureInformation,omitempty\"" } "json:\"signatureHelp,omitempty\""; References struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" } "json:\"references,omitempty\""; DocumentHighlight struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" } "json:\"documentHighlight,omitempty\""; DocumentSymbol struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; SymbolKind struct { ValueSet []protocol.SymbolKind "json:\"valueSet,omitempty\"" } "json:\"symbolKind,omitempty\""; HierarchicalDocumentSymbolSupport bool "json:\"hierarchicalDocumentSymbolSupport,omitempty\"" } "json:\"documentSymbol,omitempty\""; Formatting struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" } "json:\"formatting,omitempty\""; RangeFormatting struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" } "json:\"rangeFormatting,omitempty\""; OnTypeFormatting struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" } "json:\"onTypeFormatting,omitempty\""; Definition struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; LinkSupport bool "json:\"linkSupport,omitempty\"" } "json:\"definition,omitempty\""; CodeAction struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; CodeActionLiteralSupport struct { CodeActionKind struct { ValueSet []protocol.CodeActionKind "json:\"valueSet\"" } "json:\"codeActionKind\"" } "json:\"codeActionLiteralSupport,omitempty\"" } "json:\"codeAction,omitempty\""; CodeLens struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" } "json:\"codeLens,omitempty\""; DocumentLink struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" } "json:\"documentLink,omitempty\""; Rename struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; PrepareSupport bool "json:\"prepareSupport,omitempty\"" } "json:\"rename,omitempty\""; PublishDiagnostics struct { RelatedInformation bool "json:\"relatedInformation,omitempty\""; TagSupport bool "json:\"tagSupport,omitempty\"" } "json:\"publishDiagnostics,omitempty\""; Implementation struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; LinkSupport bool "json:\"linkSupport,omitempty\"" } "json:\"implementation,omitempty\""; TypeDefinition struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; LinkSupport bool "json:\"linkSupport,omitempty\"" } "json:\"typeDefinition,omitempty\""; ColorProvider struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" } "json:\"colorProvider,omitempty\""; FoldingRange struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; RangeLimit float64 "json:\"rangeLimit,omitempty\""; LineFoldingOnly bool "json:\"lineFoldingOnly,omitempty\"" } "json:\"foldingRange,omitempty\""; Declaration struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; LinkSupport bool "json:\"linkSupport,omitempty\"" } "json:\"declaration,omitempty\""; SelectionRange struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" } "json:\"selectionRange,omitempty\"" }{ | |
Synchronization: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; WillSave bool "json:\"willSave,omitempty\""; WillSaveWaitUntil bool "json:\"willSaveWaitUntil,omitempty\""; DidSave bool "json:\"didSave,omitempty\"" }{}, | |
Completion: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; CompletionItem struct { SnippetSupport bool "json:\"snippetSupport,omitempty\""; CommitCharactersSupport bool "json:\"commitCharactersSupport,omitempty\""; DocumentationFormat []protocol.MarkupKind "json:\"documentationFormat,omitempty\""; DeprecatedSupport bool "json:\"deprecatedSupport,omitempty\""; PreselectSupport bool "json:\"preselectSupport,omitempty\"" } "json:\"completionItem,omitempty\""; CompletionItemKind struct { ValueSet []protocol.CompletionItemKind "json:\"valueSet,omitempty\"" } "json:\"completionItemKind,omitempty\""; ContextSupport bool "json:\"contextSupport,omitempty\"" }{}, | |
Hover: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; ContentFormat []protocol.MarkupKind "json:\"contentFormat,omitempty\"" }{ | |
DynamicRegistration: false, | |
ContentFormat: {"plaintext"}, | |
}, | |
SignatureHelp: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; SignatureInformation struct { DocumentationFormat []protocol.MarkupKind "json:\"documentationFormat,omitempty\""; ParameterInformation struct { LabelOffsetSupport bool "json:\"labelOffsetSupport,omitempty\"" } "json:\"parameterInformation,omitempty\"" } "json:\"signatureInformation,omitempty\"" }{}, | |
References: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" }{}, | |
DocumentHighlight: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" }{}, | |
DocumentSymbol: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; SymbolKind struct { ValueSet []protocol.SymbolKind "json:\"valueSet,omitempty\"" } "json:\"symbolKind,omitempty\""; HierarchicalDocumentSymbolSupport bool "json:\"hierarchicalDocumentSymbolSupport,omitempty\"" }{}, | |
Formatting: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" }{}, | |
RangeFormatting: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" }{}, | |
OnTypeFormatting: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" }{}, | |
Definition: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; LinkSupport bool "json:\"linkSupport,omitempty\"" }{}, | |
CodeAction: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; CodeActionLiteralSupport struct { CodeActionKind struct { ValueSet []protocol.CodeActionKind "json:\"valueSet\"" } "json:\"codeActionKind\"" } "json:\"codeActionLiteralSupport,omitempty\"" }{}, | |
CodeLens: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" }{}, | |
DocumentLink: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" }{}, | |
Rename: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; PrepareSupport bool "json:\"prepareSupport,omitempty\"" }{}, | |
PublishDiagnostics: struct { RelatedInformation bool "json:\"relatedInformation,omitempty\""; TagSupport bool "json:\"tagSupport,omitempty\"" }{}, | |
Implementation: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; LinkSupport bool "json:\"linkSupport,omitempty\"" }{}, | |
TypeDefinition: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; LinkSupport bool "json:\"linkSupport,omitempty\"" }{}, | |
ColorProvider: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" }{}, | |
FoldingRange: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; RangeLimit float64 "json:\"rangeLimit,omitempty\""; LineFoldingOnly bool "json:\"lineFoldingOnly,omitempty\"" }{}, | |
Declaration: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\""; LinkSupport bool "json:\"linkSupport,omitempty\"" }{}, | |
SelectionRange: struct { DynamicRegistration bool "json:\"dynamicRegistration,omitempty\"" }{}, | |
}, | |
Window: protocol.WindowClientCapabilities{}, | |
Experimental: nil, | |
}, | |
InitializationOptions: map[string]interface {}{ | |
"incrementalSync": bool(true), | |
"noDocsOnHover": bool(true), | |
}, | |
Trace: "", | |
WorkspaceFolders: nil, | |
} | |
LogMessage callback: &protocol.LogMessageParams{Type:3, Message:"2019/09/05 08:41:05 25.087811ms for GOROOT=/home/myitcv/gos GOPATH=/home/myitcv/gostuff GO111MODULE=on PWD=/tmp/go-test-script292517338/script-complete_watched go \"list\" \"-e\" \"-json\" \"-compiled=true\" \"-test=true\" \"-export=false\" \"-deps=true\" \"-find=false\" \"--\" \"builtin\", stderr: <<>>\n"} | |
gopls.Initialize() return; err: <nil>; res: | |
&protocol.InitializeResult{ | |
Capabilities: protocol.ServerCapabilities{ | |
TextDocumentSync: map[string]interface {}{ | |
"change": float64(2), | |
"save": map[string]interface {}{ | |
}, | |
"openClose": bool(true), | |
}, | |
HoverProvider: true, | |
CompletionProvider: &protocol.CompletionOptions{ | |
TriggerCharacters: {"."}, | |
AllCommitCharacters: nil, | |
ResolveProvider: false, | |
}, | |
SignatureHelpProvider: &protocol.SignatureHelpOptions{ | |
TriggerCharacters: {"(", ","}, | |
}, | |
DefinitionProvider: true, | |
ReferencesProvider: true, | |
DocumentHighlightProvider: true, | |
DocumentSymbolProvider: true, | |
WorkspaceSymbolProvider: false, | |
CodeActionProvider: bool(true), | |
CodeLensProvider: (*protocol.CodeLensOptions)(nil), | |
DocumentFormattingProvider: true, | |
DocumentRangeFormattingProvider: false, | |
DocumentOnTypeFormattingProvider: (*struct { FirstTriggerCharacter string "json:\"firstTriggerCharacter\""; MoreTriggerCharacter []string "json:\"moreTriggerCharacter,omitempty\"" })(nil), | |
RenameProvider: bool(true), | |
DocumentLinkProvider: &protocol.DocumentLinkOptions{}, | |
ExecuteCommandProvider: (*protocol.ExecuteCommandOptions)(nil), | |
Experimental: nil, | |
ImplementationProvider: false, | |
TypeDefinitionProvider: true, | |
Workspace: &struct { WorkspaceFolders *struct { Supported bool "json:\"supported,omitempty\""; ChangeNotifications string "json:\"changeNotifications,omitempty\"" } "json:\"workspaceFolders,omitempty\"" }{ | |
WorkspaceFolders: &struct { Supported bool "json:\"supported,omitempty\""; ChangeNotifications string "json:\"changeNotifications,omitempty\"" }{Supported:true, ChangeNotifications:"workspace/didChangeWorkspaceFolders"}, | |
}, | |
ColorProvider: false, | |
FoldingRangeProvider: true, | |
DeclarationProvider: false, | |
SelectionRangeProvider: false, | |
}, | |
Custom: {}, | |
} | |
gopls.Initialized() call; params: | |
&protocol.InitializedParams{} | |
gopls.Initialized() return; err: <nil> | |
RegisterCapability: &protocol.RegistrationParams{ | |
Registrations: { | |
{ | |
ID: "workspace/didChangeConfiguration", | |
Method: "workspace/didChangeConfiguration", | |
RegisterOptions: nil, | |
}, | |
{ | |
ID: "workspace/didChangeWorkspaceFolders", | |
Method: "workspace/didChangeWorkspaceFolders", | |
RegisterOptions: nil, | |
}, | |
}, | |
} | |
Configuration: &protocol.ConfigurationParams{ | |
Items: { | |
{ScopeURI:"file:///tmp/go-test-script292517338/script-complete_watched", Section:"gopls"}, | |
{ScopeURI:"file:///tmp/go-test-script292517338/script-complete_watched", Section:"script-complete_watched"}, | |
}, | |
} | |
LogMessage callback: &protocol.LogMessageParams{Type:3, Message:"2019/09/05 08:41:05 40.814755ms for GOROOT=/home/myitcv/gos GOPATH=/home/myitcv/gostuff GO111MODULE=on PWD=/tmp/go-test-script292517338/script-complete_watched go \"env\" \"GOMOD\", stderr: <<>>\n"} | |
LogMessage callback: &protocol.LogMessageParams{Type:3, Message:"2019/09/05 08:41:05 47.987543ms for GOROOT=/home/myitcv/gos GOPATH=/home/myitcv/gostuff GO111MODULE=on PWD=/tmp/go-test-script292517338/script-complete_watched go \"list\" \"-m\" \"-json\" \"all\", stderr: <<>>\n"} | |
gopls.DidOpen() call; params: | |
&protocol.DidOpenTextDocumentParams{ | |
TextDocument: protocol.TextDocumentItem{URI:"file:///tmp/go-test-script292517338/script-complete_watched/main.go", LanguageID:"go", Version:0, Text:"package main\n\nimport \"fmt\"\n\nfunc main() {\n\tfmt.Println()\n}\n"}, | |
} | |
gopls.DidOpen() return; err: <nil> | |
LogMessage callback: &protocol.LogMessageParams{Type:3, Message:"2019/09/05 08:41:05 Build info\n----------\ngolang.org/x/tools/gopls v0.1.3\n golang.org/x/tools/gopls@v0.1.4-0.20190905035308-adb45749da8e h1:5YaNAB/0hXX6g2t1Vm782Q/mPE/sUUT8244OmfMYTXw=\n golang.org/x/sync@v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=\n golang.org/x/tools@v0.0.0-20190905035308-adb45749da8e h1:UboUef6L2TaPy4CYJLNCvM9TkgCD8JbbUi5wrvhkxww=\n golang.org/x/xerrors@v0.0.0-20190717185122-a985d3407aa7 h1:9zdDQZ7Thm29KFXgAX/+yaf3eVbP7djjWp/dXAppNCc=\n\nGo info\n-------\ngo version devel +9da7abd2eb Tue Sep 3 18:35:32 2019 +0000 linux/amd64\n\nGO111MODULE=\"on\"\nGOARCH=\"amd64\"\nGOBIN=\"\"\nGOCACHE=\"/home/myitcv/.cache/go-build\"\nGOENV=\"/home/myitcv/.config/go/env\"\nGOEXE=\"\"\nGOFLAGS=\"\"\nGOHOSTARCH=\"amd64\"\nGOHOSTOS=\"linux\"\nGONOPROXY=\"\"\nGONOSUMDB=\"\"\nGOOS=\"linux\"\nGOPATH=\"/home/myitcv/gostuff\"\nGOPRIVATE=\"\"\nGOPROXY=\"https://proxy.golang.org,direct\"\nGOROOT=\"/home/myitcv/gos\"\nGOSUMDB=\"sum.golang.org\"\nGOTMPDIR=\"\"\nGOTOOLDIR=\"/home/myitcv/gos/pkg/tool/linux_amd64\"\nGCCGO=\"gccgo\"\nAR=\"ar\"\nCC=\"gcc\"\nCXX=\"g++\"\nCGO_ENABLED=\"1\"\nGOMOD=\"/home/myitcv/gostuff/src/github.com/myitcv/govim/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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build247197524=/tmp/go-build -gno-record-gcc-switches\"\n"} | |
LogMessage callback: &protocol.LogMessageParams{Type:3, Message:"2019/09/05 08:41:06 8.561045ms for GOROOT=/home/myitcv/gos GOPATH=/home/myitcv/gostuff GO111MODULE=on PWD=/tmp/go-test-script292517338/script-complete_watched go \"env\" \"GOMOD\", stderr: <<>>\n"} | |
LogMessage callback: &protocol.LogMessageParams{Type:3, Message:"2019/09/05 08:41:06 14.903917ms for GOROOT=/home/myitcv/gos GOPATH=/home/myitcv/gostuff GO111MODULE=on PWD=/tmp/go-test-script292517338/script-complete_watched go \"list\" \"-m\" \"-json\" \"all\", stderr: <<>>\n"} | |
LogMessage callback: &protocol.LogMessageParams{Type:3, Message:"2019/09/05 08:41:06 157.731144ms for GOROOT=/home/myitcv/gos GOPATH=/home/myitcv/gostuff GO111MODULE=on PWD=/tmp/go-test-script292517338/script-complete_watched go \"list\" \"-e\" \"-json\" \"-compiled=true\" \"-test=true\" \"-export=false\" \"-deps=true\" \"-find=false\" \"--\" \"/tmp/go-test-script292517338/script-complete_watched\", stderr: <<>>\n"} | |
LogMessage callback: &protocol.LogMessageParams{Type:3, Message:"2019/09/05 08:41:06 go/packages.Load\n\tpackage = mod.com\n\tfiles = [/tmp/go-test-script292517338/script-complete_watched/main.go]"} | |
LogMessage callback: &protocol.LogMessageParams{Type:3, Message:"2019/09/05 08:41:06 go/packages.Load\n\tpackages = 1"} | |
PublishDiagnostics callback: &protocol.PublishDiagnosticsParams{ | |
URI: "file:///tmp/go-test-script292517338/script-complete_watched/main.go", | |
Version: 0, | |
Diagnostics: { | |
}, | |
} | |
gopls.DidOpen() call; params: | |
&protocol.DidOpenTextDocumentParams{ | |
TextDocument: protocol.TextDocumentItem{URI:"file:///tmp/go-test-script292517338/script-complete_watched/const.go", LanguageID:"go", Version:0, Text:"package main\n\nconst (\n\tConst1 = 1\n\tConst2 = 2\n)\n"}, | |
} | |
gopls.DidOpen() return; err: <nil> | |
gopls.DidChange() call; params: | |
&protocol.DidChangeTextDocumentParams{ | |
TextDocument: protocol.VersionedTextDocumentIdentifier{ | |
Version: 1, | |
TextDocumentIdentifier: protocol.TextDocumentIdentifier{URI:"file:///tmp/go-test-script292517338/script-complete_watched/const.go"}, | |
}, | |
ContentChanges: { | |
{ | |
Range: (*protocol.Range)(nil), | |
RangeLength: 0, | |
Text: "package main\n\nconst (\n\tConst1 = 1\n\tConst2 = 2\n)\n", | |
}, | |
}, | |
} | |
gopls.DidChange() return; err: <nil> | |
LogMessage callback: &protocol.LogMessageParams{Type:3, Message:"2019/09/05 08:41:06 7.903899ms for GOROOT=/home/myitcv/gos GOPATH=/home/myitcv/gostuff GO111MODULE=on PWD=/tmp/go-test-script292517338/script-complete_watched go \"list\" \"-m\" \"-json\" \"all\", stderr: <<>>\n"} | |
LogMessage callback: &protocol.LogMessageParams{Type:3, Message:"2019/09/05 08:41:06 20.692553ms for GOROOT=/home/myitcv/gos GOPATH=/home/myitcv/gostuff GO111MODULE=on PWD=/tmp/go-test-script292517338/script-complete_watched go \"env\" \"GOMOD\", stderr: <<>>\n"} | |
LogMessage callback: &protocol.LogMessageParams{Type:3, Message:"2019/09/05 08:41:06 217.834833ms for GOROOT=/home/myitcv/gos GOPATH=/home/myitcv/gostuff GO111MODULE=on PWD=/tmp/go-test-script292517338/script-complete_watched go \"list\" \"-e\" \"-json\" \"-compiled=true\" \"-test=true\" \"-export=false\" \"-deps=true\" \"-find=false\" \"--\" \"/tmp/go-test-script292517338/script-complete_watched\", stderr: <<>>\n"} | |
LogMessage callback: &protocol.LogMessageParams{Type:3, Message:"2019/09/05 08:41:06 go/packages.Load\n\tpackages = 1"} | |
LogMessage callback: &protocol.LogMessageParams{Type:3, Message:"2019/09/05 08:41:06 go/packages.Load\n\tpackage = mod.com\n\tfiles = [/tmp/go-test-script292517338/script-complete_watched/const.go /tmp/go-test-script292517338/script-complete_watched/main.go]"} | |
PublishDiagnostics callback: &protocol.PublishDiagnosticsParams{ | |
URI: "file:///tmp/go-test-script292517338/script-complete_watched/const.go", | |
Version: 0, | |
Diagnostics: { | |
}, | |
} | |
PublishDiagnostics callback: &protocol.PublishDiagnosticsParams{ | |
URI: "file:///tmp/go-test-script292517338/script-complete_watched/main.go", | |
Version: 0, | |
Diagnostics: { | |
}, | |
} | |
PublishDiagnostics callback: &protocol.PublishDiagnosticsParams{ | |
URI: "file:///tmp/go-test-script292517338/script-complete_watched/const.go", | |
Version: 0, | |
Diagnostics: { | |
}, | |
} | |
PublishDiagnostics callback: &protocol.PublishDiagnosticsParams{ | |
URI: "file:///tmp/go-test-script292517338/script-complete_watched/main.go", | |
Version: 0, | |
Diagnostics: { | |
}, | |
} | |
gopls.Completion() call; params: | |
&protocol.CompletionParams{ | |
Context: (*protocol.CompletionContext)(nil), | |
TextDocumentPositionParams: protocol.TextDocumentPositionParams{ | |
TextDocument: protocol.TextDocumentIdentifier{URI:"file:///tmp/go-test-script292517338/script-complete_watched/main.go"}, | |
Position: protocol.Position{Line:5, Character:13}, | |
}, | |
} | |
gopls.Completion() return; err: <nil>; res: | |
&protocol.CompletionList{ | |
IsIncomplete: true, | |
Items: { | |
{ | |
Label: "fmt", | |
Kind: 9, | |
Detail: "\"fmt\"", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: true, | |
SortText: "00000", | |
FilterText: "fmt", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "fmt", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "Const1", | |
Kind: 21, | |
Detail: "int", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00001", | |
FilterText: "Const1", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "Const1", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "Const2", | |
Kind: 21, | |
Detail: "int", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00002", | |
FilterText: "Const2", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "Const2", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "main", | |
Kind: 3, | |
Detail: "func()", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00003", | |
FilterText: "main", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "main", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "fmt.Errorf", | |
Kind: 3, | |
Detail: "func(format string, a ...interface{}) error", | |
Documentation: "Errorf formats according to a format specifier and returns the string as a\nvalue that satisfies error.\n\nIf the format specifier includes a %w verb with an error operand,\nthe returned error will implement an Unwrap method returning the operand. It is\ninvalid to include more than one %w verb or to supply it with an operand\nthat does not implement the error interface. The %w verb is otherwise\na synonym for %v.\n", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00004", | |
FilterText: "fmt.Errorf", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "fmt.Errorf", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "fmt.Formatter", | |
Kind: 8, | |
Detail: "interface{...}", | |
Documentation: "Formatter is the interface implemented by values with a custom formatter.\nThe implementation of Format may call Sprint(f) or Fprint(f) etc.\nto generate its output.\n", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00005", | |
FilterText: "fmt.Formatter", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "fmt.Formatter", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "fmt.Fprint", | |
Kind: 3, | |
Detail: "func(w io.Writer, a ...interface{}) (n int, err error)", | |
Documentation: "Fprint formats using the default formats for its operands and writes to w.\nSpaces are added between operands when neither is a string.\nIt returns the number of bytes written and any write error encountered.\n", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00006", | |
FilterText: "fmt.Fprint", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "fmt.Fprint", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "append", | |
Kind: 3, | |
Detail: "func(slice []Type, elems ...Type) []Type", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00007", | |
FilterText: "append", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "append", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "bool", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00008", | |
FilterText: "bool", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "bool", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "byte", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00009", | |
FilterText: "byte", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "byte", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "cap", | |
Kind: 3, | |
Detail: "func(v Type) int", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00010", | |
FilterText: "cap", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "cap", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "close", | |
Kind: 3, | |
Detail: "func(c chan<- Type)", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00011", | |
FilterText: "close", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "close", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "complex", | |
Kind: 3, | |
Detail: "func(r float64, i float64) complex128", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00012", | |
FilterText: "complex", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "complex", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "complex128", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00013", | |
FilterText: "complex128", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "complex128", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "complex64", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00014", | |
FilterText: "complex64", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "complex64", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "copy", | |
Kind: 3, | |
Detail: "func(dst []Type, src []Type) int", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00015", | |
FilterText: "copy", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "copy", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "delete", | |
Kind: 3, | |
Detail: "func(m map[Type]Type1, key Type)", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00016", | |
FilterText: "delete", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "delete", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "error", | |
Kind: 8, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00017", | |
FilterText: "error", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "error", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "false", | |
Kind: 21, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00018", | |
FilterText: "false", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "false", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "float32", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00019", | |
FilterText: "float32", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "float32", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "float64", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00020", | |
FilterText: "float64", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "float64", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "imag", | |
Kind: 3, | |
Detail: "func(c complex128) float64", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00021", | |
FilterText: "imag", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "imag", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "int", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00022", | |
FilterText: "int", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "int", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "int16", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00023", | |
FilterText: "int16", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "int16", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "int32", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00024", | |
FilterText: "int32", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "int32", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "int64", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00025", | |
FilterText: "int64", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "int64", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "int8", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00026", | |
FilterText: "int8", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "int8", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "iota", | |
Kind: 21, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00027", | |
FilterText: "iota", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "iota", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "len", | |
Kind: 3, | |
Detail: "func(v Type) int", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00028", | |
FilterText: "len", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "len", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "make", | |
Kind: 3, | |
Detail: "func(t Type, size ...int) Type", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00029", | |
FilterText: "make", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "make", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "new", | |
Kind: 3, | |
Detail: "func(Type) *Type", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00030", | |
FilterText: "new", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "new", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "nil", | |
Kind: 6, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00031", | |
FilterText: "nil", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "nil", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "panic", | |
Kind: 3, | |
Detail: "func(v interface{})", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00032", | |
FilterText: "panic", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "panic", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "print", | |
Kind: 3, | |
Detail: "func(args ...Type)", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00033", | |
FilterText: "print", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "print", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "println", | |
Kind: 3, | |
Detail: "func(args ...Type)", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00034", | |
FilterText: "println", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "println", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "real", | |
Kind: 3, | |
Detail: "func(c complex128) float64", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00035", | |
FilterText: "real", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "real", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "recover", | |
Kind: 3, | |
Detail: "func() interface{}", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00036", | |
FilterText: "recover", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "recover", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: &protocol.Command{ | |
Title: "", | |
Command: "editor.action.triggerParameterHints", | |
Arguments: nil, | |
}, | |
Data: nil, | |
}, | |
{ | |
Label: "rune", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00037", | |
FilterText: "rune", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "rune", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "string", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00038", | |
FilterText: "string", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "string", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "true", | |
Kind: 21, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00039", | |
FilterText: "true", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "true", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "uint", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00040", | |
FilterText: "uint", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "uint", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "uint16", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00041", | |
FilterText: "uint16", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "uint16", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "uint32", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00042", | |
FilterText: "uint32", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "uint32", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "uint64", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00043", | |
FilterText: "uint64", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "uint64", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "uint8", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00044", | |
FilterText: "uint8", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "uint8", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
{ | |
Label: "uintptr", | |
Kind: 25, | |
Detail: "", | |
Documentation: "", | |
Deprecated: false, | |
Preselect: false, | |
SortText: "00045", | |
FilterText: "uintptr", | |
InsertText: "", | |
InsertTextFormat: 1, | |
TextEdit: &protocol.TextEdit{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:13}, | |
}, | |
NewText: "uintptr", | |
}, | |
AdditionalTextEdits: nil, | |
CommitCharacters: nil, | |
Command: (*protocol.Command)(nil), | |
Data: nil, | |
}, | |
}, | |
} | |
gopls.DidChange() call; params: | |
&protocol.DidChangeTextDocumentParams{ | |
TextDocument: protocol.VersionedTextDocumentIdentifier{ | |
Version: 1, | |
TextDocumentIdentifier: protocol.TextDocumentIdentifier{URI:"file:///tmp/go-test-script292517338/script-complete_watched/main.go"}, | |
}, | |
ContentChanges: { | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(fmt)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(fmt)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(fmt)\n", | |
}, | |
}, | |
} | |
gopls.DidChange() return; err: <nil> | |
PublishDiagnostics callback: &protocol.PublishDiagnosticsParams{ | |
URI: "file:///tmp/go-test-script292517338/script-complete_watched/const.go", | |
Version: 0, | |
Diagnostics: { | |
}, | |
} | |
PublishDiagnostics callback: &protocol.PublishDiagnosticsParams{ | |
URI: "file:///tmp/go-test-script292517338/script-complete_watched/main.go", | |
Version: 0, | |
Diagnostics: { | |
{ | |
Range: protocol.Range{ | |
Start: protocol.Position{Line:5, Character:13}, | |
End: protocol.Position{Line:5, Character:16}, | |
}, | |
Severity: 1, | |
Code: nil, | |
Source: "LSP", | |
Message: "use of package fmt not in selector", | |
Tags: nil, | |
RelatedInformation: nil, | |
}, | |
}, | |
} | |
gopls.DidChange() call; params: | |
&protocol.DidChangeTextDocumentParams{ | |
TextDocument: protocol.VersionedTextDocumentIdentifier{ | |
Version: 2, | |
TextDocumentIdentifier: protocol.TextDocumentIdentifier{URI:"file:///tmp/go-test-script292517338/script-complete_watched/main.go"}, | |
}, | |
ContentChanges: { | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const1)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const1)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const1)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const1)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const1)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const1)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const1)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const1)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const1)\n", | |
}, | |
}, | |
} | |
gopls.DidChange() return; err: <nil> | |
gopls.DidChange() call; params: | |
&protocol.DidChangeTextDocumentParams{ | |
TextDocument: protocol.VersionedTextDocumentIdentifier{ | |
Version: 3, | |
TextDocumentIdentifier: protocol.TextDocumentIdentifier{URI:"file:///tmp/go-test-script292517338/script-complete_watched/main.go"}, | |
}, | |
ContentChanges: { | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const2)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const2)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const2)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const2)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const2)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const2)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const2)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const2)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const2)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const2)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const2)\n", | |
}, | |
{ | |
Range: &protocol.Range{ | |
Start: protocol.Position{Line:5, Character:0}, | |
End: protocol.Position{Line:6, Character:0}, | |
}, | |
RangeLength: 0, | |
Text: "\tfmt.Println(Const2)\n", | |
}, | |
}, | |
} | |
gopls.DidChange() return; err: <nil> | |
LogMessage callback: &protocol.LogMessageParams{Type:1, Message:"2019/09/05 08:41:07 failed to check package: context canceled"} | |
PublishDiagnostics callback: &protocol.PublishDiagnosticsParams{ | |
URI: "file:///tmp/go-test-script292517338/script-complete_watched/const.go", | |
Version: 0, | |
Diagnostics: { | |
}, | |
} | |
PublishDiagnostics callback: &protocol.PublishDiagnosticsParams{ | |
URI: "file:///tmp/go-test-script292517338/script-complete_watched/main.go", | |
Version: 0, | |
Diagnostics: { | |
}, | |
} | |
LogMessage callback: &protocol.LogMessageParams{Type:1, Message:"2019/09/05 08:41:07 failed to compute diagnostics: no CheckPackageHandles for file:///tmp/go-test-script292517338/script-complete_watched/main.go\n\tfile = file:///tmp/go-test-script292517338/script-complete_watched/main.go"} | |
gopls.CodeAction() call; params: | |
&protocol.CodeActionParams{ | |
TextDocument: protocol.TextDocumentIdentifier{URI:"file:///tmp/go-test-script292517338/script-complete_watched/main.go"}, | |
Range: protocol.Range{}, | |
Context: protocol.CodeActionContext{}, | |
} | |
gopls.CodeAction() return; err: <nil>; res: | |
[]protocol.CodeAction{ | |
{ | |
Title: "Organize Imports", | |
Kind: "source.organizeImports", | |
Diagnostics: nil, | |
Edit: &protocol.WorkspaceEdit{ | |
Changes: &map[string][]protocol.TextEdit{ | |
"file:///tmp/go-test-script292517338/script-complete_watched/main.go": { | |
}, | |
}, | |
DocumentChanges: nil, | |
}, | |
Command: (*protocol.Command)(nil), | |
}, | |
} | |
gopls.Shutdown() call | |
gopls.Shutdown() return; err: <nil> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment