Skip to content

retain_line_breaks fails with "bufio.Scanner: token too long" on lines over 64KiB #317

Description

@apostasie

yamlfmt version

0.21.0 (also present on main)

Issue

Formatting a YAML file that contains a single line longer than 64KB fails with:
Feature Retain Line Breaks BeforeAction failed with error: bufio.Scanner: token too long

Encountered with SwiftPM generated manifests (about 400KB on a single line) .

Will send a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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