Skip to content

line overrun in error reporting #2211

Open
@jsoref

Description

@jsoref

Steps

% echo 'λ(a : Type) → ' > q.dhall;
% wc -l q.dhall;
       1 q.dhall
% echo ./q.dhall | dhall-to-json


↳ ./q.dhall

Error: Invalid input

/Users/jsoref/code/validators/dhall-validator-action/q.dhall:2:1:
  |
2 | <empty line>
  | ^
unexpected end of input
expecting expression or whitespace


1│ ./q.dhall

(input):1:1

Expected results

% echo 'λ(a : Type) → ' > q.dhall;
% wc -l q.dhall;
       1 q.dhall
% echo ./q.dhall | dhall-to-json


↳ ./q.dhall

Error: Invalid input

/Users/jsoref/code/validators/dhall-validator-action/q.dhall:1:18:
  |
1 | <end of file>
  | ^
unexpected end of input
expecting expression or whitespace


1│ ./q.dhall

(input):1:1

(n.b. #2210 should adjust the last line of this output... )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions