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

can't find golang.org/x/tools/go/gcimporter15 #48

Closed
wants to merge 1 commit into from

Conversation

j-o-lantern0422
Copy link

when i used this package, get this error message.

panic: cannot find package "golang.org/x/tools/go/gcimporter15" in any of:
	/usr/local/Cellar/go/1.10/libexec/src/golang.org/x/tools/go/gcimporter15 (from $GOROOT)

I created PR that fixd the place I think fix it. But I did not know how to test this project.
If there is any shortage, please tell me or fix it.

sorry my poor english

@coveralls
Copy link

Coverage Status

Coverage remained the same at 61.332% when pulling 7ae57d5 on j-o-lantern0422:fix-gcimporter into f6e6fbd on d4l3k:master.

2 similar comments
@coveralls
Copy link

coveralls commented Apr 20, 2018

Coverage Status

Coverage remained the same at 61.332% when pulling 7ae57d5 on j-o-lantern0422:fix-gcimporter into f6e6fbd on d4l3k:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 61.332% when pulling 7ae57d5 on j-o-lantern0422:fix-gcimporter into f6e6fbd on d4l3k:master.

@d4l3k
Copy link
Owner

d4l3k commented May 3, 2018

Hi, I'd recommend updating your version of Go. This project is only tested with go versions 1.5+.

Let me know if you have a strong use case where you can't use a newer version.

@j-o-lantern0422
Copy link
Author

my go version is 1.10 😢

@d4l3k
Copy link
Owner

d4l3k commented May 6, 2018

That's really weird. This file is only used on pre-1.5 go versions.

Could you please send the output from go version and go env

@danielcorin
Copy link

I'm seeing a similar issue. I run into the error when I try to add go-pry as a dependency to my project using dep and run dep ensure to update my project dependencies:

This is the error from dep:

[INFO]  ensure Solve(): No versions of golang.org/x/tools met constraints:
	master: Could not introduce golang.org/x/tools@master, as its subpackage golang.org/x/tools/go/gcimporter15 is missing. (Package is required by github.com/d4l3k/go-pry@master.)

My env and version:

$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/dancorin/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/dancorin/gocode"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.10.2/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.10.2/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
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/lq/k9km65vd39bgpwdktt4vkhgm0000gn/T/go-build471568430=/tmp/go-build -gno-record-gcc-switches -fno-common"

$ go version
go version go1.10.2 darwin/amd64

@d4l3k
Copy link
Owner

d4l3k commented May 26, 2018

Seems like dep isn't correctly following build tags. That import is only used on pre 1.5 versions of go.

https://github.com/d4l3k/go-pry/blob/master/pry/importer.go#L1-L8

@d4l3k
Copy link
Owner

d4l3k commented May 26, 2018

You should just be able to delete the pry/importer.go file and have it work correctly.

@d4l3k d4l3k closed this Jun 6, 2018
@j-o-lantern0422 j-o-lantern0422 deleted the fix-gcimporter branch June 14, 2018 11:34
@j-o-lantern0422
Copy link
Author

sorry for the delay in reacting.
I decided to review my environment well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants