Skip to content

roc compiler hangs indefinitely when encountering unexpected lower case import #6388

@imclerran

Description

@imclerran

I was converting a roc app to an interface, and still had a leftover import of pf.Stdout in my import statements. When running roc test MyInterfaceFile.roc, the terminal hangs indefinitely, with no output, until Ctrl+C is pressed to break execution.

I have tried this in a few different interface files, and adding any lowerCamel.* import will hang the execution. If I import a non existant UpperCamel.*, the compiler correctly fails with a file not found error. But any import beginning with a lowercase letter causes the compiler to hang.

Both roc check and roc test hang this way.

EDIT: On further testing, adding an unexpected lower case import to a roc app will also cause the same indefinite hang - so this bug does not only apply to interfaces, but also to apps, and thus roc run, roc dev, etc will also encounter this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions