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: undeclared name when accessing functions from other files #35582

Closed
nerdmax opened this issue Nov 14, 2019 · 3 comments
Closed

x/tools/gopls: undeclared name when accessing functions from other files #35582

nerdmax opened this issue Nov 14, 2019 · 3 comments
Labels
Milestone

Comments

@nerdmax
Copy link

@nerdmax nerdmax commented Nov 14, 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?

This is the latest release.

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

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN="/Users/canliu/dev/private/go/bin"
GOCACHE="/Users/canliu/Library/Caches/go-build"
GOENV="/Users/canliu/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/canliu/dev/private/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/canliu/dev/private/go/leet-code-golang/go.mod"
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/5k/s46k0hgn4tz2jplphh_m42700000gn/T/go-build218713888=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

  1. Create a folder under my $GOPATH.
  2. Go into that folder.
  3. Create main.go

What did you expect to see?

What did you see instead?

@gopherbot gopherbot added this to the Unreleased milestone Nov 14, 2019
@gopherbot gopherbot added the Tools label Nov 14, 2019
@gopherbot

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Nov 14, 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.

@gopherbot gopherbot added the gopls label Nov 14, 2019
@nerdmax nerdmax closed this Nov 14, 2019
@nerdmax

This comment has been minimized.

Copy link
Author

@nerdmax nerdmax commented Nov 14, 2019

Sorry, the issue has gone by itself.

@nerdmax

This comment has been minimized.

Copy link
Author

@nerdmax nerdmax commented Nov 14, 2019

PS: Updating GoLang helps a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.