roc icon indicating copy to clipboard operation
roc copied to clipboard

Panic on parsing file with only `interface Foo`

Open JackoCoolio opened this issue 1 year ago • 0 comments

With Foo.roc:

interface Foo

roc test Foo.roc panics:

thread 'main' panicked at crates/reporting/src/error/parse.rs:3663:14:
not yet implemented: unhandled `exposes` parsing error IndentExposes(@13)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Adding imports [] makes it print a regular parse error:

interface Foo
    imports []

roc test Foo.roc prints:

── WEIRD EXPOSES in Foo.roc ────────────────────────────────────────────────────

I am partway through parsing a header, but I got stuck here:

1│  interface Foo
2│      imports []
        ^

I am expecting the exposes keyword next, like

    exposes [Animal, default, tame]

JackoCoolio avatar Apr 14 '24 01:04 JackoCoolio