Skip to content

underclared variable errrors, code compiles fine #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
iisharankov opened this issue Jun 1, 2020 · 22 comments
Closed

underclared variable errrors, code compiles fine #145

iisharankov opened this issue Jun 1, 2020 · 22 comments

Comments

@iisharankov
Copy link

go version
go version go1.14.2 linux/amd64

'code -v'

1.44.2
ff915844119ce9485abfe8aa9076ec76b5300ddd
x64

Version of the VS Code Go extension
0.14.3

Go env:

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/ivan/.cache/go-build"
GOENV="/home/ivan/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/ivan/go:/home/ivan/goworkspace"
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"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
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 -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build286948429=/tmp/uild -gno-record-gcc-switches"

Share the Go related settings you have added/edited

Run Preferences: Open Settings (JSON) command to open your settings.json file.

{
    "window.zoomLevel": 1,
    "go.useLanguageServer": true,
    "files.autoSave": "afterDelay",
    "go.delveConfig": {
    
    },
    "go.coverOnTestPackage": false,
    "go.languageServerExperimentalFeatures": {
    
    },
    "launch": {

    },
    "go.languageServerFlags": [

    ]
}

Describe the bug

Red underlines under variables and functions that are clearly defined in other .go files in the same directory. Tried both upper and lowercase names. Everything compiles fine, go installs fine, go builds fine, nothing is wrong but red lines riddle every function/variable not defined in that exact file.

I reinstalled Go language support for VSCode multiple times, no lines then (obviously), but on every reinstall I get the behaviour. Reloading VSCode does not fix these false errors showing up.

Steps to reproduce the behavior:

Mak

  1. Make a file, create a variable/function in it
  2. Make a second file in the same directory and try to call the first one
  3. Package compiles fine and variable is seen by Go, but the extension keeps saying it's undeclared with a red line.
  4. Reloading, saving, building, compiling, running, reinstalling does not fix this.

Screenshots or recordings

Very similar to this issue, but no "@" anywhere in any path, so I couldn't find a way to fix it: microsoft/vscode-go#2858

Sometimes reloading does fix it for one file (say endpoints.go), but then main.go can't recognize the functions in endpoints.go now!

Apologies for some blocked out sections, would like to keep the repo private
go_broken

Imported structs/variables from repos are detected fine. This is just local. Is my path set wrong somehow? Everything compiles fine and runs as expected, so this is just the highlighting that is having an issue. Very frustrating because my code says i have dozens of errors when I have none, and finding real ones is difficult without proper highlighting.

Is it from the two different gopaths? I can't imagne that's it. /go holds go libraries and repos installed, while /goworkspace holds my projects and code i work on, just to seperate the executables and builds in /bin.

@hyangah
Copy link
Contributor

hyangah commented Jun 1, 2020

@iisharankov can you please capture the gopls log following the instruction in https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md#vs-code ?
It's ok to redact info related to the confidential package paths and code contents included in the trace, but leave necessary error messages.

@iisharankov
Copy link
Author

I believe this is what you were looking for? Apologies for the log vomit:

Params: {"processId":123362,"clientInfo":{"name":"vscode","version":"1.44.2"},"rootPath":"/home/ivan/goworkspace","rootUri":"file:///home/ivan/goworkspace","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,"versionSupport":false,"tagSupport":{"valueSet":[1,2]}},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]}},"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}},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":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,"tooltipSupport":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},"selectionRange":{"dynamicRegistration":true}},"window":{"workDoneProgress":true}},"initializationOptions":{},"trace":"off","workspaceFolders":[{"uri":"file:///home/ivan/goworkspace","name":"goworkspace"}]}


[Trace - 15:59:24.444 PM] Received response 'initialize - (0)' in 4ms.
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":"gopls","version":"Build info\n----------\ngolang.org/x/tools/gopls 0.4.1\n    golang.org/x/tools/[email protected] h1:0e3BPxGV4B3cd0zdMuccwW72SgmHp92lAjOyxX/ScAw=\n    github.com/BurntSushi/[email protected] h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=\n    github.com/sergi/[email protected] h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=\n    golang.org/x/[email protected] h1:KU7oHjnv3XNWfa5COkzUifxZmxp1TyI7ImMXqFxLwvQ=\n    golang.org/x/[email protected] h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=\n    golang.org/x/[email protected] h1:e7nYe9s94RHunFJ7b+mmPxiQMOKMVSqYASToWb1EcHs=\n    golang.org/x/[email protected] h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=\n    honnef.co/go/[email protected] h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=\n    mvdan.cc/xurls/[email protected] h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=\n\nGo info\n-------\ngo version go1.14.2 linux/amd64\n\n"}}


[Trace - 15:59:24.446 PM] Sending notification 'initialized'.
Params: {}


