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 install #8

Closed
hackervera opened this issue Aug 20, 2015 · 4 comments
Closed

Can't install #8

hackervera opened this issue Aug 20, 2015 · 4 comments

Comments

@hackervera
Copy link

hhadmin@local:~/go/src/github.com/househappy/hyper_sonic$ go get github.com/d4l3k/go-pry
# github.com/d4l3k/go-pry
../../d4l3k/go-pry/main.go:162: syntax error: unexpected range, expecting {
../../d4l3k/go-pry/main.go:167: non-declaration statement outside function body
../../d4l3k/go-pry/main.go:168: non-declaration statement outside function body
../../d4l3k/go-pry/main.go:169: non-declaration statement outside function body
../../d4l3k/go-pry/main.go:180: non-declaration statement outside function body
../../d4l3k/go-pry/main.go:181: non-declaration statement outside function body
../../d4l3k/go-pry/main.go:182: non-declaration statement outside function body
../../d4l3k/go-pry/main.go:189: non-declaration statement outside function body
../../d4l3k/go-pry/main.go:191: non-declaration statement outside function body
../../d4l3k/go-pry/main.go:196: non-declaration statement outside function body
../../d4l3k/go-pry/main.go:196: too many errors
@d4l3k
Copy link
Owner

d4l3k commented Aug 20, 2015

Could you provide a few more details to the system you're running it on? I'm having a hard time reproducing it.

Letting me know the output of go version and your operating system version would be appreciated.

You could also try running:

go get -u github.com/d4l3k/go-pry

Likely that won't help, but it doesn't hurt to try.

@hackervera
Copy link
Author

hhadmin@local:~$ go version
go version go1.3.3 linux/amd64

hhadmin@local:~$ cat /etc/issue
Debian GNU/Linux 7 \n \l

hhadmin@local:~$ go get -u github.com/d4l3k/go-pry
# github.com/d4l3k/go-pry
go/src/github.com/d4l3k/go-pry/main.go:162: syntax error: unexpected range, expecting {
go/src/github.com/d4l3k/go-pry/main.go:167: non-declaration statement outside function body
go/src/github.com/d4l3k/go-pry/main.go:168: non-declaration statement outside function body
go/src/github.com/d4l3k/go-pry/main.go:169: non-declaration statement outside function body
go/src/github.com/d4l3k/go-pry/main.go:180: non-declaration statement outside function body
go/src/github.com/d4l3k/go-pry/main.go:181: non-declaration statement outside function body
go/src/github.com/d4l3k/go-pry/main.go:182: non-declaration statement outside function body
go/src/github.com/d4l3k/go-pry/main.go:189: non-declaration statement outside function body
go/src/github.com/d4l3k/go-pry/main.go:191: non-declaration statement outside function body
go/src/github.com/d4l3k/go-pry/main.go:196: non-declaration statement outside function body
go/src/github.com/d4l3k/go-pry/main.go:196: too many errors

@d4l3k
Copy link
Owner

d4l3k commented Aug 20, 2015

I've setup a Debian install with go1.3.3 and am able to reproduce.

I've also added 1.3.3 as a build target to TravisCI:

d6d9548

https://travis-ci.org/d4l3k/go-pry/jobs/76549834

Seems like it's isolated to 1.3.3. One short term fix would be to install a newer version especially considering Go 1.5 is out.

@d4l3k d4l3k closed this as completed in ea8d3c8 Aug 20, 2015
@d4l3k
Copy link
Owner

d4l3k commented Aug 20, 2015

Turns out that omiting the params in go1.3.3 throws an error.

for range make([]int, 10) {
  // This doesn't work
}
for _ = range make([]int, 10) {
  // This does
}

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

No branches or pull requests

2 participants