Skip to content
Prismio docs
ImplementedPrismio 0.1.0

Multiple compiler errors

Understand Prismio's recovered diagnostics and final abort count after several independent errors.

Last verified

Implemented. Available in the audited Prismio 0.1.0 compiler. Pre-1.0 syntax may still change.

Meaning

The compiler recovered after earlier failures, reported several issues, then printed aborting due to N previous errors. The final line summarizes; it is not a separate source defect.

Recovery keeps later declarations visible enough to find independent errors, but malformed syntax can still cause cascades in types and names.

Why it happens

The file contains multiple genuine mistakes, or one early structural problem changed how the parser understood the remainder.

Invalid code

prismio
fn main() -> Int {
    let count: Int = "wrong"
    return missing
}

Correct code

prismio
fn main() -> Int {
    let count: Int = 1
    return count
}

Common fixes

Fix primary errors from top to bottom, then compile again. Later messages may disappear if they were cascades, but Prismio's semantic recovery is designed to keep independent diagnostics useful.

Do not search for a page named after the abort summary. Use the individual primary messages above it. When reporting a compiler bug, include the complete output so recovery order is visible.