[Trace - 15:59:24.446 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 - 15:59:24.446 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go","languageId":"go","version":1,"text":"CODE_REDACTED"}}


[Trace - 15:59:24.454 PM] Sending response 'client/registerCapability - (1)' in 7ms.
Result: 


[Trace - 15:59:24.458 PM] Received request 'workspace/configuration - (2)'.
Params: {"items":[{"scopeUri":"file:///home/ivan/goworkspace","section":"gopls"},{"scopeUri":"file:///home/ivan/goworkspace","section":"gopls-goworkspace"}]}


[Trace - 15:59:24.458 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:24 Build info\n----------\ngolang.org/x/tools/gopls 0.4.1\n    golang.org/x/tools/[email protected] h1:0e3BPxGV4B3cd0zdMuccwW72SgmHp92lAjOyxX/ScAw=\n    github.com/BurntSushi/[email protected] h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=\n    github.com/sergi/[email protected] h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=\n    golang.org/x/[email protected] h1:KU7oHjnv3XNWfa5COkzUifxZmxp1TyI7ImMXqFxLwvQ=\n    golang.org/x/[email protected] h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=\n    golang.org/x/[email protected] h1:e7nYe9s94RHunFJ7b+mmPxiQMOKMVSqYASToWb1EcHs=\n    golang.org/x/[email protected] h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=\n    honnef.co/go/[email protected] h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=\n    mvdan.cc/xurls/[email protected] h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=\n\nGo info\n-------\ngo version go1.14.2 linux/amd64\n\n\n"}


[Trace - 15:59:24.459 PM] Sending response 'workspace/configuration - (2)' in 1ms.
Result: [null,null]


[Info  - 3:59:24 p.m.] 2020/06/01 15:59:24 Build info
----------
golang.org/x/tools/gopls 0.4.1
    golang.org/x/tools/[email protected] h1:0e3BPxGV4B3cd0zdMuccwW72SgmHp92lAjOyxX/ScAw=
    github.com/BurntSushi/[email protected] h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
    github.com/sergi/[email protected] h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
    golang.org/x/[email protected] h1:KU7oHjnv3XNWfa5COkzUifxZmxp1TyI7ImMXqFxLwvQ=
    golang.org/x/[email protected] h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=
    golang.org/x/[email protected] h1:e7nYe9s94RHunFJ7b+mmPxiQMOKMVSqYASToWb1EcHs=
    golang.org/x/[email protected] h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
    honnef.co/go/[email protected] h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=
    mvdan.cc/xurls/[email protected] h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=

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



[Trace - 15:59:24.525 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:24 go/packages.Load\n\tsnapshot=0\n\tdirectory=/home/ivan/goworkspace\n\tquery=[./ builtin]\n\tpackages=2\n"}


[Info  - 3:59:24 p.m.] 2020/06/01 15:59:24 go/packages.Load
	snapshot=0
	directory=/home/ivan/goworkspace
	query=[./ builtin]
	packages=2

[Trace - 15:59:24.553 PM] Sending request 'textDocument/documentSymbol - (1)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go"}}


[Trace - 15:59:24.554 PM] Sending request 'textDocument/codeAction - (2)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go"},"range":{"start":{"line":37,"character":41},"end":{"line":37,"character":41}},"context":{"diagnostics":[]}}


[Trace - 15:59:24.556 PM] Sending request 'textDocument/documentLink - (3)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go"}}


[Trace - 15:59:24.581 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:24 go env for /home/ivan/goworkspace\n(valid build configuration = false)\n(build flags: [])\nGO111MODULE=\"\"\nGOARCH=\"amd64\"\nGOBIN=\"\"\nGOCACHE=\"/home/ivan/.cache/go-build\"\nGOENV=\"/home/ivan/.config/go/env\"\nGOEXE=\"\"\nGOFLAGS=\"\"\nGOHOSTARCH=\"amd64\"\nGOHOSTOS=\"linux\"\nGOINSECURE=\"\"\nGONOPROXY=\"\"\nGONOSUMDB=\"\"\nGOOS=\"linux\"\nGOPATH=\"/home/ivan/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\"\nAR=\"ar\"\nCC=\"gcc\"\nCXX=\"g++\"\nCGO_ENABLED=\"1\"\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 -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build832513029=/tmp/go-build -gno-record-gcc-switches\"\n\n"}


[Info  - 3:59:24 p.m.] 2020/06/01 15:59:24 go env for /home/ivan/goworkspace
(valid build configuration = false)
(build flags: [])
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/ivan/.cache/go-build"
GOENV="/home/ivan/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/ivan/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"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
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 -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build832513029=/tmp/go-build -gno-record-gcc-switches"


[Trace - 15:59:24.611 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:24 go/packages.Load\n\tsnapshot=0\n\tdirectory=/home/ivan/goworkspace\n\tquery=[./]\n\tpackages=1\n"}


[Trace - 15:59:24.621 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:24 go/packages.Load\n\tsnapshot=1\n\tdirectory=/home/ivan/goworkspace\n\tquery=[./]\n\tpackages=1\n"}


[Info  - 3:59:24 p.m.] 2020/06/01 15:59:24 go/packages.Load
	snapshot=0
	directory=/home/ivan/goworkspace
	query=[./]
	packages=1

[Info  - 3:59:24 p.m.] 2020/06/01 15:59:24 go/packages.Load
	snapshot=1
	directory=/home/ivan/goworkspace
	query=[./]
	packages=1

[Trace - 15:59:24.659 PM] Sending notification '$/cancelRequest'.
Params: {"id":2}


[Trace - 15:59:24.660 PM] Sending request 'textDocument/codeAction - (4)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go"},"range":{"start":{"line":37,"character":41},"end":{"line":37,"character":41}},"context":{"diagnostics":[]}}


[Trace - 15:59:24.660 PM] Sending notification '$/cancelRequest'.
Params: {"id":4}


[Trace - 15:59:24.662 PM] Sending request 'textDocument/codeAction - (5)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go"},"range":{"start":{"line":37,"character":41},"end":{"line":37,"character":41}},"context":{"diagnostics":[]}}


[Trace - 15:59:24.706 PM] Sending request 'textDocument/foldingRange - (6)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go"}}


[Trace - 15:59:24.753 PM] Sending request 'textDocument/codeLens - (7)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go"}}


[Trace - 15:59:24.906 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:24 go/packages.Load\n\tsnapshot=1\n\tdirectory=/home/ivan/goworkspace\n\tquery=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go]\n\tpackages=1\n"}


[Trace - 15:59:24.906 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:24 go/packages.Load\n\tsnapshot=1\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go]\n"}


[Info  - 3:59:24 p.m.] 2020/06/01 15:59:24 go/packages.Load
	snapshot=1
	directory=/home/ivan/goworkspace
	query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go]
	packages=1

[Info  - 3:59:24 p.m.] 2020/06/01 15:59:24 go/packages.Load
	snapshot=1
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go]

[Trace - 15:59:24.993 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:24 go/packages.Load\n\tsnapshot=1\n\tdirectory=/home/ivan/goworkspace\n\tquery=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go]\n\tpackages=1\n"}


[Info  - 3:59:24 p.m.] 2020/06/01 15:59:24 go/packages.Load
	snapshot=1
	directory=/home/ivan/goworkspace
	query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go]
	packages=1

[Trace - 15:59:24.993 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:24 go/packages.Load\n\tsnapshot=1\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go]\n"}


[Info  - 3:59:24 p.m.] 2020/06/01 15:59:24 go/packages.Load
	snapshot=1
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go]

[Trace - 15:59:25.272 PM] Received response 'textDocument/documentSymbol - (1)' in 719ms.
Result: [{"name":"begOfYear","detail":"time.Time","kind":13,"range":{"start":{"line":10,"character":0},"end":{"line":10,"character":82}},"selectionRange":{"start":{"line":10,"character":4},"end":{"line":10,"character":13}}},{"name":"embeddedStruct","detail":"struct{...}","kind":23,"range":{"start":{"line":13,"character":5},"end":{"line":16,"character":1}},"selectionRange":{"start":{"line":13,"character":5},"end":{"line":13,"character":30}},"children":[{"name":"somedefinedstruct","detail":"struct{...}","kind":8,"range":{"start":{"line":14,"character":1},"end":{"line":14,"character":27}},"selectionRange":{"start":{"line":14,"character":1},"end":{"line":14,"character":27}}},{"name":"Mutex","detail":"struct{...}","kind":8,"range":{"start":{"line":15,"character":1},"end":{"line":15,"character":11}},"selectionRange":{"start":{"line":15,"character":1},"end":{"line":15,"character":11}}}]},{"name":"updateStatusGeneral","detail":"(ACUStatus *embeddedStruct)","kind":12,"range":{"start":{"line":19,"character":0},"end":{"line":22,"character":1}},"selectionRange":{"start":{"line":19,"character":5},"end":{"line":19,"character":24}}},{"name":"main","detail":"()","kind":12,"range":{"start":{"line":24,"character":0},"end":{"line":46,"character":1}},"selectionRange":{"start":{"line":24,"character":5},"end":{"line":24,"character":9}}}]


[Trace - 15:59:25.272 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go","version":1,"diagnostics":[{"range":{"start":{"line":33,"character":18},"end":{"line":33,"character":33}},"severity":1,"source":"compiler","message":"undeclared name: commandEndpoint"},{"range":{"start":{"line":36,"character":19},"end":{"line":36,"character":34}},"severity":1,"source":"compiler","message":"undeclared name: datasetEndpoint"},{"range":{"start":{"line":39,"character":18},"end":{"line":39,"character":33}},"severity":1,"source":"compiler","message":"undeclared name: StackEndpoint"},{"range":{"start":{"line":42,"character":21},"end":{"line":42,"character":39}},"severity":1,"source":"compiler","message":"undeclared name: GetStackEndpoint"}]}


[Error - Received] 15:59:25.272 PM #2 JSON RPC cancelled


[Trace - 15:59:25.273 PM] Received response 'textDocument/documentLink - (3)' in 717ms.
Result: [{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":10}},"target":"https://pkg.go.dev/net/http"},{"range":{"start":{"line":4,"character":2},"end":{"line":4,"character":6}},"target":"https://pkg.go.dev/sync"},{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":6}},"target":"https://pkg.go.dev/time"},{"range":{"start":{"line":7,"character":2},"end":{"line":7,"character":48}},"target":"https://pkg.go.dev/github.com/REPO_REDACTED"}]


[Error - Received] 15:59:25.273 PM #4 JSON RPC cancelled


[Trace - 15:59:25.274 PM] Received response 'textDocument/codeAction - (5)' in 612ms.
Result: null


[Trace - 15:59:25.274 PM] Received response 'textDocument/foldingRange - (6)' in 567ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":7,"endCharacter":49,"kind":"imports"},{"startLine":13,"startCharacter":39,"endLine":15,"endCharacter":11},{"startLine":19,"startCharacter":64,"endLine":21,"endCharacter":43},{"startLine":24,"startCharacter":13,"endLine":45,"endCharacter":34}]


[Trace - 15:59:25.274 PM] Received response 'textDocument/codeLens - (7)' in 520ms.
Result: null


[Trace - 15:59:25.932 PM] Sending request 'textDocument/codeAction - (8)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go"},"range":{"start":{"line":37,"character":41},"end":{"line":37,"character":41}},"context":{"diagnostics":[]}}


[Trace - 15:59:25.934 PM] Received response 'textDocument/codeAction - (8)' in 1ms.
Result: null


[Trace - 15:59:55.285 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:55 background imports cache refresh starting\n"}


[Info  - 3:59:55 p.m.] 2020/06/01 15:59:55 background imports cache refresh starting

[Trace - 15:59:55.286 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:55 background refresh finished after 11.999408ms\n"}


[Info  - 3:59:55 p.m.] 2020/06/01 15:59:55 background refresh finished after 11.999408ms

[Trace - 15:59:59.079 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go","languageId":"go","version":1,"text":"CODE_REDACTED"}}


[Trace - 15:59:59.080 PM] Sending request 'textDocument/documentLink - (9)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"}}


[Trace - 15:59:59.081 PM] Sending request 'textDocument/codeAction - (10)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}


[Trace - 15:59:59.083 PM] Sending request 'textDocument/documentSymbol - (11)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"}}


[Trace - 15:59:59.091 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:59 go/packages.Load\n\tsnapshot=2\n\tdirectory=/home/ivan/goworkspace\n\tquery=[./]\n\tpackages=1\n"}


[Info  - 3:59:59 p.m.] 2020/06/01 15:59:59 go/packages.Load
	snapshot=2
	directory=/home/ivan/goworkspace
	query=[./]
	packages=1

[Trace - 15:59:59.221 PM] Sending request 'textDocument/foldingRange - (12)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"}}


[Trace - 15:59:59.269 PM] Sending request 'textDocument/codeLens - (13)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"}}


[Trace - 15:59:59.272 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:59 go/packages.Load\n\tsnapshot=2\n\tdirectory=/home/ivan/goworkspace\n\tquery=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go]\n\tpackages=1\n"}


[Trace - 15:59:59.272 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:59 go/packages.Load\n\tsnapshot=2\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go]\n"}


[Info  - 3:59:59 p.m.] 2020/06/01 15:59:59 go/packages.Load
	snapshot=2
	directory=/home/ivan/goworkspace
	query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go]
	packages=1

[Info  - 3:59:59 p.m.] 2020/06/01 15:59:59 go/packages.Load
	snapshot=2
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go]

[Trace - 15:59:59.273 PM] Sending request 'textDocument/codeAction - (14)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"},"range":{"start":{"line":279,"character":1},"end":{"line":279,"character":1}},"context":{"diagnostics":[]}}


[Trace - 15:59:59.276 PM] Sending notification '$/cancelRequest'.
Params: {"id":10}


[Trace - 15:59:59.322 PM] Received response 'textDocument/documentLink - (9)' in 242ms.
Result: [{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":17}},"target":"https://pkg.go.dev/encoding/binary"},{"range":{"start":{"line":4,"character":2},"end":{"line":4,"character":15}},"target":"https://pkg.go.dev/encoding/json"},{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":5}},"target":"https://pkg.go.dev/fmt"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":4}},"target":"https://pkg.go.dev/io"},{"range":{"start":{"line":7,"character":2},"end":{"line":7,"character":11}},"target":"https://pkg.go.dev/io/ioutil"},{"range":{"start":{"line":8,"character":2},"end":{"line":8,"character":5}},"target":"https://pkg.go.dev/log"},{"range":{"start":{"line":9,"character":2},"end":{"line":9,"character":6}},"target":"https://pkg.go.dev/mime"},{"range":{"start":{"line":10,"character":2},"end":{"line":10,"character":16}},"target":"https://pkg.go.dev/mime/multipart"},{"range":{"start":{"line":11,"character":2},"end":{"line":11,"character":10}},"target":"https://pkg.go.dev/net/http"},{"range":{"start":{"line":12,"character":2},"end":{"line":12,"character":9}},"target":"https://pkg.go.dev/strconv"},{"range":{"start":{"line":13,"character":2},"end":{"line":13,"character":9}},"target":"https://pkg.go.dev/strings"},{"range":{"start":{"line":15,"character":2},"end":{"line":15,"character":48}},"target":"https://pkg.go.dev/github.com/REPO_REDACTED"},{"range":{"start":{"line":237,"character":19},"end":{"line":237,"character":65}},"target":"https://golang.org/pkg/mime/multipart/#Writer.Boundary"}]


[Error - Received] 15:59:59.322 PM #10 JSON RPC cancelled


[Trace - 15:59:59.323 PM] Received response 'textDocument/documentSymbol - (11)' in 239ms.
Result: [{"name":"commandEndpoint","detail":"(ACUStatus *invalid type)","kind":12,"range":{"start":{"line":18,"character":0},"end":{"line":156,"character":1}},"selectionRange":{"start":{"line":18,"character":5},"end":{"line":18,"character":20}}},{"name":"datasetEndpoint","detail":"(ACUStatus *invalid type)","kind":12,"range":{"start":{"line":158,"character":0},"end":{"line":217,"character":1}},"selectionRange":{"start":{"line":158,"character":5},"end":{"line":158,"character":20}}},{"name":"StackEndpoint","detail":"(ACUStatus *invalid type)","kind":12,"range":{"start":{"line":219,"character":0},"end":{"line":279,"character":1}},"selectionRange":{"start":{"line":219,"character":5},"end":{"line":219,"character":20}}},{"name":"GetStackEndpoint","detail":"(ACUStatus *invalid type)","kind":12,"range":{"start":{"line":281,"character":0},"end":{"line":314,"character":1}},"selectionRange":{"start":{"line":281,"character":5},"end":{"line":281,"character":23}}}]


[Trace - 15:59:59.326 PM] Received response 'textDocument/foldingRange - (12)' in 104ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":15,"endCharacter":49,"kind":"imports"},{"startLine":18,"startCharacter":101,"endLine":155,"endCharacter":2},{"startLine":19,"startCharacter":54,"endLine":154,"endCharacter":3},{"startLine":25,"startCharacter":24,"endLine":141,"endCharacter":4},{"startLine":29,"startCharacter":37,"endLine":31,"endCharacter":10},{"startLine":32,"startCharacter":34,"endLine":35,"endCharacter":10},{"startLine":39,"startCharacter":34,"endLine":41,"endCharacter":10},{"startLine":42,"startCharacter":31,"endLine":45,"endCharacter":10},{"startLine":49,"startCharacter":36,"endLine":54,"endCharacter":5},{"startLine":50,"startCharacter":29,"endLine":53,"endCharacter":11},{"startLine":55,"startCharacter":33,"endLine":58,"endCharacter":10},{"startLine":62,"startCharacter":98,"endLine":85,"endCharacter":88},{"startLine":69,"startCharacter":19,"endLine":72,"endCharacter":11},{"startLine":76,"startCharacter":19,"endLine":79,"endCharacter":11},{"startLine":87,"startCharacter":49,"endLine":137,"endCharacter":5},{"startLine":88,"startCharacter":36,"endLine":132,"endCharacter":6},{"startLine":89,"startCharacter":26,"endLine":131,"endCharacter":84},{"startLine":90,"startCharacter":13,"endLine":92,"endCharacter":59},{"startLine":93,"startCharacter":19,"endLine":100,"endCharacter":84},{"startLine":102,"startCharacter":25,"endLine":105,"endCharacter":84},{"startLine":107,"startCharacter":17,"endLine":110,"endCharacter":84},{"startLine":112,"startCharacter":25,"endLine":115,"endCharacter":84},{"startLine":117,"startCharacter":22,"endLine":120,"endCharacter":84},{"startLine":122,"startCharacter":22,"endLine":126,"endCharacter":106},{"startLine":123,"startCharacter":62,"endLine":124,"endCharacter":66,"kind":"comment"},{"startLine":128,"startCharacter":23,"endLine":131,"endCharacter":84},{"startLine":133,"startCharacter":36,"endLine":136,"endCharacter":72},{"startLine":138,"startCharacter":11,"endLine":140,"endCharacter":40},{"startLine":143,"startCharacter":32,"endLine":152,"endCharacter":56},{"startLine":145,"startCharacter":41,"endLine":151,"endCharacter":22,"kind":"comment"},{"startLine":158,"startCharacter":101,"endLine":216,"endCharacter":2},{"startLine":159,"startCharacter":54,"endLine":215,"endCharacter":3},{"startLine":165,"startCharacter":24,"endLine":210,"endCharacter":4},{"startLine":169,"startCharacter":37,"endLine":171,"endCharacter":10},{"startLine":176,"startCharacter":33,"endLine":178,"endCharacter":29},{"startLine":182,"startCharacter":53,"endLine":205,"endCharacter":5},{"startLine":184,"startCharacter":22,"endLine":204,"endCharacter":6},{"startLine":185,"startCharacter":12,"endLine":187,"endCharacter":25},{"startLine":189,"startCharacter":16,"endLine":196,"endCharacter":47},{"startLine":192,"startCharacter":20,"endLine":193,"endCharacter":71},{"startLine":198,"startCharacter":18,"endLine":204,"endCharacter":6},{"startLine":202,"startCharacter":20,"endLine":203,"endCharacter":46},{"startLine":207,"startCharacter":85,"endLine":209,"endCharacter":58},{"startLine":212,"startCharacter":32,"endLine":213,"endCharacter":54},{"startLine":219,"startCharacter":101,"endLine":278,"endCharacter":2},{"startLine":220,"startCharacter":54,"endLine":277,"endCharacter":3},{"startLine":233,"startCharacter":17,"endLine":234,"endCharacter":17},{"startLine":238,"startCharacter":49,"endLine":276,"endCharacter":4},{"startLine":241,"startCharacter":21,"endLine":242,"endCharacter":10},{"startLine":244,"startCharacter":18,"endLine":245,"endCharacter":18},{"startLine":250,"startCharacter":18,"endLine":251,"endCharacter":18},{"startLine":257,"startCharacter":28,"endLine":274,"endCharacter":5},{"startLine":264,"startCharacter":22,"endLine":265,"endCharacter":11},{"startLine":266,"startCharacter":26,"endLine":268,"endCharacter":11},{"startLine":272,"startCharacter":19,"endLine":273,"endCharacter":21},{"startLine":281,"startCharacter":104,"endLine":313,"endCharacter":2},{"startLine":282,"startCharacter":54,"endLine":302,"endCharacter":3},{"startLine":290,"startCharacter":32,"endLine":291,"endCharacter":29},{"startLine":294,"startCharacter":25,"endLine":295,"endCharacter":44},{"startLine":296,"startCharacter":10,"endLine":301,"endCharacter":26},{"startLine":298,"startCharacter":18,"endLine":299,"endCharacter":24},{"startLine":303,"startCharacter":36,"endLine":312,"endCharacter":12,"kind":"comment"}]


[Trace - 15:59:59.326 PM] Received response 'textDocument/codeLens - (13)' in 56ms.
Result: null


[Trace - 15:59:59.327 PM] Received response 'textDocument/codeAction - (14)' in 53ms.
Result: null


[Trace - 15:59:59.440 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:59 go/packages.Load\n\tsnapshot=2\n\tdirectory=/home/ivan/goworkspace\n\tquery=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go]\n\tpackages=1\n"}


[Info  - 3:59:59 p.m.] 2020/06/01 15:59:59 go/packages.Load
	snapshot=2
	directory=/home/ivan/goworkspace
	query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/main.go]
	packages=1

[Trace - 15:59:59.440 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 15:59:59 go/packages.Load\n\tsnapshot=2\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go]\n"}


[Trace - 15:59:59.440 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go","version":1,"diagnostics":[{"range":{"start":{"line":18,"character":32},"end":{"line":18,"character":57}},"severity":1,"source":"compiler","message":"undeclared name: embeddedStruct"},{"range":{"start":{"line":23,"character":2},"end":{"line":23,"character":21}},"severity":1,"source":"compiler","message":"undeclared name: updateStatusGeneral"},{"range":{"start":{"line":158,"character":32},"end":{"line":158,"character":57}},"severity":1,"source":"compiler","message":"undeclared name: embeddedStruct"},{"range":{"start":{"line":163,"character":2},"end":{"line":163,"character":21}},"severity":1,"source":"compiler","message":"undeclared name: updateStatusGeneral"},{"range":{"start":{"line":219,"character":32},"end":{"line":219,"character":57}},"severity":1,"source":"compiler","message":"undeclared name: embeddedStruct"},{"range":{"start":{"line":224,"character":2},"end":{"line":224,"character":21}},"severity":1,"source":"compiler","message":"undeclared name: updateStatusGeneral"},{"range":{"start":{"line":271,"character":11},"end":{"line":271,"character":42}},"severity":1,"source":"compiler","message":"undeclared name: GlobalPTStackArray"},{"range":{"start":{"line":281,"character":35},"end":{"line":281,"character":60}},"severity":1,"source":"compiler","message":"undeclared name: embeddedStruct"},{"range":{"start":{"line":286,"character":2},"end":{"line":286,"character":21}},"severity":1,"source":"compiler","message":"undeclared name: updateStatusGeneral"},{"range":{"start":{"line":295,"character":19},"end":{"line":295,"character":43}},"severity":1,"source":"compiler","message":"undeclared name: GlobalPTStackArray"},{"range":{"start":{"line":297,"character":18},"end":{"line":297,"character":48}},"severity":1,"source":"compiler","message":"undeclared name: GlobalPTStackArray"}]}


[Info  - 3:59:59 p.m.] 2020/06/01 15:59:59 go/packages.Load
	snapshot=2
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go]

[Trace - 15:59:59.730 PM] Sending request 'textDocument/codeAction - (15)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"},"range":{"start":{"line":279,"character":1},"end":{"line":279,"character":1}},"context":{"diagnostics":[]}}


[Trace - 15:59:59.734 PM] Received response 'textDocument/codeAction - (15)' in 3ms.
Result: null


[Trace - 16:00:07.391 PM] Sending request 'textDocument/hover - (16)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"},"position":{"line":281,"character":23}}


[Trace - 16:00:07.393 PM] Received response 'textDocument/hover - (16)' in 1ms.
Result: {"contents":{"kind":"markdown","value":"```go\nfunc GetStackEndpoint(ACUStatus *invalid type) func(http.ResponseWriter, *http.Request)\n```\n\n[`main.GetStackEndpoint` on pkg.go.dev](https://pkg.go.dev/command-line-arguments#GetStackEndpoint)"},"range":{"start":{"line":281,"character":5},"end":{"line":281,"character":23}}}


[Trace - 16:00:10.699 PM] Sending request 'textDocument/hover - (17)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"},"position":{"line":281,"character":23}}


[Trace - 16:00:10.700 PM] Received response 'textDocument/hover - (17)' in 1ms.
Result: {"contents":{"kind":"markdown","value":"```go\nfunc GetStackEndpoint(ACUStatus *invalid type) func(http.ResponseWriter, *http.Request)\n```\n\n[`main.GetStackEndpoint` on pkg.go.dev](https://pkg.go.dev/command-line-arguments#GetStackEndpoint)"},"range":{"start":{"line":281,"character":5},"end":{"line":281,"character":23}}}


[Trace - 16:00:16.350 PM] Sending request 'textDocument/documentHighlight - (18)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"},"position":{"line":18,"character":43}}


[Trace - 16:00:16.351 PM] Received response 'textDocument/documentHighlight - (18)' in 0ms.
Result: [{"range":{"start":{"line":18,"character":32},"end":{"line":18,"character":57}},"kind":1},{"range":{"start":{"line":158,"character":32},"end":{"line":158,"character":57}},"kind":1},{"range":{"start":{"line":219,"character":32},"end":{"line":219,"character":57}},"kind":1},{"range":{"start":{"line":281,"character":35},"end":{"line":281,"character":60}},"kind":1}]


[Trace - 16:00:16.575 PM] Sending request 'textDocument/codeAction - (19)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"},"range":{"start":{"line":18,"character":43},"end":{"line":18,"character":43}},"context":{"diagnostics":[{"range":{"start":{"line":18,"character":32},"end":{"line":18,"character":57}},"message":"undeclared name: embeddedStruct","severity":1,"source":"compiler"}]}}


[Trace - 16:00:16.580 PM] Received response 'textDocument/codeAction - (19)' in 5ms.
Result: null


[Trace - 16:00:16.751 PM] Sending request 'textDocument/hover - (20)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"},"position":{"line":18,"character":39}}


[Trace - 16:00:16.752 PM] Received response 'textDocument/hover - (20)' in 0ms.
Result: null


[Trace - 16:00:16.919 PM] Sending request 'textDocument/codeAction - (21)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"},"range":{"start":{"line":18,"character":32},"end":{"line":18,"character":57}},"context":{"diagnostics":[{"range":{"start":{"line":18,"character":32},"end":{"line":18,"character":57}},"message":"undeclared name: embeddedStruct","severity":1,"source":"compiler"}],"only":["quickfix"]}}


[Trace - 16:00:16.923 PM] Received response 'textDocument/codeAction - (21)' in 3ms.
Result: null


[Trace - 16:00:17.463 PM] Sending request 'textDocument/codeAction - (22)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"},"range":{"start":{"line":18,"character":39},"end":{"line":18,"character":39}},"context":{"diagnostics":[{"range":{"start":{"line":18,"character":32},"end":{"line":18,"character":57}},"message":"undeclared name: embeddedStruct","severity":1,"source":"compiler"}]}}


[Trace - 16:00:17.468 PM] Received response 'textDocument/codeAction - (22)' in 5ms.
Result: null


[Trace - 16:00:18.323 PM] Sending request 'textDocument/hover - (23)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/HTTPServer/endpoints.go"},"position":{"line":158,"character":28}}


[Trace - 16:00:18.324 PM] Received response 'textDocument/hover - (23)' in 0ms.
Result: {"contents":{"kind":"markdown","value":"```go\nvar ACUStatus *invalid type\n```\n\n[`main.ACUStatus` on pkg.go.dev](https://pkg.go.dev/command-line-arguments#ACUStatus)"},"range":{"start":{"line":158,"character":21},"end":{"line":158,"character":30}}}


[Trace - 16:00:29.328 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 16:00:29 background imports cache refresh starting\n"}


[Info  - 4:00:29 p.m.] 2020/06/01 16:00:29 background imports cache refresh starting

[Trace - 16:00:29.329 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/06/01 16:00:29 background refresh finished after 1.288326ms\n"}


[Info  - 4:00:29 p.m.] 2020/06/01 16:00:29 background refresh finished after 1.288326ms```

@hyangah
Copy link
Contributor

hyangah commented Jun 1, 2020

@iisharankov Thanks!

This is GOPATH mode (not modules mode) and the workspace is /home/ivan/goworkspace.

Interestingly, GOPATH=/home/ivan/go:/home/ivan/goworkspace according to the original report, but gopls is seeing only

GOPATH="/home/ivan/go"

Maybe the integrated terminal is seeing a different GOPATH setup. Can you please run "Go: Current GOPATH" command from the command palette?

@stamblerre Doesn't gopls send a notification or warning about misconfiguration?

@iisharankov
Copy link
Author

Running "GO: Current GOPATH" in the command pallet gets me

/home/ivan/go is the current GOPATH.

It seems it only takes the first entry then? At first I thought I set up the PATH incorrectly, but it seems fine, as:

➜  ~ $HOME
➜  ~ $GOROOT
➜  go $HOME
➜  ~ $GOPATH
zsh: no such file or directory: /home/ivan/go:/home/ivan/

➜ ~ echo $GOPATH | tr ":" "\n" | nl
     1  /home/ivan/go
     2  /home/ivan/goworkspace

@hyangah
Copy link
Contributor

hyangah commented Jun 2, 2020

How/where did you set up the GOPATH?

I recently encountered issues like microsoft/vscode-go#1133 (comment).
Given that $HOME/go is also the default GOPATH the go tool chooses when no GOPATH is set, it's also a possibility that VS Code didn't see your environment variable setting when it launched at all.

@iisharankov
Copy link
Author

I set it in my ~/.zshrc profile. That's good to know that the default GOPATH is $HOME/go; though I would have expected a warning or log to warn the user if the go tool couldn't find a set GOPATH. Reading the comment referenced, it seems this issue came up as ~/.zshrc is not listed script.

I explicitly set the GOPATH in settings.json by following this comment exactly: microsoft/vscode-go#1133 (comment)

That seems to have fixed it, as running GO: Current GOPATH gets me

/home/ivan/go:/home/ivan/goworkspace is the current GOPATH.

and there are no longer any errors. I'll test tomorrow but it seems fixed. I'm surprised ~/.zshrc is not a listed script (any idea why it's so difficult to understand various shell scripts' settings and process them, just out of curiosity?), but at least setting the GOPATH and GOROOT directly in settings.json work like a charm.

@stamblerre
Copy link
Contributor

Marking this as closed since it was resolved. I don't know if there's anything that gopls can do better here, since it only saw the first element of the GOPATH and assumed it was valid. There is still probably a lot of cleanup that can be done to improve the way that GOPATH is set when tools are executed, but that would be part of a larger cleanup effort.

@hyangah
Copy link
Contributor

hyangah commented Jun 3, 2020

@stamblerre FYI the main culprit is the vscode didn't see the settings in ~/.zshrc. There is nothing this extension or gopls can do better.

@iisharankov FYI it's perfectly valid not to have GOPATH set. So the go tool or gopls or this extension doesn't warn. And GOPATH is likely to be obsolete and becomes almost unnecessary in the future when Go modules migration is complete.

@iisharankov
Copy link
Author

Opening this again as undeclared name errors are agian popping up all over my work. I've reloaded VSCode and checked the above link, and GOPATH and GOROOT are properly set and explicitly set in settings.json

I have not updated Go, VSCode, or anything else to my knowledge since the closure of this issue, so I'm not sure why there's dozens of undeclared name errors

@stamblerre
Copy link
Contributor

@iisharankov: Can you please share your gopls logs when you see this? Details on how to gather them here: https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md#capturing-logs.

@iisharankov
Copy link
Author

My bad.

gopls version: version master, built in $GOPATH mode

[Trace - 17:32:17.799 PM] Sending request 'initialize - (0)'.
Params: {"processId":3674532,"clientInfo":{"name":"vscode","version":"1.45.1"},"rootPath":"/home/ivan/goworkspace","rootUri":"file:///home/ivan/goworkspace","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,"versionSupport":false,"tagSupport":{"valueSet":[1,2]}},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]}},"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}},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":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,"tooltipSupport":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},"selectionRange":{"dynamicRegistration":true}},"window":{"workDoneProgress":true}},"initializationOptions":{},"trace":"off","workspaceFolders":[{"uri":"file:///home/ivan/goworkspace","name":"goworkspace"}]}


[Trace - 17:32:17.805 PM] Received response 'initialize - (0)' in 6ms.
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","refactor.extract","refactor.rewrite","source.fixAll","source.organizeImports"]},"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":""},"renameProvider":{"prepareProvider":true},"foldingRangeProvider":true,"executeCommandProvider":{"commands":["test","tidy","upgrade_dependency","generate","regenerate_cgo"]},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"serverInfo":{"name":"gopls","version":"Build info\n----------\nversion master, built in $GOPATH mode\n\nGo info\n-------\ngo version go1.14.2 linux/amd64\n\n"}}


[Trace - 17:32:17.806 PM] Sending notification 'initialized'.
Params: {}


[Trace - 17:32:17.807 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go","languageId":"go","version":1,"text":REMOVED}}


[Trace - 17:32:17.811 PM] Received request 'workspace/configuration - (1)'.
Params: {"items":[{"scopeUri":"file:///home/ivan/goworkspace","section":"gopls"},{"scopeUri":"file:///home/ivan/goworkspace","section":"gopls-goworkspace"}]}


[Trace - 17:32:17.811 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:17 Build info\n----------\nversion master, built in $GOPATH mode\n\nGo info\n-------\ngo version go1.14.2 linux/amd64\n\n\n"}


[Info  - 5:32:17 p.m.] 2020/07/10 17:32:17 Build info
----------
version master, built in $GOPATH mode

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



[Trace - 17:32:17.815 PM] Sending response 'workspace/configuration - (1)' in 4ms.
Result: [null,null]


[Trace - 17:32:17.840 PM] Sending request 'textDocument/documentSymbol - (1)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"}}


[Trace - 17:32:17.841 PM] Sending request 'textDocument/codeAction - (2)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":34,"character":19},"end":{"line":34,"character":19}},"context":{"diagnostics":[]}}


[Trace - 17:32:17.846 PM] Sending request 'textDocument/documentLink - (3)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"}}


[Trace - 17:32:17.879 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:17 go/packages.Load\n\tsnapshot=0\n\tdirectory=/home/ivan/goworkspace\n\tquery=[./ builtin]\n\tpackages=2\n"}


[Info  - 5:32:17 p.m.] 2020/07/10 17:32:17 go/packages.Load
	snapshot=0
	directory=/home/ivan/goworkspace
	query=[./ builtin]
	packages=2

[Trace - 17:32:17.946 PM] Received request 'client/registerCapability - (2)'.
Params: {"registrations":[{"id":"workspace/didChangeConfiguration","method":"workspace/didChangeConfiguration"},{"id":"workspace/didChangeWorkspaceFolders","method":"workspace/didChangeWorkspaceFolders"},{"id":"workspace/didChangeWatchedFiles","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"/home/ivan/goworkspace/**.go","kind":7}]}}]}


[Trace - 17:32:17.946 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:17 go env for /home/ivan/goworkspace\n(valid build configuration = false)\n(build flags: [])\nGO111MODULE=\"\"\nGOARCH=\"amd64\"\nGOBIN=\"\"\nGOCACHE=\"/home/ivan/.cache/go-build\"\nGOENV=\"/home/ivan/.config/go/env\"\nGOEXE=\"\"\nGOFLAGS=\"\"\nGOHOSTARCH=\"amd64\"\nGOHOSTOS=\"linux\"\nGOINSECURE=\"\"\nGONOPROXY=\"\"\nGONOSUMDB=\"\"\nGOOS=\"linux\"\nGOPATH=\"/home/ivan/go:/home/ivan/goworkspace\"\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\"\nAR=\"ar\"\nCC=\"gcc\"\nCXX=\"g++\"\nCGO_ENABLED=\"1\"\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 -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build219642646=/tmp/go-build -gno-record-gcc-switches\"\n\n"}


[Trace - 17:32:17.950 PM] Sending response 'client/registerCapability - (2)' in 4ms.
Result: 


[Info  - 5:32:17 p.m.] 2020/07/10 17:32:17 go env for /home/ivan/goworkspace
(valid build configuration = false)
(build flags: [])
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/ivan/.cache/go-build"
GOENV="/home/ivan/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/ivan/go:/home/ivan/goworkspace"
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"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
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 -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build219642646=/tmp/go-build -gno-record-gcc-switches"


[Trace - 17:32:17.960 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:17 go/packages.Load\n\tsnapshot=0\n\tdirectory=/home/ivan/goworkspace\n\tquery=[./]\n\tpackages=1\n"}


[Info  - 5:32:17 p.m.] 2020/07/10 17:32:17 go/packages.Load
	snapshot=0
	directory=/home/ivan/goworkspace
	query=[./]
	packages=1

[Trace - 17:32:17.979 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:17 go/packages.Load\n\tsnapshot=1\n\tdirectory=/home/ivan/goworkspace\n\tquery=[./]\n\tpackages=1\n"}


[Info  - 5:32:17 p.m.] 2020/07/10 17:32:17 go/packages.Load
	snapshot=1
	directory=/home/ivan/goworkspace
	query=[./]
	packages=1

[Trace - 17:32:18.050 PM] Sending request 'textDocument/foldingRange - (4)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"}}


[Trace - 17:32:18.094 PM] Sending request 'textDocument/codeLens - (5)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"}}


[Trace - 17:32:18.256 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:18 go/packages.Load\n\tsnapshot=1\n\tdirectory=/home/ivan/goworkspace\n\tquery=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]\n\tpackages=1\n"}


[Trace - 17:32:18.256 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:18 go/packages.Load\n\tsnapshot=1\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]\n"}


[Info  - 5:32:18 p.m.] 2020/07/10 17:32:18 go/packages.Load
	snapshot=1
	directory=/home/ivan/goworkspace
	query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]
	packages=1

[Info  - 5:32:18 p.m.] 2020/07/10 17:32:18 go/packages.Load
	snapshot=1
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]

[Trace - 17:32:18.265 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:18 go/packages.Load\n\tsnapshot=1\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]\n"}


[Trace - 17:32:18.265 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:18 go/packages.Load\n\tsnapshot=1\n\tdirectory=/home/ivan/goworkspace\n\tquery=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]\n\tpackages=1\n"}


[Info  - 5:32:18 p.m.] 2020/07/10 17:32:18 go/packages.Load
	snapshot=1
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]

[Info  - 5:32:18 p.m.] 2020/07/10 17:32:18 go/packages.Load
	snapshot=1
	directory=/home/ivan/goworkspace
	query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]
	packages=1

[Trace - 17:32:18.434 PM] Received response 'textDocument/documentSymbol - (1)' in 594ms.
Result: [{"name":"ProcessedTPT","detail":"struct{...}","kind":23,"range":{"start":{"line":13,"character":5},"end":{"line":16,"character":1}},"selectionRange":{"start":{"line":13,"character":5},"end":{"line":13,"character":17}},"children":[{"name":"TimePositionTransfer","detail":"struct{...}","kind":8,"range":{"start":{"line":14,"character":1},"end":{"line":14,"character":30}},"selectionRange":{"start":{"line":14,"character":1},"end":{"line":14,"character":30}}},{"name":"UnixTimestamp","detail":"float64","kind":8,"range":{"start":{"line":15,"character":1},"end":{"line":15,"character":22}},"selectionRange":{"start":{"line":15,"character":1},"end":{"line":15,"character":14}}}]},{"name":"SplineGenerator","detail":"(ACUStatus *invalid type)","kind":12,"range":{"start":{"line":19,"character":0},"end":{"line":70,"character":1}},"selectionRange":{"start":{"line":19,"character":5},"end":{"line":19,"character":20}}},{"name":"findTimestamp","detail":"(yearDay int32, timeOfDay float64)","kind":12,"range":{"start":{"line":72,"character":0},"end":{"line":79,"character":1}},"selectionRange":{"start":{"line":72,"character":5},"end":{"line":72,"character":18}}},{"name":"MakeSpline","detail":"(TPT []datasets.TimePositionTransfer)","kind":12,"range":{"start":{"line":82,"character":0},"end":{"line":218,"character":1}},"selectionRange":{"start":{"line":82,"character":5},"end":{"line":82,"character":15}}}]


[Trace - 17:32:18.435 PM] Received response 'textDocument/codeAction - (2)' in 594ms.
Result: null


[Trace - 17:32:18.435 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline.go","diagnostics":[{"range":{"start":{"line":5,"character":7},"end":{"line":5,"character":10}},"severity":1,"source":"compiler","message":"could not import C (no package for import C)"}]}


[Trace - 17:32:18.435 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go","version":1,"diagnostics":[{"range":{"start":{"line":19,"character":32},"end":{"line":19,"character":46}},"severity":1,"source":"compiler","message":"undeclared name: telescopeState"},{"range":{"start":{"line":39,"character":11},"end":{"line":39,"character":40}},"severity":1,"source":"compiler","message":"undeclared name: getCurrentPositionAsTPTStruct"},{"range":{"start":{"line":51,"character":6},"end":{"line":51,"character":35}},"severity":1,"source":"compiler","message":"undeclared name: GlobalPTStackArray"},{"range":{"start":{"line":56,"character":16},"end":{"line":56,"character":38}},"severity":1,"source":"compiler","message":"undeclared name: GlobalPTStackArray"},{"range":{"start":{"line":69,"character":1},"end":{"line":69,"character":16}},"severity":1,"source":"compiler","message":"undeclared name: clockSplineChan"}]}


[Trace - 17:32:18.444 PM] Received response 'textDocument/documentLink - (3)' in 598ms.
Result: [{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":8}},"target":"https://pkg.go.dev/errors"},{"range":{"start":{"line":4,"character":2},"end":{"line":4,"character":5}},"target":"https://pkg.go.dev/fmt"},{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":5}},"target":"https://pkg.go.dev/log"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":6}},"target":"https://pkg.go.dev/math"},{"range":{"start":{"line":7,"character":2},"end":{"line":7,"character":6}},"target":"https://pkg.go.dev/time"},{"range":{"start":{"line":9,"character":2},"end":{"line":9,"character":48}},"target":"https://pkg.go.dev/github.com/ccatp/antenna-control-unit/datasets"},{"range":{"start":{"line":10,"character":2},"end":{"line":10,"character":32}},"target":"https://pkg.go.dev/github.com/iisharankov/dierckx"},{"range":{"start":{"line":74,"character":15},"end":{"line":74,"character":24}},"target":"https://time.Data"},{"range":{"start":{"line":91,"character":15},"end":{"line":91,"character":23}},"target":"https://time.Now"}]


[Trace - 17:32:18.445 PM] Received response 'textDocument/foldingRange - (4)' in 394ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":10,"endCharacter":33,"kind":"imports"},{"startLine":13,"startCharacter":26,"endLine":15,"endCharacter":22},{"startLine":19,"startCharacter":49,"endLine":69,"endCharacter":33},{"startLine":31,"startCharacter":86,"endLine":36,"endCharacter":5,"kind":"comment"},{"startLine":41,"startCharacter":105,"endLine":48,"endCharacter":105,"kind":"comment"},{"startLine":51,"startCharacter":39,"endLine":57,"endCharacter":50},{"startLine":63,"startCharacter":16,"endLine":65,"endCharacter":8},{"startLine":72,"startCharacter":64,"endLine":78,"endCharacter":9},{"startLine":82,"startCharacter":78,"endLine":217,"endCharacter":23},{"startLine":91,"startCharacter":31,"endLine":93,"endCharacter":126,"kind":"comment"},{"startLine":95,"startCharacter":39,"endLine":97,"endCharacter":42,"kind":"comment"},{"startLine":106,"startCharacter":21,"endLine":114,"endCharacter":3},{"startLine":109,"startCharacter":13,"endLine":110,"endCharacter":11},{"startLine":111,"startCharacter":134,"endLine":113,"endCharacter":168},{"startLine":117,"startCharacter":56,"endLine":118,"endCharacter":103,"kind":"comment"},{"startLine":124,"startCharacter":38,"endLine":125,"endCharacter":32},{"startLine":134,"startCharacter":19,"endLine":138,"endCharacter":27},{"startLine":143,"startCharacter":17,"endLine":144,"endCharacter":12},{"startLine":145,"startCharacter":24,"endLine":147,"endCharacter":110},{"startLine":148,"startCharacter":24,"endLine":150,"endCharacter":110},{"startLine":151,"startCharacter":9,"endLine":152,"endCharacter":92},{"startLine":155,"startCharacter":56,"endLine":156,"endCharacter":39,"kind":"comment"},{"startLine":159,"startCharacter":16,"endLine":160,"endCharacter":19},{"startLine":163,"startCharacter":16,"endLine":164,"endCharacter":19},{"startLine":182,"startCharacter":26,"endLine":213,"endCharacter":27},{"startLine":203,"startCharacter":28,"endLine":209,"endCharacter":26},{"startLine":205,"startCharacter":55,"endLine":209,"endCharacter":25}]


[Trace - 17:32:18.445 PM] Received response 'textDocument/codeLens - (5)' in 351ms.
Result: null


[Trace - 17:32:18.871 PM] Sending request 'textDocument/codeAction - (6)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":34,"character":19},"end":{"line":34,"character":19}},"context":{"diagnostics":[]}}


[Trace - 17:32:18.872 PM] Received response 'textDocument/codeAction - (6)' in 1ms.
Result: null


[Trace - 17:32:20.488 PM] Sending request 'textDocument/codeAction - (7)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":34,"character":19},"end":{"line":34,"character":19}},"context":{"diagnostics":[]}}


[Trace - 17:32:20.490 PM] Received response 'textDocument/codeAction - (7)' in 1ms.
Result: null


[Trace - 17:32:20.758 PM] Sending request 'textDocument/codeAction - (8)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":36,"character":5},"end":{"line":36,"character":5}},"context":{"diagnostics":[]}}


[Trace - 17:32:20.761 PM] Received response 'textDocument/codeAction - (8)' in 3ms.
Result: null


[Trace - 17:32:20.995 PM] Sending request 'textDocument/documentHighlight - (9)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":38,"character":35}}


[Trace - 17:32:20.995 PM] Received response 'textDocument/documentHighlight - (9)' in 0ms.
Result: []


[Trace - 17:32:21.234 PM] Sending request 'textDocument/codeAction - (10)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":38,"character":35},"end":{"line":38,"character":35}},"context":{"diagnostics":[]}}


[Trace - 17:32:21.235 PM] Received response 'textDocument/codeAction - (10)' in 0ms.
Result: null


[Trace - 17:32:21.309 PM] Sending request 'textDocument/hover - (11)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":39,"character":34}}


[Trace - 17:32:21.310 PM] Received response 'textDocument/hover - (11)' in 1ms.
Result: null


[Trace - 17:32:21.435 PM] Sending request 'textDocument/documentHighlight - (12)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":39,"character":33}}


[Trace - 17:32:21.435 PM] Received response 'textDocument/documentHighlight - (12)' in 0ms.
Result: [{"range":{"start":{"line":39,"character":11},"end":{"line":39,"character":40}},"kind":1}]


[Trace - 17:32:21.662 PM] Sending request 'textDocument/codeAction - (13)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":39,"character":33},"end":{"line":39,"character":33}},"context":{"diagnostics":[{"range":{"start":{"line":39,"character":11},"end":{"line":39,"character":40}},"message":"undeclared name: getCurrentPositionAsTPTStruct","severity":1,"source":"compiler"}]}}


[Trace - 17:32:21.663 PM] Received response 'textDocument/codeAction - (13)' in 1ms.
Result: null


[Trace - 17:32:22.241 PM] Sending request 'textDocument/hover - (14)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":39,"character":37}}


[Trace - 17:32:22.241 PM] Received response 'textDocument/hover - (14)' in 0ms.
Result: null


[Trace - 17:32:22.420 PM] Sending request 'textDocument/codeAction - (15)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":39,"character":11},"end":{"line":39,"character":40}},"context":{"diagnostics":[{"range":{"start":{"line":39,"character":11},"end":{"line":39,"character":40}},"message":"undeclared name: getCurrentPositionAsTPTStruct","severity":1,"source":"compiler"}],"only":["quickfix"]}}


[Trace - 17:32:22.421 PM] Received response 'textDocument/codeAction - (15)' in 1ms.
Result: null


[Trace - 17:32:24.342 PM] Sending request 'textDocument/hover - (16)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":19,"character":38}}


[Trace - 17:32:24.343 PM] Received response 'textDocument/hover - (16)' in 0ms.
Result: null


[Trace - 17:32:24.398 PM] Sending request 'textDocument/documentHighlight - (17)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":19,"character":39}}


[Trace - 17:32:24.399 PM] Received response 'textDocument/documentHighlight - (17)' in 0ms.
Result: [{"range":{"start":{"line":19,"character":32},"end":{"line":19,"character":46}},"kind":1}]


[Trace - 17:32:24.620 PM] Sending request 'textDocument/codeAction - (18)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":19,"character":39},"end":{"line":19,"character":39}},"context":{"diagnostics":[{"range":{"start":{"line":19,"character":32},"end":{"line":19,"character":46}},"message":"undeclared name: telescopeState","severity":1,"source":"compiler"}]}}


[Trace - 17:32:24.623 PM] Received response 'textDocument/codeAction - (18)' in 3ms.
Result: null


[Trace - 17:32:25.144 PM] Sending request 'textDocument/hover - (19)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":45,"character":43}}


[Trace - 17:32:25.145 PM] Received response 'textDocument/hover - (19)' in 0ms.
Result: null


[Trace - 17:32:25.866 PM] Sending request 'textDocument/hover - (20)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":50,"character":23}}


[Trace - 17:32:25.867 PM] Received response 'textDocument/hover - (20)' in 0ms.
Result: null


[Trace - 17:32:26.003 PM] Sending request 'textDocument/documentHighlight - (21)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":51,"character":23}}


[Trace - 17:32:26.004 PM] Received response 'textDocument/documentHighlight - (21)' in 0ms.
Result: [{"range":{"start":{"line":51,"character":6},"end":{"line":51,"character":24}},"kind":1},{"range":{"start":{"line":56,"character":16},"end":{"line":56,"character":34}},"kind":1}]


[Trace - 17:32:26.222 PM] Sending request 'textDocument/codeAction - (22)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":51,"character":23},"end":{"line":51,"character":23}},"context":{"diagnostics":[{"range":{"start":{"line":51,"character":6},"end":{"line":51,"character":35}},"message":"undeclared name: GlobalPTStackArray","severity":1,"source":"compiler"}]}}


[Trace - 17:32:26.223 PM] Received response 'textDocument/codeAction - (22)' in 1ms.
Result: null


[Trace - 17:32:26.638 PM] Sending request 'textDocument/hover - (23)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":56,"character":25}}


[Trace - 17:32:26.639 PM] Received response 'textDocument/hover - (23)' in 0ms.
Result: null


[Trace - 17:32:26.801 PM] Sending request 'textDocument/codeAction - (24)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":56,"character":16},"end":{"line":56,"character":38}},"context":{"diagnostics":[{"range":{"start":{"line":56,"character":16},"end":{"line":56,"character":38}},"message":"undeclared name: GlobalPTStackArray","severity":1,"source":"compiler"}],"only":["quickfix"]}}


[Trace - 17:32:26.805 PM] Received response 'textDocument/codeAction - (24)' in 3ms.
Result: null


[Trace - 17:32:27.078 PM] Sending request 'textDocument/codeAction - (25)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":56,"character":25},"end":{"line":56,"character":25}},"context":{"diagnostics":[{"range":{"start":{"line":56,"character":16},"end":{"line":56,"character":38}},"message":"undeclared name: GlobalPTStackArray","severity":1,"source":"compiler"}]}}


[Trace - 17:32:27.081 PM] Received response 'textDocument/codeAction - (25)' in 3ms.
Result: null


[Trace - 17:32:28.091 PM] Sending request 'textDocument/hover - (26)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":69,"character":13}}


[Trace - 17:32:28.092 PM] Received response 'textDocument/hover - (26)' in 1ms.
Result: null


[Trace - 17:32:28.141 PM] Sending request 'textDocument/documentHighlight - (27)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":69,"character":13}}


[Trace - 17:32:28.141 PM] Received response 'textDocument/documentHighlight - (27)' in 0ms.
Result: [{"range":{"start":{"line":69,"character":1},"end":{"line":69,"character":16}},"kind":1}]


[Trace - 17:32:28.370 PM] Sending request 'textDocument/codeAction - (28)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":69,"character":13},"end":{"line":69,"character":13}},"context":{"diagnostics":[{"range":{"start":{"line":69,"character":1},"end":{"line":69,"character":16}},"message":"undeclared name: clockSplineChan","severity":1,"source":"compiler"}]}}


[Trace - 17:32:28.371 PM] Received response 'textDocument/codeAction - (28)' in 1ms.
Result: null


[Trace - 17:32:29.814 PM] Sending request 'textDocument/hover - (29)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":125,"character":29}}


[Trace - 17:32:29.815 PM] Received response 'textDocument/hover - (29)' in 1ms.
Result: null


[Trace - 17:32:32.508 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go","languageId":"go","version":1,"text":REMOVED}}


[Trace - 17:32:32.509 PM] Sending request 'textDocument/documentLink - (30)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go"}}


[Trace - 17:32:32.510 PM] Sending request 'textDocument/codeAction - (31)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}


[Trace - 17:32:32.513 PM] Sending request 'textDocument/documentSymbol - (32)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go"}}


[Trace - 17:32:32.515 PM] Sending request 'textDocument/documentHighlight - (33)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go"},"position":{"line":73,"character":29}}


[Trace - 17:32:32.522 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:32 go/packages.Load\n\tsnapshot=2\n\tdirectory=/home/ivan/goworkspace\n\tquery=[./]\n\tpackages=1\n"}


[Info  - 5:32:32 p.m.] 2020/07/10 17:32:32 go/packages.Load
	snapshot=2
	directory=/home/ivan/goworkspace
	query=[./]
	packages=1

[Trace - 17:32:32.736 PM] Sending request 'textDocument/foldingRange - (34)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go"}}


[Trace - 17:32:32.757 PM] Sending request 'textDocument/codeLens - (35)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go"}}


[Trace - 17:32:32.840 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:32 go/packages.Load\n\tsnapshot=2\n\tdirectory=/home/ivan/goworkspace\n\tquery=[file=/home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go]\n\tpackages=1\n"}


[Trace - 17:32:32.840 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:32 go/packages.Load\n\tsnapshot=2\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go]\n"}


[Info  - 5:32:32 p.m.] 2020/07/10 17:32:32 go/packages.Load
	snapshot=2
	directory=/home/ivan/goworkspace
	query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go]
	packages=1

[Info  - 5:32:32 p.m.] 2020/07/10 17:32:32 go/packages.Load
	snapshot=2
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go]

[Trace - 17:32:32.869 PM] Received response 'textDocument/documentLink - (30)' in 359ms.
Result: [{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":7}},"target":"https://pkg.go.dev/bytes"},{"range":{"start":{"line":4,"character":2},"end":{"line":4,"character":5}},"target":"https://pkg.go.dev/fmt"},{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":4}},"target":"https://pkg.go.dev/io"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":5}},"target":"https://pkg.go.dev/log"},{"range":{"start":{"line":7,"character":2},"end":{"line":7,"character":6}},"target":"https://pkg.go.dev/math"},{"range":{"start":{"line":8,"character":2},"end":{"line":8,"character":4}},"target":"https://pkg.go.dev/os"},{"range":{"start":{"line":9,"character":2},"end":{"line":9,"character":9}},"target":"https://pkg.go.dev/testing"},{"range":{"start":{"line":166,"character":17},"end":{"line":166,"character":24}},"target":"https://os.Open"},{"range":{"start":{"line":172,"character":22},"end":{"line":172,"character":29}},"target":"https://os.Open"}]


[Trace - 17:32:32.870 PM] Received response 'textDocument/codeAction - (31)' in 360ms.
Result: null


[Trace - 17:32:32.870 PM] Received response 'textDocument/documentSymbol - (32)' in 357ms.
Result: [{"name":"outputToTxt","detail":"(name string, value []float64)","kind":12,"range":{"start":{"line":12,"character":0},"end":{"line":27,"character":1}},"selectionRange":{"start":{"line":12,"character":5},"end":{"line":12,"character":16}}},{"name":"Spline1DData","detail":"struct{...}","kind":23,"range":{"start":{"line":29,"character":5},"end":{"line":33,"character":1}},"selectionRange":{"start":{"line":29,"character":5},"end":{"line":29,"character":17}},"children":[{"name":"filename","detail":"string","kind":8,"range":{"start":{"line":30,"character":1},"end":{"line":30,"character":16}},"selectionRange":{"start":{"line":30,"character":1},"end":{"line":30,"character":9}}},{"name":"azPoints","detail":"[]float64","kind":8,"range":{"start":{"line":31,"character":1},"end":{"line":31,"character":19}},"selectionRange":{"start":{"line":31,"character":1},"end":{"line":31,"character":9}}},{"name":"timeVals","detail":"[]float64","kind":8,"range":{"start":{"line":32,"character":1},"end":{"line":32,"character":19}},"selectionRange":{"start":{"line":32,"character":1},"end":{"line":32,"character":9}}}]},{"name":"splineTestTable","detail":"[]Spline1DData","kind":13,"range":{"start":{"line":35,"character":0},"end":{"line":40,"character":1}},"selectionRange":{"start":{"line":35,"character":4},"end":{"line":35,"character":19}}},{"name":"TestSpline1D","detail":"(t *testing.T)","kind":12,"range":{"start":{"line":43,"character":0},"end":{"line":133,"character":1}},"selectionRange":{"start":{"line":43,"character":5},"end":{"line":43,"character":17}}},{"name":"lineCounter","detail":"(r io.Reader)","kind":12,"range":{"start":{"line":207,"character":0},"end":{"line":225,"character":1}},"selectionRange":{"start":{"line":207,"character":5},"end":{"line":207,"character":16}}}]


[Trace - 17:32:32.870 PM] Received response 'textDocument/documentHighlight - (33)' in 355ms.
Result: [{"range":{"start":{"line":73,"character":28},"end":{"line":73,"character":31}},"kind":1},{"range":{"start":{"line":95,"character":8},"end":{"line":95,"character":11}},"kind":1},{"range":{"start":{"line":97,"character":5},"end":{"line":97,"character":8}},"kind":1},{"range":{"start":{"line":103,"character":5},"end":{"line":103,"character":8}},"kind":1},{"range":{"start":{"line":104,"character":15},"end":{"line":104,"character":18}},"kind":1},{"range":{"start":{"line":121,"character":16},"end":{"line":121,"character":19}},"kind":1},{"range":{"start":{"line":74,"character":5},"end":{"line":74,"character":8}},"kind":1},{"range":{"start":{"line":98,"character":15},"end":{"line":98,"character":18}},"kind":1},{"range":{"start":{"line":101,"character":13},"end":{"line":101,"character":16}},"kind":1},{"range":{"start":{"line":115,"character":6},"end":{"line":115,"character":9}},"kind":1},{"range":{"start":{"line":116,"character":16},"end":{"line":116,"character":19}},"kind":1},{"range":{"start":{"line":120,"character":6},"end":{"line":120,"character":9}},"kind":1}]


[Trace - 17:32:32.872 PM] Received response 'textDocument/foldingRange - (34)' in 136ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":9,"endCharacter":10,"kind":"imports"},{"startLine":12,"startCharacter":48,"endLine":26,"endCharacter":2},{"startLine":15,"startCharacter":16,"endLine":16,"endCharacter":18},{"startLine":20,"startCharacter":23,"endLine":25,"endCharacter":3},{"startLine":23,"startCharacter":17,"endLine":24,"endCharacter":19},{"startLine":29,"startCharacter":26,"endLine":32,"endCharacter":19},{"startLine":35,"startCharacter":37,"endLine":38,"endCharacter":116},{"startLine":43,"startCharacter":33,"endLine":132,"endCharacter":2},{"startLine":45,"startCharacter":24,"endLine":48,"endCharacter":5,"kind":"comment"},{"startLine":56,"startCharacter":37,"endLine":131,"endCharacter":3},{"startLine":57,"startCharacter":50,"endLine":58,"endCharacter":98,"kind":"comment"},{"startLine":65,"startCharacter":25,"endLine":66,"endCharacter":8},{"startLine":67,"startCharacter":32,"endLine":68,"endCharacter":8},{"startLine":69,"startCharacter":32,"endLine":70,"endCharacter":8},{"startLine":74,"startCharacter":17,"endLine":77,"endCharacter":9},{"startLine":75,"startCharacter":79,"endLine":76,"endCharacter":24,"kind":"comment"},{"startLine":85,"startCharacter":38,"endLine":86,"endCharacter":31},{"startLine":97,"startCharacter":17,"endLine":98,"endCharacter":19},{"startLine":103,"startCharacter":17,"endLine":104,"endCharacter":19},{"startLine":109,"startCharacter":7,"endLine":130,"endCharacter":4},{"startLine":116,"startCharacter":28,"endLine":117,"endCharacter":9},{"startLine":121,"startCharacter":28,"endLine":122,"endCharacter":9},{"startLine":126,"startCharacter":41,"endLine":128,"endCharacter":22},{"startLine":137,"startCharacter":6,"endLine":143,"endCharacter":97,"kind":"comment"},{"startLine":145,"startCharacter":68,"endLine":149,"endCharacter":5,"kind":"comment"},{"startLine":151,"startCharacter":76,"endLine":158,"endCharacter":5,"kind":"comment"},{"startLine":160,"startCharacter":62,"endLine":161,"endCharacter":59,"kind":"comment"},{"startLine":163,"startCharacter":74,"endLine":164,"endCharacter":36,"kind":"comment"},{"startLine":166,"startCharacter":42,"endLine":170,"endCharacter":5,"kind":"comment"},{"startLine":172,"startCharacter":50,"endLine":176,"endCharacter":5,"kind":"comment"},{"startLine":178,"startCharacter":75,"endLine":183,"endCharacter":21,"kind":"comment"},{"startLine":185,"startCharacter":14,"endLine":189,"endCharacter":6,"kind":"comment"},{"startLine":191,"startCharacter":38,"endLine":202,"endCharacter":6,"kind":"comment"},{"startLine":204,"startCharacter":5,"endLine":205,"endCharacter":4,"kind":"comment"},{"startLine":207,"startCharacter":44,"endLine":224,"endCharacter":2},{"startLine":212,"startCharacter":6,"endLine":222,"endCharacter":3},{"startLine":216,"startCharacter":10,"endLine":221,"endCharacter":20},{"startLine":217,"startCharacter":21,"endLine":218,"endCharacter":20},{"startLine":220,"startCharacter":18,"endLine":221,"endCharacter":20}]


[Trace - 17:32:32.872 PM] Received response 'textDocument/codeLens - (35)' in 114ms.
Result: null


[Trace - 17:32:32.979 PM] Sending request 'textDocument/codeAction - (36)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go"},"range":{"start":{"line":73,"character":29},"end":{"line":73,"character":29}},"context":{"diagnostics":[]}}


[Trace - 17:32:32.980 PM] Received response 'textDocument/codeAction - (36)' in 1ms.
Result: null


[Trace - 17:32:33.240 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:33 go/packages.Load\n\tsnapshot=2\n\tdirectory=/home/ivan/goworkspace\n\tquery=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go file=/home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline.go file=/home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go]\n\tpackages=2\n"}


[Trace - 17:32:33.240 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:33 go/packages.Load\n\tsnapshot=2\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]\n"}


[Trace - 17:32:33.240 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:33 go/packages.Load\n\tsnapshot=2\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go]\n"}


[Trace - 17:32:33.242 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go","version":1,"diagnostics":[{"range":{"start":{"line":73,"character":35},"end":{"line":73,"character":43}},"severity":1,"source":"compiler","message":"undeclared name: Spline1D"},{"range":{"start":{"line":90,"character":11},"end":{"line":90,"character":19}},"severity":1,"source":"compiler","message":"undeclared name: Evaluate"}]}


[Info  - 5:32:33 p.m.] 2020/07/10 17:32:33 go/packages.Load
	snapshot=2
	directory=/home/ivan/goworkspace
	query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go file=/home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline.go file=/home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go]
	packages=2

[Info  - 5:32:33 p.m.] 2020/07/10 17:32:33 go/packages.Load
	snapshot=2
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]

[Info  - 5:32:33 p.m.] 2020/07/10 17:32:33 go/packages.Load
	snapshot=2
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go]

[Trace - 17:32:33.512 PM] Sending request 'textDocument/codeAction - (37)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go"},"range":{"start":{"line":73,"character":29},"end":{"line":73,"character":29}},"context":{"diagnostics":[]}}


[Trace - 17:32:33.514 PM] Received response 'textDocument/codeAction - (37)' in 2ms.
Result: null


[Trace - 17:32:33.871 PM] Sending request 'textDocument/hover - (38)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go"},"position":{"line":80,"character":39}}


[Trace - 17:32:33.872 PM] Received response 'textDocument/hover - (38)' in 0ms.
Result: null


[Trace - 17:32:34.575 PM] Sending request 'textDocument/hover - (39)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go"},"position":{"line":73,"character":39}}


[Trace - 17:32:34.575 PM] Received response 'textDocument/hover - (39)' in 0ms.
Result: null


[Trace - 17:32:34.696 PM] Sending request 'textDocument/documentHighlight - (40)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go"},"position":{"line":73,"character":39}}


[Trace - 17:32:34.697 PM] Received response 'textDocument/documentHighlight - (40)' in 1ms.
Result: [{"range":{"start":{"line":73,"character":35},"end":{"line":73,"character":43}},"kind":1}]


[Trace - 17:32:34.943 PM] Sending request 'textDocument/codeAction - (41)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/dierckx/dierckxSpline_test.go"},"range":{"start":{"line":73,"character":39},"end":{"line":73,"character":39}},"context":{"diagnostics":[{"range":{"start":{"line":73,"character":35},"end":{"line":73,"character":43}},"message":"undeclared name: Spline1D","severity":1,"source":"compiler"}]}}


[Trace - 17:32:34.946 PM] Received response 'textDocument/codeAction - (41)' in 3ms.
Result: null


[Trace - 17:32:36.630 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go","languageId":"go","version":1,"text":REMOVED}}


[Trace - 17:32:36.630 PM] Sending request 'textDocument/documentLink - (42)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go"}}


[Trace - 17:32:36.630 PM] Sending request 'textDocument/codeAction - (43)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}


[Trace - 17:32:36.631 PM] Sending request 'textDocument/documentSymbol - (44)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go"}}


[Trace - 17:32:36.644 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:36 go/packages.Load\n\tsnapshot=3\n\tdirectory=/home/ivan/goworkspace\n\tquery=[./]\n\tpackages=1\n"}


[Info  - 5:32:36 p.m.] 2020/07/10 17:32:36 go/packages.Load
	snapshot=3
	directory=/home/ivan/goworkspace
	query=[./]
	packages=1

[Trace - 17:32:36.826 PM] Sending request 'textDocument/foldingRange - (45)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go"}}


[Trace - 17:32:36.875 PM] Sending request 'textDocument/codeLens - (46)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go"}}


[Trace - 17:32:36.925 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:36 go/packages.Load\n\tsnapshot=3\n\tdirectory=/home/ivan/goworkspace\n\tquery=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go]\n\tpackages=1\n"}


[Trace - 17:32:36.925 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:36 go/packages.Load\n\tsnapshot=3\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go]\n"}


[Info  - 5:32:36 p.m.] 2020/07/10 17:32:36 go/packages.Load
	snapshot=3
	directory=/home/ivan/goworkspace
	query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go]
	packages=1

[Info  - 5:32:36 p.m.] 2020/07/10 17:32:36 go/packages.Load
	snapshot=3
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go]

[Trace - 17:32:36.931 PM] Received response 'textDocument/documentLink - (42)' in 301ms.
Result: [{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":5}},"target":"https://pkg.go.dev/fmt"},{"range":{"start":{"line":4,"character":2},"end":{"line":4,"character":6}},"target":"https://pkg.go.dev/sync"},{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":6}},"target":"https://pkg.go.dev/time"},{"range":{"start":{"line":7,"character":2},"end":{"line":7,"character":48}},"target":"https://pkg.go.dev/github.com/ccatp/antenna-control-unit/datasets"}]


[Trace - 17:32:36.933 PM] Received response 'textDocument/codeAction - (43)' in 302ms.
Result: null


[Trace - 17:32:36.933 PM] Received response 'textDocument/documentSymbol - (44)' in 302ms.
Result: [{"name":"PTStackArray","detail":"struct{...}","kind":23,"range":{"start":{"line":11,"character":5},"end":{"line":24,"character":1}},"selectionRange":{"start":{"line":11,"character":5},"end":{"line":11,"character":17}},"children":[{"name":"Array","detail":"[20]datasets.TimePositionTransfer","kind":8,"range":{"start":{"line":18,"character":1},"end":{"line":18,"character":51}},"selectionRange":{"start":{"line":18,"character":1},"end":{"line":18,"character":6}}},{"name":"occupiedElements","detail":"int","kind":8,"range":{"start":{"line":19,"character":1},"end":{"line":19,"character":21}},"selectionRange":{"start":{"line":19,"character":1},"end":{"line":19,"character":17}}},{"name":"currentPosition","detail":"int","kind":8,"range":{"start":{"line":20,"character":1},"end":{"line":20,"character":21}},"selectionRange":{"start":{"line":20,"character":1},"end":{"line":20,"character":16}}},{"name":"firstElement","detail":"int","kind":8,"range":{"start":{"line":21,"character":1},"end":{"line":21,"character":21}},"selectionRange":{"start":{"line":21,"character":1},"end":{"line":21,"character":13}}},{"name":"Mutex","detail":"struct{...}","kind":8,"range":{"start":{"line":23,"character":1},"end":{"line":23,"character":11}},"selectionRange":{"start":{"line":23,"character":1},"end":{"line":23,"character":11}}}]},{"name":"GlobalPTStackArray","detail":"PTStackArray","kind":13,"range":{"start":{"line":27,"character":0},"end":{"line":27,"character":35}},"selectionRange":{"start":{"line":27,"character":4},"end":{"line":27,"character":22}}},{"name":"(*PTStackArray).push","detail":"(newStructList []datasets.TimePositionTransfer)","kind":6,"range":{"start":{"line":29,"character":0},"end":{"line":83,"character":1}},"selectionRange":{"start":{"line":29,"character":25},"end":{"line":29,"character":29}}},{"name":"(*PTStackArray).pop","detail":"()","kind":6,"range":{"start":{"line":85,"character":0},"end":{"line":108,"character":1}},"selectionRange":{"start":{"line":85,"character":25},"end":{"line":85,"character":28}}},{"name":"(*PTStackArray).returnUnused","detail":"()","kind":6,"range":{"start":{"line":110,"character":0},"end":{"line":133,"character":1}},"selectionRange":{"start":{"line":110,"character":25},"end":{"line":110,"character":37}}},{"name":"(*PTStackArray).checkEmpty","detail":"()","kind":6,"range":{"start":{"line":135,"character":0},"end":{"line":140,"character":1}},"selectionRange":{"start":{"line":135,"character":25},"end":{"line":135,"character":35}}},{"name":"(*PTStackArray).scan","detail":"(element int)","kind":6,"range":{"start":{"line":142,"character":0},"end":{"line":158,"character":1}},"selectionRange":{"start":{"line":142,"character":25},"end":{"line":142,"character":29}}}]


[Trace - 17:32:36.934 PM] Received response 'textDocument/foldingRange - (45)' in 107ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":7,"endCharacter":49,"kind":"imports"},{"startLine":11,"startCharacter":26,"endLine":23,"endCharacter":11},{"startLine":29,"startCharacter":84,"endLine":82,"endCharacter":11},{"startLine":44,"startCharacter":31,"endLine":76,"endCharacter":24},{"startLine":47,"startCharacter":32,"endLine":50,"endCharacter":24},{"startLine":51,"startCharacter":10,"endLine":55,"endCharacter":32},{"startLine":59,"startCharacter":81,"endLine":60,"endCharacter":125},{"startLine":64,"startCharacter":45,"endLine":65,"endCharacter":65},{"startLine":66,"startCharacter":51,"endLine":68,"endCharacter":26},{"startLine":85,"startCharacter":71,"endLine":106,"endCharacter":25},{"startLine":90,"startCharacter":31,"endLine":91,"endCharacter":74},{"startLine":101,"startCharacter":40,"endLine":102,"endCharacter":22},{"startLine":110,"startCharacter":80,"endLine":131,"endCharacter":25},{"startLine":115,"startCharacter":31,"endLine":116,"endCharacter":74},{"startLine":126,"startCharacter":40,"endLine":127,"endCharacter":22},{"startLine":135,"startCharacter":44,"endLine":139,"endCharacter":13},{"startLine":136,"startCharacter":31,"endLine":137,"endCharacter":13},{"startLine":142,"startCharacter":83,"endLine":156,"endCharacter":48},{"startLine":148,"startCharacter":36,"endLine":149,"endCharacter":100},{"startLine":153,"startCharacter":47,"endLine":154,"endCharacter":64}]


[Trace - 17:32:36.934 PM] Received response 'textDocument/codeLens - (46)' in 59ms.
Result: null


[Trace - 17:32:37.092 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:37 go/packages.Load\n\tsnapshot=3\n\tdirectory=/home/ivan/goworkspace\n\tquery=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go]\n\tpackages=1\n"}


[Info  - 5:32:37 p.m.] 2020/07/10 17:32:37 go/packages.Load
	snapshot=3
	directory=/home/ivan/goworkspace
	query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go]
	packages=1

[Trace - 17:32:37.092 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:37 go/packages.Load\n\tsnapshot=3\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]\n"}


[Info  - 5:32:37 p.m.] 2020/07/10 17:32:37 go/packages.Load
	snapshot=3
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]

[Trace - 17:32:37.207 PM] Sending request 'textDocument/hover - (47)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go"},"position":{"line":53,"character":38}}


[Trace - 17:32:37.209 PM] Received response 'textDocument/hover - (47)' in 1ms.
Result: {"contents":{"kind":"markdown","value":"```go\nfield currentPosition int\n```"},"range":{"start":{"line":53,"character":31},"end":{"line":53,"character":46}}}


[Trace - 17:32:40.106 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go","languageId":"go","version":1,"text":REMOVED}}


[Trace - 17:32:40.107 PM] Sending request 'textDocument/documentLink - (48)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"}}


[Trace - 17:32:40.107 PM] Sending request 'textDocument/codeAction - (49)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}


[Trace - 17:32:40.109 PM] Sending request 'textDocument/documentSymbol - (50)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"}}


[Trace - 17:32:40.125 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:40 go/packages.Load\n\tsnapshot=4\n\tdirectory=/home/ivan/goworkspace\n\tquery=[./]\n\tpackages=1\n"}


[Info  - 5:32:40 p.m.] 2020/07/10 17:32:40 go/packages.Load
	snapshot=4
	directory=/home/ivan/goworkspace
	query=[./]
	packages=1

[Trace - 17:32:40.261 PM] Sending request 'textDocument/foldingRange - (51)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"}}


[Trace - 17:32:40.323 PM] Sending request 'textDocument/codeLens - (52)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"}}


[Trace - 17:32:40.324 PM] Sending request 'textDocument/codeAction - (53)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"range":{"start":{"line":153,"character":21},"end":{"line":153,"character":36}},"context":{"diagnostics":[]}}


[Trace - 17:32:40.330 PM] Sending notification '$/cancelRequest'.
Params: {"id":49}


[Trace - 17:32:40.456 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:40 go/packages.Load\n\tsnapshot=4\n\tdirectory=/home/ivan/goworkspace\n\tquery=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go]\n\tpackages=1\n"}


[Trace - 17:32:40.456 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:40 go/packages.Load\n\tsnapshot=4\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go]\n"}


[Info  - 5:32:40 p.m.] 2020/07/10 17:32:40 go/packages.Load
	snapshot=4
	directory=/home/ivan/goworkspace
	query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go]
	packages=1

[Info  - 5:32:40 p.m.] 2020/07/10 17:32:40 go/packages.Load
	snapshot=4
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go]

[Trace - 17:32:40.527 PM] Received response 'textDocument/documentLink - (48)' in 420ms.
Result: [{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":7}},"target":"https://pkg.go.dev/bytes"},{"range":{"start":{"line":4,"character":2},"end":{"line":4,"character":17}},"target":"https://pkg.go.dev/encoding/binary"},{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":5}},"target":"https://pkg.go.dev/fmt"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":6}},"target":"https://pkg.go.dev/math"},{"range":{"start":{"line":7,"character":2},"end":{"line":7,"character":5}},"target":"https://pkg.go.dev/net"},{"range":{"start":{"line":8,"character":2},"end":{"line":8,"character":6}},"target":"https://pkg.go.dev/time"},{"range":{"start":{"line":10,"character":2},"end":{"line":10,"character":48}},"target":"https://pkg.go.dev/github.com/ccatp/antenna-control-unit/datasets"},{"range":{"start":{"line":11,"character":13},"end":{"line":11,"character":63}},"target":"https://github.com/iisharankov/GoStuff/splineInterpolation"},{"range":{"start":{"line":181,"character":33},"end":{"line":181,"character":41}},"target":"https://time.Now"},{"range":{"start":{"line":228,"character":17},"end":{"line":228,"character":25}},"target":"https://time.Now"},{"range":{"start":{"line":229,"character":17},"end":{"line":229,"character":25}},"target":"https://time.Now"}]


[Error - Received] 17:32:40.527 PM #49 JSON RPC cancelled


[Trace - 17:32:40.527 PM] Received response 'textDocument/documentSymbol - (50)' in 418ms.
Result: [{"name":"UDPBroadcast","detail":"(UDPBroadcastStatusChan chan invalid type, TPTStructForUDPChan chan datasets.TimePositionTransfer)","kind":12,"range":{"start":{"line":15,"character":0},"end":{"line":126,"character":1}},"selectionRange":{"start":{"line":15,"character":5},"end":{"line":15,"character":17}}},{"name":"Clock","detail":"(ACUStatus *invalid type, TPTStructForUDPChan chan datasets.TimePositionTransfer)","kind":12,"range":{"start":{"line":129,"character":0},"end":{"line":202,"character":1}},"selectionRange":{"start":{"line":129,"character":5},"end":{"line":129,"character":10}}},{"name":"evaluateNextSplinePoint","detail":"(nextSplinePoint invalid type, ACUStatus *invalid type, TPTStructForUDPChan chan datasets.TimePositionTransfer)","kind":12,"range":{"start":{"line":204,"character":0},"end":{"line":250,"character":1}},"selectionRange":{"start":{"line":204,"character":5},"end":{"line":204,"character":28}}},{"name":"getCurrentPositionAsTPTStruct","detail":"(ACUStatus *invalid type)","kind":12,"range":{"start":{"line":253,"character":0},"end":{"line":271,"character":1}},"selectionRange":{"start":{"line":253,"character":5},"end":{"line":253,"character":34}}}]


[Trace - 17:32:40.528 PM] Received response 'textDocument/foldingRange - (51)' in 266ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":10,"endCharacter":49,"kind":"imports"},{"startLine":15,"startCharacter":122,"endLine":124,"endCharacter":2},{"startLine":30,"startCharacter":59,"endLine":35,"endCharacter":20,"kind":"comment"},{"startLine":47,"startCharacter":6,"endLine":122,"endCharacter":3},{"startLine":48,"startCharacter":10,"endLine":121,"endCharacter":4},{"startLine":56,"startCharacter":31,"endLine":58,"endCharacter":28},{"startLine":59,"startCharacter":38,"endLine":61,"endCharacter":28},{"startLine":62,"startCharacter":11,"endLine":63,"endCharacter":35},{"startLine":66,"startCharacter":16,"endLine":71,"endCharacter":12},{"startLine":67,"startCharacter":20,"endLine":68,"endCharacter":17},{"startLine":78,"startCharacter":18,"endLine":79,"endCharacter":20},{"startLine":83,"startCharacter":18,"endLine":84,"endCharacter":20},{"startLine":97,"startCharacter":21,"endLine":119,"endCharacter":5},{"startLine":101,"startCharacter":32,"endLine":102,"endCharacter":13},{"startLine":108,"startCharacter":19,"endLine":109,"endCharacter":45},{"startLine":112,"startCharacter":39,"endLine":113,"endCharacter":27,"kind":"comment"},{"startLine":117,"startCharacter":19,"endLine":118,"endCharacter":15},{"startLine":129,"startCharacter":95,"endLine":201,"endCharacter":4},{"startLine":150,"startCharacter":12,"endLine":200,"endCharacter":3},{"startLine":151,"startCharacter":7,"endLine":199,"endCharacter":4},{"startLine":152,"startCharacter":11,"endLine":198,"endCharacter":5},{"startLine":156,"startCharacter":34,"endLine":157,"endCharacter":41},{"startLine":163,"startCharacter":28,"endLine":178,"endCharacter":6},{"startLine":168,"startCharacter":116,"endLine":171,"endCharacter":11},{"startLine":173,"startCharacter":13,"endLine":177,"endCharacter":78},{"startLine":179,"startCharacter":71,"endLine":184,"endCharacter":69,"kind":"comment"},{"startLine":186,"startCharacter":12,"endLine":197,"endCharacter":39},{"startLine":204,"startCharacter":143,"endLine":248,"endCharacter":2},{"startLine":210,"startCharacter":24,"endLine":211,"endCharacter":22},{"startLine":212,"startCharacter":30,"endLine":213,"endCharacter":21},{"startLine":215,"startCharacter":21,"endLine":216,"endCharacter":19},{"startLine":217,"startCharacter":30,"endLine":218,"endCharacter":21},{"startLine":220,"startCharacter":56,"endLine":222,"endCharacter":8},{"startLine":226,"startCharacter":11,"endLine":247,"endCharacter":7},{"startLine":227,"startCharacter":36,"endLine":229,"endCharacter":41,"kind":"comment"},{"startLine":232,"startCharacter":56,"endLine":234,"endCharacter":11},{"startLine":253,"startCharacter":93,"endLine":270,"endCharacter":19},{"startLine":258,"startCharacter":3,"endLine":259,"endCharacter":71,"kind":"comment"}]


[Trace - 17:32:40.528 PM] Received response 'textDocument/codeLens - (52)' in 204ms.
Result: null


[Trace - 17:32:40.529 PM] Received response 'textDocument/codeAction - (53)' in 204ms.
Result: null


[Trace - 17:32:40.612 PM] Sending request 'textDocument/codeAction - (54)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"range":{"start":{"line":153,"character":21},"end":{"line":153,"character":36}},"context":{"diagnostics":[]}}


[Trace - 17:32:40.613 PM] Received response 'textDocument/codeAction - (54)' in 1ms.
Result: null


[Trace - 17:32:40.661 PM] Sending request 'textDocument/hover - (55)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"position":{"line":144,"character":30}}


[Trace - 17:32:40.661 PM] Received response 'textDocument/hover - (55)' in 0ms.
Result: null


[Trace - 17:32:40.832 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:40 go/packages.Load\n\tsnapshot=4\n\tdirectory=/home/ivan/goworkspace\n\tquery=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go]\n\tpackages=1\n"}


[Info  - 5:32:40 p.m.] 2020/07/10 17:32:40 go/packages.Load
	snapshot=4
	directory=/home/ivan/goworkspace
	query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/ptStackArray.go]
	packages=1

[Trace - 17:32:40.832 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 17:32:40 go/packages.Load\n\tsnapshot=4\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]\n"}


[Info  - 5:32:40 p.m.] 2020/07/10 17:32:40 go/packages.Load
	snapshot=4
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]

[Trace - 17:32:40.835 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go","version":1,"diagnostics":[{"range":{"start":{"line":15,"character":46},"end":{"line":15,"character":63}},"severity":1,"source":"compiler","message":"undeclared name: UDPBroadcastState"},{"range":{"start":{"line":43,"character":19},"end":{"line":43,"character":39}},"severity":1,"source":"compiler","message":"undeclared name: defaultBroadcastHost"},{"range":{"start":{"line":44,"character":19},"end":{"line":44,"character":39}},"severity":1,"source":"compiler","message":"undeclared name: defaultBroadcastPort"},{"range":{"start":{"line":129,"character":22},"end":{"line":129,"character":36}},"severity":1,"source":"compiler","message":"undeclared name: telescopeState"},{"range":{"start":{"line":143,"character":18},"end":{"line":143,"character":30}},"severity":1,"source":"compiler","message":"undeclared name: ProcessedTPT"},{"range":{"start":{"line":144,"character":21},"end":{"line":144,"character":33}},"severity":1,"source":"compiler","message":"undeclared name: ProcessedTPT"},{"range":{"start":{"line":149,"character":16},"end":{"line":149,"character":28}},"severity":1,"source":"compiler","message":"undeclared name: ProcessedTPT"},{"range":{"start":{"line":153,"character":21},"end":{"line":153,"character":36}},"severity":1,"source":"compiler","message":"undeclared name: clockSplineChan"},{"range":{"start":{"line":204,"character":45},"end":{"line":204,"character":57}},"severity":1,"source":"compiler","message":"undeclared name: ProcessedTPT"},{"range":{"start":{"line":204,"character":70},"end":{"line":204,"character":84}},"severity":1,"source":"compiler","message":"undeclared name: telescopeState"},{"range":{"start":{"line":253,"character":46},"end":{"line":253,"character":60}},"severity":1,"source":"compiler","message":"undeclared name: telescopeState"}]}


[Trace - 17:32:41.133 PM] Sending request 'textDocument/codeAction - (56)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"range":{"start":{"line":153,"character":21},"end":{"line":153,"character":36}},"context":{"diagnostics":[{"range":{"start":{"line":153,"character":21},"end":{"line":153,"character":36}},"message":"undeclared name: clockSplineChan","severity":1,"source":"compiler"}]}}


[Trace - 17:32:41.134 PM] Received response 'textDocument/codeAction - (56)' in 1ms.
Result: [{"title":"Create variable \"clockSplineChan\"","kind":"quickfix","diagnostics":[{"range":{"start":{"line":153,"character":21},"end":{"line":153,"character":36}},"severity":1,"source":"compiler","message":"undeclared name: clockSplineChan"}],"edit":{"documentChanges":[{"textDocument":{"version":1,"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"edits":[{"range":{"start":{"line":153,"character":8},"end":{"line":153,"character":8}},"newText":"clockSplineChan := \n\t\t\tcase "}]}]}}]


[Trace - 17:32:42.080 PM] Sending request 'textDocument/hover - (57)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"position":{"line":239,"character":36}}


[Trace - 17:32:42.081 PM] Received response 'textDocument/hover - (57)' in 0ms.
Result: null


[Trace - 17:32:43.269 PM] Sending request 'textDocument/hover - (58)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"position":{"line":246,"character":40}}


[Trace - 17:32:43.270 PM] Received response 'textDocument/hover - (58)' in 0ms.
Result: null


[Trace - 17:32:43.621 PM] Sending request 'textDocument/hover - (59)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"position":{"line":253,"character":55}}


[Trace - 17:32:43.622 PM] Received response 'textDocument/hover - (59)' in 1ms.
Result: null


[Trace - 17:32:43.932 PM] Sending request 'textDocument/documentHighlight - (60)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"position":{"line":253,"character":55}}


[Trace - 17:32:43.933 PM] Received response 'textDocument/documentHighlight - (60)' in 0ms.
Result: [{"range":{"start":{"line":253,"character":46},"end":{"line":253,"character":60}},"kind":1},{"range":{"start":{"line":129,"character":22},"end":{"line":129,"character":36}},"kind":1},{"range":{"start":{"line":204,"character":70},"end":{"line":204,"character":84}},"kind":1}]


[Trace - 17:32:44.149 PM] Sending request 'textDocument/codeAction - (61)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"range":{"start":{"line":253,"character":55},"end":{"line":253,"character":55}},"context":{"diagnostics":[{"range":{"start":{"line":253,"character":46},"end":{"line":253,"character":60}},"message":"undeclared name: telescopeState","severity":1,"source":"compiler"}]}}


[Trace - 17:32:44.153 PM] Received response 'textDocument/codeAction - (61)' in 3ms.
Result: null

@stamblerre
Copy link
Contributor

Ah, it seems like you're opening your VS Code with your entire GOPATH (/home/ivan/goworkspace). I believe that we have specific handling to avoid loading the entire workspace in that case, as it may be very expensive to index the entire GOPATH. I would suggest opening a subdirectory of your GOPATH. Take a look at golang/go#36899 for more detail.

@iisharankov
Copy link
Author

Wait, so what am I doing wrong exactly? I opened a new window on VS Code and directed it only to /home/ivan/workspace/stc/github.com/iisharankov/ instead of just /home/ivan/goworkspace, and the same errors remain. Am i not setting up the workspace properly? I'm a bit lost to what's the issue here.

Thanks though for the speedy updates!

@stamblerre
Copy link
Contributor

stamblerre commented Jul 10, 2020

That should work - can you share the log in that case?
My guess about the cause of the previous issue was that we were only loading the top-level directories in your workspace:

[Info  - 5:32:17 p.m.] 2020/07/10 17:32:17 go/packages.Load
	snapshot=0
	directory=/home/ivan/goworkspace
	query=[./ builtin]
	packages=2

The query would be query=[./... builtin] if gopls was loading all subdirectories.

@stamblerre stamblerre reopened this Jul 10, 2020
@iisharankov
Copy link
Author

Here's a small snippet in the new workspace. Let me know also if there's a cleaner/easier way to send this that you'd prefer other than a code block.


[Trace - 19:14:57.501 PM] Received response 'textDocument/codeAction - (9)' in 2ms.
Result: null


[Trace - 19:15:09.519 PM] Sending request 'textDocument/hover - (10)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":25,"character":29}}


[Trace - 19:15:09.519 PM] Received response 'textDocument/hover - (10)' in 0ms.
Result: null


[Trace - 19:15:10.459 PM] Sending request 'textDocument/codeAction - (11)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":13,"character":26},"end":{"line":13,"character":26}},"context":{"diagnostics":[]}}


[Trace - 19:15:10.462 PM] Received response 'textDocument/codeAction - (11)' in 3ms.
Result: null


[Trace - 19:15:11.287 PM] Sending request 'textDocument/documentHighlight - (12)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":39,"character":24}}


[Trace - 19:15:11.287 PM] Received response 'textDocument/documentHighlight - (12)' in 0ms.
Result: [{"range":{"start":{"line":39,"character":11},"end":{"line":39,"character":40}},"kind":1}]


[Trace - 19:15:11.540 PM] Sending request 'textDocument/codeAction - (13)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":39,"character":24},"end":{"line":39,"character":24}},"context":{"diagnostics":[{"range":{"start":{"line":39,"character":11},"end":{"line":39,"character":40}},"message":"undeclared name: getCurrentPositionAsTPTStruct","severity":1,"source":"compiler"}]}}


[Trace - 19:15:11.544 PM] Received response 'textDocument/codeAction - (13)' in 4ms.
Result: null


[Trace - 19:15:12.265 PM] Sending request 'textDocument/hover - (14)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":51,"character":24}}


[Trace - 19:15:12.266 PM] Received response 'textDocument/hover - (14)' in 0ms.
Result: null


[Trace - 19:15:12.325 PM] Sending request 'textDocument/documentHighlight - (15)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":51,"character":25}}


[Trace - 19:15:12.326 PM] Received response 'textDocument/documentHighlight - (15)' in 0ms.
Result: [{"range":{"start":{"line":51,"character":25},"end":{"line":51,"character":35}},"kind":1}]


[Trace - 19:15:12.541 PM] Sending request 'textDocument/codeAction - (16)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":51,"character":25},"end":{"line":51,"character":25}},"context":{"diagnostics":[{"range":{"start":{"line":51,"character":6},"end":{"line":51,"character":35}},"message":"undeclared name: GlobalPTStackArray","severity":1,"source":"compiler"}]}}


[Trace - 19:15:12.545 PM] Received response 'textDocument/codeAction - (16)' in 3ms.
Result: null


[Trace - 19:15:13.603 PM] Sending request 'textDocument/hover - (17)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":57,"character":25}}


[Trace - 19:15:13.603 PM] Received response 'textDocument/hover - (17)' in 0ms.
Result: null


[Trace - 19:15:13.758 PM] Sending request 'textDocument/documentHighlight - (18)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":56,"character":25}}


[Trace - 19:15:13.760 PM] Received response 'textDocument/documentHighlight - (18)' in 1ms.
Result: [{"range":{"start":{"line":51,"character":6},"end":{"line":51,"character":24}},"kind":1},{"range":{"start":{"line":56,"character":16},"end":{"line":56,"character":34}},"kind":1}]


[Trace - 19:15:14.008 PM] Sending request 'textDocument/codeAction - (19)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":56,"character":25},"end":{"line":56,"character":25}},"context":{"diagnostics":[{"range":{"start":{"line":56,"character":16},"end":{"line":56,"character":38}},"message":"undeclared name: GlobalPTStackArray","severity":1,"source":"compiler"}]}}


[Trace - 19:15:14.012 PM] Received response 'textDocument/codeAction - (19)' in 4ms.
Result: null


[Trace - 19:15:17.042 PM] Sending request 'textDocument/documentHighlight - (20)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"position":{"line":69,"character":8}}


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


[Trace - 19:15:17.268 PM] Sending request 'textDocument/codeAction - (21)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go"},"range":{"start":{"line":69,"character":8},"end":{"line":69,"character":8}},"context":{"diagnostics":[{"range":{"start":{"line":69,"character":1},"end":{"line":69,"character":16}},"message":"undeclared name: clockSplineChan","severity":1,"source":"compiler"}]}}


[Trace - 19:15:17.272 PM] Received response 'textDocument/codeAction - (21)' in 3ms.
Result: null


[Trace - 19:15:17.985 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go","languageId":"go","version":1,"text":REDACTED}}


[Trace - 19:15:17.986 PM] Sending request 'textDocument/documentLink - (22)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"}}


[Trace - 19:15:17.986 PM] Sending request 'textDocument/codeAction - (23)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}


[Trace - 19:15:17.988 PM] Sending request 'textDocument/documentSymbol - (24)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"}}


[Trace - 19:15:18.127 PM] Sending request 'textDocument/foldingRange - (25)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"}}


[Trace - 19:15:18.178 PM] Sending request 'textDocument/codeLens - (26)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"}}


[Trace - 19:15:18.343 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 19:15:18 go/packages.Load\n\tsnapshot=2\n\tdirectory=/home/ivan/goworkspace/src/github.com/iisharankov\n\tquery=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go]\n\tpackages=1\n"}


[Trace - 19:15:18.343 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 19:15:18 go/packages.Load\n\tsnapshot=2\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go]\n"}


[Info  - 7:15:18 p.m.] 2020/07/10 19:15:18 go/packages.Load
	snapshot=2
	directory=/home/ivan/goworkspace/src/github.com/iisharankov
	query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go]
	packages=1

[Info  - 7:15:18 p.m.] 2020/07/10 19:15:18 go/packages.Load
	snapshot=2
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go]

[Trace - 19:15:18.372 PM] Received response 'textDocument/documentLink - (22)' in 386ms.
Result: [{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":7}},"target":"https://pkg.go.dev/bytes"},{"range":{"start":{"line":4,"character":2},"end":{"line":4,"character":17}},"target":"https://pkg.go.dev/encoding/binary"},{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":5}},"target":"https://pkg.go.dev/fmt"},{"range":{"start":{"line":6,"character":2},"end":{"line":6,"character":6}},"target":"https://pkg.go.dev/math"},{"range":{"start":{"line":7,"character":2},"end":{"line":7,"character":5}},"target":"https://pkg.go.dev/net"},{"range":{"start":{"line":8,"character":2},"end":{"line":8,"character":6}},"target":"https://pkg.go.dev/time"},{"range":{"start":{"line":10,"character":2},"end":{"line":10,"character":48}},"target":"https://pkg.go.dev/github.com/ccatp/antenna-control-unit/datasets"},{"range":{"start":{"line":11,"character":13},"end":{"line":11,"character":63}},"target":"https://github.com/iisharankov/GoStuff/splineInterpolation"},{"range":{"start":{"line":181,"character":33},"end":{"line":181,"character":41}},"target":"https://time.Now"},{"range":{"start":{"line":228,"character":17},"end":{"line":228,"character":25}},"target":"https://time.Now"},{"range":{"start":{"line":229,"character":17},"end":{"line":229,"character":25}},"target":"https://time.Now"}]


[Trace - 19:15:18.374 PM] Received response 'textDocument/codeAction - (23)' in 387ms.
Result: null


[Trace - 19:15:18.374 PM] Received response 'textDocument/documentSymbol - (24)' in 385ms.
Result: [{"name":"UDPBroadcast","detail":"(UDPBroadcastStatusChan chan invalid type, TPTStructForUDPChan chan datasets.TimePositionTransfer)","kind":12,"range":{"start":{"line":15,"character":0},"end":{"line":126,"character":1}},"selectionRange":{"start":{"line":15,"character":5},"end":{"line":15,"character":17}}},{"name":"Clock","detail":"(ACUStatus *invalid type, TPTStructForUDPChan chan datasets.TimePositionTransfer)","kind":12,"range":{"start":{"line":129,"character":0},"end":{"line":202,"character":1}},"selectionRange":{"start":{"line":129,"character":5},"end":{"line":129,"character":10}}},{"name":"evaluateNextSplinePoint","detail":"(nextSplinePoint invalid type, ACUStatus *invalid type, TPTStructForUDPChan chan datasets.TimePositionTransfer)","kind":12,"range":{"start":{"line":204,"character":0},"end":{"line":250,"character":1}},"selectionRange":{"start":{"line":204,"character":5},"end":{"line":204,"character":28}}},{"name":"getCurrentPositionAsTPTStruct","detail":"(ACUStatus *invalid type)","kind":12,"range":{"start":{"line":253,"character":0},"end":{"line":271,"character":1}},"selectionRange":{"start":{"line":253,"character":5},"end":{"line":253,"character":34}}}]


[Trace - 19:15:18.376 PM] Received response 'textDocument/foldingRange - (25)' in 248ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":10,"endCharacter":49,"kind":"imports"},{"startLine":15,"startCharacter":122,"endLine":124,"endCharacter":2},{"startLine":30,"startCharacter":59,"endLine":35,"endCharacter":20,"kind":"comment"},{"startLine":47,"startCharacter":6,"endLine":122,"endCharacter":3},{"startLine":48,"startCharacter":10,"endLine":121,"endCharacter":4},{"startLine":56,"startCharacter":31,"endLine":58,"endCharacter":28},{"startLine":59,"startCharacter":38,"endLine":61,"endCharacter":28},{"startLine":62,"startCharacter":11,"endLine":63,"endCharacter":35},{"startLine":66,"startCharacter":16,"endLine":71,"endCharacter":12},{"startLine":67,"startCharacter":20,"endLine":68,"endCharacter":17},{"startLine":78,"startCharacter":18,"endLine":79,"endCharacter":20},{"startLine":83,"startCharacter":18,"endLine":84,"endCharacter":20},{"startLine":97,"startCharacter":21,"endLine":119,"endCharacter":5},{"startLine":101,"startCharacter":32,"endLine":102,"endCharacter":13},{"startLine":108,"startCharacter":19,"endLine":109,"endCharacter":45},{"startLine":112,"startCharacter":39,"endLine":113,"endCharacter":27,"kind":"comment"},{"startLine":117,"startCharacter":19,"endLine":118,"endCharacter":15},{"startLine":129,"startCharacter":95,"endLine":201,"endCharacter":4},{"startLine":150,"startCharacter":12,"endLine":200,"endCharacter":3},{"startLine":151,"startCharacter":7,"endLine":199,"endCharacter":4},{"startLine":152,"startCharacter":11,"endLine":198,"endCharacter":5},{"startLine":156,"startCharacter":34,"endLine":157,"endCharacter":41},{"startLine":163,"startCharacter":28,"endLine":178,"endCharacter":6},{"startLine":168,"startCharacter":116,"endLine":171,"endCharacter":11},{"startLine":173,"startCharacter":13,"endLine":177,"endCharacter":78},{"startLine":179,"startCharacter":71,"endLine":184,"endCharacter":69,"kind":"comment"},{"startLine":186,"startCharacter":12,"endLine":197,"endCharacter":39},{"startLine":204,"startCharacter":143,"endLine":248,"endCharacter":2},{"startLine":210,"startCharacter":24,"endLine":211,"endCharacter":22},{"startLine":212,"startCharacter":30,"endLine":213,"endCharacter":21},{"startLine":215,"startCharacter":21,"endLine":216,"endCharacter":19},{"startLine":217,"startCharacter":30,"endLine":218,"endCharacter":21},{"startLine":220,"startCharacter":56,"endLine":222,"endCharacter":8},{"startLine":226,"startCharacter":11,"endLine":247,"endCharacter":7},{"startLine":227,"startCharacter":36,"endLine":229,"endCharacter":41,"kind":"comment"},{"startLine":232,"startCharacter":56,"endLine":234,"endCharacter":11},{"startLine":253,"startCharacter":93,"endLine":270,"endCharacter":19},{"startLine":258,"startCharacter":3,"endLine":259,"endCharacter":71,"kind":"comment"}]


[Trace - 19:15:18.376 PM] Received response 'textDocument/codeLens - (26)' in 198ms.
Result: null


[Trace - 19:15:18.500 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 19:15:18 go/packages.Load\n\tsnapshot=2\n\tdirectory=/home/ivan/goworkspace/src/github.com/iisharankov\n\tquery=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go]\n\tpackages=1\n"}


[Trace - 19:15:18.501 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/07/10 19:15:18 go/packages.Load\n\tsnapshot=2\n\tpackage_path=\"command-line-arguments\"\n\tfiles=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]\n"}


[Info  - 7:15:18 p.m.] 2020/07/10 19:15:18 go/packages.Load
	snapshot=2
	directory=/home/ivan/goworkspace/src/github.com/iisharankov
	query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go]
	packages=1

[Info  - 7:15:18 p.m.] 2020/07/10 19:15:18 go/packages.Load
	snapshot=2
	package_path="command-line-arguments"
	files=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/dierckxPort.go]

[Trace - 19:15:18.504 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go","version":1,"diagnostics":[{"range":{"start":{"line":15,"character":46},"end":{"line":15,"character":63}},"severity":1,"source":"compiler","message":"undeclared name: UDPBroadcastState"},{"range":{"start":{"line":43,"character":19},"end":{"line":43,"character":39}},"severity":1,"source":"compiler","message":"undeclared name: defaultBroadcastHost"},{"range":{"start":{"line":44,"character":19},"end":{"line":44,"character":39}},"severity":1,"source":"compiler","message":"undeclared name: defaultBroadcastPort"},{"range":{"start":{"line":129,"character":22},"end":{"line":129,"character":36}},"severity":1,"source":"compiler","message":"undeclared name: telescopeState"},{"range":{"start":{"line":143,"character":18},"end":{"line":143,"character":30}},"severity":1,"source":"compiler","message":"undeclared name: ProcessedTPT"},{"range":{"start":{"line":144,"character":21},"end":{"line":144,"character":33}},"severity":1,"source":"compiler","message":"undeclared name: ProcessedTPT"},{"range":{"start":{"line":149,"character":16},"end":{"line":149,"character":28}},"severity":1,"source":"compiler","message":"undeclared name: ProcessedTPT"},{"range":{"start":{"line":153,"character":21},"end":{"line":153,"character":36}},"severity":1,"source":"compiler","message":"undeclared name: clockSplineChan"},{"range":{"start":{"line":204,"character":45},"end":{"line":204,"character":57}},"severity":1,"source":"compiler","message":"undeclared name: ProcessedTPT"},{"range":{"start":{"line":204,"character":70},"end":{"line":204,"character":84}},"severity":1,"source":"compiler","message":"undeclared name: telescopeState"},{"range":{"start":{"line":253,"character":46},"end":{"line":253,"character":60}},"severity":1,"source":"compiler","message":"undeclared name: telescopeState"}]}


[Trace - 19:15:18.506 PM] Sending request 'textDocument/codeAction - (27)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}


[Trace - 19:15:18.506 PM] Received response 'textDocument/codeAction - (27)' in 0ms.
Result: null


[Trace - 19:15:18.834 PM] Sending request 'textDocument/codeAction - (28)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}


[Trace - 19:15:18.835 PM] Received response 'textDocument/codeAction - (28)' in 1ms.
Result: null


[Trace - 19:15:20.510 PM] Sending request 'textDocument/hover - (29)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"position":{"line":44,"character":26}}


[Trace - 19:15:20.511 PM] Received response 'textDocument/hover - (29)' in 0ms.
Result: null


[Trace - 19:15:20.520 PM] Sending request 'textDocument/documentHighlight - (30)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"position":{"line":44,"character":27}}


[Trace - 19:15:20.521 PM] Received response 'textDocument/documentHighlight - (30)' in 0ms.
Result: [{"range":{"start":{"line":44,"character":19},"end":{"line":44,"character":39}},"kind":1}]


[Trace - 19:15:20.769 PM] Sending request 'textDocument/codeAction - (31)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"range":{"start":{"line":44,"character":27},"end":{"line":44,"character":27}},"context":{"diagnostics":[{"range":{"start":{"line":44,"character":19},"end":{"line":44,"character":39}},"message":"undeclared name: defaultBroadcastPort","severity":1,"source":"compiler"}]}}


[Trace - 19:15:20.772 PM] Received response 'textDocument/codeAction - (31)' in 2ms.
Result: [{"title":"Create variable \"defaultBroadcastPort\"","kind":"quickfix","diagnostics":[{"range":{"start":{"line":44,"character":19},"end":{"line":44,"character":39}},"severity":1,"source":"compiler","message":"undeclared name: defaultBroadcastPort"}],"edit":{"documentChanges":[{"textDocument":{"version":1,"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"edits":[{"range":{"start":{"line":44,"character":1},"end":{"line":44,"character":1}},"newText":"defaultBroadcastPort := \n\t"}]}]}}]


[Trace - 19:15:20.853 PM] Sending request 'textDocument/documentHighlight - (32)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"position":{"line":43,"character":27}}


[Trace - 19:15:20.853 PM] Received response 'textDocument/documentHighlight - (32)' in 0ms.
Result: [{"range":{"start":{"line":43,"character":19},"end":{"line":43,"character":39}},"kind":1}]


[Trace - 19:15:21.104 PM] Sending request 'textDocument/codeAction - (33)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"range":{"start":{"line":43,"character":27},"end":{"line":43,"character":27}},"context":{"diagnostics":[{"range":{"start":{"line":43,"character":19},"end":{"line":43,"character":39}},"message":"undeclared name: defaultBroadcastHost","severity":1,"source":"compiler"}]}}


[Trace - 19:15:21.105 PM] Received response 'textDocument/codeAction - (33)' in 1ms.
Result: [{"title":"Create variable \"defaultBroadcastHost\"","kind":"quickfix","diagnostics":[{"range":{"start":{"line":43,"character":19},"end":{"line":43,"character":39}},"severity":1,"source":"compiler","message":"undeclared name: defaultBroadcastHost"}],"edit":{"documentChanges":[{"textDocument":{"version":1,"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"edits":[{"range":{"start":{"line":43,"character":1},"end":{"line":43,"character":1}},"newText":"defaultBroadcastHost := \n\t"}]}]}}]


[Trace - 19:15:21.627 PM] Sending request 'textDocument/hover - (34)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"position":{"line":15,"character":49}}


[Trace - 19:15:21.627 PM] Received response 'textDocument/hover - (34)' in 0ms.
Result: null


[Trace - 19:15:21.637 PM] Sending request 'textDocument/documentHighlight - (35)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"position":{"line":15,"character":50}}


[Trace - 19:15:21.637 PM] Received response 'textDocument/documentHighlight - (35)' in 0ms.
Result: [{"range":{"start":{"line":15,"character":46},"end":{"line":15,"character":63}},"kind":1}]


[Trace - 19:15:21.888 PM] Sending request 'textDocument/codeAction - (36)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"range":{"start":{"line":15,"character":50},"end":{"line":15,"character":50}},"context":{"diagnostics":[{"range":{"start":{"line":15,"character":46},"end":{"line":15,"character":63}},"message":"undeclared name: UDPBroadcastState","severity":1,"source":"compiler"}]}}


[Trace - 19:15:21.891 PM] Received response 'textDocument/codeAction - (36)' in 3ms.
Result: null


[Trace - 19:15:22.251 PM] Sending request 'textDocument/hover - (37)'.
Params: {"textDocument":{"uri":"file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go"},"position":{"line":30,"character":45}}


[Trace - 19:15:22.251 PM] Received response 'textDocument/hover - (37)' in 0ms.
Result: null

@stamblerre
Copy link
Contributor

This format is fine, but it is a little difficult to tell - the most useful part is the very start of the log.
Another option is to run gopls -rpc.trace -v check path/to/file.go for the file you're working on. Make sure to cd into the correct directory when you run the command.

@iisharankov
Copy link
Author

Here you go!

gopls -rpc.trace -v check engine.go 
2020/07/10 19:32:41 Info:2020/07/10 19:32:41 Build info
----------
version master, built in $GOPATH mode

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


2020/07/10 19:32:41 Info:2020/07/10 19:32:41 go env for /home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator
(valid build configuration = true)
(build flags: [])
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/ivan/.cache/go-build"
GOENV="/home/ivan/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/ivan/go:/home/ivan/goworkspace"
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"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build475656993=/tmp/go-build -gno-record-gcc-switches"

2020/07/10 19:32:41 Error:2020/07/10 19:32:41 initial workspace load failed: go [-e -json -compiled=true -test=true -export=false -deps=true -find=false -modfile=/tmp/go.5136be998f630788259647dabd31b792341a20b0.093587196.mod -- ./... builtin]: exit status 1: go build github.com/iisharankov/dierckx: invalid flag in #cgo FFLAGS: -fdefault-real-8

2020/07/10 19:32:41 Error:2020/07/10 19:32:41 go/packages.Load: go [-e -json -compiled=true -test=true -export=false -deps=true -find=false -modfile=/tmp/go.5136be998f630788259647dabd31b792341a20b0.093587196.mod -- ./... builtin]: exit status 1: go build github.com/iisharankov/dierckx: invalid flag in #cgo FFLAGS: -fdefault-real-8

        snapshot=0
        directory=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator
        query=[./... builtin]
        packages=0
2020/07/10 19:32:41 Error:2020/07/10 19:32:41 warning: diagnose go.mod: go [-e -json -compiled=true -test=true -export=false -deps=true -find=false -modfile=/tmp/go.5136be998f630788259647dabd31b792341a20b0.093587196.mod -- ./... builtin]: exit status 1: go build github.com/iisharankov/dierckx: invalid flag in #cgo FFLAGS: -fdefault-real-8

        directory=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator
2020/07/10 19:32:41 Error:2020/07/10 19:32:41 failed to load workspace packages, skipping diagnostics: go [-e -json -compiled=true -test=true -export=false -deps=true -find=false -modfile=/tmp/go.5136be998f630788259647dabd31b792341a20b0.093587196.mod -- ./... builtin]: exit status 1: go build github.com/iisharankov/dierckx: invalid flag in #cgo FFLAGS: -fdefault-real-8

        snapshot=0
        directory=file:///home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator
2020/07/10 19:32:42 Info:2020/07/10 19:32:42 go/packages.Load
        snapshot=1
        directory=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator
        query=[file=/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go]
        packages=1
2020/07/10 19:32:42 Info:2020/07/10 19:32:42 go/packages.Load
        snapshot=1
        package_path="command-line-arguments"
        files=[/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go]
/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go:16:47-64: undeclared name: UDPBroadcastState
/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go:130:23-37: undeclared name: telescopeState
/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go:205:46-58: undeclared name: ProcessedTPT
/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go:205:71-85: undeclared name: telescopeState
/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go:254:47-61: undeclared name: telescopeState
/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go:44:20-40: undeclared name: defaultBroadcastHost
/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go:45:20-40: undeclared name: defaultBroadcastPort
/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go:144:19-31: undeclared name: ProcessedTPT
/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go:145:22-34: undeclared name: ProcessedTPT
/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go:150:17-29: undeclared name: ProcessedTPT
/home/ivan/goworkspace/src/github.com/iisharankov/GoStuff/ACUSimulator/engine.go:154:22-37: undeclared name: clockSplineChan

@stamblerre
Copy link
Contributor

Thanks for sharing that. Looks like a cgo-related issue: invalid flag in #cgo FFLAGS: -fdefault-real-8. You may need to adjust your environment/configuration.

@iisharankov
Copy link
Author

Interesting, I'm using a FORTRAN library, so upon a go install I need to add the following flag CGO_FFLAGS_ALLOW='-f.*', which installs the binary fine. I didn't think it would cause every variable to be undeclared. It's surprising, since the library that uses the cgo library is completely separated, located here., and I just simply import the package.

How would I go about fixing this?

@stamblerre
Copy link
Contributor

I'm not very familiar with cgo, so I'm not sure how to correctly configure your build flags. Do other go commands succeed?

/cc @heschik for cgo guidance

@heschi
Copy link
Contributor

heschi commented Jul 10, 2020

Try adding the _ALLOW env var to the vscode go.toolsEnvVars setting and see if that helps. gopls needs to be able to build everything your program depends on from scratch.

@iisharankov
Copy link
Author

Bingo! Added the following to my settings.json and did a Reload.

"go.toolsEnvVars": {
        "CGO_FFLAGS_ALLOW": "-f.*"
    }

Thanks for the quick replies to fix the issue!

@golang golang locked and limited conversation to collaborators Jul 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants