Skip to content

No autocompletion for project #1612

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
ivanburak opened this issue Jul 8, 2021 · 18 comments
Closed

No autocompletion for project #1612

ivanburak opened this issue Jul 8, 2021 · 18 comments

Comments

@ivanburak
Copy link

ivanburak commented Jul 8, 2021

Hints during coge typing are stopped now for Golang.
It worked before but after some VS Code upgrades id stopped to work.

When I type code I just see these hints:
const
func
import
type
var

@gopherbot gopherbot added this to the Untriaged milestone Jul 8, 2021
@ivanburak ivanburak changed the title Hints during coge typing are stopped now Hints during coge typing in Go are stopped now Jul 8, 2021
@findleyr
Copy link
Member

findleyr commented Jul 8, 2021

Hi, could you please fill out the bug report template (edit: here is a link to the template, if you need it)? I do not have enough information to diagnose the behavior you are experiencing.

Assuming you are using gopls, it would be helpful to see the gopls logs, which can be collected as described here: https://github.com/golang/vscode-go/blob/master/docs/troubleshooting.md#collect-gopls-information

@findleyr findleyr added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Jul 8, 2021
@ivanburak
Copy link
Author

ivanburak commented Jul 8, 2021

go version go1.15.12 windows/amd64

I put these lines into setting.json

"go.languageServerFlags": [
"-rpc.trace"
],

"gopls": {
"verboseOutput": true
}

Outbut is the next
Starting linting the current package at c:\GoTogether\src\ivanburak\fibo
C:\GoTogether\src\ivanburak\fibo>Finished running tool: C:\GoTogether\bin\staticcheck.exe

C:\GoTogether\src\ivanburak\fibo>Finished running tool: C:\GoTogether\bin\staticcheck.exe
C:\GoTogether\src\ivanburak\fibo\main.go:27:6 Pr not declared by package fmt (compile)

List of hints during Go code typing are the same as I wrote above

@ivanburak
Copy link
Author

ivanburak commented Jul 8, 2021

I see just these hints :(

image

I see the same pressing Ctrl+Space

@ivanburak ivanburak reopened this Jul 8, 2021
@ivanburak
Copy link
Author

ivanburak commented Jul 9, 2021

Hi findleyr

go version go1.15.12 windows/amd64

My settings.json

{
"workbench.colorTheme": "Visual Studio Light",
"kite.showWelcomeNotificationOnStartup": false,
"go.toolsManagement.autoUpdate": true,
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
"json.maxItemsComputed": 10000,
"editor.minimap.showSlider": "always",
"workbench.view.alwaysShowHeaderActions": true,
"editor.showFoldingControls": "always",

// ==========================================================================
// Controls if quick suggestions should show up while typing
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": false
},
// Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (;) can be a commit character that accepts a suggestion and types that character.
"editor.acceptSuggestionOnCommitCharacter": true,
// Controls if suggestions should be accepted on 'Enter' - in addition to 'Tab'. Helps to avoid ambiguity between inserting new lines or accepting suggestions. The value 'smart' means only accept a suggestion with Enter when it makes a textual change
"editor.acceptSuggestionOnEnter": "on",
// Controls the delay in ms after which quick suggestions will show up.
"editor.quickSuggestionsDelay": 10,
// Controls if suggestions should automatically show up when typing trigger characters
"editor.suggestOnTriggerCharacters": true,
// Controls if pressing tab inserts the best suggestion and if tab cycles through other suggestions
"editor.tabCompletion": "off",
// Controls whether sorting favours words that appear close to the cursor
"editor.suggest.localityBonus": true,
// Controls how suggestions are pre-selected when showing the suggest list
"editor.suggestSelection": "recentlyUsed",
// Enable word based suggestions
"editor.wordBasedSuggestions": true,
// Enable parameter hints
"editor.parameterHints.enabled": true,
// ==========================================================================

"go.languageServerFlags": [
    "-rpc.trace"
],  

"gopls": {

    "verboseOutput": true
}

}

@ivanburak
Copy link
Author

Hi, could you please fill out the bug report template (edit: here is a link to the template, if you need it)? I do not have enough information to diagnose the behavior you are experiencing.

Assuming you are using gopls, it would be helpful to see the gopls logs, which can be collected as described here: https://github.com/golang/vscode-go/blob/master/docs/troubleshooting.md#collect-gopls-information

Hi findleyr
I added some additional information.
Could you look once more?

Regards
Vlad

@ivanburak
Copy link
Author

My installed extentions

image

@ivanburak
Copy link
Author

ivanburak commented Jul 9, 2021

I've upgraged Go to
go version go1.15.13 windows/amd64

Nothing was changed :(
@findleyr

Bad IntelliSense
image

@findleyr
Copy link
Member

findleyr commented Jul 9, 2021

Outbut is the next

Could you please provide the gopls (server) output? Choose it from the drop-down in the top-right of the output panel.

@ivanburak
Copy link
Author

ivanburak commented Jul 11, 2021

Please look at the log below

[Trace - 00:13:50.728 AM] Received response 'textDocument/codeAction - (94)' in 2ms. Result: [{"title":"Organize Imports","kind":"source.organizeImports","edit":{"documentChanges":[{"textDocument":{"version":15,"uri":"file:///C:/GoTogether/src/ivanburak/fibo/main.go"},"edits":[{"range":{"start":{"line":0,"character":50},"end":{"line":0,"character":51}},"newText":""},{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":1}},"newText":""},{"range":{"start":{"line":2,"character":12},"end":{"line":2,"character":13}},"newText":""},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":1}},"newText":""},{"range":{"start":{"line":4,"character":8},"end":{"line":4,"character":9}},"newText":""},{"range":{"start":{"line":5,"character":6},"end":{"line":5,"character":7}},"newText":""}]}]}}]

[Info - 00:13:50] 2021/07/12 00:13:50 fixImports(filename="C:\\GoTogether\\src\\ivanburak\\fibo\\main.go"), abs="C:\\GoTogether\\src\\ivanburak\\fibo\\main.go", srcDir="C:\\GoTogether\\src\\ivanburak\\fibo" ...

[Trace - 00:13:50.832 AM] Sending request 'textDocument/documentLink - (95)'. Params: {"textDocument":{"uri":"file:///c%3A/GoTogether/src/ivanburak/fibo/main.go"}}

[Trace - 00:13:50.833 AM] Received response 'textDocument/documentLink - (95)' in 1ms. Result: [{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":5}},"target":"https://pkg.go.dev/fmt?utm_source=gopls"},{"range":{"start":{"line":0,"character":3},"end":{"line":0,"character":50}},"target":"https://github.com/golang/vscode-go/issues/1612"}]

[Trace - 00:13:52.297 AM] Sending request 'textDocument/documentSymbol - (96)'. Params: {"textDocument":{"uri":"file:///c%3A/GoTogether/src/ivanburak/fibo/main.go"}}

[Trace - 00:13:52.298 AM] Received response 'textDocument/documentSymbol - (96)' in 1ms. Result: [{"name":"RecursiveFibonacci","detail":"(n uint)","kind":12,"range":{"start":{"line":31,"character":0},"end":{"line":31,"character":36}},"selectionRange":{"start":{"line":31,"character":5},"end":{"line":31,"character":23}}},{"name":"RecursiveFibonacci2","detail":"(n uint)","kind":12,"range":{"start":{"line":39,"character":0},"end":{"line":39,"character":37}},"selectionRange":{"start":{"line":39,"character":5},"end":{"line":39,"character":24}}},{"name":"SequentialFibonacci","detail":"(n uint)","kind":12,"range":{"start":{"line":47,"character":0},"end":{"line":47,"character":37}},"selectionRange":{"start":{"line":47,"character":5},"end":{"line":47,"character":24}}}]

[Trace - 00:13:55.417 AM] Sending request 'textDocument/completion - (97)'. Params: {"textDocument":{"uri":"file:///c%3A/GoTogether/src/ivanburak/fibo/main.go"},"position":{"line":26,"character":3},"context":{"triggerKind":1}}

[Trace - 00:13:55.418 AM] Received response 'textDocument/completion - (97)' in 0ms. Result: {"isIncomplete":true,"items":[{"label":"const","labelDetails":{},"kind":14,"preselect":true,"sortText":"00000","filterText":"const","insertTextFormat":2,"textEdit":{"range":{"start":{"line":26,"character":3},"end":{"line":26,"character":3}},"newText":"const"}},{"label":"func","labelDetails":{},"kind":14,"sortText":"00001","filterText":"func","insertTextFormat":2,"textEdit":{"range":{"start":{"line":26,"character":3},"end":{"line":26,"character":3}},"newText":"func"}},{"label":"import","labelDetails":{},"kind":14,"sortText":"00002","filterText":"import","insertTextFormat":2,"textEdit":{"range":{"start":{"line":26,"character":3},"end":{"line":26,"character":3}},"newText":"import"}},{"label":"type","labelDetails":{},"kind":14,"sortText":"00003","filterText":"type","insertTextFormat":2,"textEdit":{"range":{"start":{"line":26,"character":3},"end":{"line":26,"character":3}},"newText":"type"}},{"label":"var","labelDetails":{},"kind":14,"sortText":"00004","filterText":"var","insertTextFormat":2,"textEdit":{"range":{"start":{"line":26,"character":3},"end":{"line":26,"character":3}},"newText":"var"}}]}

[Trace - 00:14:19.719 AM] Received notification 'window/logMessage'. Params: {"type":3,"message":"2021/07/12 00:14:19 background imports cache refresh starting\n"}

[Info - 00:14:19] 2021/07/12 00:14:19 background imports cache refresh starting

[Trace - 00:14:19.719 AM] Received notification 'window/logMessage'. Params: {"type":3,"message":"2021/07/12 00:14:19 gopathwalk: scanning C:\\GoTogether\\src\n"}

[Trace - 00:14:19.719 AM] Received notification 'window/logMessage'. Params: {"type":3,"message":"2021/07/12 00:14:19 open C:\\GoTogether\\src\\.goimportsignore: The system cannot find the file specified.\n"}

[Trace - 00:14:19.719 AM] Received notification 'window/logMessage'. Params: {"type":3,"message":"2021/07/12 00:14:19 Error statting ignored directory: CreateFile C:\\GoTogether\\src\\v: The system cannot find the file specified.\n"}

[Trace - 00:14:19.719 AM] Received notification 'window/logMessage'. Params: {"type":3,"message":"2021/07/12 00:14:19 Error statting ignored directory: CreateFile C:\\GoTogether\\src\\mod: The system cannot find the file specified.\n"}

[Info - 00:14:19] 2021/07/12 00:14:19 gopathwalk: scanning C:\GoTogether\src

[Info - 00:14:19] 2021/07/12 00:14:19 open C:\GoTogether\src\.goimportsignore: The system cannot find the file specified.

[Info - 00:14:19] 2021/07/12 00:14:19 Error statting ignored directory: CreateFile C:\GoTogether\src\v: The system cannot find the file specified.

[Info - 00:14:19] 2021/07/12 00:14:19 Error statting ignored directory: CreateFile C:\GoTogether\src\mod: The system cannot find the file specified.

[Trace - 00:14:19.817 AM] Received notification 'window/logMessage'. Params: {"type":3,"message":"2021/07/12 00:14:19 background refresh finished after 98.233ms\n"}

[Trace - 00:14:19.817 AM] Received notification 'window/logMessage'. Params: {"type":3,"message":"2021/07/12 00:14:19 gopathwalk: scanned C:\\GoTogether\\src in 98.233ms\n"}

[Info - 00:14:19] 2021/07/12 00:14:19 background refresh finished after 98.233ms

[Info - 00:14:19] 2021/07/12 00:14:19 gopathwalk: scanned C:\GoTogether\src in 98.233ms

@stamblerre
Copy link
Contributor

@ivanburak: Can you please share the full content of the log, starting from the very top (you will see an initialize request at the top). We need a little more context to fully understand the problem.

@stamblerre stamblerre changed the title Hints during coge typing in Go are stopped now No autocompletion for project Jul 12, 2021
@ivanburak
Copy link
Author

ivanburak commented Jul 12, 2021

I've added 2 completion settings into setting.json
' "gopls": { '
' "ui.completion.usePlaceholders": true,'
' "verboseOutput": true'
' },'
' "go.autocompleteUnimportedPackages": true'

Nothing was changed

image

it's full log of gopls (server)


[Trace - 23:18:46.824 PM] Sending request 'initialize - (0)'.
Params: {"processId":25192,"clientInfo":{"name":"Visual Studio Code","version":"1.58.0"},"locale":"en-us","rootPath":"c:\GoTogether\src\ivanburak\parsing","rootUri":"file:///c%3A/GoTogether/src/ivanburak/parsing","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional","normalizesLineEndings":true,"changeAnnotationSupport":{"groupsOnLabel":true}},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"tagSupport":{"valueSet":[1]}},"codeLens":{"refreshSupport":true},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true,"semanticTokens":{"refreshSupport":true},"fileOperations":{"dynamicRegistration":true,"didCreate":true,"didRename":true,"didDelete":true,"willCreate":true,"willRename":true,"willDelete":true}},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]},"codeDescriptionSupport":true,"dataSupport":true},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]},"insertReplaceSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]},"insertTextModeSupport":{"valueSet":[1,2]}},"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},"activeParameterSupport":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,"tagSupport":{"valueSet":[1]},"labelSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"disabledSupport":true,"dataSupport":true,"resolveSupport":{"properties":["edit"]},"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"honorsChangeAnnotations":false},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true,"prepareSupportDefaultBehavior":1,"honorsChangeAnnotations":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},"callHierarchy":{"dynamicRegistration":true},"semanticTokens":{"dynamicRegistration":true,"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"formats":["relative"],"requests":{"range":true,"full":{"delta":true}},"multilineTokenSupport":false,"overlappingTokenSupport":false},"linkedEditingRange":{"dynamicRegistration":true}},"window":{"showMessage":{"messageActionItem":{"additionalPropertiesSupport":true}},"showDocument":{"support":true},"workDoneProgress":true},"general":{"regularExpressions":{"engine":"ECMAScript","version":"ES2020"},"markdown":{"parser":"marked","version":"1.1.0"}}},"initializationOptions":{"ui.completion.usePlaceholders":true,"verboseOutput":true},"trace":"off","workspaceFolders":[{"uri":"file:///c%3A/GoTogether/src/ivanburak/parsing","name":"parsing"}]}

[Trace - 23:18:46.858 PM] Received response 'initialize - (0)' in 33ms.
Result: {"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"save":{}},"completionProvider":{"triggerCharacters":["."],"completionItem":{}},"hoverProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",","]},"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor.extract","refactor.rewrite","source.fixAll","source.organizeImports"]},"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":""},"renameProvider":{"prepareProvider":true},"foldingRangeProvider":true,"executeCommandProvider":{"commands":["gopls.add_dependency","gopls.add_import","gopls.apply_fix","gopls.check_upgrades","gopls.gc_details","gopls.generate","gopls.generate_gopls_mod","gopls.go_get_package","gopls.list_known_packages","gopls.regenerate_cgo","gopls.remove_dependency","gopls.run_tests","gopls.start_debugging","gopls.test","gopls.tidy","gopls.toggle_gc_details","gopls.update_go_sum","gopls.upgrade_dependency","gopls.vendor","gopls.workspace_metadata"]},"callHierarchyProvider":true,"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"serverInfo":{"name":"gopls","version":"{"path":"golang.org/x/tools/gopls","version":"v0.7.0","sum":"h1:JQBHW81Gsyim6iDjUwGoPeSpXrSqwen3isPJLfDfaYU=","deps":[{"path":"github.com/BurntSushi/toml","version":"v0.3.1","sum":"h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ="},{"path":"github.com/google/go-cmp","version":"v0.5.5","sum":"h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU="},{"path":"github.com/sergi/go-diff","version":"v1.1.0","sum":"h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0="},{"path":"golang.org/x/mod","version":"v0.4.2","sum":"h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo="},{"path":"golang.org/x/sync","version":"v0.0.0-20210220032951-036812b2e83c","sum":"h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ="},{"path":"golang.org/x/sys","version":"v0.0.0-20210510120138-977fb7262007","sum":"h1:gG67DSER+11cZvqIMb8S8bt0vZtiN6xWYARwirrOSfE="},{"path":"golang.org/x/tools","version":"v0.1.3-0.20210608163600-9ed039809d4c","sum":"h1:Pv9gNyJFYVdpUAVZYJ1BDSU4eGgXQ+0f3DIGAdolO5s="},{"path":"golang.org/x/xerrors","version":"v0.0.0-20200804184101-5ec99f83aff1","sum":"h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE="},{"path":"honnef.co/go/tools","version":"v0.2.0","sum":"h1:ws8AfbgTX3oIczLPNPCu5166oBg9ST2vNs0rcht+mDE="},{"path":"mvdan.cc/gofumpt","version":"v0.1.1","sum":"h1:bi/1aS/5W00E2ny5q65w9SnKpWEF/UIOqDYBILpo9rA="},{"path":"mvdan.cc/xurls/v2","version":"v2.2.0","sum":"h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A="}]}"}}

[Trace - 23:18:46.861 PM] Sending notification 'initialized'.
Params: {}

[Trace - 23:18:46.861 PM] Received request 'window/workDoneProgress/create - (1)'.
Params: {"token":"5577006791947779410"}

[Trace - 23:18:46.861 PM] Sending response 'window/workDoneProgress/create - (1)' in 0ms.
Result:

[Trace - 23:18:46.861 PM] Received notification '$/progress'.
Params: {"token":"5577006791947779410","value":{"kind":"begin","title":"Setting up workspace","message":"Loading packages..."}}

[Trace - 23:18:46.861 PM] Received request 'workspace/configuration - (2)'.
Params: {"items":[{"scopeUri":"file:///C:/GoTogether/src/ivanburak/parsing","section":"gopls"}]}

[Trace - 23:18:46.866 PM] Sending response 'workspace/configuration - (2)' in 4ms.
Result: [{"ui.completion.usePlaceholders":true,"verboseOutput":true}]

[Trace - 23:18:48.539 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:48 go env for C:\GoTogether\src\ivanburak\parsing\n(root C:\GoTogether\src\ivanburak\parsing)\n(go version go version go1.15.13 windows/amd64)\n(valid build configuration = true)\n(build flags: [])\nGOROOT=C:\Program Files\Go\nGOINSECURE=\nGOMOD=\nGOPATH=C:\GoTogether\nGOFLAGS=\nGOMODCACHE=C:\GoTogether\pkg\mod\nGO111MODULE=\nGONOPROXY=\nGOPRIVATE=\nGOPROXY=https://proxy.golang.org,direct\nGOSUMDB=sum.golang.org\nGOCACHE=C:\\Users\\Vladimir_Efanov\\AppData\\Local\\go-build\nGONOSUMDB=\n\n"}

[Info - 23:18:48] 2021/07/12 23:18:48 go env for C:\GoTogether\src\ivanburak\parsing
(root C:\GoTogether\src\ivanburak\parsing)
(go version go version go1.15.13 windows/amd64)
(valid build configuration = true)
(build flags: [])
GOROOT=C:\Program Files\Go
GOINSECURE=
GOMOD=
GOPATH=C:\GoTogether
GOFLAGS=
GOMODCACHE=C:\GoTogether\pkg\mod
GO111MODULE=
GONOPROXY=
GOPRIVATE=
GOPROXY=https://proxy.golang.org,direct
GOSUMDB=sum.golang.org
GOCACHE=C:\Users\Vladimir_Efanov\AppData\Local\go-build
GONOSUMDB=

[Trace - 23:18:49.063 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:49 1.0550817s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE=off GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -f {{context.ReleaseTags}} -- unsafe\n"}

[Info - 23:18:49] 2021/07/12 23:18:49 1.0550817s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE=off GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -f {{context.ReleaseTags}} -- unsafe

[Trace - 23:18:49.589 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:49 1.5816692s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe\n"}

[Info - 23:18:49] 2021/07/12 23:18:49 1.5816692s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe

[Trace - 23:18:58.125 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:58 9.0627066s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -json -compiled=true -test=true -export=false -deps=true -find=false -- ./... builtin\n"}

[Info - 23:18:58] 2021/07/12 23:18:58 9.0627066s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -json -compiled=true -test=true -export=false -deps=true -find=false -- ./... builtin

[Trace - 23:18:58.394 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///c%3A/GoTogether/src/ivanburak/fibo/main.go","languageId":"go","version":1,"text":"// https://github.com/golang/vscode-go/issues/1612\r\n\r\npackage main\r\n\r\nimport (\r\n\t"fmt"\r\n)\r\n\r\nvar calls int = 0\r\n\r\nfunc main() {\r\n\t// fmt.Println(RecursiveFibonacci(1))\r\n\tfmt.Println(RecursiveFibonacci(42))\r\n\tfmt.Println("calls = ", calls)\r\n\r\n\t// fmt.Println(RecursiveFibonacci(10))\r\n\t// fmt.Println(RecursiveFibonacci(20))\r\n\t// fmt.Println(RecursiveFibonacci(42))\r\n\r\n\tfmt.Println()\r\n\r\n\tfmt.Println(SequentialFibonacci(1))\r\n\tfmt.Println(SequentialFibonacci(5))\r\n\tfmt.Println(SequentialFibonacci(10))\r\n\tfmt.Println(SequentialFibonacci(20))\r\n\tfmt.Println(SequentialFibonacci(42))\r\n}\r\n\r\n//var fin = make([]uint, 0, 100)\r\n\r\nfunc RecursiveFibonacci(n uint) uint {\r\n\tcalls++\r\n\tif n <= 1 {\r\n\t\treturn n\r\n\t}\r\n\treturn RecursiveFibonacci(n-1) + RecursiveFibonacci(n-2)\r\n}\r\n\r\nfunc RecursiveFibonacci2(n uint) uint {\r\n\tcalls++\r\n\tif n <= 1 {\r\n\t\treturn n\r\n\t}\r\n\treturn RecursiveFibonacci(n-1) + RecursiveFibonacci(n-2)\r\n}\r\n\r\nfunc SequentialFibonacci(n uint) uint {\r\n\tif n <= 1 {\r\n\t\treturn uint(n)\r\n\t}\r\n\tvar n2, n1 uint = 0, 1\r\n\tfor i := uint(2); i < n; i++ {\r\n\t\tn2, n1 = n1, n1+n2\r\n\t}\r\n\treturn n2 + n1\r\n}\r\n"}}

[Trace - 23:18:58.397 PM] Sending request 'textDocument/documentLink - (1)'.
Params: {"textDocument":{"uri":"file:///c%3A/GoTogether/src/ivanburak/fibo/main.go"}}

[Trace - 23:18:58.399 PM] Sending request 'textDocument/codeAction - (2)'.
Params: {"textDocument":{"uri":"file:///c%3A/GoTogether/src/ivanburak/fibo/main.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}

[Trace - 23:18:58.400 PM] Sending request 'textDocument/documentSymbol - (3)'.
Params: {"textDocument":{"uri":"file:///c%3A/GoTogether/src/ivanburak/fibo/main.go"}}

[Trace - 23:18:58.401 PM] Sending request 'textDocument/documentHighlight - (4)'.
Params: {"textDocument":{"uri":"file:///c%3A/GoTogether/src/ivanburak/fibo/main.go"},"position":{"line":25,"character":10}}

[Trace - 23:18:58.403 PM] Sending notification '$/cancelRequest'.
Params: {"id":2}

[Trace - 23:18:58.403 PM] Sending request 'textDocument/codeAction - (5)'.
Params: {"textDocument":{"uri":"file:///c%3A/GoTogether/src/ivanburak/fibo/main.go"},"range":{"start":{"line":25,"character":10},"end":{"line":25,"character":10}},"context":{"diagnostics":[]}}

[Trace - 23:18:58.404 PM] Sending request 'textDocument/codeLens - (6)'.
Params: {"textDocument":{"uri":"file:///c%3A/GoTogether/src/ivanburak/fibo/main.go"}}

[Trace - 23:18:58.405 PM] Sending request 'textDocument/foldingRange - (7)'.
Params: {"textDocument":{"uri":"file:///c%3A/GoTogether/src/ivanburak/fibo/main.go"}}

[Trace - 23:18:58.695 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:58 559.4453ms for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go env -json GOMOD GOPATH\n"}

[Info - 23:18:58] 2021/07/12 23:18:58 559.4453ms for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go env -json GOMOD GOPATH

[Trace - 23:18:58.737 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:58 go/packages.Load\n\tsnapshot=0\n\tdirectory=C:\GoTogether\src\ivanburak\parsing\n\tquery=[./... builtin]\n\tpackages=7\n"}

[Trace - 23:18:58.737 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:58 go/packages.Load\n\tsnapshot=0\n\tpackage="ivanburak/parsing"\n\tfiles=[C:\GoTogether\src\ivanburak\parsing\parsing.go C:\GoTogether\src\ivanburak\parsing\parsingData.go C:\GoTogether\src\ivanburak\parsing\parsingVersions.go]\n"}

[Info - 23:18:58] 2021/07/12 23:18:58 go/packages.Load
snapshot=0
directory=C:\GoTogether\src\ivanburak\parsing
query=[./... builtin]
packages=7

[Info - 23:18:58] 2021/07/12 23:18:58 go/packages.Load
snapshot=0
package="ivanburak/parsing"
files=[C:\GoTogether\src\ivanburak\parsing\parsing.go C:\GoTogether\src\ivanburak\parsing\parsingData.go C:\GoTogether\src\ivanburak\parsing\parsingVersions.go]

[Trace - 23:18:58.896 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:58 go/packages.Load\n\tsnapshot=0\n\tpackage="ivanburak/parsing/json"\n\tfiles=[C:\GoTogether\src\ivanburak\parsing\json\scanner.go C:\GoTogether\src\ivanburak\parsing\json\scannerData.go]\n"}

[Info - 23:18:58] 2021/07/12 23:18:58 go/packages.Load
snapshot=0
package="ivanburak/parsing/json"
files=[C:\GoTogether\src\ivanburak\parsing\json\scanner.go C:\GoTogether\src\ivanburak\parsing\json\scannerData.go]

[Trace - 23:18:58.904 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:58 go/packages.Load\n\tsnapshot=0\n\tpackage="ivanburak/parsing/json/tst"\n\tfiles=[C:\GoTogether\src\ivanburak\parsing\json\tst\main.go]\n"}

[Info - 23:18:58] 2021/07/12 23:18:58 go/packages.Load
snapshot=0
package="ivanburak/parsing/json/tst"
files=[C:\GoTogether\src\ivanburak\parsing\json\tst\main.go]

[Trace - 23:18:58.905 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:58 go/packages.Load\n\tsnapshot=0\n\tpackage="ivanburak/parsing/tst"\n\tfiles=[C:\GoTogether\src\ivanburak\parsing\tst\main.go]\n"}

[Info - 23:18:58] 2021/07/12 23:18:58 go/packages.Load
snapshot=0
package="ivanburak/parsing/tst"
files=[C:\GoTogether\src\ivanburak\parsing\tst\main.go]

[Trace - 23:18:58.907 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:58 go/packages.Load\n\tsnapshot=0\n\tpackage="builtin"\n\tfiles=[C:\Program Files\Go\src\builtin\builtin.go]\n"}

[Trace - 23:18:58.907 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:58 go/packages.Load\n\tsnapshot=0\n\tpackage="ivanburak/parsing/tst [ivanburak/parsing/tst.test]"\n\tfiles=[C:\GoTogether\src\ivanburak\parsing\tst\main.go C:\GoTogether\src\ivanburak\parsing\tst\main_test.go]\n"}

[Info - 23:18:58] 2021/07/12 23:18:58 go/packages.Load
snapshot=0
package="builtin"
files=[C:\Program Files\Go\src\builtin\builtin.go]

[Info - 23:18:58] 2021/07/12 23:18:58 go/packages.Load
snapshot=0
package="ivanburak/parsing/tst [ivanburak/parsing/tst.test]"
files=[C:\GoTogether\src\ivanburak\parsing\tst\main.go C:\GoTogether\src\ivanburak\parsing\tst\main_test.go]

[Trace - 23:18:59.068 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:59 go/packages.Load\n\tsnapshot=0\n\tpackage="ivanburak/parsing/tst.test"\n\tfiles=[C:\Users\Vladimir_Efanov\AppData\Local\go-build\66\6674e9d7972264545640e8b04956f6d78de232b5e866314a2aa97513733126e3-d]\n"}

[Trace - 23:18:59.068 PM] Received notification '$/progress'.
Params: {"token":"5577006791947779410","value":{"kind":"end","message":"Finished loading packages."}}

[Info - 23:18:59] 2021/07/12 23:18:59 go/packages.Load
snapshot=0
package="ivanburak/parsing/tst.test"
files=[C:\Users\Vladimir_Efanov\AppData\Local\go-build\66\6674e9d7972264545640e8b04956f6d78de232b5e866314a2aa97513733126e3-d]

[Trace - 23:18:59.074 PM] Received request 'client/registerCapability - (3)'.
Params: {"registrations":[{"id":"workspace/didChangeWatchedFiles-0","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"/*.{go,mod,sum}","kind":7},{"globPattern":"/*.*tmpl","kind":7},{"globPattern":"{C:\GoTogether\src\ivanburak\parsing\json,C:\GoTogether\src\ivanburak\parsing\json\tst,C:\GoTogether\src\ivanburak\parsing\tst}","kind":7}]}}]}

[Trace - 23:18:59.079 PM] Sending response 'client/registerCapability - (3)' in 4ms.
Result:

[Trace - 23:18:59.084 PM] Received request 'client/registerCapability - (4)'.
Params: {"registrations":[{"id":"workspace/didChangeConfiguration","method":"workspace/didChangeConfiguration"},{"id":"workspace/didChangeWorkspaceFolders","method":"workspace/didChangeWorkspaceFolders"}]}

[Trace - 23:18:59.086 PM] Sending response 'client/registerCapability - (4)' in 2ms.
Result:

[Trace - 23:18:59.356 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:59 discovered missing identifiers: map[memRecordCycle:true pageBits:true]\n\tpackage="runtime"\n"}

[Info - 23:18:59] 2021/07/12 23:18:59 discovered missing identifiers: map[memRecordCycle:true pageBits:true]
package="runtime"

[Trace - 23:18:59.721 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:18:59 576.1751ms for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe\n"}

[Info - 23:18:59] 2021/07/12 23:18:59 576.1751ms for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe

[Trace - 23:19:00.202 PM] Sending request 'textDocument/completion - (8)'.
Params: {"textDocument":{"uri":"file:///c%3A/GoTogether/src/ivanburak/fibo/main.go"},"position":{"line":25,"character":10},"context":{"triggerKind":1}}

[Trace - 23:19:00.218 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:00 1.0725151s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE=off GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -f {{context.ReleaseTags}} -- unsafe\n"}

[Info - 23:19:00] 2021/07/12 23:19:00 1.0725151s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE=off GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -f {{context.ReleaseTags}} -- unsafe

[Trace - 23:19:00.742 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:00 1.5950398s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe\n"}

[Info - 23:19:00] 2021/07/12 23:19:00 1.5950398s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe

[Trace - 23:19:01.273 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:01 2.1260625s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE=off GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -f {{context.ReleaseTags}} -- unsafe\n"}

[Info - 23:19:01] 2021/07/12 23:19:01 2.1260625s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE=off GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -f {{context.ReleaseTags}} -- unsafe

[Trace - 23:19:01.749 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:01 2.0711154s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe\n"}

[Info - 23:19:01] 2021/07/12 23:19:01 2.0711154s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe

[Trace - 23:19:02.284 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:02 2.6066277s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE=off GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -f {{context.ReleaseTags}} -- unsafe\n"}

[Info - 23:19:02] 2021/07/12 23:19:02 2.6066277s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE=off GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -f {{context.ReleaseTags}} -- unsafe

[Trace - 23:19:10.294 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:10 10.0735049s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -json -compiled=true -test=true -export=false -deps=true -find=false -- "C:\\GoTogether\\src\\ivanburak\\fibo"\n"}

[Info - 23:19:10] 2021/07/12 23:19:10 10.0735049s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -json -compiled=true -test=true -export=false -deps=true -find=false -- "C:\GoTogether\src\ivanburak\fibo"

[Trace - 23:19:10.780 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:10 9.5061031s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -json -compiled=true -test=true -export=false -deps=true -find=false -- "C:\\GoTogether\\src\\ivanburak\\fibo"\n"}

[Info - 23:19:10] 2021/07/12 23:19:10 9.5061031s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -json -compiled=true -test=true -export=false -deps=true -find=false -- "C:\GoTogether\src\ivanburak\fibo"

[Trace - 23:19:10.842 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:10 541.5575ms for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go env -json GOMOD GOPATH\n"}

[Info - 23:19:10] 2021/07/12 23:19:10 541.5575ms for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go env -json GOMOD GOPATH

[Trace - 23:19:10.877 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:10 go/packages.Load\n\tsnapshot=1\n\tdirectory=C:\GoTogether\src\ivanburak\parsing\n\tquery=[file=C:\GoTogether\src\ivanburak\fibo\main.go]\n\tpackages=2\n"}

[Trace - 23:19:10.877 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:10 go/packages.Load\n\tsnapshot=1\n\tpackage="ivanburak/fibo"\n\tfiles=[C:\GoTogether\src\ivanburak\fibo\main.go]\n"}

[Trace - 23:19:10.877 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:10 go/packages.Load\n\tsnapshot=1\n\tpackage="ivanburak/fibo [ivanburak/fibo.test]"\n\tfiles=[C:\GoTogether\src\ivanburak\fibo\main.go C:\GoTogether\src\ivanburak\fibo\main_test.go]\n"}

[Info - 23:19:10] 2021/07/12 23:19:10 go/packages.Load
snapshot=1
directory=C:\GoTogether\src\ivanburak\parsing
query=[file=C:\GoTogether\src\ivanburak\fibo\main.go]
packages=2

[Info - 23:19:10] 2021/07/12 23:19:10 go/packages.Load
snapshot=1
package="ivanburak/fibo"
files=[C:\GoTogether\src\ivanburak\fibo\main.go]

[Info - 23:19:10] 2021/07/12 23:19:10 go/packages.Load
snapshot=1
package="ivanburak/fibo [ivanburak/fibo.test]"
files=[C:\GoTogether\src\ivanburak\fibo\main.go C:\GoTogether\src\ivanburak\fibo\main_test.go]

[Trace - 23:19:11.359 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:11 569.259ms for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go env -json GOMOD GOPATH\n"}

[Trace - 23:19:11.359 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:11 9.07281s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -json -compiled=true -test=true -export=false -deps=true -find=false -- "C:\\GoTogether\\src\\ivanburak\\fibo"\n"}

[Info - 23:19:11] 2021/07/12 23:19:11 569.259ms for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go env -json GOMOD GOPATH

[Info - 23:19:11] 2021/07/12 23:19:11 9.07281s for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go list -e -json -compiled=true -test=true -export=false -deps=true -find=false -- "C:\GoTogether\src\ivanburak\fibo"

[Trace - 23:19:11.391 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:11 go/packages.Load\n\tsnapshot=1\n\tdirectory=C:\GoTogether\src\ivanburak\parsing\n\tquery=[file=C:\GoTogether\src\ivanburak\fibo\main.go]\n\tpackages=2\n"}

[Trace - 23:19:11.391 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:11 go/packages.Load\n\tsnapshot=1\n\tpackage="ivanburak/fibo"\n\tfiles=[C:\GoTogether\src\ivanburak\fibo\main.go]\n"}

[Trace - 23:19:11.392 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:11 go/packages.Load\n\tsnapshot=1\n\tpackage="ivanburak/fibo [ivanburak/fibo.test]"\n\tfiles=[C:\GoTogether\src\ivanburak\fibo\main.go C:\GoTogether\src\ivanburak\fibo\main_test.go]\n"}

[Info - 23:19:11] 2021/07/12 23:19:11 go/packages.Load
snapshot=1
directory=C:\GoTogether\src\ivanburak\parsing
query=[file=C:\GoTogether\src\ivanburak\fibo\main.go]
packages=2

[Info - 23:19:11] 2021/07/12 23:19:11 go/packages.Load
snapshot=1
package="ivanburak/fibo"
files=[C:\GoTogether\src\ivanburak\fibo\main.go]

[Info - 23:19:11] 2021/07/12 23:19:11 go/packages.Load
snapshot=1
package="ivanburak/fibo [ivanburak/fibo.test]"
files=[C:\GoTogether\src\ivanburak\fibo\main.go C:\GoTogether\src\ivanburak\fibo\main_test.go]

[Error - Received] 23:19:11.393 PM #2 JSON RPC cancelled

[Trace - 23:19:11.394 PM] Received response 'textDocument/documentLink - (1)' in 12997ms.
Result: [{"range":{"start":{"line":5,"character":2},"end":{"line":5,"character":5}},"target":"https://pkg.go.dev/fmt?utm_source=gopls"},{"range":{"start":{"line":0,"character":3},"end":{"line":0,"character":50}},"target":"https://github.com//issues/1612"}]

[Trace - 23:19:11.394 PM] Received response 'textDocument/documentSymbol - (3)' in 12994ms.
Result: [{"name":"RecursiveFibonacci","detail":"(n uint)","kind":12,"range":{"start":{"line":30,"character":0},"end":{"line":30,"character":36}},"selectionRange":{"start":{"line":30,"character":5},"end":{"line":30,"character":23}}},{"name":"RecursiveFibonacci2","detail":"(n uint)","kind":12,"range":{"start":{"line":38,"character":0},"end":{"line":38,"character":37}},"selectionRange":{"start":{"line":38,"character":5},"end":{"line":38,"character":24}}},{"name":"SequentialFibonacci","detail":"(n uint)","kind":12,"range":{"start":{"line":46,"character":0},"end":{"line":46,"character":37}},"selectionRange":{"start":{"line":46,"character":5},"end":{"line":46,"character":24}}}]

[Trace - 23:19:11.395 PM] Received response 'textDocument/documentHighlight - (4)' in 12994ms.
Result: [{"range":{"start":{"line":23,"character":5},"end":{"line":23,"character":12}},"kind":1},{"range":{"start":{"line":24,"character":5},"end":{"line":24,"character":12}},"kind":1},{"range":{"start":{"line":25,"character":5},"end":{"line":25,"character":12}},"kind":1},{"range":{"start":{"line":12,"character":5},"end":{"line":12,"character":12}},"kind":1},{"range":{"start":{"line":13,"character":5},"end":{"line":13,"character":12}},"kind":1},{"range":{"start":{"line":19,"character":5},"end":{"line":19,"character":12}},"kind":1},{"range":{"start":{"line":21,"character":5},"end":{"line":21,"character":12}},"kind":1},{"range":{"start":{"line":22,"character":5},"end":{"line":22,"character":12}},"kind":1}]

[Trace - 23:19:11.396 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:11 fixImports(filename="C:\\GoTogether\\src\\ivanburak\\fibo\\main.go"), abs="C:\\GoTogether\\src\\ivanburak\\fibo\\main.go", srcDir="C:\\GoTogether\\src\\ivanburak\\fibo" ...\n"}

[Trace - 23:19:11.397 PM] Received response 'textDocument/codeLens - (6)' in 12992ms.
Result: null

[Trace - 23:19:11.397 PM] Received response 'textDocument/codeAction - (5)' in 12994ms.
Result: [{"title":"Organize Imports","kind":"source.organizeImports","edit":{"documentChanges":[{"textDocument":{"version":1,"uri":"file:///C:/GoTogether/src/ivanburak/fibo/main.go"},"edits":[{"range":{"start":{"line":0,"character":50},"end":{"line":0,"character":51}},"newText":""},{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":1}},"newText":""},{"range":{"start":{"line":2,"character":12},"end":{"line":2,"character":13}},"newText":""},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":1}},"newText":""},{"range":{"start":{"line":4,"character":8},"end":{"line":4,"character":9}},"newText":""},{"range":{"start":{"line":5,"character":6},"end":{"line":5,"character":7}},"newText":""}]}]}}]

[Trace - 23:19:11.397 PM] Received response 'textDocument/foldingRange - (7)' in 12992ms.
Result: [{"startLine":4,"startCharacter":8,"endLine":5,"endCharacter":6,"kind":"imports"},{"startLine":10,"startCharacter":13,"endLine":25,"endCharacter":37},{"startLine":15,"startCharacter":39,"endLine":17,"endCharacter":39,"kind":"comment"},{"startLine":30,"startCharacter":38,"endLine":35,"endCharacter":57},{"startLine":32,"startCharacter":12,"endLine":33,"endCharacter":10},{"startLine":38,"startCharacter":39,"endLine":43,"endCharacter":57},{"startLine":40,"startCharacter":12,"endLine":41,"endCharacter":10},{"startLine":46,"startCharacter":39,"endLine":54,"endCharacter":15},{"startLine":47,"startCharacter":12,"endLine":48,"endCharacter":16},{"startLine":51,"startCharacter":31,"endLine":52,"endCharacter":20}]

[Trace - 23:19:11.398 PM] Received response 'textDocument/completion - (8)' in 11196ms.
Result: {"isIncomplete":true,"items":[{"label":"const","labelDetails":{},"kind":14,"preselect":true,"sortText":"00000","filterText":"const","insertTextFormat":2,"textEdit":{"range":{"start":{"line":25,"character":10},"end":{"line":25,"character":10}},"newText":"const"}},{"label":"func","labelDetails":{},"kind":14,"sortText":"00001","filterText":"func","insertTextFormat":2,"textEdit":{"range":{"start":{"line":25,"character":10},"end":{"line":25,"character":10}},"newText":"func"}},{"label":"import","labelDetails":{},"kind":14,"sortText":"00002","filterText":"import","insertTextFormat":2,"textEdit":{"range":{"start":{"line":25,"character":10},"end":{"line":25,"character":10}},"newText":"import"}},{"label":"type","labelDetails":{},"kind":14,"sortText":"00003","filterText":"type","insertTextFormat":2,"textEdit":{"range":{"start":{"line":25,"character":10},"end":{"line":25,"character":10}},"newText":"type"}},{"label":"var","labelDetails":{},"kind":14,"sortText":"00004","filterText":"var","insertTextFormat":2,"textEdit":{"range":{"start":{"line":25,"character":10},"end":{"line":25,"character":10}},"newText":"var"}}]}

[Info - 23:19:11] 2021/07/12 23:19:11 fixImports(filename="C:\GoTogether\src\ivanburak\fibo\main.go"), abs="C:\GoTogether\src\ivanburak\fibo\main.go", srcDir="C:\GoTogether\src\ivanburak\fibo" ...

[Trace - 23:19:11.941 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:11 572.1813ms for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go env -json GOMOD GOPATH\n"}

[Info - 23:19:11] 2021/07/12 23:19:11 572.1813ms for GOROOT=C:\Program Files\Go GOPATH=C:\GoTogether GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=C:\GoTogether\src\ivanburak\parsing go env -json GOMOD GOPATH

[Trace - 23:19:11.975 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:11 go/packages.Load\n\tsnapshot=0\n\tdirectory=C:\GoTogether\src\ivanburak\parsing\n\tquery=[file=C:\GoTogether\src\ivanburak\fibo\main.go]\n\tpackages=2\n"}

[Trace - 23:19:11.975 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:11 go/packages.Load\n\tsnapshot=0\n\tpackage="ivanburak/fibo"\n\tfiles=[C:\GoTogether\src\ivanburak\fibo\main.go]\n"}

[Trace - 23:19:11.975 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/07/12 23:19:11 go/packages.Load\n\tsnapshot=0\n\tpackage="ivanburak/fibo [ivanburak/fibo.test]"\n\tfiles=[C:\GoTogether\src\ivanburak\fibo\main.go C:\GoTogether\src\ivanburak\fibo\main_test.go]\n"}

[Info - 23:19:11] 2021/07/12 23:19:11 go/packages.Load
snapshot=0
directory=C:\GoTogether\src\ivanburak\parsing
query=[file=C:\GoTogether\src\ivanburak\fibo\main.go]
packages=2

[Info - 23:19:11] 2021/07/12 23:19:11 go/packages.Load
snapshot=0
package="ivanburak/fibo"
files=[C:\GoTogether\src\ivanburak\fibo\main.go]

[Info - 23:19:11] 2021/07/12 23:19:11 go/packages.Load
snapshot=0
package="ivanburak/fibo [ivanburak/fibo.test]"
files=[C:\GoTogether\src\ivanburak\fibo\main.go C:\GoTogether\src\ivanburak\fibo\main_test.go]

@stamblerre
Copy link
Contributor

It looks like there is only 1 completion request in the attached log, and it returns correct results, but it just takes a very long time to complete. It seems like the first code action request gets stuck and is canceled, backing up all of the subsequent requests. Is gopls always very slow for you? How long does it take to run go list -e -compiled -test -json ./... in your workspace directory?

These error messages may indicate some problem with the goimports logic:

[Info - 00:14:19] 2021/07/12 00:14:19 gopathwalk: scanning C:\GoTogether\src

[Info - 00:14:19] 2021/07/12 00:14:19 open C:\GoTogether\src\.goimportsignore: The system cannot find the file specified.

[Info - 00:14:19] 2021/07/12 00:14:19 Error statting ignored directory: CreateFile C:\GoTogether\src\v: The system cannot find the file specified.

[Info - 00:14:19] 2021/07/12 00:14:19 Error statting ignored directory: CreateFile C:\GoTogether\src\mod: The system cannot find the file specified.

Does the C:\GoTogether\src\.goimportsignore file exist?

@ivanburak
Copy link
Author

ivanburak commented Jul 13, 2021

The file C:\GoTogether\src\.goimportsignore and two directories in below messages don't exist.
All messages are just [info], I think it doesn't matter for IntelliSense

go list -e -compiled -test -json ./...
{
"ImportPath": "./...",
"Match": [
"./..."
],
"Incomplete": true,
"Error": {
"ImportStack": [],
"Pos": "",
"Err": "pattern ./...: CreateFile AppData\\Local\\Microsoft\\MSIPC\\CLC-{s;eSiLYEUCvw9ZWx3VzUvlpFeyLI=}-{{6f7679dc;j94cf;j4287;jb64f;jeac85b5f8bcf}}-GIC-{g1QCOqL3QYN3LwWbJKP;ejTtR8fk=}-{s;eSiLYEUCvw9ZWx3VzUvlpFeyLI=}-{{6f7679dc;j94cf;j4287;jb64f;jeac85b5f8bcf}}-Default.drm: The system cannot find the path specified."
}
}

I see that the file exists
image

@hyangah
Copy link
Contributor

hyangah commented Jul 13, 2021

@stamblerre gopls is suggesting only const, func, import, type, var in this case and that's as shown in the user's report #1612 (comment).

[Trace - 23:19:00.202 PM] Sending request 'textDocument/completion - (8)'.
Params: {"textDocument":{"uri":"file:///c%3A/GoTogether/src/ivanburak/fibo/main.go"},"position":{"line":25,"character":10},"context":{"triggerKind":1}}
...
[Trace - 23:19:11.398 PM] Received response 'textDocument/completion - (8)' in 11196ms.
Result: {"isIncomplete":true,"items":[{"label":"const","labelDetails":{},"kind":14,"preselect":true,"sortText":"00000","filterText":"const","insertTextFormat":2,"textEdit":{"range":{"start":{"line":25,"character":10},"end":{"line":25,"character":10}},"newText":"const"}},{"label":"func","labelDetails":{},"kind":14,"sortText":"00001","filterText":"func","insertTextFormat":2,"textEdit":{"range":{"start":{"line":25,"character":10},"end":{"line":25,"character":10}},"newText":"func"}},{"label":"import","labelDetails":{},"kind":14,"sortText":"00002","filterText":"import","insertTextFormat":2,"textEdit":{"range":{"start":{"line":25,"character":10},"end":{"line":25,"character":10}},"newText":"import"}},{"label":"type","labelDetails":{},"kind":14,"sortText":"00003","filterText":"type","insertTextFormat":2,"textEdit":{"range":{"start":{"line":25,"character":10},"end":{"line":25,"character":10}},"newText":"type"}},{"label":"var","labelDetails":{},"kind":14,"sortText":"00004","filterText":"var","insertTextFormat":2,"textEdit":{"range":{"start":{"line":25,"character":10},"end":{"line":25,"character":10}},"newText":"var"}}]}

@ivanburak Can you try to open the vscode from C:\\GoTogether\src\ivanburak\fibo folder when you want to edit the file in the folder? (Or you can add the folder explicitly to the workspace by using "File > Add Folder To Workspace" menu)

My current guess is this heppens because the file the user is editing (C:\\GoTogether\src\ivanburak\fibo\main.go) is outside of the workspace root (C:\\GoTogether\src\ivanburak\parsing). I sort of could reproduce this by setting up two directories a and b under GOPATH/src, opening the folder a and then open the go file in the folder b from the vscode window.

  • Intellisense works for a/a_main.go
    Screen Shot 2021-07-13 at 10 04 39 AM

  • Intellisense doesn't work for b/b_main.go
    Screen Shot 2021-07-13 at 10 04 52 AM

@stamblerre
Copy link
Contributor

Ah, I see, thank you for catching that @hyangah--I'm sorry I missed it. Since this is in GOPATH mode, I don't think we will invest time in resolving the issue. @ivanburak: Can you switch to using modules instead?

@ivanburak
Copy link
Author

ivanburak commented Jul 14, 2021

Thank you guys for investigation.
I am not sure that I will start to use modules in the nearest time.

Compatibility is the good feature of all software technologies and Go is a brilliant example of it.
Ok, if VS Code is not :(

@hyangah
Copy link
Contributor

hyangah commented Jul 14, 2021

@ivanburak You don't have to use modules, just as I suggested open the vscode from C:\GoTogether\src\ivanburak\fibo folder when you want to edit the file in the folder, or add the folder explicitly to the workspace by using "File > Add Folder To Workspace" menu.

Even when you use modules, I expect you will encounter issues if you are editing random files outside your main or workspace module.

Closing because there is nothing we plan to do here, but recommending users to configure their workspace
https://github.com/golang/tools/blob/master/gopls/doc/workspace.md

@hyangah hyangah closed this as completed Jul 14, 2021
@hyangah hyangah added WillNotFix and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Jul 14, 2021
@ivanburak
Copy link
Author

Thanks a lot Huang-Ah :)

@golang golang locked and limited conversation to collaborators Jul 15, 2022
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