go: x/tools/gopls: stuck on "Setting up workspace: Loading packages..."

  • go version- 1.15.3
  • vs code version 1.50.1
  • extension version 0.18.0
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/maxpaspa@ibm.com/Library/Caches/go-build"
GOENV="/Users/maxpaspa@ibm.com/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/maxpaspa@ibm.com/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/maxpaspa@ibm.com/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.15.3/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.15.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/maxpaspa@ibm.com/go/src/github.com/redhat-marketplace-operator/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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/c1/ym_2q3ls1z5gfcylg1dcb_240000gn/T/go-build950413556=/tmp/go-build -gno-record-gcc-switches -fno-c
    "go.alternateTools": {
        "go-langserver": "gopls"
      },
      "go.languageServerFlags": [
        "serve",
        "-rpc.trace",
        "--debug=localhost:6060",
      ],
      "go.languageServerExperimentalFeatures": {
        "autoComplete": true,
        "documentSymbols": true,
        "findReferences": true,
        "goToDefinition": true,
        "goToTypeDefinition": true,
        "hover": true,
        "signatureHelp": true,
        "rename": true,
        "workspaceSymbols": true,
    },
    "go.formatTool": "goimports",
    "go.autocompleteUnimportedPackages": false,
    "go.buildOnSave": "on",
    "go.vetOnSave": "off",
    "go.useCodeSnippetsOnFunctionSuggest": true,
    "go.useCodeSnippetsOnFunctionSuggestWithoutType": true,
    "go.useLanguageServer": true,

Describe the bug

I upgraded to go 1.15.3, updated golang tools including the Go extension and the extension is stuck on “Loading packages…”

Screenshots or recordings

If applicable, add screenshots or recordings to help explain your problem. image

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 26 (12 by maintainers)

Most upvoted comments

@yury-kozlov: Please see the Troubleshooting guide and file an issue if necessary.