Skip to content

should we avoid executing programs with errors? #220

Description

@vemoo

While implementing #217 I found that dada run executes even if there are errors, which causes this program to enter an infinite loop:

async fn main() {
    i = 0
    while i < 1 {
        print(i).await
        $ # invalid syntax
        i += 1
    } 
}

I think we should avoid running if we encounter any diagnostic with Severity::Error.

That can also happen for dada test and maybe on web playground?

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