microsoft / vscode-go

An extension for VS Code which provides support for the Go language. We have moved to https://github.com/golang/vscode-go
Other
5.93k stars 648 forks source link

Tiny-go and You are neither in a module nor in your GOPATH #3175

Closed bus710 closed 4 years ago

bus710 commented 4 years ago

Tiny-go and You are neither in a module nor in your GOPATH

Context:

Summary:


Please answer these questions before submitting your issue. Thanks!

What version of Go, VS Code & VS Code Go extension are you using?

Share the Go related settings you have added/edited

Run Preferences: Open Settings (JSON) command to open your settings.json file. Share all the settings with the go. or ["go"] prefixes.

User setting:

{
    "workbench.startupEditor": "newUntitledFile",
    "workbench.sideBar.location": "right",
    "editor.minimap.enabled": false,
    "workbench.colorTheme": "Dracula",
    "window.menuBarVisibility": "toggle",
    "go.formatTool": "goimports",
    "go.useLanguageServer": true,
    "git.enableSmartCommit": true,
    "git.autofetch": true,
    "[go]": {},
    "go.gopath": "/home/bus710/go"
}

Workspace setting:

{
    "workbench.startupEditor": "newUntitledFile",
    "workbench.sideBar.location": "right",
    "editor.minimap.enabled": false,
    "workbench.colorTheme": "Dracula",
    "window.menuBarVisibility": "toggle",
    "go.formatTool": "goimports",
    "go.useLanguageServer": true,
    "git.enableSmartCommit": true,
    "git.autofetch": true,
    "[go]": {},
    "go.goroot": "/usr/local/go",
    "go.gopath": "/usr/local/tinygo:${env:HOME}/go",
    "go.toolsEnvVars": {
        "GOARCH": "arm",
        "GOOS": "linux",
    },
    "go.buildTags": "iot,arduino,tinygo,gc.conservative,scheduler.coroutines",
    "gopls": {
        "buildFlags": [
            "-tags=iot,arduino,tinygo,gc.conservative,scheduler.coroutines"
        ],
    },
    "go.languageServerFlags": [
        "serve",
        "-rpc.trace",
        "--debug=localhost:6060",
    ],
}

Describe the bug

I saw other tickets about GOPATH and gopls, but this ticket can be something new since here we have two different go compilers (Go and Tiny-go).

Vscode-go does code completion well with the workspace config attached (.vscode/settings.json) but I see the warning dialog of gopls that says as the title whenever I add a dot after a struct so that it is guessed as an issue of gopls as the link filed as context in the beginning. Gopls log is also attached below but please let me know if other information can be helpful to tackle the problem.

Gopls log:

