Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic on parsing file with only interface Foo #6641

Open
JackoCoolio opened this issue Apr 14, 2024 · 0 comments
Open

Panic on parsing file with only interface Foo #6641

JackoCoolio opened this issue Apr 14, 2024 · 0 comments
Labels
error-messages Related to the quality of error messages parsing

Comments

@JackoCoolio
Copy link
Contributor

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]
@lukewilliamboswell lukewilliamboswell added good first issue Good for newcomers parsing error-messages Related to the quality of error messages and removed good first issue Good for newcomers labels Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error-messages Related to the quality of error messages parsing
Projects
None yet
Development

No branches or pull requests

2 participants