Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

x/tools: Tools install/update error in vscode #2279

Closed
shenguanjiejie opened this issue Jun 6, 2022 · 6 comments
Closed

x/tools: Tools install/update error in vscode #2279

shenguanjiejie opened this issue Jun 6, 2022 · 6 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. tools/installation
Milestone

Comments

@shenguanjiejie
Copy link

shenguanjiejie commented Jun 6, 2022

Golang: 1.18.3
vscode: Version: 1.67.2 (Universal)
image
image

I had try solute it with

  1. reinstall vscode
  2. uninstall all vscode plugins and reinstall go plugin
  3. reinstall go
    not work either.

╰ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/rj/Library/Caches/go-build"
GOENV="/Users/rj/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/rj/go/pkg/mod"
GONOPROXY=".sensetime.com"
GONOSUMDB="
.sensetime.com"
GOOS="darwin"
GOPATH="/Users/rj/go"
GOPRIVATE="*.sensetime.com"
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local/Cellar/go/1.18.3/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.18.3/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.18.3"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/bm/5666f1890t7g1w4165p97kgr0000gn/T/go-build114183488=/tmp/go-build -gno-record-gcc-switches -fno-common"

@shenguanjiejie shenguanjiejie changed the title go/tools: Tools install/update error in vscode x/tools: Tools install/update error in vscode Jun 6, 2022
@gopherbot gopherbot added the Tools label Jun 6, 2022
@findleyr
Copy link
Contributor

findleyr commented Jun 6, 2022

CC @hyangah

@cherrymui cherrymui added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jun 6, 2022
@hyangah hyangah transferred this issue from golang/go Jun 6, 2022
@gopherbot gopherbot added this to the Untriaged milestone Jun 6, 2022
@hyangah
Copy link
Contributor

hyangah commented Jun 6, 2022

It looks like you have a corrupted version of extension installed (1) or the extension failed to get activated properly due to errors (2)

To exclude the case (1): uninstall the extension AND delete the directory under $HOME/.vscode/extensions/golang.go-* AND restart&reinstall the go extension.

If it doesn't fix the issue, can you collect the information for debugging the case (2)?

  • Make sure the workspace is "Trusted", no error prompt or notification appeared, and the Go version status bar item ("Go 1.18.3") appears at the bottom of the window
  • "Developer: Toggle Developer Tools" -> Console tab, see if there is any error message.
  • "View: Toggle Output" -> See "Log (Extension Host)" to see if there is any error.

@shenguanjiejie
Copy link
Author

@hyangah I had uninstall vscode, removed "$HOME/.vscode/extensions" and "~/Library/Application Support/Code" folder, then install vscode. only 'go' a single extension.
image
image
image

@shenguanjiejie
Copy link
Author

shenguanjiejie commented Jun 7, 2022

My colleague has the same problem as me.

@shenguanjiejie
Copy link
Author

I had tried to install the 0.31 or 0.32 version of the go extension. doesn't work.
image

@shenguanjiejie
Copy link
Author

Look like there have some limits in my company, I have resolved them now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. tools/installation
Projects
None yet
Development

No branches or pull requests

5 participants