[Trace - 16:53:22.318 PM] Sending request 'initialize - (0)'.
Params: {"processId":21039,"rootPath":"/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo","rootUri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"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"],"parameterInformation":{"labelOffsetSupport":true}}},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"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,"prepareSupport":true},"documentLink":{"dynamicRegistration":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true}}},"initializationOptions":{},"trace":"off","workspaceFolders":[{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo","name":"nano33-iot-tinygo"}]}

[Trace - 16:53:22.319 PM] Received response 'initialize - (0)' in 1ms.
Result: {"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"save":{}},"completionProvider":{"triggerCharacters":["."]},"hoverProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",","]},"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","source.fixAll","source.organizeImports"]},"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":""},"renameProvider":{"prepareProvider":true},"foldingRangeProvider":true,"executeCommandProvider":{"commands":["tidy","upgrade.dependency","generate"]},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"serverInfo":{"name":""}}

[Trace - 16:53:22.323 PM] Sending notification 'initialized'.
Params: {}

[Trace - 16:53:22.323 PM] Received request 'client/registerCapability - (1)'.
Params: {"registrations":[{"id":"workspace/didChangeConfiguration","method":"workspace/didChangeConfiguration"},{"id":"workspace/didChangeWorkspaceFolders","method":"workspace/didChangeWorkspaceFolders"},{"id":"workspace/didChangeWatchedFiles","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"**/*.go","kind":7}]}}]}

[Trace - 16:53:22.323 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","languageId":"go","version":1,"text":"// +build arduino\n\npackage main\n\nimport (\n\t\"machine\"\n\t\"time\"\n)\n\nfunc main() {\n\tled := machine.LED\n\tled.Configure(machine.PinConfig{Mode: machine.PinOutput})\n\tfor {\n\t\tled.Low()\n\t\ttime.Sleep(time.Millisecond * 500)\n\t\tled.High()\n\t\ttime.Sleep(time.Millisecond * 500)\n\t}\n}\n"}}

[Trace - 16:53:22.329 PM] Sending response 'client/registerCapability - (1)' took 5ms.
Result: {}

[Trace - 16:53:22.333 PM] Received request 'workspace/configuration - (2)'.
Params: {"items":[{"scopeUri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo","section":"gopls"},{"scopeUri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo","section":"gopls-nano33-iot-tinygo"}]}

[Trace - 16:53:22.333 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:53:22 Build info\n----------\ngolang.org/x/tools/gopls 0.4.0\n    golang.org/x/tools/gopls@v0.4.0 h1:G4+YP9kaV4dJb79J5MobyApxX493Qa6VoiTceUmxqik=\n    github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=\n    github.com/sergi/go-diff@v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=\n    golang.org/x/mod@v0.2.0 h1:KU7oHjnv3XNWfa5COkzUifxZmxp1TyI7ImMXqFxLwvQ=\n    golang.org/x/sync@v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=\n    golang.org/x/tools@v0.0.0-20200407041343-bf15fae40dea h1:DUwLyMDMUauGMd9kSLIlhhYJNELm06HuxeBdkFkeax4=\n    golang.org/x/xerrors@v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=\n    honnef.co/go/tools@v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=\n    mvdan.cc/xurls/v2@v2.1.0 h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=\n\nGo info\n-------\ngo version go1.13.8 linux/amd64\n\n"}

[Trace - 16:53:22.337 PM] Sending response 'workspace/configuration - (2)' took 3ms.
Result: [{"buildFlags":["-tags=iot,arduino,tinygo,gc.conservative,scheduler.coroutines"]},null]

[Info  - 4:53:22 PM] 2020/04/13 16:53:22 Build info
----------
golang.org/x/tools/gopls 0.4.0
    golang.org/x/tools/gopls@v0.4.0 h1:G4+YP9kaV4dJb79J5MobyApxX493Qa6VoiTceUmxqik=
    github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
    github.com/sergi/go-diff@v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
    golang.org/x/mod@v0.2.0 h1:KU7oHjnv3XNWfa5COkzUifxZmxp1TyI7ImMXqFxLwvQ=
    golang.org/x/sync@v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=
    golang.org/x/tools@v0.0.0-20200407041343-bf15fae40dea h1:DUwLyMDMUauGMd9kSLIlhhYJNELm06HuxeBdkFkeax4=
    golang.org/x/xerrors@v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
    honnef.co/go/tools@v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=
    mvdan.cc/xurls/v2@v2.1.0 h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=

Go info
-------
go version go1.13.8 linux/amd64

[Trace - 16:53:22.343 PM] Sending request 'textDocument/documentSymbol - (1)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:53:22.344 PM] Sending request 'textDocument/documentLink - (2)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:53:22.436 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:53:22 go env for /home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n(valid build configuration = false)\n(build flags: [-tags=iot,arduino,tinygo,gc.conservative,scheduler.coroutines])\nGO111MODULE=\"\"\nGOARCH=\"arm\"\nGOBIN=\"\"\nGOCACHE=\"/home/bus710/.cache/go-build\"\nGOENV=\"/home/bus710/.config/go/env\"\nGOEXE=\"\"\nGOFLAGS=\"\"\nGOHOSTARCH=\"amd64\"\nGOHOSTOS=\"linux\"\nGONOPROXY=\"\"\nGONOSUMDB=\"\"\nGOOS=\"linux\"\nGOPATH=\"/usr/local/tinygo:/home/bus710/go\"\nGOPRIVATE=\"\"\nGOPROXY=\"https://proxy.golang.org,direct\"\nGOROOT=\"/usr/local/go\"\nGOSUMDB=\"sum.golang.org\"\nGOTMPDIR=\"\"\nGOTOOLDIR=\"/usr/local/go/pkg/tool/linux_amd64\"\nGCCGO=\"gccgo\"\nGOARM=\"5\"\nAR=\"ar\"\nCC=\"gcc\"\nCXX=\"g++\"\nCGO_ENABLED=\"0\"\nGOMOD=\"\"\nCGO_CFLAGS=\"-g -O2\"\nCGO_CPPFLAGS=\"\"\nCGO_CXXFLAGS=\"-g -O2\"\nCGO_FFLAGS=\"-g -O2\"\nCGO_LDFLAGS=\"-g -O2\"\nPKG_CONFIG=\"pkg-config\"\nGOGCCFLAGS=\"-fPIC -marm -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build840083745=/tmp/go-build -gno-record-gcc-switches\"\n"}

[Info  - 4:53:22 PM] 2020/04/13 16:53:22 go env for /home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
(valid build configuration = false)
(build flags: [-tags=iot,arduino,tinygo,gc.conservative,scheduler.coroutines])
GO111MODULE=""
GOARCH="arm"
GOBIN=""
GOCACHE="/home/bus710/.cache/go-build"
GOENV="/home/bus710/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/usr/local/tinygo:/home/bus710/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
GOARM="5"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="0"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -marm -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build840083745=/tmp/go-build -gno-record-gcc-switches"

[Trace - 16:53:22.465 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:53:22 go/packages.Load\n\tsnapshot=0\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./ builtin]\n\tpackages=2"}

[Info  - 4:53:22 PM] 2020/04/13 16:53:22 go/packages.Load
    snapshot=0
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./ builtin]
    packages=2
[Trace - 16:53:22.537 PM] Sending request 'textDocument/foldingRange - (3)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:53:22.555 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:53:22 go/packages.Load\n\tsnapshot=0\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:53:22 PM] 2020/04/13 16:53:22 go/packages.Load
    snapshot=0
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:53:22.596 PM] Received response 'textDocument/documentSymbol - (1)' in 252ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":9,"character":0},"end":{"line":18,"character":1}},"selectionRange":{"start":{"line":9,"character":5},"end":{"line":9,"character":9}}}]

[Trace - 16:53:22.597 PM] Received response 'textDocument/documentLink - (2)' in 253ms.
Result: [{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":9}},"target":"https://pkg.go.dev/machine"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":6}},"target":"https://pkg.go.dev/time"}]

[Trace - 16:53:22.598 PM] Received response 'textDocument/foldingRange - (3)' in 61ms.
Result: [{"startLine":4,"startCharacter":8,"endLine":6,"endCharacter":7,"kind":"imports"},{"startLine":9,"startCharacter":13,"endLine":17,"endCharacter":2},{"startLine":12,"startCharacter":6,"endLine":16,"endCharacter":36}]

[Trace - 16:53:22.601 PM] Sending request 'textDocument/codeLens - (4)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:53:22.601 PM] Received response 'textDocument/codeLens - (4)' in 0ms.
Result: {}

[Trace - 16:53:22.660 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:53:22 go/packages.Load\n\tsnapshot=1\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:53:22 PM] 2020/04/13 16:53:22 go/packages.Load
    snapshot=1
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:55:10.337 PM] Sending request 'textDocument/codeAction - (5)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":12,"character":5},"end":{"line":12,"character":5}},"context":{"diagnostics":[]}}

[Trace - 16:55:10.338 PM] Received response 'textDocument/codeAction - (5)' in 1ms.
Result: {}

[Trace - 16:55:11.398 PM] Sending request 'textDocument/documentHighlight - (6)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":5}}

[Trace - 16:55:11.399 PM] Received response 'textDocument/documentHighlight - (6)' in 0ms.
Result: [{"range":{"start":{"line":11,"character":5},"end":{"line":11,"character":14}},"kind":1}]

[Trace - 16:55:11.647 PM] Sending request 'textDocument/codeAction - (7)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":5},"end":{"line":11,"character":5}},"context":{"diagnostics":[]}}

[Trace - 16:55:11.648 PM] Received response 'textDocument/codeAction - (7)' in 0ms.
Result: {}

[Trace - 16:55:11.976 PM] Sending request 'textDocument/codeAction - (8)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":57},"end":{"line":11,"character":57}},"context":{"diagnostics":[]}}

[Trace - 16:55:11.977 PM] Received response 'textDocument/codeAction - (8)' in 0ms.
Result: {}

[Trace - 16:55:12.422 PM] Sending request 'textDocument/documentHighlight - (9)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":10,"character":18}}

[Trace - 16:55:12.422 PM] Received response 'textDocument/documentHighlight - (9)' in 0ms.
Result: [{"range":{"start":{"line":10,"character":16},"end":{"line":10,"character":19}},"kind":1}]

[Trace - 16:55:12.671 PM] Sending request 'textDocument/codeAction - (10)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":10,"character":18},"end":{"line":10,"character":18}},"context":{"diagnostics":[]}}

[Trace - 16:55:12.672 PM] Received response 'textDocument/codeAction - (10)' in 1ms.
Result: {}

[Trace - 16:55:12.778 PM] Sending request 'textDocument/documentHighlight - (11)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":10,"character":19}}

[Trace - 16:55:12.778 PM] Received response 'textDocument/documentHighlight - (11)' in 0ms.
Result: [{"range":{"start":{"line":10,"character":16},"end":{"line":10,"character":19}},"kind":1}]

[Trace - 16:55:12.900 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":2},"contentChanges":[{"range":{"start":{"line":10,"character":19},"end":{"line":10,"character":19}},"rangeLength":0,"text":"\n\t"}]}

[Trace - 16:55:12.959 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:55:12 go/packages.Load\n\tsnapshot=2\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:55:12 PM] 2020/04/13 16:55:12 go/packages.Load
    snapshot=2
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:55:13.097 PM] Sending request 'textDocument/foldingRange - (12)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:55:13.097 PM] Received response 'textDocument/foldingRange - (12)' in 0ms.
Result: [{"startLine":4,"startCharacter":8,"endLine":6,"endCharacter":7,"kind":"imports"},{"startLine":9,"startCharacter":13,"endLine":18,"endCharacter":2},{"startLine":13,"startCharacter":6,"endLine":17,"endCharacter":36}]

[Trace - 16:55:13.147 PM] Sending request 'textDocument/codeLens - (13)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:55:13.147 PM] Received response 'textDocument/codeLens - (13)' in 0ms.
Result: {}

[Trace - 16:55:13.253 PM] Sending request 'textDocument/documentSymbol - (14)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:55:13.253 PM] Received response 'textDocument/documentSymbol - (14)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":9,"character":0},"end":{"line":19,"character":1}},"selectionRange":{"start":{"line":9,"character":5},"end":{"line":9,"character":9}}}]

[Trace - 16:55:13.385 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":3},"contentChanges":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":1}},"rangeLength":0,"text":"m"}]}

[Trace - 16:55:13.396 PM] Sending request 'textDocument/documentHighlight - (15)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":2}}

[Trace - 16:55:13.397 PM] Received response 'textDocument/documentHighlight - (15)' in 1ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"kind":1}]

[Trace - 16:55:13.425 PM] Sending request 'textDocument/completion - (16)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":2},"context":{"triggerKind":1}}

[Trace - 16:55:13.434 PM] Received response 'textDocument/completion - (16)' in 8ms.
Result: {"isIncomplete":true,"items":[{"label":"machine","kind":9,"detail":"\"machine\"","preselect":true,"sortText":"00000","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"machine"}},{"label":"main","kind":3,"detail":"func()","sortText":"00001","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"main()"}},{"label":"make","kind":3,"detail":"func(t Type, size ...int) Type","sortText":"00002","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"make(${1:})"}},{"label":"machine.ADC","kind":22,"detail":"struct{...}","sortText":"00003","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"machine.ADC"}},{"label":"machine.ADC0","kind":21,"detail":"machine.Pin","sortText":"00004","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"machine.ADC0"}},{"label":"machine.ADC1","kind":21,"detail":"machine.Pin","sortText":"00005","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"machine.ADC1"}},{"label":"macho","kind":9,"detail":"\"debug/macho\"","sortText":"00007","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"macho"},"additionalTextEdits":[{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":2}},"newText":"debug/macho\"\n\t\""}]},{"label":"mail","kind":9,"detail":"\"net/mail\"","sortText":"00008","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"mail"},"additionalTextEdits":[{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":2}},"newText":"net/mail\"\n\t\""}]},{"label":"math","kind":9,"detail":"\"math\"","sortText":"00009","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"math"},"additionalTextEdits":[{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":2}},"newText":"math\"\n\t\""}]},{"label":"md5","kind":9,"detail":"\"crypto/md5\"","sortText":"00010","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"md5"},"additionalTextEdits":[{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":2}},"newText":"crypto/md5\"\n\t\""}]},{"label":"machine","kind":9,"detail":"\"machine\"","sortText":"00011","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"machine"}}]}

[Trace - 16:55:13.468 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:55:13 go/packages.Load\n\tsnapshot=3\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:55:13.468 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Info  - 4:55:13 PM] 2020/04/13 16:55:13 go/packages.Load
    snapshot=3
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:55:13.469 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":3,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"severity":1,"source":"compiler","message":"undeclared name: m"}]}

[Trace - 16:55:13.511 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":4},"contentChanges":[{"range":{"start":{"line":11,"character":2},"end":{"line":11,"character":2}},"rangeLength":0,"text":"a"}]}

[Trace - 16:55:13.512 PM] Sending request 'textDocument/completion - (17)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":3},"context":{"triggerKind":3}}

[Trace - 16:55:13.518 PM] Sending request 'textDocument/documentHighlight - (18)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":3}}

[Trace - 16:55:13.527 PM] Received response 'textDocument/completion - (17)' in 14ms.
Result: {"isIncomplete":true,"items":[{"label":"machine","kind":9,"detail":"\"machine\"","preselect":true,"sortText":"00000","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"machine"}},{"label":"main","kind":3,"detail":"func()","sortText":"00001","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"main()"}},{"label":"make","kind":3,"detail":"func(t Type, size ...int) Type","sortText":"00002","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"make(${1:})"}},{"label":"machine.ADC","kind":22,"detail":"struct{...}","sortText":"00003","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"machine.ADC"}},{"label":"machine.ADC0","kind":21,"detail":"machine.Pin","sortText":"00004","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"machine.ADC0"}},{"label":"machine.ADC1","kind":21,"detail":"machine.Pin","sortText":"00005","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"machine.ADC1"}},{"label":"macho","kind":9,"detail":"\"debug/macho\"","sortText":"00007","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"macho"},"additionalTextEdits":[{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":2}},"newText":"debug/macho\"\n\t\""}]},{"label":"mail","kind":9,"detail":"\"net/mail\"","sortText":"00008","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"mail"},"additionalTextEdits":[{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":2}},"newText":"net/mail\"\n\t\""}]},{"label":"math","kind":9,"detail":"\"math\"","sortText":"00009","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"math"},"additionalTextEdits":[{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":2}},"newText":"math\"\n\t\""}]},{"label":"machine","kind":9,"detail":"\"machine\"","sortText":"00010","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"machine"}},{"label":"mapfs","kind":9,"detail":"\"golang.org/x/tools/godoc/vfs/mapfs\"","sortText":"00011","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"mapfs"},"additionalTextEdits":[{"range":{"start":{"line":7,"character":0},"end":{"line":7,"character":0}},"newText":"\n\t\"golang.org/x/tools/godoc/vfs/mapfs\"\n"}]}]}

[Trace - 16:55:13.527 PM] Received response 'textDocument/documentHighlight - (18)' in 9ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"kind":1}]

[Trace - 16:55:13.575 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:55:13 go/packages.Load\n\tsnapshot=4\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:55:13.575 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Info  - 4:55:13 PM] 2020/04/13 16:55:13 go/packages.Load
    snapshot=4
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:55:13.575 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":4,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"severity":1,"source":"compiler","message":"undeclared name: ma"}]}

[Trace - 16:55:13.708 PM] Sending request 'textDocument/foldingRange - (19)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:55:13.708 PM] Received response 'textDocument/foldingRange - (19)' in 0ms.
Result: [{"startLine":4,"startCharacter":8,"endLine":6,"endCharacter":7,"kind":"imports"},{"startLine":9,"startCharacter":13,"endLine":18,"endCharacter":2},{"startLine":13,"startCharacter":6,"endLine":17,"endCharacter":36}]

[Trace - 16:55:13.759 PM] Sending request 'textDocument/codeLens - (20)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:55:13.760 PM] Received response 'textDocument/codeLens - (20)' in 0ms.
Result: {}

[Trace - 16:55:13.847 PM] Sending request 'textDocument/codeAction - (21)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":3},"end":{"line":11,"character":3}},"context":{"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"message":"undeclared name: ma","severity":1,"source":"compiler"}]}}

[Trace - 16:55:13.848 PM] Received response 'textDocument/codeAction - (21)' in 0ms.
Result: {}

[Trace - 16:55:13.858 PM] Sending request 'textDocument/documentSymbol - (22)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:55:13.858 PM] Received response 'textDocument/documentSymbol - (22)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":9,"character":0},"end":{"line":19,"character":1}},"selectionRange":{"start":{"line":9,"character":5},"end":{"line":9,"character":9}}}]

[Trace - 16:55:13.897 PM] Sending request 'textDocument/documentLink - (23)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:55:13.898 PM] Received response 'textDocument/documentLink - (23)' in 1ms.
Result: [{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":9}},"target":"https://pkg.go.dev/machine"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":6}},"target":"https://pkg.go.dev/time"}]

[Trace - 16:55:15.142 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":5},"contentChanges":[{"range":{"start":{"line":11,"character":3},"end":{"line":11,"character":3}},"rangeLength":0,"text":"c"}]}

[Trace - 16:55:15.142 PM] Sending request 'textDocument/completion - (24)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":4},"context":{"triggerKind":3}}

[Trace - 16:55:15.150 PM] Sending request 'textDocument/documentHighlight - (25)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":4}}

[Trace - 16:55:15.160 PM] Received response 'textDocument/completion - (24)' in 17ms.
Result: {"isIncomplete":true,"items":[{"label":"machine","kind":9,"detail":"\"machine\"","preselect":true,"sortText":"00000","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"newText":"machine"}},{"label":"machine.CPUFrequency","kind":3,"detail":"func() uint32","documentation":"Return the current CPU frequency in hertz.\n","sortText":"00001","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"newText":"machine.CPUFrequency()"}},{"label":"machine.CPUFrequency","kind":3,"detail":"func() uint32 (from \"machine\")","documentation":"Return the current CPU frequency in hertz.\n","sortText":"00002","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"newText":"machine.CPUFrequency()"}},{"label":"machine.ADC","kind":22,"detail":"struct{...}","sortText":"00003","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"newText":"machine.ADC"}},{"label":"macho","kind":9,"detail":"\"debug/macho\"","sortText":"00007","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"newText":"macho"},"additionalTextEdits":[{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":2}},"newText":"debug/macho\"\n\t\""}]},{"label":"machine","kind":9,"detail":"\"machine\"","sortText":"00008","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"newText":"machine"}}]}

[Trace - 16:55:15.161 PM] Received response 'textDocument/documentHighlight - (25)' in 10ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"kind":1}]

[Trace - 16:55:15.182 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":6},"contentChanges":[{"range":{"start":{"line":11,"character":4},"end":{"line":11,"character":4}},"rangeLength":0,"text":"h"}]}

[Trace - 16:55:15.184 PM] Sending request 'textDocument/completion - (26)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":5},"context":{"triggerKind":3}}

[Trace - 16:55:15.198 PM] Sending request 'textDocument/documentHighlight - (27)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":5}}

[Trace - 16:55:15.201 PM] Received response 'textDocument/completion - (26)' in 16ms.
Result: {"isIncomplete":true,"items":[{"label":"machine","kind":9,"detail":"\"machine\"","preselect":true,"sortText":"00000","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"newText":"machine"}},{"label":"machine.ADC","kind":22,"detail":"struct{...}","sortText":"00001","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"newText":"machine.ADC"}},{"label":"machine.ADC0","kind":21,"detail":"machine.Pin","sortText":"00002","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"newText":"machine.ADC0"}},{"label":"machine.ADC1","kind":21,"detail":"machine.Pin","sortText":"00003","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"newText":"machine.ADC1"}},{"label":"macho","kind":9,"detail":"\"debug/macho\"","sortText":"00006","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"newText":"macho"},"additionalTextEdits":[{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":2}},"newText":"debug/macho\"\n\t\""}]},{"label":"machine","kind":9,"detail":"\"machine\"","sortText":"00007","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"newText":"machine"}}]}

[Trace - 16:55:15.201 PM] Received response 'textDocument/documentHighlight - (27)' in 3ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"kind":1}]

[Trace - 16:55:15.245 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:55:15 go/packages.Load\n\tsnapshot=6\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:55:15 PM] 2020/04/13 16:55:15 go/packages.Load
    snapshot=6
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:55:15.245 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Trace - 16:55:15.245 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":6,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"severity":1,"source":"compiler","message":"undeclared name: mach"}]}

[Trace - 16:55:15.274 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":7},"contentChanges":[{"range":{"start":{"line":11,"character":5},"end":{"line":11,"character":5}},"rangeLength":0,"text":"i"}]}

[Trace - 16:55:15.275 PM] Sending request 'textDocument/completion - (28)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":6},"context":{"triggerKind":3}}

[Trace - 16:55:15.281 PM] Sending request 'textDocument/documentHighlight - (29)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":6}}

[Trace - 16:55:15.290 PM] Received response 'textDocument/completion - (28)' in 15ms.
Result: {"isIncomplete":true,"items":[{"label":"machine","kind":9,"detail":"\"machine\"","preselect":true,"sortText":"00000","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"newText":"machine"}},{"label":"machine.I2C","kind":22,"detail":"struct{...}","documentation":"I2C is a generic implementation of the Inter-IC communication protocol.\n","sortText":"00001","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"newText":"machine.I2C"}},{"label":"machine.I2C0","kind":6,"detail":"machine.I2C","sortText":"00002","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"newText":"machine.I2C0"}},{"label":"machine.I2CConfig","kind":22,"detail":"struct{...}","documentation":"I2CConfig is used to store config info for I2C.\n","sortText":"00003","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"newText":"machine.I2CConfig"}},{"label":"machine","kind":9,"detail":"\"machine\"","sortText":"00009","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"newText":"machine"}}]}

[Trace - 16:55:15.291 PM] Received response 'textDocument/documentHighlight - (29)' in 9ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"kind":1}]

[Trace - 16:55:15.344 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:55:15 go/packages.Load\n\tsnapshot=7\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:55:15.344 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Info  - 4:55:15 PM] 2020/04/13 16:55:15 go/packages.Load
    snapshot=7
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:55:15.345 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":7,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"severity":1,"source":"compiler","message":"undeclared name: machi"}]}

[Trace - 16:55:15.399 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":8},"contentChanges":[{"range":{"start":{"line":11,"character":6},"end":{"line":11,"character":6}},"rangeLength":0,"text":"n"}]}

[Trace - 16:55:15.399 PM] Sending request 'textDocument/completion - (30)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":7},"context":{"triggerKind":3}}

[Trace - 16:55:15.413 PM] Sending request 'textDocument/documentHighlight - (31)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":7}}

[Trace - 16:55:15.424 PM] Received response 'textDocument/completion - (30)' in 24ms.
Result: {"isIncomplete":true,"items":[{"label":"machine","kind":9,"detail":"\"machine\"","preselect":true,"sortText":"00000","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"newText":"machine"}},{"label":"machine.NoPin","kind":21,"detail":"machine.Pin","sortText":"00001","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"newText":"machine.NoPin"}},{"label":"machine.NoPin","kind":21,"detail":"machine.Pin (from \"machine\")","sortText":"00002","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"newText":"machine.NoPin"}},{"label":"machine.InitADC","kind":3,"detail":"func()","documentation":"InitADC enables support for ADC peripherals.\n","sortText":"00003","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"newText":"machine.InitADC()"}},{"label":"machine","kind":9,"detail":"\"machine\"","sortText":"00009","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"newText":"machine"}}]}

[Trace - 16:55:15.424 PM] Received response 'textDocument/documentHighlight - (31)' in 11ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"kind":1}]

[Trace - 16:55:15.471 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:55:15 go/packages.Load\n\tsnapshot=8\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:55:15 PM] 2020/04/13 16:55:15 go/packages.Load
    snapshot=8
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:55:15.471 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Trace - 16:55:15.471 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":8,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"severity":1,"source":"compiler","message":"undeclared name: machin"}]}

[Trace - 16:55:15.475 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":9},"contentChanges":[{"range":{"start":{"line":11,"character":7},"end":{"line":11,"character":7}},"rangeLength":0,"text":"e"}]}

[Trace - 16:55:15.475 PM] Sending request 'textDocument/completion - (32)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":8},"context":{"triggerKind":3}}

[Trace - 16:55:15.501 PM] Received response 'textDocument/completion - (32)' in 25ms.
Result: {"isIncomplete":true,"items":[{"label":"machine","kind":9,"detail":"\"machine\"","preselect":true,"sortText":"00000","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"newText":"machine"}},{"label":"machine.ErrInvalidClockPin","kind":6,"detail":"error","sortText":"00001","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"newText":"machine.ErrInvalidClockPin"}},{"label":"machine.ErrInvalidDataPin","kind":6,"detail":"error","sortText":"00002","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"newText":"machine.ErrInvalidDataPin"}},{"label":"machine.ErrInvalidInputPin","kind":6,"detail":"error","sortText":"00003","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"newText":"machine.ErrInvalidInputPin"}},{"label":"machine","kind":9,"detail":"\"machine\"","sortText":"00008","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"newText":"machine"}}]}

[Trace - 16:55:15.505 PM] Sending request 'textDocument/documentHighlight - (33)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":8}}

[Trace - 16:55:15.505 PM] Received response 'textDocument/documentHighlight - (33)' in 0ms.
Result: [{"range":{"start":{"line":10,"character":8},"end":{"line":10,"character":15}},"kind":1},{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"kind":1},{"range":{"start":{"line":12,"character":15},"end":{"line":12,"character":22}},"kind":1},{"range":{"start":{"line":12,"character":39},"end":{"line":12,"character":46}},"kind":1},{"range":{"start":{"line":5,"character":1},"end":{"line":5,"character":10}},"kind":1}]

[Trace - 16:55:15.537 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:55:15 go/packages.Load\n\tsnapshot=9\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:55:15 PM] 2020/04/13 16:55:15 go/packages.Load
    snapshot=9
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:55:15.537 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":9,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"severity":1,"source":"compiler","message":"use of package machine not in selector"}]}

[Trace - 16:55:15.674 PM] Sending request 'textDocument/foldingRange - (34)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:55:15.675 PM] Received response 'textDocument/foldingRange - (34)' in 0ms.
Result: [{"startLine":4,"startCharacter":8,"endLine":6,"endCharacter":7,"kind":"imports"},{"startLine":9,"startCharacter":13,"endLine":18,"endCharacter":2},{"startLine":13,"startCharacter":6,"endLine":17,"endCharacter":36}]

[Trace - 16:55:15.724 PM] Sending request 'textDocument/codeLens - (35)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:55:15.724 PM] Received response 'textDocument/codeLens - (35)' in 0ms.
Result: {}

[Trace - 16:55:15.792 PM] Sending request 'textDocument/codeAction - (36)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":8},"end":{"line":11,"character":8}},"context":{"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"message":"use of package machine not in selector","severity":1,"source":"compiler"}]}}

[Trace - 16:55:15.793 PM] Received response 'textDocument/codeAction - (36)' in 1ms.
Result: {}

[Trace - 16:55:15.823 PM] Sending request 'textDocument/documentSymbol - (37)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:55:15.824 PM] Received response 'textDocument/documentSymbol - (37)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":9,"character":0},"end":{"line":19,"character":1}},"selectionRange":{"start":{"line":9,"character":5},"end":{"line":9,"character":9}}}]

[Trace - 16:55:16.141 PM] Sending request 'textDocument/documentLink - (38)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:55:16.142 PM] Received response 'textDocument/documentLink - (38)' in 1ms.
Result: [{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":9}},"target":"https://pkg.go.dev/machine"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":6}},"target":"https://pkg.go.dev/time"}]

[Trace - 16:55:17.479 PM] Sending request 'textDocument/documentHighlight - (39)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":7}}

[Trace - 16:55:17.479 PM] Received response 'textDocument/documentHighlight - (39)' in 0ms.
Result: [{"range":{"start":{"line":5,"character":1},"end":{"line":5,"character":10}},"kind":1},{"range":{"start":{"line":10,"character":8},"end":{"line":10,"character":15}},"kind":1},{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"kind":1},{"range":{"start":{"line":12,"character":15},"end":{"line":12,"character":22}},"kind":1},{"range":{"start":{"line":12,"character":39},"end":{"line":12,"character":46}},"kind":1}]

[Trace - 16:55:17.713 PM] Sending request 'textDocument/codeAction - (40)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":7},"end":{"line":11,"character":7}},"context":{"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"message":"use of package machine not in selector","severity":1,"source":"compiler"}]}}

[Trace - 16:55:17.714 PM] Received response 'textDocument/codeAction - (40)' in 0ms.
Result: {}

[Trace - 16:55:18.107 PM] Sending request 'textDocument/codeAction - (41)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":0,"character":0},"end":{"line":20,"character":0}},"context":{"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"message":"use of package machine not in selector","severity":1,"source":"compiler"}]}}

[Trace - 16:55:18.108 PM] Received response 'textDocument/codeAction - (41)' in 1ms.
Result: {}

[Trace - 16:55:18.115 PM] Sending request 'textDocument/formatting - (42)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"options":{"tabSize":4,"insertSpaces":false}}

[Trace - 16:55:18.116 PM] Received response 'textDocument/formatting - (42)' in 0ms.
Result: []

[Trace - 16:55:18.140 PM] Sending notification 'textDocument/didSave'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":9}}

[Trace - 16:55:18.208 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:55:18 go/packages.Load\n\tsnapshot=10\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:55:18 PM] 2020/04/13 16:55:18 go/packages.Load
    snapshot=10
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:55:18.427 PM] Sending notification 'workspace/didChangeWatchedFiles'.
Params: {"changes":[{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","type":2}]}

[Trace - 16:55:40.338 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:55:40 background imports cache refresh starting"}

[Info  - 4:55:40 PM] 2020/04/13 16:55:40 background imports cache refresh starting
[Trace - 16:55:40.350 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:55:40 background refresh finished after 12.147107ms"}

[Info  - 4:55:40 PM] 2020/04/13 16:55:40 background refresh finished after 12.147107ms
[Trace - 16:58:01.138 PM] Sending request 'textDocument/hover - (43)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":3}}

[Trace - 16:58:01.139 PM] Received response 'textDocument/hover - (43)' in 0ms.
Result: {"contents":{"kind":"markdown","value":"```go\npackage machine\n```\n\n[`machine` on pkg.go.dev](https://pkg.go.dev/machine)"},"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}}}

[Trace - 16:58:01.314 PM] Sending request 'textDocument/codeAction - (44)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"context":{"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"message":"use of package machine not in selector","severity":1,"source":"compiler"}]}}

[Trace - 16:58:01.315 PM] Received response 'textDocument/codeAction - (44)' in 0ms.
Result: {}

[Trace - 16:58:10.386 PM] Sending request 'textDocument/codeAction - (45)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":19,"character":0},"end":{"line":19,"character":0}},"context":{"diagnostics":[]}}

[Trace - 16:58:10.386 PM] Received response 'textDocument/codeAction - (45)' in 0ms.
Result: {}

[Trace - 16:58:25.726 PM] Sending request 'textDocument/documentHighlight - (46)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":8}}

[Trace - 16:58:25.727 PM] Received response 'textDocument/documentHighlight - (46)' in 0ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"kind":1},{"range":{"start":{"line":12,"character":15},"end":{"line":12,"character":22}},"kind":1},{"range":{"start":{"line":12,"character":39},"end":{"line":12,"character":46}},"kind":1},{"range":{"start":{"line":5,"character":1},"end":{"line":5,"character":10}},"kind":1},{"range":{"start":{"line":10,"character":8},"end":{"line":10,"character":15}},"kind":1}]

[Trace - 16:58:25.730 PM] Sending request 'textDocument/documentHighlight - (47)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":7}}

[Trace - 16:58:25.730 PM] Received response 'textDocument/documentHighlight - (47)' in 0ms.
Result: [{"range":{"start":{"line":5,"character":1},"end":{"line":5,"character":10}},"kind":1},{"range":{"start":{"line":10,"character":8},"end":{"line":10,"character":15}},"kind":1},{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"kind":1},{"range":{"start":{"line":12,"character":15},"end":{"line":12,"character":22}},"kind":1},{"range":{"start":{"line":12,"character":39},"end":{"line":12,"character":46}},"kind":1}]

[Trace - 16:58:25.987 PM] Sending request 'textDocument/codeAction - (48)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":7},"end":{"line":11,"character":7}},"context":{"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"message":"use of package machine not in selector","severity":1,"source":"compiler"}]}}

[Trace - 16:58:25.987 PM] Received response 'textDocument/codeAction - (48)' in 0ms.
Result: {}

[Trace - 16:58:30.770 PM] Sending request 'textDocument/hover - (49)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":12,"character":15}}

[Trace - 16:58:30.770 PM] Received response 'textDocument/hover - (49)' in 0ms.
Result: {"contents":{"kind":"markdown","value":"```go\npackage machine\n```\n\n[`machine` on pkg.go.dev](https://pkg.go.dev/machine)"},"range":{"start":{"line":12,"character":15},"end":{"line":12,"character":22}}}

[Trace - 16:58:31.315 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:31 background imports cache refresh starting"}

[Info  - 4:58:31 PM] 2020/04/13 16:58:31 background imports cache refresh starting
[Trace - 16:58:31.328 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:31 background refresh finished after 12.543765ms"}

[Info  - 4:58:31 PM] 2020/04/13 16:58:31 background refresh finished after 12.543765ms
[Trace - 16:58:32.717 PM] Sending request 'textDocument/documentHighlight - (50)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":12,"character":23}}

[Trace - 16:58:32.718 PM] Received response 'textDocument/documentHighlight - (50)' in 0ms.
Result: [{"range":{"start":{"line":12,"character":23},"end":{"line":12,"character":32}},"kind":1}]

[Trace - 16:58:32.956 PM] Sending request 'textDocument/codeAction - (51)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":12,"character":23},"end":{"line":12,"character":23}},"context":{"diagnostics":[]}}

[Trace - 16:58:32.957 PM] Received response 'textDocument/codeAction - (51)' in 0ms.
Result: {}

[Trace - 16:58:33.678 PM] Sending request 'textDocument/documentHighlight - (52)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":7}}

[Trace - 16:58:33.678 PM] Received response 'textDocument/documentHighlight - (52)' in 0ms.
Result: [{"range":{"start":{"line":10,"character":8},"end":{"line":10,"character":15}},"kind":1},{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"kind":1},{"range":{"start":{"line":12,"character":15},"end":{"line":12,"character":22}},"kind":1},{"range":{"start":{"line":12,"character":39},"end":{"line":12,"character":46}},"kind":1},{"range":{"start":{"line":5,"character":1},"end":{"line":5,"character":10}},"kind":1}]

[Trace - 16:58:33.928 PM] Sending request 'textDocument/codeAction - (53)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":7},"end":{"line":11,"character":7}},"context":{"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"message":"use of package machine not in selector","severity":1,"source":"compiler"}]}}

[Trace - 16:58:33.929 PM] Received response 'textDocument/codeAction - (53)' in 1ms.
Result: {}

[Trace - 16:58:34.069 PM] Sending request 'textDocument/documentHighlight - (54)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":8}}

[Trace - 16:58:34.069 PM] Received response 'textDocument/documentHighlight - (54)' in 0ms.
Result: [{"range":{"start":{"line":12,"character":15},"end":{"line":12,"character":22}},"kind":1},{"range":{"start":{"line":12,"character":39},"end":{"line":12,"character":46}},"kind":1},{"range":{"start":{"line":5,"character":1},"end":{"line":5,"character":10}},"kind":1},{"range":{"start":{"line":10,"character":8},"end":{"line":10,"character":15}},"kind":1},{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"kind":1}]

[Trace - 16:58:34.303 PM] Sending request 'textDocument/codeAction - (55)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":8},"end":{"line":11,"character":8}},"context":{"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"message":"use of package machine not in selector","severity":1,"source":"compiler"}]}}

[Trace - 16:58:34.304 PM] Received response 'textDocument/codeAction - (55)' in 1ms.
Result: {}

[Trace - 16:58:34.327 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":10},"contentChanges":[{"range":{"start":{"line":11,"character":8},"end":{"line":11,"character":8}},"rangeLength":0,"text":"."}]}

[Trace - 16:58:34.328 PM] Sending request 'textDocument/completion - (56)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":9},"context":{"triggerKind":2,"triggerCharacter":"."}}

[Trace - 16:58:34.335 PM] Received response 'textDocument/completion - (56)' in 7ms.
Result: {"isIncomplete":true,"items":[{"label":"ADC","kind":22,"detail":"struct{...}","preselect":true,"sortText":"00000","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ADC"}},{"label":"ADC0","kind":21,"detail":"machine.Pin","sortText":"00001","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ADC0"}},{"label":"ADC1","kind":21,"detail":"machine.Pin","sortText":"00002","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ADC1"}},{"label":"ADC2","kind":21,"detail":"machine.Pin","sortText":"00003","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ADC2"}},{"label":"ADC3","kind":21,"detail":"machine.Pin","sortText":"00004","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ADC3"}},{"label":"ADC4","kind":21,"detail":"machine.Pin","sortText":"00005","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ADC4"}},{"label":"ADC5","kind":21,"detail":"machine.Pin","sortText":"00006","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ADC5"}},{"label":"ErrInvalidClockPin","kind":6,"detail":"error","sortText":"00007","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ErrInvalidClockPin"}},{"label":"ErrInvalidDataPin","kind":6,"detail":"error","sortText":"00008","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ErrInvalidDataPin"}},{"label":"ErrInvalidInputPin","kind":6,"detail":"error","sortText":"00009","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ErrInvalidInputPin"}},{"label":"ErrInvalidOutputPin","kind":6,"detail":"error","sortText":"00010","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ErrInvalidOutputPin"}},{"label":"ErrTxInvalidSliceSize","kind":6,"detail":"error","sortText":"00011","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ErrTxInvalidSliceSize"}},{"label":"I2C","kind":22,"detail":"struct{...}","documentation":"I2C is a generic implementation of the Inter-IC communication protocol.\n","sortText":"00012","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"I2C"}},{"label":"I2C0","kind":6,"detail":"machine.I2C","sortText":"00013","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"I2C0"}},{"label":"I2CConfig","kind":22,"detail":"struct{...}","documentation":"I2CConfig is used to store config info for I2C.\n","sortText":"00014","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"I2CConfig"}},{"label":"LED","kind":21,"detail":"machine.Pin","sortText":"00015","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"LED"}},{"label":"NoPin","kind":21,"detail":"machine.Pin","sortText":"00016","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"NoPin"}},{"label":"PWM","kind":22,"detail":"struct{...}","sortText":"00017","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"PWM"}},{"label":"Pin","kind":7,"detail":"int8","documentation":"Pin is a single pin on a chip, which may be connected to other hardware\ndevices. It can either be used directly as GPIO pin or it can be used in\nother peripherals like ADC, I2C, etc.\n","sortText":"00018","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"Pin"}},{"label":"PinConfig","kind":22,"detail":"struct{...}","sortText":"00019","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"PinConfig"}},{"label":"PinInput","kind":21,"detail":"machine.PinMode","sortText":"00020","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"PinInput"}},{"label":"PinInputPulldown","kind":21,"detail":"machine.PinMode","sortText":"00021","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"PinInputPulldown"}},{"label":"PinInputPullup","kind":21,"detail":"machine.PinMode","sortText":"00022","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"PinInputPullup"}},{"label":"PinMode","kind":7,"detail":"uint8","sortText":"00023","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"PinMode"}},{"label":"PinOutput","kind":21,"detail":"machine.PinMode","sortText":"00024","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"PinOutput"}},{"label":"RingBuffer","kind":22,"detail":"struct{...}","documentation":"RingBuffer is ring buffer implementation inspired by post at\nhttps://www.embeddedrelated.com/showthread/comp.arch.embedded/77084-1.php\n\nIt has some limitations currently due to how \"volatile\" variables that are\nmembers of a struct are not compiled correctly by TinyGo.\nSee https://github.com/tinygo-org/tinygo/issues/151 for details.\n","sortText":"00025","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"RingBuffer"}},{"label":"SPI","kind":22,"detail":"struct{...}","sortText":"00026","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"SPI"}},{"label":"SPI0","kind":6,"detail":"machine.SPI","sortText":"00027","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"SPI0"}},{"label":"SPIConfig","kind":22,"detail":"struct{...}","sortText":"00028","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"SPIConfig"}},{"label":"UART","kind":22,"detail":"struct{...}","sortText":"00029","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"UART"}},{"label":"UART0","kind":6,"detail":"machine.UART","sortText":"00030","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"UART0"}},{"label":"UARTConfig","kind":22,"detail":"struct{...}","sortText":"00031","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"UARTConfig"}},{"label":"UART_RX_PIN","kind":21,"detail":"machine.Pin","sortText":"00032","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"UART_RX_PIN"}},{"label":"UART_TX_PIN","kind":21,"detail":"machine.Pin","sortText":"00033","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"UART_TX_PIN"}},{"label":"CPUFrequency","kind":3,"detail":"func() uint32","documentation":"Return the current CPU frequency in hertz.\n","sortText":"00034","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"CPUFrequency()"}},{"label":"InitADC","kind":3,"detail":"func()","documentation":"InitADC enables support for ADC peripherals.\n","sortText":"00035","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"InitADC()"}},{"label":"InitPWM","kind":3,"detail":"func()","documentation":"InitPWM enables support for PWM peripherals.\n","sortText":"00036","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"InitPWM()"}},{"label":"NewRingBuffer","kind":3,"detail":"func() *machine.RingBuffer","documentation":"NewRingBuffer returns a new ring buffer.\n","sortText":"00037","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"NewRingBuffer()"}},{"label":"I2C0.Bus","kind":5,"detail":"uint8","documentation":"I2C is a generic implementation of the Inter-IC communication protocol.\n","sortText":"00038","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"I2C0.Bus"}},{"label":"SPI0.Bus","kind":5,"detail":"uint8","sortText":"00039","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"SPI0.Bus"}},{"label":"UART0.Bus","kind":5,"detail":"uint8","sortText":"00040","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"UART0.Bus"}}]}

[Trace - 16:58:34.393 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":10,"diagnostics":[{"range":{"start":{"line":12,"character":1},"end":{"line":12,"character":14}},"severity":1,"source":"compiler","message":"led not declared by package machine"}]}

[Trace - 16:58:34.393 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:34 go/packages.Load\n\tsnapshot=11\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:58:34 PM] 2020/04/13 16:58:34 go/packages.Load
    snapshot=11
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:34.524 PM] Sending request 'textDocument/foldingRange - (57)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:34.525 PM] Received response 'textDocument/foldingRange - (57)' in 0ms.
Result: [{"startLine":4,"startCharacter":8,"endLine":6,"endCharacter":7,"kind":"imports"},{"startLine":9,"startCharacter":13,"endLine":18,"endCharacter":2},{"startLine":13,"startCharacter":6,"endLine":17,"endCharacter":36}]

[Trace - 16:58:34.581 PM] Sending request 'textDocument/codeLens - (58)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:34.582 PM] Received response 'textDocument/codeLens - (58)' in 0ms.
Result: {}

[Trace - 16:58:34.648 PM] Sending request 'textDocument/codeAction - (59)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"context":{"diagnostics":[]}}

[Trace - 16:58:34.649 PM] Received response 'textDocument/codeAction - (59)' in 0ms.
Result: {}

[Trace - 16:58:34.674 PM] Sending request 'textDocument/documentSymbol - (60)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:34.675 PM] Received response 'textDocument/documentSymbol - (60)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":9,"character":0},"end":{"line":19,"character":1}},"selectionRange":{"start":{"line":9,"character":5},"end":{"line":9,"character":9}}}]

[Trace - 16:58:35.326 PM] Sending request 'textDocument/documentLink - (61)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:35.327 PM] Received response 'textDocument/documentLink - (61)' in 1ms.
Result: [{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":9}},"target":"https://pkg.go.dev/machine"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":6}},"target":"https://pkg.go.dev/time"}]

[Trace - 16:58:35.521 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":11},"contentChanges":[{"range":{"start":{"line":11,"character":8},"end":{"line":11,"character":9}},"rangeLength":1,"text":""}]}

[Trace - 16:58:35.535 PM] Sending request 'textDocument/documentHighlight - (62)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":8}}

[Trace - 16:58:35.536 PM] Received response 'textDocument/documentHighlight - (62)' in 0ms.
Result: [{"range":{"start":{"line":10,"character":8},"end":{"line":10,"character":15}},"kind":1},{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"kind":1},{"range":{"start":{"line":12,"character":15},"end":{"line":12,"character":22}},"kind":1},{"range":{"start":{"line":12,"character":39},"end":{"line":12,"character":46}},"kind":1},{"range":{"start":{"line":5,"character":1},"end":{"line":5,"character":10}},"kind":1}]

[Trace - 16:58:35.589 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:35 go/packages.Load\n\tsnapshot=12\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:58:35.589 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":11,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"severity":1,"source":"compiler","message":"use of package machine not in selector"}]}

[Info  - 4:58:35 PM] 2020/04/13 16:58:35 go/packages.Load
    snapshot=12
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:35.704 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":12},"contentChanges":[{"range":{"start":{"line":11,"character":7},"end":{"line":11,"character":8}},"rangeLength":1,"text":""}]}

[Trace - 16:58:35.716 PM] Sending request 'textDocument/documentHighlight - (63)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":7}}

[Trace - 16:58:35.716 PM] Received response 'textDocument/documentHighlight - (63)' in 0ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"kind":1}]

[Trace - 16:58:35.767 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:35 go/packages.Load\n\tsnapshot=13\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:58:35.767 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Info  - 4:58:35 PM] 2020/04/13 16:58:35 go/packages.Load
    snapshot=13
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:35.767 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":12,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"severity":1,"source":"compiler","message":"undeclared name: machin"}]}

[Trace - 16:58:35.876 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":13},"contentChanges":[{"range":{"start":{"line":11,"character":6},"end":{"line":11,"character":7}},"rangeLength":1,"text":""}]}

[Trace - 16:58:35.879 PM] Sending request 'textDocument/documentHighlight - (64)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":6}}

[Trace - 16:58:35.880 PM] Received response 'textDocument/documentHighlight - (64)' in 1ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"kind":1}]

[Trace - 16:58:35.943 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:35 go/packages.Load\n\tsnapshot=14\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:58:35.943 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Info  - 4:58:35 PM] 2020/04/13 16:58:35 go/packages.Load
    snapshot=14
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:35.943 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":13,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"severity":1,"source":"compiler","message":"undeclared name: machi"}]}

[Trace - 16:58:36.021 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":14},"contentChanges":[{"range":{"start":{"line":11,"character":5},"end":{"line":11,"character":6}},"rangeLength":1,"text":""}]}

[Trace - 16:58:36.033 PM] Sending request 'textDocument/documentHighlight - (65)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":5}}

[Trace - 16:58:36.034 PM] Received response 'textDocument/documentHighlight - (65)' in 0ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"kind":1}]

[Trace - 16:58:36.086 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:36 go/packages.Load\n\tsnapshot=15\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:58:36.086 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Info  - 4:58:36 PM] 2020/04/13 16:58:36 go/packages.Load
    snapshot=15
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:36.086 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":14,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"severity":1,"source":"compiler","message":"undeclared name: mach"}]}

[Trace - 16:58:36.147 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":15},"contentChanges":[{"range":{"start":{"line":11,"character":4},"end":{"line":11,"character":5}},"rangeLength":1,"text":""}]}

[Trace - 16:58:36.150 PM] Sending request 'textDocument/documentHighlight - (66)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":4}}

[Trace - 16:58:36.151 PM] Received response 'textDocument/documentHighlight - (66)' in 1ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"kind":1}]

[Trace - 16:58:36.210 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:36 go/packages.Load\n\tsnapshot=16\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:58:36.210 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Info  - 4:58:36 PM] 2020/04/13 16:58:36 go/packages.Load
    snapshot=16
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:36.210 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":15,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"severity":1,"source":"compiler","message":"undeclared name: mac"}]}

[Trace - 16:58:36.295 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":16},"contentChanges":[{"range":{"start":{"line":11,"character":3},"end":{"line":11,"character":4}},"rangeLength":1,"text":""}]}

[Trace - 16:58:36.299 PM] Sending request 'textDocument/documentHighlight - (67)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":3}}

[Trace - 16:58:36.300 PM] Received response 'textDocument/documentHighlight - (67)' in 1ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"kind":1}]

[Trace - 16:58:36.362 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:36 go/packages.Load\n\tsnapshot=17\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:58:36.362 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Info  - 4:58:36 PM] 2020/04/13 16:58:36 go/packages.Load
    snapshot=17
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:36.363 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":16,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"severity":1,"source":"compiler","message":"undeclared name: ma"}]}

[Trace - 16:58:36.465 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":17},"contentChanges":[{"range":{"start":{"line":11,"character":2},"end":{"line":11,"character":3}},"rangeLength":1,"text":""}]}

[Trace - 16:58:36.469 PM] Sending request 'textDocument/documentHighlight - (68)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":2}}

[Trace - 16:58:36.470 PM] Received response 'textDocument/documentHighlight - (68)' in 1ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"kind":1}]

[Trace - 16:58:36.520 PM] Sending request 'textDocument/documentLink - (69)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:36.521 PM] Received response 'textDocument/documentLink - (69)' in 1ms.
Result: [{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":9}},"target":"https://pkg.go.dev/machine"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":6}},"target":"https://pkg.go.dev/time"}]

[Trace - 16:58:36.533 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Trace - 16:58:36.533 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:36 go/packages.Load\n\tsnapshot=18\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:58:36.534 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":17,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"severity":1,"source":"compiler","message":"undeclared name: m"}]}

[Info  - 4:58:36 PM] 2020/04/13 16:58:36 go/packages.Load
    snapshot=18
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:36.630 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":18},"contentChanges":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"rangeLength":1,"text":""}]}

[Trace - 16:58:36.694 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:36 go/packages.Load\n\tsnapshot=19\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:58:36 PM] 2020/04/13 16:58:36 go/packages.Load
    snapshot=19
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:36.695 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":18,"diagnostics":[]}

[Trace - 16:58:36.828 PM] Sending request 'textDocument/foldingRange - (70)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:36.829 PM] Received response 'textDocument/foldingRange - (70)' in 0ms.
Result: [{"startLine":4,"startCharacter":8,"endLine":6,"endCharacter":7,"kind":"imports"},{"startLine":9,"startCharacter":13,"endLine":18,"endCharacter":2},{"startLine":13,"startCharacter":6,"endLine":17,"endCharacter":36}]

[Trace - 16:58:36.878 PM] Sending request 'textDocument/codeLens - (71)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:36.879 PM] Received response 'textDocument/codeLens - (71)' in 0ms.
Result: {}

[Trace - 16:58:36.978 PM] Sending request 'textDocument/documentSymbol - (72)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:36.979 PM] Received response 'textDocument/documentSymbol - (72)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":9,"character":0},"end":{"line":19,"character":1}},"selectionRange":{"start":{"line":9,"character":5},"end":{"line":9,"character":9}}}]

[Trace - 16:58:37.261 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":19},"contentChanges":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":1}},"rangeLength":0,"text":"m"}]}

[Trace - 16:58:37.264 PM] Sending request 'textDocument/documentHighlight - (73)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":2}}

[Trace - 16:58:37.266 PM] Received response 'textDocument/documentHighlight - (73)' in 1ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"kind":1}]

[Trace - 16:58:37.279 PM] Sending request 'textDocument/completion - (74)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":2},"context":{"triggerKind":1}}

[Trace - 16:58:37.281 PM] Received response 'textDocument/completion - (74)' in 2ms.
Result: {"isIncomplete":true,"items":[{"label":"machine","kind":9,"detail":"\"machine\"","preselect":true,"sortText":"00000","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"machine"}},{"label":"main","kind":3,"detail":"func()","sortText":"00001","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"main()"}},{"label":"make","kind":3,"detail":"func(t Type, size ...int) Type","sortText":"00002","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"make(${1:})"}},{"label":"machine.ADC","kind":22,"detail":"struct{...}","sortText":"00003","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"machine.ADC"}},{"label":"machine.ADC0","kind":21,"detail":"machine.Pin","sortText":"00004","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"machine.ADC0"}},{"label":"machine.ADC1","kind":21,"detail":"machine.Pin","sortText":"00005","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"machine.ADC1"}},{"label":"math","kind":9,"detail":"\"math\"","sortText":"00007","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"math"},"additionalTextEdits":[{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":2}},"newText":"math\"\n\t\""}]},{"label":"md5","kind":9,"detail":"\"crypto/md5\"","sortText":"00008","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"md5"},"additionalTextEdits":[{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":2}},"newText":"crypto/md5\"\n\t\""}]},{"label":"mime","kind":9,"detail":"\"mime\"","sortText":"00009","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"mime"},"additionalTextEdits":[{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":2}},"newText":"mime\"\n\t\""}]},{"label":"multipart","kind":9,"detail":"\"mime/multipart\"","sortText":"00010","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"multipart"},"additionalTextEdits":[{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":2}},"newText":"mime/multipart\"\n\t\""}]},{"label":"machine","kind":9,"detail":"\"machine\"","sortText":"00011","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"newText":"machine"}}]}

[Trace - 16:58:37.330 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Trace - 16:58:37.330 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:37 go/packages.Load\n\tsnapshot=20\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:58:37.331 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":19,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":2}},"severity":1,"source":"compiler","message":"undeclared name: m"}]}

[Info  - 4:58:37 PM] 2020/04/13 16:58:37 go/packages.Load
    snapshot=20
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:37.361 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":20},"contentChanges":[{"range":{"start":{"line":11,"character":2},"end":{"line":11,"character":2}},"rangeLength":0,"text":"a"}]}

[Trace - 16:58:37.361 PM] Sending request 'textDocument/completion - (75)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":3},"context":{"triggerKind":3}}

[Trace - 16:58:37.364 PM] Sending request 'textDocument/documentHighlight - (76)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":3}}

[Trace - 16:58:37.378 PM] Received response 'textDocument/completion - (75)' in 17ms.
Result: {"isIncomplete":true,"items":[{"label":"machine","kind":9,"detail":"\"machine\"","preselect":true,"sortText":"00000","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"machine"}},{"label":"main","kind":3,"detail":"func()","sortText":"00001","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"main()"}},{"label":"make","kind":3,"detail":"func(t Type, size ...int) Type","sortText":"00002","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"make(${1:})"}},{"label":"machine.ADC","kind":22,"detail":"struct{...}","sortText":"00003","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"machine.ADC"}},{"label":"machine.ADC0","kind":21,"detail":"machine.Pin","sortText":"00004","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"machine.ADC0"}},{"label":"machine.ADC1","kind":21,"detail":"machine.Pin","sortText":"00005","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"machine.ADC1"}},{"label":"macho","kind":9,"detail":"\"debug/macho\"","sortText":"00007","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"macho"},"additionalTextEdits":[{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":2}},"newText":"debug/macho\"\n\t\""}]},{"label":"mail","kind":9,"detail":"\"net/mail\"","sortText":"00008","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"mail"},"additionalTextEdits":[{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":2}},"newText":"net/mail\"\n\t\""}]},{"label":"math","kind":9,"detail":"\"math\"","sortText":"00009","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"math"},"additionalTextEdits":[{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":2}},"newText":"math\"\n\t\""}]},{"label":"machine","kind":9,"detail":"\"machine\"","sortText":"00010","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"machine"}},{"label":"mapfs","kind":9,"detail":"\"golang.org/x/tools/godoc/vfs/mapfs\"","sortText":"00011","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"newText":"mapfs"},"additionalTextEdits":[{"range":{"start":{"line":7,"character":0},"end":{"line":7,"character":0}},"newText":"\n\t\"golang.org/x/tools/godoc/vfs/mapfs\"\n"}]}]}

[Trace - 16:58:37.379 PM] Received response 'textDocument/documentHighlight - (76)' in 14ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"kind":1}]

[Trace - 16:58:37.425 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:37 go/packages.Load\n\tsnapshot=21\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:58:37 PM] 2020/04/13 16:58:37 go/packages.Load
    snapshot=21
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:37.425 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Trace - 16:58:37.425 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":20,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":3}},"severity":1,"source":"compiler","message":"undeclared name: ma"}]}

[Trace - 16:58:37.561 PM] Sending request 'textDocument/foldingRange - (77)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:37.561 PM] Received response 'textDocument/foldingRange - (77)' in 0ms.
Result: [{"startLine":4,"startCharacter":8,"endLine":6,"endCharacter":7,"kind":"imports"},{"startLine":9,"startCharacter":13,"endLine":18,"endCharacter":2},{"startLine":13,"startCharacter":6,"endLine":17,"endCharacter":36}]

[Trace - 16:58:37.611 PM] Sending request 'textDocument/codeLens - (78)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:37.611 PM] Received response 'textDocument/codeLens - (78)' in 0ms.
Result: {}

[Trace - 16:58:37.629 PM] Sending request 'textDocument/documentLink - (79)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:37.630 PM] Received response 'textDocument/documentLink - (79)' in 1ms.
Result: [{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":9}},"target":"https://pkg.go.dev/machine"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":6}},"target":"https://pkg.go.dev/time"}]

[Trace - 16:58:37.639 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":21},"contentChanges":[{"range":{"start":{"line":11,"character":3},"end":{"line":11,"character":3}},"rangeLength":0,"text":"c"}]}

[Trace - 16:58:37.639 PM] Sending request 'textDocument/completion - (80)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":4},"context":{"triggerKind":3}}

[Trace - 16:58:37.656 PM] Sending request 'textDocument/documentHighlight - (81)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":4}}

[Trace - 16:58:37.657 PM] Received response 'textDocument/completion - (80)' in 17ms.
Result: {"isIncomplete":true,"items":[{"label":"machine","kind":9,"detail":"\"machine\"","preselect":true,"sortText":"00000","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"newText":"machine"}},{"label":"machine.CPUFrequency","kind":3,"detail":"func() uint32","documentation":"Return the current CPU frequency in hertz.\n","sortText":"00001","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"newText":"machine.CPUFrequency()"}},{"label":"machine.CPUFrequency","kind":3,"detail":"func() uint32 (from \"machine\")","documentation":"Return the current CPU frequency in hertz.\n","sortText":"00002","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"newText":"machine.CPUFrequency()"}},{"label":"machine.ADC","kind":22,"detail":"struct{...}","sortText":"00003","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"newText":"machine.ADC"}},{"label":"macho","kind":9,"detail":"\"debug/macho\"","sortText":"00007","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"newText":"macho"},"additionalTextEdits":[{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":2}},"newText":"debug/macho\"\n\t\""}]},{"label":"machine","kind":9,"detail":"\"machine\"","sortText":"00008","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"newText":"machine"}}]}

[Trace - 16:58:37.657 PM] Received response 'textDocument/documentHighlight - (81)' in 1ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"kind":1}]

[Trace - 16:58:37.697 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":22},"contentChanges":[{"range":{"start":{"line":11,"character":4},"end":{"line":11,"character":4}},"rangeLength":0,"text":"h"}]}

[Trace - 16:58:37.698 PM] Sending request 'textDocument/completion - (82)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":5},"context":{"triggerKind":3}}

[Trace - 16:58:37.715 PM] Sending request 'textDocument/documentHighlight - (83)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":5}}

[Trace - 16:58:37.716 PM] Received response 'textDocument/completion - (82)' in 17ms.
Result: {"isIncomplete":true,"items":[{"label":"machine","kind":9,"detail":"\"machine\"","preselect":true,"sortText":"00000","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"newText":"machine"}},{"label":"machine.ADC","kind":22,"detail":"struct{...}","sortText":"00001","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"newText":"machine.ADC"}},{"label":"machine.ADC0","kind":21,"detail":"machine.Pin","sortText":"00002","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"newText":"machine.ADC0"}},{"label":"machine.ADC1","kind":21,"detail":"machine.Pin","sortText":"00003","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"newText":"machine.ADC1"}},{"label":"macho","kind":9,"detail":"\"debug/macho\"","sortText":"00006","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"newText":"macho"},"additionalTextEdits":[{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":2}},"newText":"debug/macho\"\n\t\""}]},{"label":"machine","kind":9,"detail":"\"machine\"","sortText":"00007","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"newText":"machine"}}]}

[Trace - 16:58:37.716 PM] Received response 'textDocument/documentHighlight - (83)' in 1ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":5}},"kind":1}]

[Trace - 16:58:37.761 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":23},"contentChanges":[{"range":{"start":{"line":11,"character":5},"end":{"line":11,"character":5}},"rangeLength":0,"text":"i"}]}

[Trace - 16:58:37.761 PM] Sending request 'textDocument/completion - (84)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":6},"context":{"triggerKind":3}}

[Trace - 16:58:37.764 PM] Sending request 'textDocument/documentHighlight - (85)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":6}}

[Trace - 16:58:37.781 PM] Received response 'textDocument/completion - (84)' in 19ms.
Result: {"isIncomplete":true,"items":[{"label":"machine","kind":9,"detail":"\"machine\"","preselect":true,"sortText":"00000","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"newText":"machine"}},{"label":"machine.I2C","kind":22,"detail":"struct{...}","documentation":"I2C is a generic implementation of the Inter-IC communication protocol.\n","sortText":"00001","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"newText":"machine.I2C"}},{"label":"machine.I2C0","kind":6,"detail":"machine.I2C","sortText":"00002","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"newText":"machine.I2C0"}},{"label":"machine.I2CConfig","kind":22,"detail":"struct{...}","documentation":"I2CConfig is used to store config info for I2C.\n","sortText":"00003","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"newText":"machine.I2CConfig"}},{"label":"machine","kind":9,"detail":"\"machine\"","sortText":"00009","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"newText":"machine"}}]}

[Trace - 16:58:37.781 PM] Received response 'textDocument/documentHighlight - (85)' in 17ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"kind":1}]

[Trace - 16:58:37.829 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:37 go/packages.Load\n\tsnapshot=24\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:58:37 PM] 2020/04/13 16:58:37 go/packages.Load
    snapshot=24
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:37.829 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Trace - 16:58:37.829 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":23,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":6}},"severity":1,"source":"compiler","message":"undeclared name: machi"}]}

[Trace - 16:58:37.910 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":24},"contentChanges":[{"range":{"start":{"line":11,"character":6},"end":{"line":11,"character":6}},"rangeLength":0,"text":"n"}]}

[Trace - 16:58:37.911 PM] Sending request 'textDocument/completion - (86)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":7},"context":{"triggerKind":3}}

[Trace - 16:58:37.914 PM] Sending request 'textDocument/documentHighlight - (87)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":7}}

[Trace - 16:58:37.931 PM] Received response 'textDocument/completion - (86)' in 20ms.
Result: {"isIncomplete":true,"items":[{"label":"machine","kind":9,"detail":"\"machine\"","preselect":true,"sortText":"00000","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"newText":"machine"}},{"label":"machine.NoPin","kind":21,"detail":"machine.Pin","sortText":"00001","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"newText":"machine.NoPin"}},{"label":"machine.NoPin","kind":21,"detail":"machine.Pin (from \"machine\")","sortText":"00002","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"newText":"machine.NoPin"}},{"label":"machine.InitADC","kind":3,"detail":"func()","documentation":"InitADC enables support for ADC peripherals.\n","sortText":"00003","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"newText":"machine.InitADC()"}},{"label":"machine","kind":9,"detail":"\"machine\"","sortText":"00009","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"newText":"machine"}}]}

[Trace - 16:58:37.931 PM] Received response 'textDocument/documentHighlight - (87)' in 16ms.
Result: [{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"kind":1}]

[Trace - 16:58:37.981 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:37 go/packages.Load\n\tsnapshot=25\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:58:37 PM] 2020/04/13 16:58:37 go/packages.Load
    snapshot=25
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:37.981 PM] Received notification 'window/showMessage'.
Params: {"type":2,"message":"You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new."}

[Trace - 16:58:37.981 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":24,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":7}},"severity":1,"source":"compiler","message":"undeclared name: machin"}]}

[Trace - 16:58:38.036 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":25},"contentChanges":[{"range":{"start":{"line":11,"character":7},"end":{"line":11,"character":7}},"rangeLength":0,"text":"e"}]}

[Trace - 16:58:38.036 PM] Sending request 'textDocument/completion - (88)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":8},"context":{"triggerKind":3}}

[Trace - 16:58:38.048 PM] Sending request 'textDocument/documentHighlight - (89)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":8}}

[Trace - 16:58:38.056 PM] Received response 'textDocument/completion - (88)' in 19ms.
Result: {"isIncomplete":true,"items":[{"label":"machine","kind":9,"detail":"\"machine\"","preselect":true,"sortText":"00000","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"newText":"machine"}},{"label":"machine.ErrInvalidClockPin","kind":6,"detail":"error","sortText":"00001","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"newText":"machine.ErrInvalidClockPin"}},{"label":"machine.ErrInvalidDataPin","kind":6,"detail":"error","sortText":"00002","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"newText":"machine.ErrInvalidDataPin"}},{"label":"machine.ErrInvalidInputPin","kind":6,"detail":"error","sortText":"00003","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"newText":"machine.ErrInvalidInputPin"}},{"label":"machine","kind":9,"detail":"\"machine\"","sortText":"00008","filterText":"machine","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"newText":"machine"}}]}

[Trace - 16:58:38.056 PM] Received response 'textDocument/documentHighlight - (89)' in 8ms.
Result: [{"range":{"start":{"line":5,"character":1},"end":{"line":5,"character":10}},"kind":1},{"range":{"start":{"line":10,"character":8},"end":{"line":10,"character":15}},"kind":1},{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"kind":1},{"range":{"start":{"line":12,"character":15},"end":{"line":12,"character":22}},"kind":1},{"range":{"start":{"line":12,"character":39},"end":{"line":12,"character":46}},"kind":1}]

[Trace - 16:58:38.100 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:38 go/packages.Load\n\tsnapshot=26\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:58:38.100 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":25,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"severity":1,"source":"compiler","message":"use of package machine not in selector"}]}

[Info  - 4:58:38 PM] 2020/04/13 16:58:38 go/packages.Load
    snapshot=26
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:38.211 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":26},"contentChanges":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"rangeLength":7,"text":"machine"}]}

[Trace - 16:58:38.279 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:38 go/packages.Load\n\tsnapshot=27\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:58:38 PM] 2020/04/13 16:58:38 go/packages.Load
    snapshot=27
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:38.355 PM] Sending request 'textDocument/codeAction - (90)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":8},"end":{"line":11,"character":8}},"context":{"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":8}},"message":"use of package machine not in selector","severity":1,"source":"compiler"}]}}

[Trace - 16:58:38.356 PM] Received response 'textDocument/codeAction - (90)' in 1ms.
Result: {}

[Trace - 16:58:38.408 PM] Sending request 'textDocument/foldingRange - (91)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:38.408 PM] Received response 'textDocument/foldingRange - (91)' in 0ms.
Result: [{"startLine":4,"startCharacter":8,"endLine":6,"endCharacter":7,"kind":"imports"},{"startLine":9,"startCharacter":13,"endLine":18,"endCharacter":2},{"startLine":13,"startCharacter":6,"endLine":17,"endCharacter":36}]

[Trace - 16:58:38.458 PM] Sending request 'textDocument/codeLens - (92)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:38.458 PM] Received response 'textDocument/codeLens - (92)' in 0ms.
Result: {}

[Trace - 16:58:38.558 PM] Sending request 'textDocument/documentSymbol - (93)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:38.559 PM] Received response 'textDocument/documentSymbol - (93)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":9,"character":0},"end":{"line":19,"character":1}},"selectionRange":{"start":{"line":9,"character":5},"end":{"line":9,"character":9}}}]

[Trace - 16:58:38.631 PM] Sending request 'textDocument/documentLink - (94)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:38.632 PM] Received response 'textDocument/documentLink - (94)' in 0ms.
Result: [{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":9}},"target":"https://pkg.go.dev/machine"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":6}},"target":"https://pkg.go.dev/time"}]

[Trace - 16:58:39.066 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":27},"contentChanges":[{"range":{"start":{"line":11,"character":8},"end":{"line":11,"character":8}},"rangeLength":0,"text":"."}]}

[Trace - 16:58:39.067 PM] Sending request 'textDocument/completion - (95)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":9},"context":{"triggerKind":2,"triggerCharacter":"."}}

[Trace - 16:58:39.075 PM] Received response 'textDocument/completion - (95)' in 8ms.
Result: {"isIncomplete":true,"items":[{"label":"ADC","kind":22,"detail":"struct{...}","preselect":true,"sortText":"00000","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ADC"}},{"label":"ADC0","kind":21,"detail":"machine.Pin","sortText":"00001","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ADC0"}},{"label":"ADC1","kind":21,"detail":"machine.Pin","sortText":"00002","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ADC1"}},{"label":"ADC2","kind":21,"detail":"machine.Pin","sortText":"00003","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ADC2"}},{"label":"ADC3","kind":21,"detail":"machine.Pin","sortText":"00004","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ADC3"}},{"label":"ADC4","kind":21,"detail":"machine.Pin","sortText":"00005","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ADC4"}},{"label":"ADC5","kind":21,"detail":"machine.Pin","sortText":"00006","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ADC5"}},{"label":"ErrInvalidClockPin","kind":6,"detail":"error","sortText":"00007","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ErrInvalidClockPin"}},{"label":"ErrInvalidDataPin","kind":6,"detail":"error","sortText":"00008","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ErrInvalidDataPin"}},{"label":"ErrInvalidInputPin","kind":6,"detail":"error","sortText":"00009","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ErrInvalidInputPin"}},{"label":"ErrInvalidOutputPin","kind":6,"detail":"error","sortText":"00010","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ErrInvalidOutputPin"}},{"label":"ErrTxInvalidSliceSize","kind":6,"detail":"error","sortText":"00011","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"ErrTxInvalidSliceSize"}},{"label":"I2C","kind":22,"detail":"struct{...}","documentation":"I2C is a generic implementation of the Inter-IC communication protocol.\n","sortText":"00012","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"I2C"}},{"label":"I2C0","kind":6,"detail":"machine.I2C","sortText":"00013","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"I2C0"}},{"label":"I2CConfig","kind":22,"detail":"struct{...}","documentation":"I2CConfig is used to store config info for I2C.\n","sortText":"00014","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"I2CConfig"}},{"label":"LED","kind":21,"detail":"machine.Pin","sortText":"00015","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"LED"}},{"label":"NoPin","kind":21,"detail":"machine.Pin","sortText":"00016","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"NoPin"}},{"label":"PWM","kind":22,"detail":"struct{...}","sortText":"00017","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"PWM"}},{"label":"Pin","kind":7,"detail":"int8","documentation":"Pin is a single pin on a chip, which may be connected to other hardware\ndevices. It can either be used directly as GPIO pin or it can be used in\nother peripherals like ADC, I2C, etc.\n","sortText":"00018","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"Pin"}},{"label":"PinConfig","kind":22,"detail":"struct{...}","sortText":"00019","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"PinConfig"}},{"label":"PinInput","kind":21,"detail":"machine.PinMode","sortText":"00020","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"PinInput"}},{"label":"PinInputPulldown","kind":21,"detail":"machine.PinMode","sortText":"00021","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"PinInputPulldown"}},{"label":"PinInputPullup","kind":21,"detail":"machine.PinMode","sortText":"00022","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"PinInputPullup"}},{"label":"PinMode","kind":7,"detail":"uint8","sortText":"00023","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"PinMode"}},{"label":"PinOutput","kind":21,"detail":"machine.PinMode","sortText":"00024","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"PinOutput"}},{"label":"RingBuffer","kind":22,"detail":"struct{...}","documentation":"RingBuffer is ring buffer implementation inspired by post at\nhttps://www.embeddedrelated.com/showthread/comp.arch.embedded/77084-1.php\n\nIt has some limitations currently due to how \"volatile\" variables that are\nmembers of a struct are not compiled correctly by TinyGo.\nSee https://github.com/tinygo-org/tinygo/issues/151 for details.\n","sortText":"00025","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"RingBuffer"}},{"label":"SPI","kind":22,"detail":"struct{...}","sortText":"00026","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"SPI"}},{"label":"SPI0","kind":6,"detail":"machine.SPI","sortText":"00027","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"SPI0"}},{"label":"SPIConfig","kind":22,"detail":"struct{...}","sortText":"00028","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"SPIConfig"}},{"label":"UART","kind":22,"detail":"struct{...}","sortText":"00029","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"UART"}},{"label":"UART0","kind":6,"detail":"machine.UART","sortText":"00030","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"UART0"}},{"label":"UARTConfig","kind":22,"detail":"struct{...}","sortText":"00031","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"UARTConfig"}},{"label":"UART_RX_PIN","kind":21,"detail":"machine.Pin","sortText":"00032","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"UART_RX_PIN"}},{"label":"UART_TX_PIN","kind":21,"detail":"machine.Pin","sortText":"00033","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"UART_TX_PIN"}},{"label":"CPUFrequency","kind":3,"detail":"func() uint32","documentation":"Return the current CPU frequency in hertz.\n","sortText":"00034","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"CPUFrequency()"}},{"label":"InitADC","kind":3,"detail":"func()","documentation":"InitADC enables support for ADC peripherals.\n","sortText":"00035","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"InitADC()"}},{"label":"InitPWM","kind":3,"detail":"func()","documentation":"InitPWM enables support for PWM peripherals.\n","sortText":"00036","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"InitPWM()"}},{"label":"NewRingBuffer","kind":3,"detail":"func() *machine.RingBuffer","documentation":"NewRingBuffer returns a new ring buffer.\n","sortText":"00037","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"NewRingBuffer()"}},{"label":"I2C0.Bus","kind":5,"detail":"uint8","documentation":"I2C is a generic implementation of the Inter-IC communication protocol.\n","sortText":"00038","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"I2C0.Bus"}},{"label":"SPI0.Bus","kind":5,"detail":"uint8","sortText":"00039","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"SPI0.Bus"}},{"label":"UART0.Bus","kind":5,"detail":"uint8","sortText":"00040","filterText":"ADC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"newText":"UART0.Bus"}}]}

[Trace - 16:58:39.132 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:39 go/packages.Load\n\tsnapshot=28\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:58:39.132 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":27,"diagnostics":[{"range":{"start":{"line":12,"character":1},"end":{"line":12,"character":14}},"severity":1,"source":"compiler","message":"led not declared by package machine"}]}

[Info  - 4:58:39 PM] 2020/04/13 16:58:39 go/packages.Load
    snapshot=28
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:39.264 PM] Sending request 'textDocument/foldingRange - (96)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:39.265 PM] Received response 'textDocument/foldingRange - (96)' in 0ms.
Result: [{"startLine":4,"startCharacter":8,"endLine":6,"endCharacter":7,"kind":"imports"},{"startLine":9,"startCharacter":13,"endLine":18,"endCharacter":2},{"startLine":13,"startCharacter":6,"endLine":17,"endCharacter":36}]

[Trace - 16:58:39.315 PM] Sending request 'textDocument/codeLens - (97)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:39.315 PM] Received response 'textDocument/codeLens - (97)' in 0ms.
Result: {}

[Trace - 16:58:39.387 PM] Sending request 'textDocument/codeAction - (98)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"context":{"diagnostics":[]}}

[Trace - 16:58:39.388 PM] Received response 'textDocument/codeAction - (98)' in 1ms.
Result: {}

[Trace - 16:58:39.414 PM] Sending request 'textDocument/documentSymbol - (99)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:39.415 PM] Received response 'textDocument/documentSymbol - (99)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":9,"character":0},"end":{"line":19,"character":1}},"selectionRange":{"start":{"line":9,"character":5},"end":{"line":9,"character":9}}}]

[Trace - 16:58:39.508 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":28},"contentChanges":[{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":9}},"rangeLength":0,"text":"L"}]}

[Trace - 16:58:39.508 PM] Sending request 'textDocument/completion - (100)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":10},"context":{"triggerKind":3}}

[Trace - 16:58:39.509 PM] Received response 'textDocument/completion - (100)' in 1ms.
Result: {"isIncomplete":true,"items":[{"label":"LED","kind":21,"detail":"machine.Pin","preselect":true,"sortText":"00000","filterText":"LED","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":10}},"newText":"LED"}},{"label":"ADC0.Low","kind":2,"detail":"func()","documentation":"Low sets this GPIO pin to low, assuming it has been configured as an output\npin. It is hardware dependent (and often undefined) what happens if you set a\npin to low that is not configured as an output pin.\n","sortText":"00001","filterText":"LED","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":10}},"newText":"ADC0.Low()"}},{"label":"ADC1.Low","kind":2,"detail":"func()","documentation":"Low sets this GPIO pin to low, assuming it has been configured as an output\npin. It is hardware dependent (and often undefined) what happens if you set a\npin to low that is not configured as an output pin.\n","sortText":"00002","filterText":"LED","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":10}},"newText":"ADC1.Low()"}},{"label":"ADC2.Low","kind":2,"detail":"func()","documentation":"Low sets this GPIO pin to low, assuming it has been configured as an output\npin. It is hardware dependent (and often undefined) what happens if you set a\npin to low that is not configured as an output pin.\n","sortText":"00003","filterText":"LED","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":10}},"newText":"ADC2.Low()"}}]}

[Trace - 16:58:39.511 PM] Sending request 'textDocument/documentHighlight - (101)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":10}}

[Trace - 16:58:39.512 PM] Received response 'textDocument/documentHighlight - (101)' in 0ms.
Result: [{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":10}},"kind":1}]

[Trace - 16:58:39.573 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":28,"diagnostics":[{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":10}},"severity":1,"source":"compiler","message":"L not declared by package machine"}]}

[Trace - 16:58:39.573 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:39 go/packages.Load\n\tsnapshot=29\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:58:39 PM] 2020/04/13 16:58:39 go/packages.Load
    snapshot=29
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:39.612 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":29},"contentChanges":[{"range":{"start":{"line":11,"character":10},"end":{"line":11,"character":10}},"rangeLength":0,"text":"E"}]}

[Trace - 16:58:39.612 PM] Sending request 'textDocument/completion - (102)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":11},"context":{"triggerKind":3}}

[Trace - 16:58:39.615 PM] Received response 'textDocument/completion - (102)' in 2ms.
Result: {"isIncomplete":true,"items":[{"label":"LED","kind":21,"detail":"machine.Pin","preselect":true,"sortText":"00000","filterText":"LED","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":11}},"newText":"LED"}},{"label":"LED.Configure","kind":2,"detail":"func(config PinConfig)","sortText":"00001","filterText":"LED","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":11}},"newText":"LED.Configure(${1:})"}},{"label":"LED.Get","kind":2,"detail":"func() bool","sortText":"00002","filterText":"LED","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":11}},"newText":"LED.Get()"}},{"label":"LED.High","kind":2,"detail":"func()","documentation":"High sets this GPIO pin to high, assuming it has been configured as an output\npin. It is hardware dependent (and often undefined) what happens if you set a\npin to high that is not configured as an output pin.\n","sortText":"00003","filterText":"LED","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":11}},"newText":"LED.High()"}}]}

[Trace - 16:58:39.629 PM] Sending request 'textDocument/documentHighlight - (103)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":11}}

[Trace - 16:58:39.630 PM] Received response 'textDocument/documentHighlight - (103)' in 0ms.
Result: [{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":11}},"kind":1}]

[Trace - 16:58:39.677 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:39 go/packages.Load\n\tsnapshot=30\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:58:39.677 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":29,"diagnostics":[{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":11}},"severity":1,"source":"compiler","message":"LE not declared by package machine"}]}

[Info  - 4:58:39 PM] 2020/04/13 16:58:39 go/packages.Load
    snapshot=30
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:39.759 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":30},"contentChanges":[{"range":{"start":{"line":11,"character":11},"end":{"line":11,"character":11}},"rangeLength":0,"text":"D"}]}

[Trace - 16:58:39.760 PM] Sending request 'textDocument/completion - (104)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":12},"context":{"triggerKind":3}}

[Trace - 16:58:39.762 PM] Received response 'textDocument/completion - (104)' in 2ms.
Result: {"isIncomplete":true,"items":[{"label":"LED","kind":21,"detail":"machine.Pin","preselect":true,"sortText":"00000","filterText":"LED","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":12}},"newText":"LED"}},{"label":"LED.Configure","kind":2,"detail":"func(config PinConfig)","sortText":"00001","filterText":"LED","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":12}},"newText":"LED.Configure(${1:})"}},{"label":"LED.Get","kind":2,"detail":"func() bool","sortText":"00002","filterText":"LED","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":12}},"newText":"LED.Get()"}},{"label":"LED.High","kind":2,"detail":"func()","documentation":"High sets this GPIO pin to high, assuming it has been configured as an output\npin. It is hardware dependent (and often undefined) what happens if you set a\npin to high that is not configured as an output pin.\n","sortText":"00003","filterText":"LED","insertTextFormat":2,"textEdit":{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":12}},"newText":"LED.High()"}}]}

[Trace - 16:58:39.780 PM] Sending request 'textDocument/documentHighlight - (105)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":12}}

[Trace - 16:58:39.781 PM] Received response 'textDocument/documentHighlight - (105)' in 0ms.
Result: [{"range":{"start":{"line":10,"character":16},"end":{"line":10,"character":19}},"kind":1},{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":12}},"kind":1}]

[Trace - 16:58:39.817 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:39 go/packages.Load\n\tsnapshot=31\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Trace - 16:58:39.817 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":30,"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":12}},"severity":1,"source":"compiler","message":"machine.LED (constant 13 of type machine.Pin) is not used"}]}

[Info  - 4:58:39 PM] 2020/04/13 16:58:39 go/packages.Load
    snapshot=31
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:39.958 PM] Sending request 'textDocument/foldingRange - (106)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:39.958 PM] Received response 'textDocument/foldingRange - (106)' in 0ms.
Result: [{"startLine":4,"startCharacter":8,"endLine":6,"endCharacter":7,"kind":"imports"},{"startLine":9,"startCharacter":13,"endLine":18,"endCharacter":2},{"startLine":13,"startCharacter":6,"endLine":17,"endCharacter":36}]

[Trace - 16:58:40.008 PM] Sending request 'textDocument/codeLens - (107)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:40.008 PM] Received response 'textDocument/codeLens - (107)' in 0ms.
Result: {}

[Trace - 16:58:40.065 PM] Sending request 'textDocument/documentLink - (108)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:40.066 PM] Received response 'textDocument/documentLink - (108)' in 1ms.
Result: [{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":9}},"target":"https://pkg.go.dev/machine"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":6}},"target":"https://pkg.go.dev/time"}]

[Trace - 16:58:40.071 PM] Sending request 'textDocument/codeAction - (109)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":12},"end":{"line":11,"character":12}},"context":{"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":12}},"message":"machine.LED (constant 13 of type machine.Pin) is not used","severity":1,"source":"compiler"}]}}

[Trace - 16:58:40.072 PM] Received response 'textDocument/codeAction - (109)' in 0ms.
Result: {}

[Trace - 16:58:40.108 PM] Sending request 'textDocument/documentSymbol - (110)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:40.108 PM] Received response 'textDocument/documentSymbol - (110)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":9,"character":0},"end":{"line":19,"character":1}},"selectionRange":{"start":{"line":9,"character":5},"end":{"line":9,"character":9}}}]

[Trace - 16:58:40.479 PM] Sending request 'textDocument/documentHighlight - (111)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":11}}

[Trace - 16:58:40.479 PM] Received response 'textDocument/documentHighlight - (111)' in 0ms.
Result: [{"range":{"start":{"line":11,"character":9},"end":{"line":11,"character":12}},"kind":1},{"range":{"start":{"line":10,"character":16},"end":{"line":10,"character":19}},"kind":1}]

[Trace - 16:58:40.716 PM] Sending request 'textDocument/codeAction - (112)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":11},"end":{"line":11,"character":11}},"context":{"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":12}},"message":"machine.LED (constant 13 of type machine.Pin) is not used","severity":1,"source":"compiler"}]}}

[Trace - 16:58:40.717 PM] Received response 'textDocument/codeAction - (112)' in 0ms.
Result: {}

[Trace - 16:58:40.940 PM] Sending request 'textDocument/codeAction - (113)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":0,"character":0},"end":{"line":20,"character":0}},"context":{"diagnostics":[{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":12}},"message":"machine.LED (constant 13 of type machine.Pin) is not used","severity":1,"source":"compiler"}]}}

[Trace - 16:58:40.941 PM] Received response 'textDocument/codeAction - (113)' in 0ms.
Result: {}

[Trace - 16:58:40.944 PM] Sending request 'textDocument/formatting - (114)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"options":{"tabSize":4,"insertSpaces":false}}

[Trace - 16:58:40.945 PM] Received response 'textDocument/formatting - (114)' in 1ms.
Result: []

[Trace - 16:58:40.970 PM] Sending notification 'textDocument/didSave'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":30}}

[Trace - 16:58:41.033 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:41 go/packages.Load\n\tsnapshot=32\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:58:41 PM] 2020/04/13 16:58:41 go/packages.Load
    snapshot=32
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:41.252 PM] Sending notification 'workspace/didChangeWatchedFiles'.
Params: {"changes":[{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","type":2}]}

[Trace - 16:58:41.358 PM] Sending request 'textDocument/documentHighlight - (115)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":12,"character":11}}

[Trace - 16:58:41.359 PM] Received response 'textDocument/documentHighlight - (115)' in 0ms.
Result: [{"range":{"start":{"line":12,"character":5},"end":{"line":12,"character":14}},"kind":1}]

[Trace - 16:58:41.608 PM] Sending request 'textDocument/codeAction - (116)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":12,"character":11},"end":{"line":12,"character":11}},"context":{"diagnostics":[]}}

[Trace - 16:58:41.609 PM] Received response 'textDocument/codeAction - (116)' in 0ms.
Result: {}

[Trace - 16:58:42.683 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":31},"contentChanges":[{"range":{"start":{"line":11,"character":0},"end":{"line":12,"character":0}},"rangeLength":13,"text":""}]}

[Trace - 16:58:42.692 PM] Sending request 'textDocument/documentHighlight - (117)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"position":{"line":11,"character":1}}

[Trace - 16:58:42.693 PM] Received response 'textDocument/documentHighlight - (117)' in 1ms.
Result: [{"range":{"start":{"line":10,"character":1},"end":{"line":10,"character":4}},"kind":1},{"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":4}},"kind":1},{"range":{"start":{"line":13,"character":2},"end":{"line":13,"character":5}},"kind":1},{"range":{"start":{"line":15,"character":2},"end":{"line":15,"character":5}},"kind":1}]

[Trace - 16:58:42.742 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:42 go/packages.Load\n\tsnapshot=33\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:58:42 PM] 2020/04/13 16:58:42 go/packages.Load
    snapshot=33
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:42.743 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":31,"diagnostics":[]}

[Trace - 16:58:42.883 PM] Sending request 'textDocument/foldingRange - (118)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:42.883 PM] Received response 'textDocument/foldingRange - (118)' in 0ms.
Result: [{"startLine":4,"startCharacter":8,"endLine":6,"endCharacter":7,"kind":"imports"},{"startLine":9,"startCharacter":13,"endLine":17,"endCharacter":2},{"startLine":12,"startCharacter":6,"endLine":16,"endCharacter":36}]

[Trace - 16:58:42.936 PM] Sending request 'textDocument/codeLens - (119)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:42.937 PM] Received response 'textDocument/codeLens - (119)' in 0ms.
Result: {}

[Trace - 16:58:42.997 PM] Sending request 'textDocument/codeAction - (120)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":11,"character":1},"end":{"line":11,"character":1}},"context":{"diagnostics":[]}}

[Trace - 16:58:42.998 PM] Received response 'textDocument/codeAction - (120)' in 0ms.
Result: {}

[Trace - 16:58:43.033 PM] Sending request 'textDocument/documentSymbol - (121)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:43.034 PM] Received response 'textDocument/documentSymbol - (121)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":9,"character":0},"end":{"line":18,"character":1}},"selectionRange":{"start":{"line":9,"character":5},"end":{"line":9,"character":9}}}]

[Trace - 16:58:43.310 PM] Sending request 'textDocument/codeAction - (122)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":0,"character":0},"end":{"line":19,"character":0}},"context":{"diagnostics":[]}}

[Trace - 16:58:43.311 PM] Received response 'textDocument/codeAction - (122)' in 0ms.
Result: {}

[Trace - 16:58:43.314 PM] Sending request 'textDocument/formatting - (123)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"options":{"tabSize":4,"insertSpaces":false}}

[Trace - 16:58:43.315 PM] Received response 'textDocument/formatting - (123)' in 0ms.
Result: []

[Trace - 16:58:43.348 PM] Sending notification 'textDocument/didSave'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","version":31}}

[Trace - 16:58:43.419 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:58:43 go/packages.Load\n\tsnapshot=34\n\tdirectory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo\n\tquery=[./]\n\tpackages=1"}

[Info  - 4:58:43 PM] 2020/04/13 16:58:43 go/packages.Load
    snapshot=34
    directory=/home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo
    query=[./]
    packages=1
[Trace - 16:58:43.621 PM] Sending notification 'workspace/didChangeWatchedFiles'.
Params: {"changes":[{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go","type":2}]}

[Trace - 16:58:43.683 PM] Sending request 'textDocument/documentLink - (124)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 16:58:43.684 PM] Received response 'textDocument/documentLink - (124)' in 1ms.
Result: [{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":9}},"target":"https://pkg.go.dev/machine"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":6}},"target":"https://pkg.go.dev/time"}]

[Trace - 16:58:51.795 PM] Sending request 'textDocument/codeAction - (125)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":9,"character":12},"end":{"line":9,"character":12}},"context":{"diagnostics":[]}}

[Trace - 16:58:51.796 PM] Received response 'textDocument/codeAction - (125)' in 0ms.
Result: {}

[Trace - 16:59:02.957 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:59:02 background imports cache refresh starting"}

[Info  - 4:59:02 PM] 2020/04/13 16:59:02 background imports cache refresh starting
[Trace - 16:59:02.970 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 16:59:02 background refresh finished after 13.079844ms"}

[Info  - 4:59:02 PM] 2020/04/13 16:59:02 background refresh finished after 13.079844ms
[Trace - 17:05:05.958 PM] Sending request 'textDocument/documentLink - (126)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 17:05:05.959 PM] Sending request 'textDocument/codeAction - (127)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}

[Trace - 17:05:05.959 PM] Received response 'textDocument/documentLink - (126)' in 1ms.
Result: [{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":9}},"target":"https://pkg.go.dev/machine"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":6}},"target":"https://pkg.go.dev/time"}]

[Trace - 17:05:05.960 PM] Received response 'textDocument/codeAction - (127)' in 1ms.
Result: {}

[Trace - 17:05:05.961 PM] Sending request 'textDocument/documentSymbol - (128)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 17:05:05.962 PM] Received response 'textDocument/documentSymbol - (128)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":9,"character":0},"end":{"line":18,"character":1}},"selectionRange":{"start":{"line":9,"character":5},"end":{"line":9,"character":9}}}]

[Trace - 17:05:06.121 PM] Sending request 'textDocument/foldingRange - (129)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 17:05:06.122 PM] Received response 'textDocument/foldingRange - (129)' in 0ms.
Result: [{"startLine":4,"startCharacter":8,"endLine":6,"endCharacter":7,"kind":"imports"},{"startLine":9,"startCharacter":13,"endLine":17,"endCharacter":2},{"startLine":12,"startCharacter":6,"endLine":16,"endCharacter":36}]

[Trace - 17:05:06.171 PM] Sending request 'textDocument/codeLens - (130)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 17:05:06.171 PM] Received response 'textDocument/codeLens - (130)' in 0ms.
Result: {}

[Trace - 17:05:06.179 PM] Sending request 'textDocument/codeAction - (131)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":9,"character":12},"end":{"line":9,"character":12}},"context":{"diagnostics":[]}}

[Trace - 17:05:06.180 PM] Received response 'textDocument/codeAction - (131)' in 0ms.
Result: {}

[Trace - 17:05:27.350 PM] Sending request 'textDocument/documentLink - (132)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 17:05:27.351 PM] Sending request 'textDocument/codeAction - (133)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}

[Trace - 17:05:27.351 PM] Received response 'textDocument/documentLink - (132)' in 0ms.
Result: [{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":9}},"target":"https://pkg.go.dev/machine"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":6}},"target":"https://pkg.go.dev/time"}]

[Trace - 17:05:27.352 PM] Sending request 'textDocument/documentSymbol - (134)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 17:05:27.352 PM] Received response 'textDocument/codeAction - (133)' in 1ms.
Result: {}

[Trace - 17:05:27.353 PM] Received response 'textDocument/documentSymbol - (134)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":9,"character":0},"end":{"line":18,"character":1}},"selectionRange":{"start":{"line":9,"character":5},"end":{"line":9,"character":9}}}]

[Trace - 17:05:27.525 PM] Sending request 'textDocument/foldingRange - (135)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 17:05:27.526 PM] Received response 'textDocument/foldingRange - (135)' in 0ms.
Result: [{"startLine":4,"startCharacter":8,"endLine":6,"endCharacter":7,"kind":"imports"},{"startLine":9,"startCharacter":13,"endLine":17,"endCharacter":2},{"startLine":12,"startCharacter":6,"endLine":16,"endCharacter":36}]

[Trace - 17:05:27.573 PM] Sending request 'textDocument/codeLens - (136)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"}}

[Trace - 17:05:27.573 PM] Received response 'textDocument/codeLens - (136)' in 0ms.
Result: {}

[Trace - 17:05:27.591 PM] Sending request 'textDocument/codeAction - (137)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":9,"character":12},"end":{"line":9,"character":12}},"context":{"diagnostics":[]}}

[Trace - 17:05:27.592 PM] Received response 'textDocument/codeAction - (137)' in 0ms.
Result: {}

[Trace - 17:05:28.088 PM] Sending request 'textDocument/codeAction - (138)'.
Params: {"textDocument":{"uri":"file:///home/bus710/repo/flutter-webbluetooth/src/nano33-iot-tinygo/main.go"},"range":{"start":{"line":4,"character":7},"end":{"line":4,"character":7}},"context":{"diagnostics":[]}}

[Trace - 17:05:28.088 PM] Received response 'textDocument/codeAction - (138)' in 0ms.
Result: {}

[Trace - 17:05:35.960 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 17:05:35 background imports cache refresh starting"}

[Info  - 5:05:35 PM] 2020/04/13 17:05:35 background imports cache refresh starting
[Trace - 17:05:35.972 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/04/13 17:05:35 background refresh finished after 11.681513ms"}

[Info  - 5:05:35 PM] 2020/04/13 17:05:35 background refresh finished after 11.681513ms
bus710 commented 4 years ago

I know that the message You are neither in a module nor in your GOPATH is showing because I don't have go.mod in general but...

If I create a go.mod file for the project, it shows package not found warning. If I add redirect/require in that go.mod file, code completion doesn't work. Thus, I eventually deleted the go.mod to disable go module feature.

So, we may need a way to disable the warning when there is no go.mod file or...?

hyangah commented 4 years ago

Thanks @bus710 again. From the trace, I can tell that

GOPATH="/usr/local/tinygo:/home/bus710/go" And your workspace directory is /home/bus710/repo/flutter-webbluetooth/... which is outside of any of the GOPATH.

You are operating in the GOPATH mode, so please make sure to place your project directory under one of the GOPATH/src. In this specific case, under /home/bus710/go/src directory.


gopls works both in GOPATH mode and modules mode.

If there is no go.mod file and GO111MODULE env var is not on, gopls and also the go command expect to work in the GOPATH mode. In the GOPATH mode, the repository should be located inside the GOPATH mode.

The go.mod file makes sense only in the module mode. In the module mode, the go command and gopls retrieve dependencies from the module cache. I don't know if tinygo is compatible with modules mode yet.


I think this is working as intended. Thanks again for the report!

bus710 commented 4 years ago

Right, I see the point that I haven't thought a while since I started using modules. Thanks for your advise! Let me close this.