Skip to content

Error on large readers #8

@clipperhouse

Description

@clipperhouse

Hi! My environment is Go 1.14, macOS Catalina 10.15.3.

When reading a large file (over approx 65K), I am getting bufio.Segmenter: token too long

To reproduce: here’s a repo. Run the tests with go test -v.

I believe this error is in error, since no token in the file is that long. I expect to be able to use a reader of arbitrary length.

So either the returned error is inaccurate, or there is a bug in buffering/scanning the bytes. Thanks.

If curious I am using the segmenter here: https://github.com/clipperhouse/jargon. Thanks for creating it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions