gron icon indicating copy to clipboard operation
gron copied to clipboard

Scanner error: token too long

Open pkuca opened this issue 4 years ago • 2 comments

When using gron -s, I am seeing the following error:

bufio.Scanner: token too long: %!s(MISSING)

I'm happy to submit a PR increasing the default buffer size to something you'd approve. Alternatively, I was thinking about how the buffer size could be provided as an option - I noticed there's only a single option passed in to the function now.

pkuca avatar Apr 23 '20 16:04 pkuca

Referring to: https://github.com/tomnomnom/gron/blob/master/main.go#L267

pkuca avatar Apr 23 '20 16:04 pkuca

Why create a buffer size? can't we just use dynamic?

rishabhdeepsingh avatar Sep 19 '20 09:09 rishabhdeepsingh