We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Are there missing dependencies or some such in the tutorial when run from a local end point, or am I meant to change some other environment variable?
/home/arran/tmp/pry arran@arran-yoga 10411% GOPATH=$PWD/gopath go install github.com/d4l3k/go-pry /home/arran/tmp/pry arran@arran-yoga 10412% cat > readme.go package main import "github.com/d4l3k/go-pry/pry" func main() { a := 1 pry.Pry() } /home/arran/tmp/pry arran@arran-yoga 10413% go-pry run readme.go zsh: command not found: go-pry /home/arran/tmp/pry arran@arran-yoga 10414% ./gopath/bin/go-pry run readme.go panic: cannot find package "github.com/d4l3k/go-pry/pry" in any of: /usr/lib/go-1.8/src/github.com/d4l3k/go-pry/pry (from $GOROOT) /home/arran/go/src/github.com/d4l3k/go-pry/pry (from $GOPATH) goroutine 1 [running]: main.InjectPry(0xc420014660, 0x59, 0x6b9763, 0x3, 0x300000001, 0xc4200001a0) /home/arran/tmp/pry/gopath/src/github.com/d4l3k/go-pry/main.go:64 +0x802 main.main.func4(0xc4200179a0, 0x45, 0x7d7160, 0xc4200fe750, 0x0, 0x0, 0x0, 0x0) /home/arran/tmp/pry/gopath/src/github.com/d4l3k/go-pry/main.go:251 +0xdd path/filepath.walk(0xc4200179a0, 0x45, 0x7d7160, 0xc4200fe750, 0xc42000efc0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:351 +0x81 path/filepath.walk(0xc4200196c0, 0x3d, 0x7d7160, 0xc4200fe680, 0xc42000efc0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc420102120, 0x2a, 0x7d7160, 0xc4200fe5b0, 0xc42000efc0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc42000f6e0, 0x22, 0x7d7160, 0xc4200e21a0, 0xc42000efc0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc42000adc0, 0x1b, 0x7d7160, 0xc4200e20d0, 0xc42000efc0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc42000ad20, 0x15, 0x7d7160, 0xc4200e2000, 0xc42000efc0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc420012f40, 0xa, 0x7d7160, 0xc42006dee0, 0xc42000efc0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc420012e40, 0x6, 0x7d7160, 0xc42006d110, 0xc42000efc0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0x6b95b4, 0x1, 0x7d7160, 0xc42006d040, 0xc42000efc0, 0x0, 0x30) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.Walk(0x6b95b4, 0x1, 0xc42000efc0, 0x0, 0x1) /usr/lib/go-1.8/src/path/filepath/path.go:398 +0x14c main.main() /home/arran/tmp/pry/gopath/src/github.com/d4l3k/go-pry/main.go:259 +0x63d /home/arran/tmp/pry arran@arran-yoga 10415% GOPATH=$PWD/gopath ./gopath/bin/go-pry run readme.go panic: cannot find package "golang.org/x/tools/go/gcimporter15" in any of: /usr/lib/go-1.8/src/golang.org/x/tools/go/gcimporter15 (from $GOROOT) /home/arran/tmp/pry/gopath/src/golang.org/x/tools/go/gcimporter15 (from $GOPATH) goroutine 1 [running]: main.InjectPry(0xc42032fe50, 0x46, 0x6b9763, 0x3, 0x300000001, 0xc4200001a0) /home/arran/tmp/pry/gopath/src/github.com/d4l3k/go-pry/main.go:64 +0x802 main.main.func4(0xc42019ac80, 0x32, 0x7d7160, 0xc420c1d380, 0x0, 0x0, 0x0, 0x0) /home/arran/tmp/pry/gopath/src/github.com/d4l3k/go-pry/main.go:251 +0xdd path/filepath.walk(0xc42019ac80, 0x32, 0x7d7160, 0xc420c1d380, 0xc42000eff0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:351 +0x81 path/filepath.walk(0xc420262bd0, 0x26, 0x7d7160, 0xc420d33ad0, 0xc42000eff0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc42000f710, 0x22, 0x7d7160, 0xc4200e8270, 0xc42000eff0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc42000adc0, 0x1b, 0x7d7160, 0xc4200e81a0, 0xc42000eff0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc42000ad20, 0x15, 0x7d7160, 0xc4200e80d0, 0xc42000eff0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc420012f40, 0xa, 0x7d7160, 0xc4200e8000, 0xc42000eff0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc420012e40, 0x6, 0x7d7160, 0xc42006d1e0, 0xc42000eff0, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0x6b95b4, 0x1, 0x7d7160, 0xc42006d110, 0xc42000eff0, 0x0, 0x30) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.Walk(0x6b95b4, 0x1, 0xc42000eff0, 0x0, 0x1) /usr/lib/go-1.8/src/path/filepath/path.go:398 +0x14c main.main() /home/arran/tmp/pry/gopath/src/github.com/d4l3k/go-pry/main.go:259 +0x63d /home/arran/tmp/pry arran@arran-yoga 10416% GOPATH=$PWD/gopath ./gopath/bin/go-pry run readme.go panic: cannot find package "golang.org/x/tools/go/gcimporter15" in any of: /usr/lib/go-1.8/src/golang.org/x/tools/go/gcimporter15 (from $GOROOT) /home/arran/tmp/pry/gopath/src/golang.org/x/tools/go/gcimporter15 (from $GOPATH) goroutine 1 [running]: main.InjectPry(0xc4204c0870, 0x46, 0x6b9763, 0x3, 0x300000001, 0xc4200001a0) /home/arran/tmp/pry/gopath/src/github.com/d4l3k/go-pry/main.go:64 +0x802 main.main.func4(0xc4204c8d80, 0x32, 0x7d7160, 0xc4204c48f0, 0x0, 0x0, 0x0, 0x0) /home/arran/tmp/pry/gopath/src/github.com/d4l3k/go-pry/main.go:251 +0xdd path/filepath.walk(0xc4204c8d80, 0x32, 0x7d7160, 0xc4204c48f0, 0xc42007ad20, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:351 +0x81 path/filepath.walk(0xc420c501e0, 0x26, 0x7d7160, 0xc4200f7ad0, 0xc42007ad20, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc42007b440, 0x22, 0x7d7160, 0xc4201081a0, 0xc42007ad20, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc42007e9e0, 0x1b, 0x7d7160, 0xc4201080d0, 0xc42007ad20, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc42007e940, 0x15, 0x7d7160, 0xc420108000, 0xc42007ad20, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc420082cd0, 0xa, 0x7d7160, 0xc420087ee0, 0xc42007ad20, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0xc420082bd0, 0x6, 0x7d7160, 0xc420087110, 0xc42007ad20, 0x0, 0x0) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.walk(0x6b95b4, 0x1, 0x7d7160, 0xc420087040, 0xc42007ad20, 0x0, 0x30) /usr/lib/go-1.8/src/path/filepath/path.go:376 +0x414 path/filepath.Walk(0x6b95b4, 0x1, 0xc42007ad20, 0x0, 0x1) /usr/lib/go-1.8/src/path/filepath/path.go:398 +0x14c main.main() /home/arran/tmp/pry/gopath/src/github.com/d4l3k/go-pry/main.go:259 +0x63d /home/arran/tmp/pry arran@arran-yoga 10424% ls -dl gopath/src/*/* drwxrwxr-x 3 arran arran 4096 Jul 14 13:47 gopath/src/github.com/d4l3k/ drwxrwxr-x 5 arran arran 4096 Jul 14 13:47 gopath/src/github.com/mattn/ drwxrwxr-x 3 arran arran 4096 Jul 14 13:47 gopath/src/github.com/mgutz/ drwxrwxr-x 3 arran arran 4096 Jul 14 13:47 gopath/src/github.com/pkg/
The text was updated successfully, but these errors were encountered:
This appears to be an issue with your GOPATH and not an issue with go-pry.
GOPATH
When you run
$ GOPATH=$PWD/gopath go install github.com/d4l3k/go-pry
the GOPATH is only set for that one command.
Try:
export GOPATH=$PWD/gopath go install github.com/d4l3k/go-pry ./gopath/bin/go-pry
Sorry, something went wrong.
No branches or pull requests
Are there missing dependencies or some such in the tutorial when run from a local end point, or am I meant to change some other environment variable?
The text was updated successfully, but these errors were encountered: