HeySquirrel / tribe

Helps you answer why the @$*% that code exists.
https://www.heysquirrel.co/tribe
MIT License
18 stars 3 forks source link

Reaching down the file crashes the tribe, leaving the color set in the shell transparent #20

Open porcevader opened 7 years ago

porcevader commented 7 years ago

Title is all. I will try to reproduce and nail down the condition.

porcevader commented 7 years ago

The crash is reliably reproduced by issuing tribe blame toward the end of the file. For instance, I have file whose line length is 321.

$ tribe blame -L320 myfile.go

.. 017/11/21 18:59:31 Loader panics: exit status 128 panic: Loader panics: exit status 128 goroutine 6 [running]: log.Panicln(0xc42024cfb8, 0x1, 0x1) /usr/lib/...golang/src/log/log.go:344 +0xc0
github.com/HeySquirrel/tribe/blame/model.(cache).startCacheWorkers.func1(0xc4201b00c0) /usr/local/.../src/github.com/HeySquirrel/tribe/blame/model/annotate.go:126 +0xe6 created by github.com/HeySquirrel/tribe/blame/model.(cache).startCacheWorkers /usr/local/.../src/github.com/HeySquirrel/tribe/blame/model/annotate.go:122 +0x48