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: CLI command not found: gopls #35924

Closed
qhenkart opened this issue Dec 2, 2019 · 3 comments
Closed

x/tools/gopls: CLI command not found: gopls #35924

qhenkart opened this issue Dec 2, 2019 · 3 comments
Labels
Milestone

Comments

@qhenkart
Copy link

@qhenkart qhenkart commented Dec 2, 2019

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

$ go version
go version go1.13.4 darwin/amd64

Does this issue reproduce with the latest release?

yes

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

GO111MODULE="auto" GOARCH="amd64" GOBIN="" GOCACHE="/Users/qhenkart/Library/Caches/go-build" GOENV="/Users/qhenkart/Library/Application Support/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/qhenkart/workspace/launchpad/glidr-dev/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/Cellar/go/1.13.4/libexec" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/Cellar/go/1.13.4/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/1v/97x4f9mj4rj9g0q79xsfl_6h0000gn/T/go-build991066472=/tmp/go-build -gno-record-gcc-switches -fno-common" Output
$ go env

What did you do?

installed gopls using GO111MODULE=on go get golang.org/x/tools/gopls@latest

when that didn't work, I switched my GO111MODULE mode and tried installing the other way

What did you expect to see?

The ability to use gopls in the command line

What did you see instead?

command not found: gopls .

if I go to my GOPATH/bin I can run gopls there. Seeing the version version master, built in $GOPATH mode .

also not working in any editor

@gopherbot gopherbot added this to the Unreleased milestone Dec 2, 2019
@gopherbot

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Dec 2, 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.

@qhenkart qhenkart changed the title x/tools/gopls: <fill this in> x/tools/gopls: command not found: gopls Dec 2, 2019
@qhenkart qhenkart changed the title x/tools/gopls: command not found: gopls x/tools/gopls: CLI command not found: gopls Dec 2, 2019
@stamblerre

This comment has been minimized.

Copy link
Contributor

@stamblerre stamblerre commented Dec 2, 2019

Is your GOPATH on your PATH? From your description, it sounds like it's not.

@qhenkart

This comment has been minimized.

Copy link
Author

@qhenkart qhenkart commented Dec 2, 2019

Thank you, I recently migrated my profile from bash to zsh due to an osX update and my variables were out of order. I was defining my PATH before my GOPATH definition. Silly mistake. Thanks for pointing me to it

@qhenkart qhenkart closed this Dec 2, 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
3 participants
You can’t perform that action at this time.