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/gopls: getting code actions from "go" in vendor directory when i save file and save slowly #1760

Closed
cgyFight opened this issue Sep 8, 2021 · 4 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@cgyFight
Copy link

cgyFight commented Sep 8, 2021

What version of Go are you using (go version)?

$ go version
1.16.2

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

mac

go env Output
$ go env
```
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.2"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
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/rf/1744zvy931d53cz_b2wd2sn11r4whl/T/go-build369641151=/tmp/go-build -gno-record-gcc-switches -fno-common"
```

What did you do?

when save my modify file in vendor dir, frequentyly pop getting code actions from "go" in vendor directory, and very slowly

but if i do that not in vendor dir, it save fast and not pop the hint

i try to set GO111MODULE to off/on/auto in vscode like that:

"go.toolsEnvVars": {
        "GO111MODULE": "off"
        // "GO111MODULE": "auto"
    },

but none of the problems are solved

What did you expect to see?

save fast in vendor dir

What did you see instead?

@hyangah
Copy link
Contributor

hyangah commented Sep 8, 2021

Transferring to vscode-go repo.

@cgyFight Please capture the gopls log following the instruction and share it with us. Thanks!

@hyangah hyangah transferred this issue from golang/go Sep 8, 2021
@stamblerre stamblerre changed the title frequently pop: getting code actions from "go" in vendor directory when i save file and save slowly x/tools/gopls: getting code actions from "go" in vendor directory when i save file and save slowly Sep 8, 2021
@gopherbot gopherbot added this to the Untriaged milestone Sep 8, 2021
@cgyFight
Copy link
Author

cgyFight commented Sep 9, 2021

@hyangah
i try to that "The gopls log can be found by navigating to View -> Output. There will be a drop-down menu titled Tasks in the top-right corner. Select the gopls (server) item, which will contain the gopls logs."

but nothing get in the view:
image

@stamblerre
Copy link
Contributor

Please click the "Remote - SSH" drop down on the right and select "gopls (server)".

@stamblerre stamblerre added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Sep 9, 2021
@gopherbot
Copy link
Collaborator

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Oct 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants