Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Infinite Getting code actions from ''Go', 'Go', 'Go'' on save #3105

Closed
zkcrescent opened this issue Mar 16, 2020 · 50 comments
Closed

Infinite Getting code actions from ''Go', 'Go', 'Go'' on save #3105

zkcrescent opened this issue Mar 16, 2020 · 50 comments
Labels

Comments

@zkcrescent
Copy link

image

when i'm trying to save go files, this will appear and it is infinitely running. How can I fix this? btw, auto-completion is not working.

Thanks for your help.

@hyangah
Copy link
Contributor

hyangah commented Mar 16, 2020

This is another case of #3063 after the recent VS Code includes a hint on which extension is the slow one. (I admit the error message is funny.)

Since you are reporting auto-completion is not working, I am guessing the tools running behind have difficulties in processing your workspace.

@zkcrescent can you share a bit more info to triage your case?

  • What is the Go version? From your VS Code's integrated terminal, run
    go version and go env

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

  • Do you see any suspicious error messages from the View: Toggle Output > Output? Check Go, gopls, and Log (Extension Host) channels by selecting from the drop down menu on the right side.

@PapayaJuiceEQ
Copy link

Not OP but running into the same issue, beyond that I had to enable gopls manually to get autocomplete to work. This issue shows up every couple saves or so.

  • go version go1.14 darwin/amd64
  • go env:
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/mike/Library/Caches/go-build"
GOENV="/Users/mike/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/mike/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.14/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/kr/p8h7z50n2g30v4_5s7ktzn4h0000gn/T/go-build915584336=/tmp/go-build -gno-record-gcc-switches -fno-common"
  • Preferences: None! Empty json.
  • Nothing strange in Go Output.
  • gopls Output absolutely littered with the following but with no clear indication as to what it relates to:
[Error - 3:35:56 PM] 2020/03/18 15:35:56 : context canceled
2020/03/18 15:37:12 : context canceled
  • Perhaps suspicious log in Log (Extension Host):
    [2020-03-18 15:35:47.046] [exthost] [warning] ms-vscode.Go - Code actions of kind 'source.organizeImports 'requested but returned code action is of kind 'quickfix'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code actions.

@hyangah
Copy link
Contributor

hyangah commented Mar 19, 2020

@PapayaJuiceEQ What do you mean by "enabling gopls manually"?

Did you see anything before the context canceled error flood? The popup occurs because formatting & code action triggered during file save took long time.

note: The quickfix Code action issue will be fixed in the upcoming version that uses more recent language clien, and that's redherring.

@PapayaJuiceEQ
Copy link

@hyangah Upon initial installation of the vscode-go plugin and installing all of the gotools it prompted, autocomplete still didn't work even after restart. I had to run the go get for gopls in a console, restart vscode, then it worked. Apologies for the lack of clarity.

I've since opened and closed a few VSC windows and haven't seen the same issue since yesterday, but here are some similar log lines I found:

[Info  - 3:19:33 PM] 2020/03/18 15:19:33 go/packages.Load
	snapshot = 0
	query = [./... builtin]
	packages = 157
[Info  - 3:19:39 PM] 2020/03/18 15:19:39 19.350392ms for GOROOT=/usr/local/Cellar/go/1.14/libexec GOPATH=/Users/mike/go GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=/Users/mike/go/src/github.com/<my org>/<my repo> go [go env GOMOD]
[Error - 3:19:40 PM] Request textDocument/codeAction failed.
  Message: computing fix edits: /Users/mike/go/src/github.com/<my org>/<my repo>/cmd/server/server.go:53:2: expected identifier on left side of :=
  Code: 0 
[Error - 3:19:41 PM] Request textDocument/codeAction failed.
  Message: computing fix edits: /Users/mike/go/src/github.com/<my org>/<my repo>/cmd/server/server.go:53:2: expected identifier on left side of :=
  Code: 0 
[Error - 3:19:42 PM] Request textDocument/codeAction failed.
  Message: computing fix edits: /Users/mike/go/src/github.com/<my org>/<my repo>/cmd/server/server.go:53:2: expected identifier on left side of :=
  Code: 0 
[Error - 3:19:45 PM] Request textDocument/codeAction failed.
  Message: computing fix edits: /Users/mike/go/src/github.com/<my org>/<my repo>/cmd/server/server.go:54:2: expected identifier on left side of :=
  Code: 0 
[Info  - 3:19:48 PM] 2020/03/18 15:19:48 no signature help
	At = {53 26}
	Failure = cannot find an enclosing function
[Info  - 3:19:49 PM] 2020/03/18 15:19:49 no signature help
	At = {53 28}
	Failure = cannot find an enclosing function
2020/03/18 15:21:27 : context canceled
[Error - 3:21:27 PM] 2020/03/18 15:21:27 : context canceled

Please let me know if there's anything else I can help with

@stamblerre
Copy link
Contributor

@PapayaJuiceEQ: Can you add the recommended flags to your settings and capture the gopls logs again please? See https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md#capturing-logs for instructions. That will provide more detailed logs that we can use to investigate.

@lucascarvalho
Copy link

@stamblerre not sure if this will help but after following the instructions from the link above, I got several errors from gopls:

[Trace - 09:02:52.196 AM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/03/24 09:02:52 diagnose: no workspace packages: command-line-arguments has no metadata\n\tsnapshot = 456\n\tdirectory = 0x16bda20"}

[Error - 9:05:02 AM] Notify file events failed.
Error: Connection is already listening
	at throwIfListening (/Users/user/.vscode/extensions/ms-vscode.go-0.13.1/node_modules/vscode-jsonrpc/lib/main.js:669:19)
	at Object.listen (/Users/user/.vscode/extensions/ms-vscode.go-0.13.1/node_modules/vscode-jsonrpc/lib/main.js:893:13)
	at Object.listen (/Users/user/.vscode/extensions/ms-vscode.go-0.13.1/node_modules/vscode-languageclient/lib/client.js:38:34)
	at /Users/user/.vscode/extensions/ms-vscode.go-0.13.1/node_modules/vscode-languageclient/lib/client.js:1930:24
[Trace - 09:05:02.927 AM] Sending request 'textDocument/codeAction - (2152)'.

Happy to provide more information if you need it.

@stamblerre
Copy link
Contributor

Thanks, @lucascarvalho! Could you share the complete logs from when you see this error pop-up? It would be helpful to see the textDocument/codeAction requests in the logs to see if they are taking longer than expected.

@stamblerre stamblerre added the upstream-gopls Issue for gopls label Mar 24, 2020
@m1o1
Copy link

m1o1 commented Mar 24, 2020

Had this problem too. It turns out in my case, it was caused by me updating to Go 1.14 from 1.12, and I was using a private repository. I had to set GOPRIVATE to include dev.azure.com - then it started working again for me. Alternatively I could have set GOSUMDB to off and GOPROXY to direct, but the GOPRIVATE way seems better.

This could have been a coincidence though, but I am pretty sure this was the reason.

@albshin
Copy link

albshin commented Mar 27, 2020

Same problem here. I'm using VSCode + WSL with modules.

image

go version

go version go1.14 linux/amd64

go env

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/albertshin/.cache/go-build"
GOENV="/home/albertshin/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/albertshin/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.14"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.14/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/mnt/c/Git/ladder/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-build407986270=/tmp/go-build -gno-record-gcc-switches"

gopls Ouput

[Info  - 5:28:03 AM] 2020/03/27 05:28:03 Build info
----------
golang.org/x/tools/gopls v0.3.4
    golang.org/x/tools/gopls@v0.3.4 h1:4GC7q/pXQ/tsxHBGVdsMdlB4gCxVC06m/7rIXg1Px4E=
    github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
    github.com/sergi/go-diff@v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
    golang.org/x/mod@v0.1.1-0.20191105210325-c90efee705ee h1:WG0RUwxtNT4qqaXX3DPA8zHFNm/D9xaBpxzHt1WcA/E=
    golang.org/x/sync@v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=
    golang.org/x/tools@v0.0.0-20200316194252-fafb6e2e8a4a h1:hKrQy/q8/Xivoqgw6nGiz1jqpn1WGBLDcWLZwW0983E=
    golang.org/x/xerrors@v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbOeHJjicWYPqR9bpxqxYG2pA=
    honnef.co/go/tools@v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=
    mvdan.cc/xurls/v2@v2.1.0 h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=

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

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/albertshin/.cache/go-build"
GOENV="/home/albertshin/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/albertshin/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.14"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.14/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/mnt/c/Git/ladder/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-build748177892=/tmp/go-build -gno-record-gcc-switches"

[Trace - 05:28:03.477 AM] Sending response 'workspace/configuration - (2)' took 3ms.
Result: [{"usePlaceholders":true,"completeUnimported":true},null]


[Trace - 05:28:03.527 AM] Sending request 'textDocument/foldingRange - (6)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"}}


[Trace - 05:28:03.527 AM] Sending request 'textDocument/foldingRange - (7)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/server.go"}}


[Trace - 05:28:03.561 AM] Sending request 'textDocument/codeLens - (8)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"}}


[Trace - 05:28:03.562 AM] Sending request 'textDocument/codeLens - (9)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/server.go"}}


[Trace - 05:28:03.570 AM] Sending notification '$/cancelRequest'.
Params: {"id":3}


[Trace - 05:28:03.570 AM] Sending request 'textDocument/codeAction - (10)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/server.go"},"range":{"start":{"line":26,"character":1},"end":{"line":26,"character":1}},"context":{"diagnostics":[]}}


[Trace - 05:28:17.741 AM] Sending request 'textDocument/documentHighlight - (11)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"},"position":{"line":36,"character":19}}


[Trace - 05:28:17.744 AM] Sending notification '$/cancelRequest'.
Params: {"id":11}


[Trace - 05:28:17.744 AM] Sending request 'textDocument/documentHighlight - (12)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"},"position":{"line":36,"character":18}}


[Trace - 05:28:17.995 AM] Sending request 'textDocument/codeAction - (13)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"},"range":{"start":{"line":36,"character":18},"end":{"line":36,"character":18}},"context":{"diagnostics":[]}}


[Trace - 05:28:18.377 AM] Sending notification '$/cancelRequest'.
Params: {"id":12}


[Trace - 05:28:18.565 AM] Sending notification '$/cancelRequest'.
Params: {"id":6}


[Trace - 05:28:18.565 AM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go","version":2},"contentChanges":[{"range":{"start":{"line":37,"character":1},"end":{"line":37,"character":1}},"rangeLength":0,"text":"\n"}]}


[Trace - 05:28:18.566 AM] Sending notification '$/cancelRequest'.
Params: {"id":13}


[Trace - 05:28:18.763 AM] Sending request 'textDocument/foldingRange - (14)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"}}


[Trace - 05:28:18.815 AM] Sending notification '$/cancelRequest'.
Params: {"id":8}


[Trace - 05:28:18.815 AM] Sending request 'textDocument/codeLens - (15)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"}}


[Trace - 05:28:18.915 AM] Sending notification '$/cancelRequest'.
Params: {"id":1}


[Trace - 05:28:18.915 AM] Sending request 'textDocument/documentSymbol - (16)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"}}


[Trace - 05:28:19.240 AM] Sending request 'textDocument/codeAction - (17)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"},"range":{"start":{"line":0,"character":0},"end":{"line":40,"character":0}},"context":{"diagnostics":[{"range":{"start":{"line":6,"character":0},"end":{"line":6,"character":85}},"message":"exported method PGStore.GetLadder should have comment or be unexported","severity":2,"source":"go-lint"},{"range":{"start":{"line":14,"character":0},"end":{"line":14,"character":71}},"message":"exported method PGStore.GetLadders should have comment or be unexported","severity":2,"source":"go-lint"},{"range":{"start":{"line":22,"character":0},"end":{"line":22,"character":87}},"message":"exported method PGStore.InsertLadder should have comment or be unexported","severity":2,"source":"go-lint"}]}}


[Trace - 05:28:19.564 AM] Sending request 'textDocument/documentLink - (18)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"}}

Go output

Starting linting the current package at /mnt/c/Git/ladder/store
/mnt/c/Git/ladder/store>Finished running tool: /home/albertshin/go/bin/golint
/mnt/c/Git/ladder/store/ladder_store.go:7: exported method PGStore.GetLadder should have comment or be unexported
/mnt/c/Git/ladder/store/ladder_store.go:15: exported method PGStore.GetLadders should have comment or be unexported
/mnt/c/Git/ladder/store/ladder_store.go:23: exported method PGStore.InsertLadder should have comment or be unexported
/mnt/c/Git/ladder/store/postgres.go:5: exported type PGStore should have comment or be unexported
/mnt/c/Git/ladder/store/postgres.go:9: exported function Open should have comment or be unexported
/mnt/c/Git/ladder/store/postgres.go:17: exported method PGStore.Close should have comment or be unexported

Log (Extension Host)

Nothing of note.

The file I am trying to save

package store

import (
	"context"
)

func (db *PGStore) GetLadder(ctx context.Context, ladderID string) (*Ladder, error) {
	var ladder Ladder
	if err := db.GetContext(ctx, &ladder, "SELECT * FROM ladders WHERE id=$1", ladderID); err != nil {
		return nil, err
	}
	return &ladder, nil
}

func (db *PGStore) GetLadders(ctx context.Context) ([]*Ladder, error) {
	ladders := make([]*Ladder, 0)
	if err := db.SelectContext(ctx, &ladders, "SELECT * FROM ladders"); err != nil {
		return nil, err
	}
	return ladders, nil
}

func (db *PGStore) InsertLadder(ctx context.Context, ladder *Ladder) (*Ladder, error) {
	q := `
	INSERT INTO ladders
	(name)
	VALUES (:name)
	`
	rows, err := db.NamedQueryContext(ctx, q, ladder)
	if err != nil {
		return nil, err
	}
	if rows.Next() {
		rows.Scan(&ladder.ID)
		rows.Close()
	}
	return ladder, nil
}

VSCode config

    "go.formatTool": "goimports",
    "go.autocompleteUnimportedPackages": true,
    "[go]": {
        "editor.snippetSuggestions": "none",
        "editor.formatOnSave": true,
        "editor.codeActionsOnSave": {
            "source.organizeImports": true
        }
    },
    "gopls": {
        // Add parameter placeholders when completing a function.
        "usePlaceholders": true,
        "completeUnimported": true
    },
    "go.useLanguageServer": true,
    "go.languageServerFlags": [
        "-rpc.trace"
    ]

@supa-freak
Copy link

"go.useLanguageServer": false,
is all that helps for me...

@stamblerre
Copy link
Contributor

@albshin: This log doesn't seem to be complete. Do you mind sharing the entire contents? You can also try running gopls -rpc.trace -v check path/to/file.go to get the debug output more easily.

@supa-freak: If you're interested in trying the language server again, I'd be happy to investigate the issue.

@albshin
Copy link

albshin commented Mar 27, 2020

EDIT: On a whim I moved everything over from Windows to the WSL filesystem and everything seems to work now. I did try "editor.codeActionsOnSaveTimeout": 3000 beforehand but it didn't seem to fix the problem either. Anyways I'll post back if any more problems occur.

@stamblerre Sorry about that. I believe this should be the full log now.

[Trace - 13:02:34.629 PM] Sending request 'initialize - (0)'.
Params: {"processId":337,"rootPath":"/mnt/c/Git/ladder","rootUri":"file:///mnt/c/Git/ladder","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true},"textDocument":{"publishDiagnostics":{"relatedInformation":true},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}}},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"codeAction":{"dynamicRegistration":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"documentLink":{"dynamicRegistration":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true}}},"initializationOptions":{},"trace":"off","workspaceFolders":[{"uri":"file:///mnt/c/Git/ladder","name":"ladder"}]}


[Trace - 13:02:34.633 PM] Received response 'initialize - (0)' in 3ms.
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.organizeImports"]},"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":""},"renameProvider":{"prepareProvider":true},"foldingRangeProvider":true,"executeCommandProvider":{"commands":["tidy","upgrade.dependency"]},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"serverInfo":{"name":""}}


[Trace - 13:02:34.635 PM] Sending notification 'initialized'.
Params: {}


[Trace - 13:02:34.635 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go","languageId":"go","version":1,"text":"package store\n\nimport (\n\t\"context\"\n)\n\nfunc (db *PGStore) GetLadder(ctx context.Context, ladderID string) (*Ladder, error) {\n\tvar ladder Ladder\n\tif err := db.GetContext(ctx, &ladder, \"SELECT * FROM ladders WHERE id=$1\", ladderID); err != nil {\n\t\treturn nil, err\n\t}\n\treturn &ladder, nil\n}\n\nfunc (db *PGStore) GetLadders(ctx context.Context) ([]*Ladder, error) {\n\tladders := make([]*Ladder, 0)\n\tif err := db.SelectContext(ctx, &ladders, \"SELECT * FROM ladders\"); err != nil {\n\t\treturn nil, err\n\t}\n\treturn ladders, nil\n}\n\nfunc (db *PGStore) InsertLadder(ctx context.Context, ladder *Ladder) (*Ladder, error) {\n\tq := `\n\tINSERT INTO ladders\n\t(name)\n\tVALUES (:name)\n\t`\n\trows, err := db.NamedQueryContext(ctx, q, ladder)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif rows.Next() {\n\t\trows.Scan(&ladder.ID)\n\t\trows.Close()\n\t}\n\treturn ladder, nil\n}\n\n\n"}}


[Trace - 13:02:34.636 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 - 13:02:34.642 PM] Sending response 'client/registerCapability - (1)' took 6ms.
Result: {}


[Trace - 13:02:34.656 PM] Sending request 'textDocument/documentSymbol - (1)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"}}


[Trace - 13:02:34.657 PM] Sending request 'textDocument/documentLink - (2)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"}}


[Trace - 13:02:34.857 PM] Sending request 'textDocument/foldingRange - (3)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"}}


[Trace - 13:02:34.857 PM] Received request 'workspace/configuration - (2)'.
Params: {"items":[{"scopeUri":"file:///mnt/c/Git/ladder","section":"gopls"},{"scopeUri":"file:///mnt/c/Git/ladder","section":"gopls-ladder"}]}


[Trace - 13:02:34.858 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 13:02:34 Build info\n----------\ngolang.org/x/tools/gopls v0.3.4\n    golang.org/x/tools/gopls@v0.3.4 h1:4GC7q/pXQ/tsxHBGVdsMdlB4gCxVC06m/7rIXg1Px4E=\n    github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=\n    github.com/sergi/go-diff@v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=\n    golang.org/x/mod@v0.1.1-0.20191105210325-c90efee705ee h1:WG0RUwxtNT4qqaXX3DPA8zHFNm/D9xaBpxzHt1WcA/E=\n    golang.org/x/sync@v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=\n    golang.org/x/tools@v0.0.0-20200316194252-fafb6e2e8a4a h1:hKrQy/q8/Xivoqgw6nGiz1jqpn1WGBLDcWLZwW0983E=\n    golang.org/x/xerrors@v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbOeHJjicWYPqR9bpxqxYG2pA=\n    honnef.co/go/tools@v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=\n    mvdan.cc/xurls/v2@v2.1.0 h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=\n\nGo info\n-------\ngo version go1.14 linux/amd64\n\nGO111MODULE=\"\"\nGOARCH=\"amd64\"\nGOBIN=\"\"\nGOCACHE=\"/home/albertshin/.cache/go-build\"\nGOENV=\"/home/albertshin/.config/go/env\"\nGOEXE=\"\"\nGOFLAGS=\"\"\nGOHOSTARCH=\"amd64\"\nGOHOSTOS=\"linux\"\nGOINSECURE=\"\"\nGONOPROXY=\"\"\nGONOSUMDB=\"\"\nGOOS=\"linux\"\nGOPATH=\"/home/albertshin/go\"\nGOPRIVATE=\"\"\nGOPROXY=\"https://proxy.golang.org,direct\"\nGOROOT=\"/usr/lib/go-1.14\"\nGOSUMDB=\"sum.golang.org\"\nGOTMPDIR=\"\"\nGOTOOLDIR=\"/usr/lib/go-1.14/pkg/tool/linux_amd64\"\nGCCGO=\"gccgo\"\nAR=\"ar\"\nCC=\"gcc\"\nCXX=\"g++\"\nCGO_ENABLED=\"1\"\nGOMOD=\"/mnt/c/Git/ladder/go.mod\"\nCGO_CFLAGS=\"-g -O2\"\nCGO_CPPFLAGS=\"\"\nCGO_CXXFLAGS=\"-g -O2\"\nCGO_FFLAGS=\"-g -O2\"\nCGO_LDFLAGS=\"-g -O2\"\nPKG_CONFIG=\"pkg-config\"\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build508990561=/tmp/go-build -gno-record-gcc-switches\"\n"}


[Info  - 1:02:34 PM] 2020/03/27 13:02:34 Build info
----------
golang.org/x/tools/gopls v0.3.4
    golang.org/x/tools/gopls@v0.3.4 h1:4GC7q/pXQ/tsxHBGVdsMdlB4gCxVC06m/7rIXg1Px4E=
    github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
    github.com/sergi/go-diff@v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
    golang.org/x/mod@v0.1.1-0.20191105210325-c90efee705ee h1:WG0RUwxtNT4qqaXX3DPA8zHFNm/D9xaBpxzHt1WcA/E=
    golang.org/x/sync@v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=
    golang.org/x/tools@v0.0.0-20200316194252-fafb6e2e8a4a h1:hKrQy/q8/Xivoqgw6nGiz1jqpn1WGBLDcWLZwW0983E=
    golang.org/x/xerrors@v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbOeHJjicWYPqR9bpxqxYG2pA=
    honnef.co/go/tools@v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=
    mvdan.cc/xurls/v2@v2.1.0 h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=

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

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/albertshin/.cache/go-build"
GOENV="/home/albertshin/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/albertshin/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.14"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.14/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/mnt/c/Git/ladder/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-build508990561=/tmp/go-build -gno-record-gcc-switches"

[Trace - 13:02:34.862 PM] Sending response 'workspace/configuration - (2)' took 4ms.
Result: [{"usePlaceholders":true,"completeUnimported":true},null]


[Trace - 13:02:34.904 PM] Sending request 'textDocument/codeLens - (4)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"}}


[Trace - 13:03:41.147 PM] Sending request 'textDocument/codeAction - (5)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"},"range":{"start":{"line":20,"character":0},"end":{"line":20,"character":0}},"context":{"diagnostics":[]}}


[Trace - 13:03:41.755 PM] Sending notification '$/cancelRequest'.
Params: {"id":3}


[Trace - 13:03:41.756 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go","version":2},"contentChanges":[{"range":{"start":{"line":20,"character":1},"end":{"line":20,"character":1}},"rangeLength":0,"text":"\n"}]}


[Trace - 13:03:41.756 PM] Sending notification '$/cancelRequest'.
Params: {"id":5}


[Trace - 13:03:41.954 PM] Sending request 'textDocument/foldingRange - (6)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"}}


[Trace - 13:03:42.039 PM] Sending notification '$/cancelRequest'.
Params: {"id":4}


[Trace - 13:03:42.039 PM] Sending request 'textDocument/codeLens - (7)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"}}


[Trace - 13:03:42.129 PM] Sending notification '$/cancelRequest'.
Params: {"id":1}


[Trace - 13:03:42.129 PM] Sending request 'textDocument/documentSymbol - (8)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"}}


[Trace - 13:03:42.756 PM] Sending request 'textDocument/documentLink - (9)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"}}


[Trace - 13:03:43.769 PM] Sending request 'textDocument/codeAction - (10)'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go"},"range":{"start":{"line":0,"character":0},"end":{"line":41,"character":0}},"context":{"diagnostics":[]}}


[Trace - 13:04:28.255 PM] Sending notification '$/cancelRequest'.
Params: {"id":10}


[Trace - 13:04:28.339 PM] Sending notification 'textDocument/didSave'.
Params: {"textDocument":{"uri":"file:///mnt/c/Git/ladder/store/ladder_store.go","version":2}

gopls check

./gopls -rpc.trace -v check /mnt/c/Git/ladder/store/ladder_store.go 
2020/03/27 13:10:00 Info:2020/03/27 13:10:00 Build info
----------
golang.org/x/tools/gopls v0.3.4
    golang.org/x/tools/gopls@v0.3.4 h1:4GC7q/pXQ/tsxHBGVdsMdlB4gCxVC06m/7rIXg1Px4E=
    github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
    github.com/sergi/go-diff@v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
    golang.org/x/mod@v0.1.1-0.20191105210325-c90efee705ee h1:WG0RUwxtNT4qqaXX3DPA8zHFNm/D9xaBpxzHt1WcA/E=
    golang.org/x/sync@v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=
    golang.org/x/tools@v0.0.0-20200316194252-fafb6e2e8a4a h1:hKrQy/q8/Xivoqgw6nGiz1jqpn1WGBLDcWLZwW0983E=
    golang.org/x/xerrors@v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbOeHJjicWYPqR9bpxqxYG2pA=
    honnef.co/go/tools@v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=
    mvdan.cc/xurls/v2@v2.1.0 h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=

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

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/albertshin/.cache/go-build"
GOENV="/home/albertshin/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/albertshin/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.14"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.14/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-build831399680=/tmp/go-build -gno-record-gcc-switches"
2020/03/27 13:10:00 Info:2020/03/27 13:10:00 go/packages.Load
        snapshot = 0
        query = [./ builtin]
        packages = 2
2020/03/27 13:10:00 Info:2020/03/27 13:10:00 go/packages.Load
        snapshot = 0
        query = [./]
        packages = 1

@stamblerre
Copy link
Contributor

Thanks for posting that! It looks you're developing a project outside of GOPATH, but gopls is also unable to find a go.mod file. Are you intentionally not using GOPATH/modules or does this project have a go.mod?

I'm not noticing any reason why Windows would be causing an issue here, but FWIW, VS Code recently eliminated the "editor.codeActionsOnSaveTimeout" setting, which is why these notifications are now popping up.

@CoffeeCecil
Copy link

I ran into this error too and have a thing to add which might function as a clue. When the go language server is running, it seems to ignore settings files in visual studio code. For instance if you have "[go]:{"editor.formatOnSave":false} in your setting file because I habitually hit ctrl-s and end up removing a package import and typed code I need in the immediate future, it will ignore that setting and use the defaults. I tested this by typing in something like

package main
import "log"
func main(){
    _ = 2+2
}

And watching it delete "log" a few times, while one or both of my settings.json files read as:

{
    "go.useLanguageServer": true,
"[go]": {
    "editor.formatOnSave": false,
    "editor.codeActionsOnSave": {
        "source.organizeImports": true,
    },
    // Optional: Disable snippets, as they conflict with completion ranking.
    "editor.snippetSuggestions": "none",
},
"[go.mod]": {
    "editor.formatOnSave": false,
    "editor.codeActionsOnSave": {
        "source.organizeImports": true,
    },
},
"gopls": {
     // Add parameter placeholders when completing a function.
    "usePlaceholders": true,

    // If true, enable additional analyses with staticcheck.
    // Warning: This will significantly increase memory usage.
    "staticcheck": false,
}
}

Thinking about logging this as another issue, but this seems to be related. Running the program from a not-cold-boot, I definitely experienced a 15-45 second delay on a trivial file for gopls to kick in and take effect. From a cold boot, that went down to 0.5-1.5 seconds. It might be that when I restarted a new version came into effect, I definitely downloaded the latest code trying to fix this. But I kind of doubt that - it seems more likely it came into conflict with another language server... I like to mess around with different programming languages in my free time.

Logged output while the program was deleting things it shouldn't with gopls:

[Info  - 5:28:06 PM] 2020/03/27 17:28:06 Build info
----------
golang.org/x/tools/gopls v0.3.4
    golang.org/x/tools/gopls@v0.3.4 h1:4GC7q/pXQ/tsxHBGVdsMdlB4gCxVC06m/7rIXg1Px4E=
    github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
    github.com/sergi/go-diff@v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
    golang.org/x/mod@v0.1.1-0.20191105210325-c90efee705ee h1:WG0RUwxtNT4qqaXX3DPA8zHFNm/D9xaBpxzHt1WcA/E=
    golang.org/x/sync@v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=
    golang.org/x/tools@v0.0.0-20200316194252-fafb6e2e8a4a h1:hKrQy/q8/Xivoqgw6nGiz1jqpn1WGBLDcWLZwW0983E=
    golang.org/x/xerrors@v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbOeHJjicWYPqR9bpxqxYG2pA=
    honnef.co/go/tools@v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=
    mvdan.cc/xurls/v2@v2.1.0 h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=

Go info
-------
go version go1.14 windows/amd64

set GO111MODULE=auto
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\admin\AppData\Local\go-build
set GOENV=C:\Users\admin\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=d:\tango\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=D:\tango\scoop\apps\go\current
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=D:\tango\scoop\apps\go\current\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=d:\tango\admin\workspace\go_general\gtk3test\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\admin\AppData\Local\Temp\go-build333538670=/tmp/go-build -gno-record-gcc-switches

[Info  - 5:28:08 PM] 2020/03/27 17:28:08 go/packages.Load
	snapshot = 0
	query = [./... builtin]
	packages = 3
[Info  - 5:28:08 PM] 2020/03/27 17:28:08 193.8902ms for GOROOT=D:\tango\scoop\apps\go\current GOPATH=d:\tango\go GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=D:\tango\admin\workspace\go_general\gtk3test go [go env GOMOD]
[Info  - 5:28:08 PM] 2020/03/27 17:28:08 187.891ms for GOROOT=D:\tango\scoop\apps\go\current GOPATH=d:\tango\go GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=D:\tango\admin\workspace\go_general\gtk3test go [go list -modfile=C:\Users\admin\AppData\Local\Temp\go.gtk3test.419305139.mod -m -f {{.Path}}
{{.Dir}}
{{.GoMod}}
{{.GoVersion}}
{{range context.ReleaseTags}}{{if eq . "go1.14"}}{{.}}{{end}}{{end}}
]
[Info  - 5:28:09 PM] 2020/03/27 17:28:09 240.8656ms for GOROOT=D:\tango\scoop\apps\go\current GOPATH=d:\tango\go GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=D:\tango\admin\workspace\go_general\gtk3test go [go list -modfile=C:\Users\admin\AppData\Local\Temp\go.gtk3test.419305139.mod -m -json ...]
2020/03/27 17:28:09 : context canceled
[Error - 5:28:09 PM] 2020/03/27 17:28:09 : context canceled
[Error - 5:28:13 PM] Request textDocument/codeAction failed.
  Message: computing fix edits: D:\tango\admin\workspace\go_general\gtk3test\drag_and_drop\main.go:3:1: expected declaration, found 'package'
  Code: 0 
[Info  - 5:28:15 PM] 2020/03/27 17:28:15 go/packages.Load
	snapshot = 25
	package = c.com/pkg/gtk3exp/drag_and_drop
	files = [D:\tango\admin\workspace\go_general\gtk3test\drag_and_drop\main.go]
[Info  - 5:28:15 PM] 2020/03/27 17:28:15 go/packages.Load
	snapshot = 25
	query = [c.com/pkg/gtk3exp/drag_and_drop]
	packages = 1
[Info  - 5:28:15 PM] 2020/03/27 17:28:15 go/packages.Load
	snapshot = 25
	query = [file=D:\tango\admin\workspace\go_general\gtk3test\drag_and_drop\main.go]
	packages = 1
[Info  - 5:28:15 PM] 2020/03/27 17:28:15 go/packages.Load
	snapshot = 25
	package = c.com/pkg/gtk3exp/drag_and_drop
	files = [D:\tango\admin\workspace\go_general\gtk3test\drag_and_drop\main.go]
2020/03/27 17:28:16 no dep handle: no metadata for l
	package = l
[Info  - 5:28:16 PM] 2020/03/27 17:28:16 go/packages.Load
	snapshot = 28
	query = [file=D:\tango\admin\workspace\go_general\gtk3test\drag_and_drop\main.go]
	packages = 1
[Error - 5:28:16 PM] 2020/03/27 17:28:16 no dep handle: no metadata for l
	package = l
[Info  - 5:28:16 PM] 2020/03/27 17:28:16 go/packages.Load
	snapshot = 28
	package = c.com/pkg/gtk3exp/drag_and_drop
	files = [D:\tango\admin\workspace\go_general\gtk3test\drag_and_drop\main.go]
[Info  - 5:28:18 PM] 2020/03/27 17:28:18 go/packages.Load
	snapshot = 30
	query = [file=D:\tango\admin\workspace\go_general\gtk3test\drag_and_drop\main.go]
	packages = 1
[Info  - 5:28:18 PM] 2020/03/27 17:28:18 go/packages.Load
	snapshot = 30
	package = c.com/pkg/gtk3exp/drag_and_drop
	files = [D:\tango\admin\workspace\go_general\gtk3test\drag_and_drop\main.go]
[Info  - 5:28:45 PM] 2020/03/27 17:28:45 background imports cache refresh starting
[Info  - 5:28:45 PM] 2020/03/27 17:28:45 background refresh finished after 185.8777ms
	Error = <nil>

With -rpc.trace:

[Trace - 17:35:33.706 PM] Sending request 'initialize - (0)'.
Params: {"processId":10516,"rootPath":"d:\\tango\\admin\\workspace\\go_general\\gtk3test","rootUri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true},"textDocument":{"publishDiagnostics":{"relatedInformation":true},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}}},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"codeAction":{"dynamicRegistration":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"documentLink":{"dynamicRegistration":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true}}},"initializationOptions":{},"trace":"off","workspaceFolders":[{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test","name":"gtk3test"}]}


[Trace - 17:35:33.712 PM] Received response 'initialize - (0)' in 5ms.
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.organizeImports"]},"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":""},"renameProvider":{"prepareProvider":true},"foldingRangeProvider":true,"executeCommandProvider":{"commands":["tidy","upgrade.dependency"]},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":"workspace/didChangeWorkspaceFolders"}}},"serverInfo":{"name":""}}


[Trace - 17:35:33.719 PM] Sending notification 'initialized'.
Params: {}


[Trace - 17:35:33.720 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/go.mod","languageId":"go.mod","version":1,"text":"module c.com/pkg/gtk3exp\n\ngo 1.14\n\nrequire (\n\tgithub.com/gotk3/gotk3 v0.4.0\n\t//golang.org/x/tools v0.0.0-20200327195553-82bb89366a1e // indirect\n)\n"}}


[Trace - 17:35:33.720 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 - 17:35:33.724 PM] Sending response 'client/registerCapability - (1)' took 3ms.
Result: {}


[Trace - 17:35:33.743 PM] Sending request 'textDocument/documentSymbol - (1)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/go.mod"}}


[Trace - 17:35:33.744 PM] Sending request 'textDocument/codeAction - (2)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/go.mod"},"range":{"start":{"line":6,"character":3},"end":{"line":6,"character":3}},"context":{"diagnostics":[]}}


[Trace - 17:35:33.744 PM] Sending request 'textDocument/documentLink - (3)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/go.mod"}}


[Trace - 17:35:33.938 PM] Sending request 'textDocument/foldingRange - (4)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/go.mod"}}


[Trace - 17:35:33.985 PM] Sending request 'textDocument/codeLens - (5)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/go.mod"}}


[Trace - 17:35:34.412 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:35:34 Build info\n----------\ngolang.org/x/tools/gopls v0.3.4\n    golang.org/x/tools/gopls@v0.3.4 h1:4GC7q/pXQ/tsxHBGVdsMdlB4gCxVC06m/7rIXg1Px4E=\n    github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=\n    github.com/sergi/go-diff@v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=\n    golang.org/x/mod@v0.1.1-0.20191105210325-c90efee705ee h1:WG0RUwxtNT4qqaXX3DPA8zHFNm/D9xaBpxzHt1WcA/E=\n    golang.org/x/sync@v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=\n    golang.org/x/tools@v0.0.0-20200316194252-fafb6e2e8a4a h1:hKrQy/q8/Xivoqgw6nGiz1jqpn1WGBLDcWLZwW0983E=\n    golang.org/x/xerrors@v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbOeHJjicWYPqR9bpxqxYG2pA=\n    honnef.co/go/tools@v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=\n    mvdan.cc/xurls/v2@v2.1.0 h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=\n\nGo info\n-------\ngo version go1.14 windows/amd64\n\nset GO111MODULE=auto\nset GOARCH=amd64\nset GOBIN=\nset GOCACHE=C:\\Users\\admin\\AppData\\Local\\go-build\nset GOENV=C:\\Users\\admin\\AppData\\Roaming\\go\\env\nset GOEXE=.exe\nset GOFLAGS=\nset GOHOSTARCH=amd64\nset GOHOSTOS=windows\nset GOINSECURE=\nset GONOPROXY=\nset GONOSUMDB=\nset GOOS=windows\nset GOPATH=d:\\tango\\go\nset GOPRIVATE=\nset GOPROXY=https://proxy.golang.org,direct\nset GOROOT=D:\\tango\\scoop\\apps\\go\\current\nset GOSUMDB=sum.golang.org\nset GOTMPDIR=\nset GOTOOLDIR=D:\\tango\\scoop\\apps\\go\\current\\pkg\\tool\\windows_amd64\nset GCCGO=gccgo\nset AR=ar\nset CC=gcc\nset CXX=g++\nset CGO_ENABLED=1\nset GOMOD=d:\\tango\\admin\\workspace\\go_general\\gtk3test\\go.mod\nset CGO_CFLAGS=-g -O2\nset CGO_CPPFLAGS=\nset CGO_CXXFLAGS=-g -O2\nset CGO_FFLAGS=-g -O2\nset CGO_LDFLAGS=-g -O2\nset PKG_CONFIG=pkg-config\nset GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\\Users\\admin\\AppData\\Local\\Temp\\go-build646538566=/tmp/go-build -gno-record-gcc-switches\n"}


[Trace - 17:35:34.412 PM] Received request 'workspace/configuration - (2)'.
Params: {"items":[{"scopeUri":"file:///D:/tango/admin/workspace/go_general/gtk3test","section":"gopls"},{"scopeUri":"file:///D:/tango/admin/workspace/go_general/gtk3test","section":"gopls-gtk3test"}]}


[Info  - 5:35:34 PM] 2020/03/27 17:35:34 Build info
----------
golang.org/x/tools/gopls v0.3.4
    golang.org/x/tools/gopls@v0.3.4 h1:4GC7q/pXQ/tsxHBGVdsMdlB4gCxVC06m/7rIXg1Px4E=
    github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
    github.com/sergi/go-diff@v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
    golang.org/x/mod@v0.1.1-0.20191105210325-c90efee705ee h1:WG0RUwxtNT4qqaXX3DPA8zHFNm/D9xaBpxzHt1WcA/E=
    golang.org/x/sync@v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=
    golang.org/x/tools@v0.0.0-20200316194252-fafb6e2e8a4a h1:hKrQy/q8/Xivoqgw6nGiz1jqpn1WGBLDcWLZwW0983E=
    golang.org/x/xerrors@v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbOeHJjicWYPqR9bpxqxYG2pA=
    honnef.co/go/tools@v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=
    mvdan.cc/xurls/v2@v2.1.0 h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=

Go info
-------
go version go1.14 windows/amd64

set GO111MODULE=auto
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\admin\AppData\Local\go-build
set GOENV=C:\Users\admin\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=d:\tango\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=D:\tango\scoop\apps\go\current
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=D:\tango\scoop\apps\go\current\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=d:\tango\admin\workspace\go_general\gtk3test\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\admin\AppData\Local\Temp\go-build646538566=/tmp/go-build -gno-record-gcc-switches

[Trace - 17:35:34.417 PM] Sending response 'workspace/configuration - (2)' took 4ms.
Result: [{"usePlaceholders":true,"staticcheck":false},null]


[Trace - 17:35:34.567 PM] Sending notification '$/cancelRequest'.
Params: {"id":2}


[Trace - 17:35:34.568 PM] Sending request 'textDocument/codeAction - (6)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/go.mod"},"range":{"start":{"line":6,"character":3},"end":{"line":6,"character":3}},"context":{"diagnostics":[]}}


[Trace - 17:35:36.249 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:35:36 go/packages.Load\n\tsnapshot = 0\n\tquery = [./... builtin]\n\tpackages = 3"}


[Info  - 5:35:36 PM] 2020/03/27 17:35:36 go/packages.Load
	snapshot = 0
	query = [./... builtin]
	packages = 3
[Error - 17:35:36.351 PM] Received #2 


[Trace - 17:35:36.351 PM] Received response 'textDocument/documentSymbol - (1)' in 2608ms.
Result: []


[Trace - 17:35:37.465 PM] Received response 'textDocument/documentLink - (3)' in 3720ms.
Result: [{"range":{"start":{"line":5,"character":1},"end":{"line":5,"character":23}},"target":"https://pkg.go.dev/mod/github.com/gotk3/gotk3@v0.4.0"}]


[Trace - 17:35:37.465 PM] Received response 'textDocument/foldingRange - (4)' in 3527ms.
Result: {}


[Trace - 17:35:37.465 PM] Received response 'textDocument/codeLens - (5)' in 3480ms.
Result: {}


[Trace - 17:35:37.465 PM] Received response 'textDocument/codeAction - (6)' in 2896ms.
Result: {}


[Trace - 17:35:38.672 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:35:38 go/packages.Load\n\tsnapshot = 1\n\tquery = [c.com/pkg/gtk3exp/drag_and_drop c.com/pkg/gtk3exp/gtkpkg]\n\tpackages = 2"}


[Trace - 17:35:38.672 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:35:38 go/packages.Load\n\tsnapshot = 1\n\tpackage = c.com/pkg/gtk3exp/drag_and_drop\n\tfiles = [D:\\tango\\admin\\workspace\\go_general\\gtk3test\\drag_and_drop\\main.go]"}


[Trace - 17:35:38.672 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:35:38 go/packages.Load\n\tsnapshot = 1\n\tpackage = c.com/pkg/gtk3exp/gtkpkg\n\tfiles = [D:\\tango\\admin\\workspace\\go_general\\gtk3test\\gtkpkg\\main.go]"}


[Info  - 5:35:38 PM] 2020/03/27 17:35:38 go/packages.Load
	snapshot = 1
	query = [c.com/pkg/gtk3exp/drag_and_drop c.com/pkg/gtk3exp/gtkpkg]
	packages = 2
[Info  - 5:35:38 PM] 2020/03/27 17:35:38 go/packages.Load
	snapshot = 1
	package = c.com/pkg/gtk3exp/drag_and_drop
	files = [D:\tango\admin\workspace\go_general\gtk3test\drag_and_drop\main.go]
[Info  - 5:35:38 PM] 2020/03/27 17:35:38 go/packages.Load
	snapshot = 1
	package = c.com/pkg/gtk3exp/gtkpkg
	files = [D:\tango\admin\workspace\go_general\gtk3test\gtkpkg\main.go]
[Trace - 17:36:30.893 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","languageId":"go","version":1,"text":"package main\r\n\r\nfunc main() {\r\n\r\n\t_ = 2 + 2\r\n}\r\n"}}


[Trace - 17:36:30.893 PM] Sending request 'textDocument/documentLink - (7)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:30.893 PM] Sending request 'textDocument/codeAction - (8)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[]}}


[Trace - 17:36:30.893 PM] Sending request 'textDocument/documentSymbol - (9)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:30.894 PM] Received response 'textDocument/documentLink - (7)' in 1ms.
Result: {}


[Trace - 17:36:31.080 PM] Sending request 'textDocument/codeLens - (10)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:31.087 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:36:31 171.9284ms for GOROOT=D:\\tango\\scoop\\apps\\go\\current GOPATH=d:\\tango\\go GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=D:\\tango\\admin\\workspace\\go_general\\gtk3test go [go env GOMOD]"}


[Info  - 5:36:31 PM] 2020/03/27 17:36:31 171.9284ms for GOROOT=D:\tango\scoop\apps\go\current GOPATH=d:\tango\go GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=D:\tango\admin\workspace\go_general\gtk3test go [go env GOMOD]
[Trace - 17:36:31.090 PM] Sending request 'textDocument/codeAction - (11)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"range":{"start":{"line":0,"character":12},"end":{"line":0,"character":12}},"context":{"diagnostics":[]}}


[Trace - 17:36:31.090 PM] Sending notification '$/cancelRequest'.
Params: {"id":8}


[Trace - 17:36:31.111 PM] Sending request 'textDocument/foldingRange - (12)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:31.264 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:36:31 161.9304ms for GOROOT=D:\\tango\\scoop\\apps\\go\\current GOPATH=d:\\tango\\go GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=D:\\tango\\admin\\workspace\\go_general\\gtk3test go [go list -modfile=C:\\Users\\admin\\AppData\\Local\\Temp\\go.gtk3test.888114483.mod -m -f {{.Path}}\n{{.Dir}}\n{{.GoMod}}\n{{.GoVersion}}\n{{range context.ReleaseTags}}{{if eq . \"go1.14\"}}{{.}}{{end}}{{end}}\n]"}


[Info  - 5:36:31 PM] 2020/03/27 17:36:31 161.9304ms for GOROOT=D:\tango\scoop\apps\go\current GOPATH=d:\tango\go GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=D:\tango\admin\workspace\go_general\gtk3test go [go list -modfile=C:\Users\admin\AppData\Local\Temp\go.gtk3test.888114483.mod -m -f {{.Path}}
{{.Dir}}
{{.GoMod}}
{{.GoVersion}}
{{range context.ReleaseTags}}{{if eq . "go1.14"}}{{.}}{{end}}{{end}}
]
[Trace - 17:36:31.481 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:36:31 197.055ms for GOROOT=D:\\tango\\scoop\\apps\\go\\current GOPATH=d:\\tango\\go GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=D:\\tango\\admin\\workspace\\go_general\\gtk3test go [go list -modfile=C:\\Users\\admin\\AppData\\Local\\Temp\\go.gtk3test.888114483.mod -m -json ...]"}


[Error - 17:36:31.481 PM] Received #8 computing fix edits: no parsed file for file:///D:/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go


2020/03/27 17:36:31 : context canceled
[Trace - 17:36:31.481 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/03/27 17:36:31 : context canceled"}


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


[Trace - 17:36:31.481 PM] Received response 'textDocument/codeLens - (10)' in 400ms.
Result: {}


[Info  - 5:36:31 PM] 2020/03/27 17:36:31 197.055ms for GOROOT=D:\tango\scoop\apps\go\current GOPATH=d:\tango\go GO111MODULE= GOPROXY=https://proxy.golang.org,direct PWD=D:\tango\admin\workspace\go_general\gtk3test go [go list -modfile=C:\Users\admin\AppData\Local\Temp\go.gtk3test.888114483.mod -m -json ...]
[Error - 5:36:31 PM] 2020/03/27 17:36:31 : context canceled
[Trace - 17:36:31.482 PM] Received response 'textDocument/codeAction - (11)' in 391ms.
Result: [{"title":"Organize Imports","kind":"source.organizeImports","edit":{"documentChanges":[{"textDocument":{"version":1,"uri":"file:///D:/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"edits":[{"range":{"start":{"line":0,"character":12},"end":{"line":0,"character":13}},"newText":""}]}]}}]


[Trace - 17:36:31.482 PM] Received response 'textDocument/foldingRange - (12)' in 370ms.
Result: [{"startLine":2,"startCharacter":13,"endLine":4,"endCharacter":10}]


[Trace - 17:36:33.938 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":2},"contentChanges":[{"range":{"start":{"line":1,"character":0},"end":{"line":1,"character":0}},"rangeLength":0,"text":"\r\n"}]}


[Trace - 17:36:34.121 PM] Sending request 'textDocument/foldingRange - (13)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:34.122 PM] Received response 'textDocument/foldingRange - (13)' in 0ms.
Result: [{"startLine":3,"startCharacter":13,"endLine":5,"endCharacter":10}]


[Trace - 17:36:34.175 PM] Sending request 'textDocument/codeLens - (14)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:34.175 PM] Received response 'textDocument/codeLens - (14)' in 0ms.
Result: {}


[Trace - 17:36:34.761 PM] Sending request 'textDocument/documentSymbol - (15)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


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


[Trace - 17:36:34.805 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":3},"contentChanges":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"rangeLength":0,"text":"\r\n"}]}


[Trace - 17:36:34.921 PM] Sending request 'textDocument/documentLink - (16)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:34.922 PM] Received response 'textDocument/documentLink - (16)' in 0ms.
Result: {}


[Trace - 17:36:34.999 PM] Sending request 'textDocument/foldingRange - (17)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:35.000 PM] Received response 'textDocument/foldingRange - (17)' in 0ms.
Result: [{"startLine":4,"startCharacter":13,"endLine":6,"endCharacter":10}]


[Trace - 17:36:35.049 PM] Sending request 'textDocument/codeLens - (18)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:35.049 PM] Received response 'textDocument/codeLens - (18)' in 0ms.
Result: {}


[Trace - 17:36:35.246 PM] Sending request 'textDocument/documentSymbol - (19)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


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


[Trace - 17:36:36.112 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":4},"contentChanges":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"rangeLength":0,"text":"i"}]}


[Trace - 17:36:36.114 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///D:/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":4,"diagnostics":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"severity":1,"source":"syntax","message":"expected declaration, found i"}]}


[Trace - 17:36:36.119 PM] Sending request 'textDocument/completion - (20)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"position":{"line":2,"character":1},"context":{"triggerKind":1}}


[Trace - 17:36:36.119 PM] Received response 'textDocument/completion - (20)' in 0ms.
Result: {"isIncomplete":true,"items":[{"label":"import","kind":14,"preselect":true,"sortText":"00000","filterText":"import","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":1}},"newText":"import"}}]}


[Trace - 17:36:36.257 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":5},"contentChanges":[{"range":{"start":{"line":2,"character":1},"end":{"line":2,"character":1}},"rangeLength":0,"text":"m"}]}


[Trace - 17:36:36.257 PM] Sending request 'textDocument/completion - (21)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"position":{"line":2,"character":2},"context":{"triggerKind":3}}


[Trace - 17:36:36.258 PM] Received response 'textDocument/completion - (21)' in 1ms.
Result: {"isIncomplete":true,"items":[{"label":"import","kind":14,"preselect":true,"sortText":"00000","filterText":"import","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":2}},"newText":"import"}}]}


[Trace - 17:36:36.258 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///D:/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":5,"diagnostics":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"severity":1,"source":"syntax","message":"expected declaration, found im"}]}


[Trace - 17:36:36.341 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":6},"contentChanges":[{"range":{"start":{"line":2,"character":2},"end":{"line":2,"character":2}},"rangeLength":0,"text":"p"}]}


[Trace - 17:36:36.341 PM] Sending request 'textDocument/completion - (22)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"position":{"line":2,"character":3},"context":{"triggerKind":3}}


[Trace - 17:36:36.342 PM] Received response 'textDocument/completion - (22)' in 0ms.
Result: {"isIncomplete":true,"items":[{"label":"import","kind":14,"preselect":true,"sortText":"00000","filterText":"import","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":3}},"newText":"import"}}]}


[Trace - 17:36:36.343 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///D:/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":6,"diagnostics":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"severity":1,"source":"syntax","message":"expected declaration, found imp"}]}


[Trace - 17:36:36.498 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":7},"contentChanges":[{"range":{"start":{"line":2,"character":3},"end":{"line":2,"character":3}},"rangeLength":0,"text":"o"}]}


[Trace - 17:36:36.499 PM] Sending request 'textDocument/completion - (23)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"position":{"line":2,"character":4},"context":{"triggerKind":3}}


[Trace - 17:36:36.500 PM] Received response 'textDocument/completion - (23)' in 1ms.
Result: {"isIncomplete":true,"items":[{"label":"import","kind":14,"preselect":true,"sortText":"00000","filterText":"import","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":4}},"newText":"import"}}]}


[Trace - 17:36:36.500 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///D:/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":7,"diagnostics":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"severity":1,"source":"syntax","message":"expected declaration, found impo"}]}


[Trace - 17:36:36.623 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":8},"contentChanges":[{"range":{"start":{"line":2,"character":4},"end":{"line":2,"character":4}},"rangeLength":0,"text":"r"}]}


[Trace - 17:36:36.624 PM] Sending request 'textDocument/completion - (24)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"position":{"line":2,"character":5},"context":{"triggerKind":3}}


[Trace - 17:36:36.625 PM] Received response 'textDocument/completion - (24)' in 0ms.
Result: {"isIncomplete":true,"items":[{"label":"import","kind":14,"preselect":true,"sortText":"00000","filterText":"import","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":5}},"newText":"import"}}]}


[Trace - 17:36:36.625 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///D:/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":8,"diagnostics":[{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"severity":1,"source":"syntax","message":"expected declaration, found impor"}]}


[Trace - 17:36:36.803 PM] Sending request 'textDocument/foldingRange - (25)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:36.804 PM] Received response 'textDocument/foldingRange - (25)' in 1ms.
Result: []


[Trace - 17:36:36.839 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":9},"contentChanges":[{"range":{"start":{"line":2,"character":5},"end":{"line":2,"character":5}},"rangeLength":0,"text":"t"}]}


[Trace - 17:36:36.839 PM] Sending request 'textDocument/completion - (26)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"position":{"line":2,"character":6},"context":{"triggerKind":3}}


[Trace - 17:36:37.020 PM] Sending request 'textDocument/foldingRange - (27)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:37.070 PM] Sending request 'textDocument/codeLens - (28)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:37.072 PM] Sending request 'textDocument/codeAction - (29)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"range":{"start":{"line":2,"character":6},"end":{"line":2,"character":6}},"context":{"diagnostics":[]}}


[Trace - 17:36:37.093 PM] Sending request 'textDocument/documentLink - (30)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:37.169 PM] Sending request 'textDocument/documentSymbol - (31)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:37.343 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":10},"contentChanges":[{"range":{"start":{"line":2,"character":6},"end":{"line":2,"character":6}},"rangeLength":0,"text":" "}]}


[Trace - 17:36:37.343 PM] Sending notification '$/cancelRequest'.
Params: {"id":27}


[Trace - 17:36:37.343 PM] Sending notification '$/cancelRequest'.
Params: {"id":29}


[Trace - 17:36:37.532 PM] Sending request 'textDocument/foldingRange - (32)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:37.584 PM] Sending notification '$/cancelRequest'.
Params: {"id":28}


[Trace - 17:36:37.584 PM] Sending request 'textDocument/codeLens - (33)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:37.641 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:36:37 go/packages.Load\n\tsnapshot = 10\n\tpackage = c.com/pkg/gtk3exp/drag_and_drop\n\tfiles = [D:\\tango\\admin\\workspace\\go_general\\gtk3test\\drag_and_drop\\main.go]"}


[Trace - 17:36:37.641 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:36:37 go/packages.Load\n\tsnapshot = 10\n\tquery = [file=D:\\tango\\admin\\workspace\\go_general\\gtk3test\\drag_and_drop\\main.go]\n\tpackages = 1"}


[Info  - 5:36:37 PM] 2020/03/27 17:36:37 go/packages.Load
	snapshot = 10
	package = c.com/pkg/gtk3exp/drag_and_drop
	files = [D:\tango\admin\workspace\go_general\gtk3test\drag_and_drop\main.go]
[Info  - 5:36:37 PM] 2020/03/27 17:36:37 go/packages.Load
	snapshot = 10
	query = [file=D:\tango\admin\workspace\go_general\gtk3test\drag_and_drop\main.go]
	packages = 1
[Error - 17:36:37.641 PM] Received #27 


[Error - 17:36:37.641 PM] Received #28 


[Trace - 17:36:37.641 PM] Received response 'textDocument/completion - (26)' in 802ms.
Result: {"isIncomplete":true,"items":[{"label":"import","kind":14,"preselect":true,"sortText":"00000","filterText":"import","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":6}},"newText":"import"}},{"label":"importer","kind":9,"detail":"\"go/importer\"","sortText":"00001","filterText":"import","insertTextFormat":2,"textEdit":{"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":6}},"newText":"importer"},"additionalTextEdits":[{"range":{"start":{"line":2,"character":6},"end":{"line":2,"character":7}},"newText":""},{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"newText":" ("},{"range":{"start":{"line":3,"character":0},"end":{"line":3,"character":1}},"newText":""},{"range":{"start":{"line":3,"character":1},"end":{"line":3,"character":1}},"newText":"\t\"go/importer\""},{"range":{"start":{"line":4,"character":0},"end":{"line":4,"character":10}},"newText":""},{"range":{"start":{"line":4,"character":11},"end":{"line":4,"character":14}},"newText":""}]}]}


[Error - 17:36:37.641 PM] Received #29 


[Trace - 17:36:37.641 PM] Received response 'textDocument/documentLink - (30)' in 547ms.
Result: {}


[Trace - 17:36:37.642 PM] Received response 'textDocument/documentSymbol - (31)' in 472ms.
Result: {}


[Trace - 17:36:37.642 PM] Received response 'textDocument/foldingRange - (32)' in 109ms.
Result: []


[Trace - 17:36:37.642 PM] Received response 'textDocument/codeLens - (33)' in 57ms.
Result: {}


[Trace - 17:36:37.675 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///D:/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":10,"diagnostics":[{"range":{"start":{"line":4,"character":0},"end":{"line":4,"character":0}},"severity":1,"source":"syntax","message":"expected 'STRING', found 'func'"}]}


[Trace - 17:36:37.682 PM] Sending request 'textDocument/documentSymbol - (34)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:37.682 PM] Received response 'textDocument/documentSymbol - (34)' in 0ms.
Result: {}


[Trace - 17:36:38.334 PM] Sending request 'textDocument/documentLink - (35)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:38.334 PM] Received response 'textDocument/documentLink - (35)' in 0ms.
Result: {}


[Trace - 17:36:38.469 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":11},"contentChanges":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"rangeLength":0,"text":"\"\""}]}


[Trace - 17:36:38.655 PM] Sending request 'textDocument/foldingRange - (36)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:38.655 PM] Received response 'textDocument/foldingRange - (36)' in 0ms.
Result: [{"startLine":4,"startCharacter":13,"endLine":6,"endCharacter":10}]


[Trace - 17:36:38.704 PM] Sending request 'textDocument/codeLens - (37)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:38.704 PM] Received response 'textDocument/codeLens - (37)' in 0ms.
Result: {}


[Trace - 17:36:38.706 PM] Sending request 'textDocument/codeAction - (38)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"range":{"start":{"line":2,"character":8},"end":{"line":2,"character":8}},"context":{"diagnostics":[]}}


[Trace - 17:36:38.731 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":12},"contentChanges":[{"range":{"start":{"line":2,"character":8},"end":{"line":2,"character":8}},"rangeLength":0,"text":"l"}]}


[Trace - 17:36:38.731 PM] Sending notification '$/cancelRequest'.
Params: {"id":38}


[Trace - 17:36:38.942 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":13},"contentChanges":[{"range":{"start":{"line":2,"character":9},"end":{"line":2,"character":9}},"rangeLength":0,"text":"o"}]}


[Trace - 17:36:39.035 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":14},"contentChanges":[{"range":{"start":{"line":2,"character":10},"end":{"line":2,"character":10}},"rangeLength":0,"text":"g"}]}


[Trace - 17:36:39.219 PM] Sending request 'textDocument/foldingRange - (39)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:39.269 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:36:39 go/packages.Load\n\tsnapshot = 12\n\tquery = [c.com/pkg/gtk3exp/drag_and_drop]\n\tpackages = 1"}


[Trace - 17:36:39.269 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:36:39 go/packages.Load\n\tsnapshot = 12\n\tpackage = c.com/pkg/gtk3exp/drag_and_drop\n\tfiles = [D:\\tango\\admin\\workspace\\go_general\\gtk3test\\drag_and_drop\\main.go]"}


[Info  - 5:36:39 PM] 2020/03/27 17:36:39 go/packages.Load
	snapshot = 12
	query = [c.com/pkg/gtk3exp/drag_and_drop]
	packages = 1
[Info  - 5:36:39 PM] 2020/03/27 17:36:39 go/packages.Load
	snapshot = 12
	package = c.com/pkg/gtk3exp/drag_and_drop
	files = [D:\tango\admin\workspace\go_general\gtk3test\drag_and_drop\main.go]
[Trace - 17:36:39.269 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///D:/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":11,"diagnostics":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"severity":1,"source":"syntax","message":"invalid import path: \"\""}]}


[Trace - 17:36:39.271 PM] Sending request 'textDocument/codeLens - (40)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:39.272 PM] Sending request 'textDocument/codeAction - (41)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"range":{"start":{"line":2,"character":11},"end":{"line":2,"character":11}},"context":{"diagnostics":[]}}


[Trace - 17:36:39.369 PM] Sending request 'textDocument/documentSymbol - (42)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:39.455 PM] Sending request 'textDocument/documentLink - (43)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Error - 17:36:39.507 PM] Received #38 getting file for AllImportsFixes: context canceled


2020/03/27 17:36:39 : context canceled
[Trace - 17:36:39.507 PM] Received notification 'window/logMessage'.
Params: {"type":1,"message":"2020/03/27 17:36:39 : context canceled"}


[Error - 5:36:39 PM] 2020/03/27 17:36:39 : context canceled
[Trace - 17:36:39.526 PM] Sending request 'textDocument/codeAction - (44)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"range":{"start":{"line":2,"character":11},"end":{"line":2,"character":11}},"context":{"diagnostics":[]}}


[Trace - 17:36:39.526 PM] Sending notification '$/cancelRequest'.
Params: {"id":41}


[Trace - 17:36:39.833 PM] Received response 'textDocument/foldingRange - (39)' in 613ms.
Result: [{"startLine":4,"startCharacter":13,"endLine":6,"endCharacter":10}]


[Trace - 17:36:39.833 PM] Received response 'textDocument/codeLens - (40)' in 561ms.
Result: {}


[Error - 17:36:39.833 PM] Received #41 


[Trace - 17:36:40.489 PM] Sending request 'textDocument/codeAction - (45)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"range":{"start":{"line":0,"character":0},"end":{"line":8,"character":0}},"context":{"diagnostics":[{"range":{"start":{"line":2,"character":7},"end":{"line":2,"character":7}},"message":"invalid import path: \"\"","severity":1,"source":"syntax"}]}}


[Trace - 17:36:41.429 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:36:41 go/packages.Load\n\tsnapshot = 15\n\tquery = [file=D:\\tango\\admin\\workspace\\go_general\\gtk3test\\drag_and_drop\\main.go]\n\tpackages = 1"}


[Trace - 17:36:41.429 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:36:41 go/packages.Load\n\tsnapshot = 15\n\tpackage = c.com/pkg/gtk3exp/drag_and_drop\n\tfiles = [D:\\tango\\admin\\workspace\\go_general\\gtk3test\\drag_and_drop\\main.go]"}


[Info  - 5:36:41 PM] 2020/03/27 17:36:41 go/packages.Load
	snapshot = 15
	query = [file=D:\tango\admin\workspace\go_general\gtk3test\drag_and_drop\main.go]
	packages = 1
[Info  - 5:36:41 PM] 2020/03/27 17:36:41 go/packages.Load
	snapshot = 15
	package = c.com/pkg/gtk3exp/drag_and_drop
	files = [D:\tango\admin\workspace\go_general\gtk3test\drag_and_drop\main.go]
[Trace - 17:36:41.433 PM] Received response 'textDocument/documentSymbol - (42)' in 2063ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":4,"character":0},"end":{"line":7,"character":1}},"selectionRange":{"start":{"line":4,"character":5},"end":{"line":4,"character":9}}}]


[Trace - 17:36:41.433 PM] Received response 'textDocument/documentLink - (43)' in 1977ms.
Result: [{"range":{"start":{"line":2,"character":8},"end":{"line":2,"character":11}},"target":"https://pkg.go.dev/log"}]


[Trace - 17:36:41.433 PM] Received response 'textDocument/codeAction - (44)' in 1906ms.
Result: [{"title":"Organize Imports","kind":"source.organizeImports","edit":{"documentChanges":[{"textDocument":{"version":14,"uri":"file:///D:/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"edits":[{"range":{"start":{"line":0,"character":12},"end":{"line":2,"character":13}},"newText":""}]}]}}]


[Trace - 17:36:41.936 PM] Received response 'textDocument/codeAction - (45)' in 1447ms.
Result: [{"title":"Organize Imports","kind":"source.organizeImports","edit":{"documentChanges":[{"textDocument":{"version":14,"uri":"file:///D:/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"edits":[{"range":{"start":{"line":0,"character":12},"end":{"line":2,"character":13}},"newText":""}]}]}}]


[Trace - 17:36:41.963 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":15},"contentChanges":[{"range":{"start":{"line":0,"character":12},"end":{"line":2,"character":12}},"rangeLength":16,"text":""}]}


[Trace - 17:36:42.030 PM] Sending notification 'textDocument/didSave'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":15}}


[Trace - 17:36:42.150 PM] Sending request 'textDocument/foldingRange - (46)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:42.150 PM] Received response 'textDocument/foldingRange - (46)' in 0ms.
Result: [{"startLine":2,"startCharacter":13,"endLine":4,"endCharacter":10}]


[Trace - 17:36:42.174 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///D:/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","version":15,"diagnostics":[]}


[Trace - 17:36:42.200 PM] Sending request 'textDocument/codeLens - (47)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:42.201 PM] Received response 'textDocument/codeLens - (47)' in 1ms.
Result: {}


[Trace - 17:36:42.344 PM] Sending notification 'workspace/didChangeWatchedFiles'.
Params: {"changes":[{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go","type":2}]}


[Trace - 17:36:42.431 PM] Sending request 'textDocument/codeAction - (48)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"range":{"start":{"line":0,"character":12},"end":{"line":0,"character":12}},"context":{"diagnostics":[]}}


[Trace - 17:36:42.432 PM] Received response 'textDocument/codeAction - (48)' in 0ms.
Result: [{"title":"Organize Imports","kind":"source.organizeImports","edit":{"documentChanges":[{"textDocument":{"version":15,"uri":"file:///D:/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"},"edits":[{"range":{"start":{"line":0,"character":12},"end":{"line":0,"character":13}},"newText":""}]}]}}]


[Trace - 17:36:42.648 PM] Sending request 'textDocument/documentSymbol - (49)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


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


[Trace - 17:36:42.951 PM] Sending request 'textDocument/documentLink - (50)'.
Params: {"textDocument":{"uri":"file:///d%3A/tango/admin/workspace/go_general/gtk3test/drag_and_drop/main.go"}}


[Trace - 17:36:42.952 PM] Received response 'textDocument/documentLink - (50)' in 0ms.
Result: {}


[Trace - 17:37:01.482 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:37:01 background imports cache refresh starting"}


[Info  - 5:37:01 PM] 2020/03/27 17:37:01 background imports cache refresh starting
[Trace - 17:37:01.613 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2020/03/27 17:37:01 background refresh finished after 129.9105ms\n\tError = \u003cnil\u003e"}


[Info  - 5:37:01 PM] 2020/03/27 17:37:01 background refresh finished after 129.9105ms
	Error = <nil>

For now the most effective workaround is disabling the server, in light of the fact it's doing more than running a bit slow and the other default language tools appear to be supporting the packages I imported. This project does have a go.mod file.

@albshin
Copy link

albshin commented Mar 28, 2020

Thanks for posting that! It looks you're developing a project outside of GOPATH, but gopls is also unable to find a go.mod file. Are you intentionally not using GOPATH/modules or does this project have a go.mod?

I ran gopls check outside of the project directory so that might be why it's popping up empty in gopls check. Otherwise you can see that in the gopls log that GOMOD is set correctly.

@codepushr
Copy link

codepushr commented Mar 29, 2020

What helped me was disabling the tracing and debug server from gopls. I copied it blindly from the repository pages without thinking. Turning these off made everything a little more responsive.

"go.useLanguageServer": true,
"go.languageServerFlags": [
    "-rpc.trace", // for more detailed debug logging
    "serve",
    "--debug=localhost:6060", // to investigate memory usage, see profiles
]

However saving multiple files still queues up a lot of popups sometimes. So there's still something fishy here.

@vikram-rawat
Copy link

I too have the same problem. I updated golang to 1.14.1 and I am having problem saving the file. I get the exact same error.

@stamblerre
Copy link
Contributor

@CoffeeCecil: Do you mind filing separate issues for the problems you mentioned?

I ran gopls check outside of the project directory so that might be why it's popping up empty in gopls check. Otherwise you can see that in the gopls log that GOMOD is set correctly.

@albshin: Can you share the output of gopls -rpc.trace -v check path/to/file.go when you run it from within your module?

If anyone on this thread can point to a public package that reproduces this issue consistently, I'd really appreciate it. It's caused by a new behavior in VS Code and is generally difficult to track down.

@lucascarvalho
Copy link

If anyone on this thread can point to a public package that reproduces this issue consistently, I'd really appreciate it. It's caused by a new behavior in VS Code and is generally difficult to track down.

@stamblerre FYI, it does not happen all the time on my local environment. I would say that it happen 60% of the times when I try to save a .go file.

@stamblerre
Copy link
Contributor

@lucascarvalho: If you can get your gopls logs when this happens, I can take a look.

@albshin
Copy link

albshin commented Apr 2, 2020

@stamblerre

@albshin: Can you share the output of gopls -rpc.trace -v check path/to/file.go when you run it from within your module?

/home/albertshin/go/bin/gopls -rpc.trace -v check /mnt/c/Git/ladder/store/ladder_store.go 
2020/04/02 15:09:09 Info:2020/04/02 15:09:09 Build info
----------
golang.org/x/tools/gopls v0.3.4
    golang.org/x/tools/gopls@v0.3.4 h1:4GC7q/pXQ/tsxHBGVdsMdlB4gCxVC06m/7rIXg1Px4E=
    github.com/BurntSushi/toml@v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
    github.com/sergi/go-diff@v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
    golang.org/x/mod@v0.1.1-0.20191105210325-c90efee705ee h1:WG0RUwxtNT4qqaXX3DPA8zHFNm/D9xaBpxzHt1WcA/E=
    golang.org/x/sync@v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=
    golang.org/x/tools@v0.0.0-20200316194252-fafb6e2e8a4a h1:hKrQy/q8/Xivoqgw6nGiz1jqpn1WGBLDcWLZwW0983E=
    golang.org/x/xerrors@v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbOeHJjicWYPqR9bpxqxYG2pA=
    honnef.co/go/tools@v0.0.1-2020.1.3 h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U=
    mvdan.cc/xurls/v2@v2.1.0 h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=

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

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/albertshin/.cache/go-build"
GOENV="/home/albertshin/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/albertshin/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.14"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.14/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/mnt/c/Git/ladder/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-build261583592=/tmp/go-build -gno-record-gcc-switches"
2020/04/02 15:09:10 Info:2020/04/02 15:09:10 go/packages.Load
        snapshot = 0
        query = [./... builtin]
        packages = 5

@gustavooferreira
Copy link

I'm having the same issue, break vscode. Can't save the file anymore.

I'm using the vim plugin which makes matters even worse because vscode won't respond correctly the vim commands either.

@stamblerre
Copy link
Contributor

stamblerre commented Apr 3, 2020

@gustavooferreira: Are you using the language server? If so, can you share your gopls logs? Details on how to do so here.

@albshin: It does look like your project is configured correctly, so I'd expect things to work correctly the majority of the time. Is that the case, or are you still having frequent issues with the pop-ups?

@patrikeh
Copy link

patrikeh commented Apr 3, 2020

Still happens to me consistenly on MacOS and Windows 10. I tend to see a lot of these in the gopls logs:

2020/04/03 11:38:18 : context canceled
[Error - 11:38:18 AM] 2020/04/03 11:38:18 : context canceled
[Error - 11:36:58 AM] 2020/04/03 11:36:58 quick fixes failed: context canceled

Sometimes it's just a delay of 1-10 seconds to save files, other times it gets stuck indefinitely.

@stamblerre
Copy link
Contributor

@patrikeh: Thanks for the log, but it looks like you may want to add -rpc.trace to your go.languageServerFlags configuration. Was the unimported package already in your module cache?

@gustavooferreira
Copy link

Hi @stamblerre I was using the language server and then disabled it to see if the problem would go away, but the problem persisted.
I get several problems. I'm using vim plugin as well, and the two problems I get are, when I do :wa to save, the name of the file in the tab when I hover with the mouse shows a white circle telling me it wasn't actually saved, and when I close the tab it asks me if I want to save the file (this is the method I've been using to save my files (which is naturally very unproductive).

print1

When I press o to go into insert mode creating a new line below the cursor, it puts the cursor on the line below but doesn't actually add a new line.

VScode also crashes sometimes, forcing me to close it and open again.

This all starts well, I think it's after a few seconds when it goes to save the file (autosave enabled) gopls runs and makes vscode freak out.

My gopls version:
golang.org/x/tools/gopls v0.3.4
golang.org/x/tools/gopls@v0.3.4 h1:4GC7q/pXQ/tsxHBGVdsMdlB4gCxVC06m/7rIXg1Px4E=

I'm attaching the gopls log output as it is too big to just paste it here.

gopls.log

This problem basically makes vscode unusable as it's constantly acting weird and crashing.
One thing I notice is that the first few seconds maybe even a minute or two, it's all good, all of a sudden it acts weird, and I'm almost certain it happens when gopls runs.

@stamblerre
Copy link
Contributor

Thanks for the report, @gustavooferreira. Unfortunately, it's a little difficult to understand which problems are caused by gopls and which are related to your other plugins. Nothing in your gopls log looks obviously wrong to me - can you try producing a shorter log? This could be done by collecting the log right after you see the first "weird" behavior.

It sounds like you disabled gopls and the issues didn't go away, so I'm not sure that this is in fact caused by gopls. I would try disabling the vim extension, as well as any other extensions you have installed, one by one, to isolate which extension is the problem.

@gustavooferreira
Copy link

Thank you @stamblerre, I actually think this is probably a problem with vscode itself, as my laptop still had 1.42.1 version installed on it and was showing no problems, so I decided to downgrade it on my desktop as well and now everything seems to be working fine.

I'll still with this version for awhile.

Anyway, thank you for your help!

@stamblerre
Copy link
Contributor

This is indeed specific to later versions of VS Code, but I'd still recommend figuring out the issue, since VS Code is released fairly frequently. Happy to continue investigating if you're willing to do so.

@festum
Copy link

festum commented Apr 6, 2020

Same to me. Having this issue in 1.43.*. Tried many settings but the only way to solve it is rolling back to 1.42.1.

@stamblerre
Copy link
Contributor

I'm afraid that using an old VS Code version is just a temporary fix for this problem. If anyone is interested in investigating this issue, I can take a look at any logs.

@gustavooferreira
Copy link

You are most definitely right @stamblerre. I personally just went with this route as I use vscode at work as well and I needed to solve this as quickly as possible, but I'll definitely upgrade vscode to the latest version again and check the various logs to see if we can spot any anomalies either with gopls, any other extension or even with vscode itself.

@medyagh
Copy link

medyagh commented Apr 7, 2020

Hi I have exact same issue on MacOs 10.13.6 and VsCode Version: 1.43.2 and go version 'go1.14.1 darwin/amd64'

I tried to disable all the linting and formating in vscode:

{
    "buildOnSave":false,
    "vetOnSave":false,
    "lintOnSave": false,
    "[go]": {
        "editor.formatOnSave": false ,
    },      
    "terminal.integrated.rendererType": "dom",
    "editor.quickSuggestions": {
        "other": true,
        "comments": false,
        "strings": true
        },
    "files.exclude": {
        ".vscode" : true,
    },
    "window.zoomLevel": 3,
    "editor.fontSize": 14,
    "workbench.startupEditor": "newUntitledFile",
    "go.useLanguageServer": true,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "workbench.colorTheme": "Visual Studio Dark",
    "editor.minimap.enabled": false,
    "cSpell.enabledLanguageIds": [
        "asciidoc",
        "c",
        "cpp",
        "csharp",
        "css",
        "git-commit",
        "handlebars",
        "haskell",
        "html",
        "jade",
        "java",
        "javascript",
        "javascriptreact",
        "json",
        "jsonc",
        "latex",
        "less",
        "markdown",
        "php",
        "plaintext",
        "pug",
        "python",
        "restructuredtext",
        "rust",
        "scala",
        "scss",
        "text",
        "typescript",
        "typescriptreact",
        "yaml",
        "yml"
    ],
    "python.jediEnabled": false,
    "cSpell.userWords": [
        "mitmproxy"
    ],
    "[json]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[html]": {
        "editor.defaultFormatter": "lonefy.vscode-JS-CSS-HTML-formatter"
    },
    "[css]": {
        "editor.defaultFormatter": "lonefy.vscode-JS-CSS-HTML-formatter"
    },
    "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },

    
}


but vscode still has the same issue:

@stamblerre
Copy link
Contributor

stamblerre commented Apr 7, 2020

@medyagh: Can you please share your gopls logs (details here)? What extensions do you have installed in VS Code?

@kal-g
Copy link

kal-g commented Apr 8, 2020

I'm seeing the same issue, here are the logs from when it was stuck

2020/04/08 10:46:02 : context canceled
[Error - 10:46:02 AM] 2020/04/08 10:46:02 : context canceled
2020/04/08 10:46:05 : context canceled
[Error - 10:46:05 AM] 2020/04/08 10:46:05 : context canceled
2020/04/08 10:46:24 : context canceled
[Error - 10:46:24 AM] 2020/04/08 10:46:24 : context canceled

Here are my extensions:

Screen Shot 2020-04-08 at 10 48 26 AM

@stamblerre
Copy link
Contributor

Unfortunately, the context canceled errors aren't super useful information - we've stopped logging them in gopls/v0.4.0, so if you're able to share new logs after updating - that'd be helpful. Also, if possible, it would be most helpful to get the full contents of the log.

I've heard reports that people have noticed that this issue can be caused by the Go Group Imports extension, so if you're using that, I'd suggest trying to disable it.

@mingoal
Copy link

mingoal commented Apr 14, 2020

After upgrading vscode from 1.42 to 1.44, golang from 1.13.6 to 1.13.10, go plugin is no change, I can't save go file as used it works fine.

Follow #3105 (comment) ,

"go.useLanguageServer": false,
is all that helps for me...

Disable gopls works for me.

  • vscode 1.44
  • Windows 10
  • go version go1.13.10 windows/amd64
  • golang.org/x/tools/gopls 0.4.0
    golang.org/x/tools/gopls@v0.4.0 h1:G4+YP9kaV4dJb79J5MobyApxX493Qa6VoiTceUmxqik=

Found some log

Cannot read property 'children' of undefined
at ....\vscode\data\extensions\ms-vscode.go-0.13.0\out\src\testUtils.js:78:39
at async Promise.all (index 0)

@stamblerre
Copy link
Contributor

@mingoal: Thanks for reporting. That log isn't from gopls, but you can capture gopls logs by following the steps here. It's possible that this may be a symptom of other issues with your gopls setup, so the output of gopls -rpc.trace -v check path/to/file.go would also be helpful.

@mingoal
Copy link

mingoal commented Apr 15, 2020

@stamblerre
Yesterday, I

  • disabled all telemetry configuration of vscode
  • moved to one network which doesn't need http proxy

and found gopls worked.

Today, I move to the network which needs http proxy, gopls still works.

My guess is gopls

  • needs to fetch some data from internet after upgrade
  • stuck without those data
  • those data are cached
  • doesn't read proxy configuration from vs code

PS. Within the network needs proxy, I configured the http proxy in vs code, and installed all go tools successfully.

@mingoal
Copy link

mingoal commented Apr 15, 2020

one more message.

When my local vendor folder has NO cache for one package, infinite go again, after remove that package, gopls works again.

I guess vscode go plugin doesn't tell vscode proxy configuration to gopls, then gopls runs into trouble to get files from internet.

@hyangah
Copy link
Contributor

hyangah commented Apr 15, 2020

I guess vscode go plugin doesn't tell vscode proxy configuration to gopls, then gopls runs into trouble to get files from internet.

@mingoal that is an interesting use case. Does explicitly setting HTTPS_PROXY env vars (maybe go.toolsEnvVars or gopls env map) improve the situation?

@stamblerre Does gopls handle network issues gracefully?

@stamblerre
Copy link
Contributor

Just filed golang/go#38462 to make sure that we test this case. @mingoal can you please follow up on that issue?

This issue has gotten very long and complicated, so I'm going to close it in favor of #3179, which may be easier for people to read through.

@stamblerre
Copy link
Contributor

Duplicate of #3179

@stamblerre stamblerre marked this as a duplicate of #3179 Apr 15, 2020
@mingoal
Copy link

mingoal commented Apr 16, 2020

@hyangah it works on my machine

vscode settings.json:

    "go.toolsEnvVars": {
        "HTTPS_PROXY": "https.proxy.address",
        "HTTP_PROXY": "https.proxy.address"
    }

@fbeve
Copy link

fbeve commented May 3, 2020

Hello, Also have the same issue. At this time Virtual Studio Code is unusable.
Any attemps to save a file goes in an infinite loop.

Saving 'file name.go':Getting code actions from "Go" (configure)

tried to change "go.useLanguageServer": to false.
does not change anything...

what's wrong..

@stamblerre
Copy link
Contributor

@fbeve: Make sure to reload the VS Code window after disabling the language server. I'm not sure how to debug this when using the default tools, but I'm happy to help investigate issues with the language server, if you can provide your gopls logs (instructions here).

@onlyafly
Copy link

onlyafly commented May 9, 2020

VSCode with vscode-go installed is currently unusable for me as well, as any file save ends up in an infinite loop. Downgrading to version 0.13.1 of the extension solved the problem for me. Obviously only a temporary fix.

For those, like me, who have never downgraded an extension before, here's how to do it:

  1. Find the Go extension in the extension list
  2. Click the gear icon to the right of the extension's list item
  3. Choose "Install Another Version..."
  4. Choose 0.13.1, then reload VSCode
  5. Problem solved!

@stamblerre
Copy link
Contributor

@onlyafly: If you are using the language server, please follow the steps suggested on #3179.

@vscodebot vscodebot bot locked and limited conversation to collaborators May 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests