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: random cannot use X as X in value in argument Y #34584

Closed
primalmotion opened this issue Sep 28, 2019 · 5 comments
Closed

x/tools/gopls: random cannot use X as X in value in argument Y #34584

primalmotion opened this issue Sep 28, 2019 · 5 comments
Labels
Milestone

Comments

@primalmotion
Copy link

@primalmotion primalmotion commented Sep 28, 2019

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

$ go version
go version go1.13 darwin/amd64

Does this issue reproduce with the latest release?

yes

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

go env Output
$ go env
GO111MODULE="off"
GOARCH="amd64"
GOBIN="/Users/tonio/Documents/Aporeto/workspace/code/go/bin"
GOCACHE="/Users/tonio/Library/Caches/go-build"
GOENV="/Users/tonio/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/tonio/Documents/Aporeto/workspace/code/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.13/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.13/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/hc/3p6xvgw97kl124_y5p18kk6m0000gn/T/go-build379134226=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Since a few upgrades from the gopls tip, I get random errors a bit everywhere looking like

cannot use 5 * time.Minute (constant 300000000000 of type time.Duration) as time.Duration value in argument to context.WithTimeout
cannot use Thing (type *Thing) as *Thing in argument to someFunc

What did you expect to see?

Not that

What did you see instead?

well, that

@gopherbot gopherbot added this to the Unreleased milestone Sep 28, 2019
@gopherbot

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Sep 28, 2019

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.

@karlc1

This comment has been minimized.

Copy link

@karlc1 karlc1 commented Sep 30, 2019

I get the same thing occasionally. I remember that this same issue was present in the bingo language server like a year ago.

@sebsebmc

This comment has been minimized.

Copy link

@sebsebmc sebsebmc commented Sep 30, 2019

This may be related to #34410

@zikaeroh

This comment has been minimized.

Copy link

@zikaeroh zikaeroh commented Sep 30, 2019

I've also been getting this, and have pinned my gopls to v0.1.8-0.20190919223014-db1d4edb4685 in the meantime since I've found that to be before the breakage. Had been planning on doing a bisect, but it only comes up after some time (often when adding/removing packages) so haven't done it yet.

@stamblerre

This comment has been minimized.

Copy link
Contributor

@stamblerre stamblerre commented Oct 3, 2019

Duplicate of #34410

@stamblerre stamblerre marked this as a duplicate of #34410 Oct 3, 2019
@stamblerre stamblerre closed this Oct 3, 2019
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
6 participants
You can’t perform that action at this time.