-
-
Notifications
You must be signed in to change notification settings - Fork 362
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
panic: runtime error: makeslice: len out of range #174
Comments
Thanks! What does |
Tue Mar 31 22:25:15:~ rstackhouse$exercism debug **** Debug Information **** If you are having trouble and need to file a GitHub issue (https://github.com/exercism/exercism.io/issues) please include this information (except your API key. Keep that private). |
I ran |
I get the same error if I call |
I get the same issue as above. Mac OSX. Installed using homebrew |
I don't get the error. Weird. I suppose I might have built 2.0.1 with different code.
Yeah, it could be. I need to go to work, but I'll see about sorting this out tonight. |
I believe I have a fix for this. @lcowell would you mind building this locally and checking if it works for you? |
Looks good to me. |
Sweet. Cutting a release now. |
Only add padding in report if necessary. Fixes #174
The release is up here: https://github.com/exercism/cli/releases/tag/v2.0.2 I'm submitting a fix to homebrew, but that tends to take a few days to go in. |
Mon Mar 30 22:03:47:Downloads rstackhouse$ exercism fetch cpp
panic: runtime error: makeslice: len out of range
goroutine 1 [running]:
strings.Repeat(0x38c6b0, 0x1, 0xfffffffffffffffb, 0x0, 0x0)
/usr/local/go/src/strings/strings.go:458 +0x68
github.com/exercism/cli/user.(_Homework).heading(0xc20800ade0, 0x3, 0x1, 0x9)
/Users/kytrinyx/code/go/src/github.com/exercism/cli/user/homework.go:115 +0x25e
github.com/exercism/cli/user.(_Homework).Report(0xc20800ade0, 0x3)
/Users/kytrinyx/code/go/src/github.com/exercism/cli/user/homework.go:84 +0xbe
github.com/exercism/cli/user.(_Homework).Summarize(0xc20800ade0, 0x0)
/Users/kytrinyx/code/go/src/github.com/exercism/cli/user/homework.go:137 +0x64
github.com/exercism/cli/cmd.Fetch(0xc20805a160)
/Users/kytrinyx/code/go/src/github.com/exercism/cli/cmd/fetch.go:39 +0x709
github.com/codegangsta/cli.Command.Run(0x397270, 0x5, 0x3970f0, 0x1, 0x43cb30, 0x65, 0x0, 0x0, 0x0, 0x0, ...)
/Users/kytrinyx/code/go/src/github.com/codegangsta/cli/command.go:101 +0xe42
github.com/codegangsta/cli.(_App).Run(0xc208070000, 0xc20800a000, 0x3, 0x3, 0x0, 0x0)
/Users/kytrinyx/code/go/src/github.com/codegangsta/cli/app.go:130 +0xb81
main.main()
/Users/kytrinyx/code/go/src/github.com/exercism/cli/exercism/main.go:149 +0xb3f
goroutine 8 [IO wait]:
net.(_pollDesc).Wait(0xc208010290, 0x72, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:84 +0x47
net.(_pollDesc).WaitRead(0xc208010290, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:89 +0x43
net.(_netFD).Read(0xc208010230, 0xc2080a0000, 0x1000, 0x1000, 0x0, 0x711b88, 0xc20802b100)
/usr/local/go/src/net/fd_unix.go:242 +0x40f
net.(_conn).Read(0xc20802e060, 0xc2080a0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:121 +0xdc
net/http.noteEOFReader.Read(0x7131f0, 0xc20802e060, 0xc20805a318, 0xc2080a0000, 0x1000, 0x1000, 0x2e8460, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:1270 +0x6e
net/http.(_noteEOFReader).Read(0xc20801e760, 0xc2080a0000, 0x1000, 0x1000, 0xc208012000, 0x0, 0x0)
:125 +0xd4
bufio.(_Reader).fill(0xc20805c660)
/usr/local/go/src/bufio/bufio.go:97 +0x1ce
bufio.(_Reader).Peek(0xc20805c660, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:132 +0xf0
net/http.(_persistConn).readLoop(0xc20805a2c0)
/usr/local/go/src/net/http/transport.go:842 +0xa4
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:660 +0xc9f
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:2232 +0x1
goroutine 9 [select]:
net/http.(_persistConn).writeLoop(0xc20805a2c0)
/usr/local/go/src/net/http/transport.go:945 +0x41d
created by net/http.(_Transport).dialConn
/usr/local/go/src/net/http/transport.go:661 +0xcbc
goroutine 12 [runnable]:
net/http.(_persistConn).readLoop(0xc20805a580)
/usr/local/go/src/net/http/transport.go:928 +0x9ce
created by net/http.(_Transport).dialConn
/usr/local/go/src/net/http/transport.go:660 +0xc9f
goroutine 13 [select]:
net/http.(_persistConn).writeLoop(0xc20805a580)
/usr/local/go/src/net/http/transport.go:945 +0x41d
created by net/http.(_Transport).dialConn
/usr/local/go/src/net/http/transport.go:661 +0xcbc
The text was updated successfully, but these errors were encountered: