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: unable to find package #38271

Closed
eric642 opened this issue Apr 6, 2020 · 3 comments
Closed

x/tools/gopls: unable to find package #38271

eric642 opened this issue Apr 6, 2020 · 3 comments

Comments

@eric642
Copy link

@eric642 eric642 commented Apr 6, 2020

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

$ go version
go version go1.13.4 windows/amd64

Does this issue reproduce with the latest release?

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

go env Output
$ go env
PS D:\code\go_work\servermap\source\go-apps\src\meeting> go env
set GO111MODULE=off
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\eric\AppData\Local\go-build
set GOENV=C:\Users\eric\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=D:\code\go;D:\code\go_work\go-env\source\libs;
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=c:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=C:\mingw64\bin\gcc.exe
set CXX=C:\mingw64\bin\g++.exe
set CGO_ENABLED=1
set GOMOD=
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\eric\AppData\Local\Temp\go-build096526254=/tmp/go-build -gno-record-gcc-switches 

What did you do?

my settings.json:
"go.useLanguageServer": true,
"go.alternateTools": {
"go-langserver": "gopls"
},
"go.languageServerExperimentalFeatures": {
"format": true,
"autoComplete": true
},
"[go]": {
"editor.snippetSuggestions": "none",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
},
"gopls": {
"usePlaceholders": true,
"enhancedHover": true
},
"go.toolsGopath": "D:\code\go",
"go.gopath": "D:\code\go_work\go-env\source\libs;D:\code\go_work\servermap\source\go-apps",
my project path :D:\code\go_work\servermap\source\go-apps\src\meeting
vscode hit :
image

What did you expect to see?

What did you see instead?

@gopherbot gopherbot added the gopls label Apr 6, 2020
@gopherbot
Copy link

@gopherbot gopherbot commented Apr 6, 2020

Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here.

@stamblerre
Copy link
Contributor

@stamblerre stamblerre commented Apr 6, 2020

@eric642: Can you please share the output of gopls -rpc.trace -v check path/to/file.go?

@stamblerre stamblerre added this to the gopls/v0.4.0 milestone Apr 6, 2020
@stamblerre stamblerre changed the title gopls unable to find package x/tools/gopls: unable to find package Apr 6, 2020
@gopherbot gopherbot added the Tools label Apr 6, 2020
@stamblerre stamblerre modified the milestones: gopls/v0.4.0, gopls/v0.5.0 Apr 6, 2020
@gopherbot
Copy link

@gopherbot gopherbot commented May 6, 2020

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.)

@gopherbot gopherbot closed this May 6, 2020
@stamblerre stamblerre modified the milestones: gopls/v0.5.0, gopls/v0.4.1 May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.