metaborg / spoofax-pie

Spoofax implementation using PIE pipelines
Apache License 2.0
12 stars 9 forks source link

SDF3: Error in import causes a cascade of unrelated errors in the file #33

Closed Virtlink closed 3 years ago

Virtlink commented 3 years ago

Summary

In SDF3, an error in an import causes a cascase of unrelated errors in the file.

What you did

An existing SDF3 file had a broken import. I imported Common (upper case) from Common.sdf3, but the module in Common.sdf3 was named module common (lower case).

imports Common

What you expected to happen

I expected only an error on the import and maybe errors on the undefined sorts.

What actually happened

I got errors on all the constructors and sorts.

Context

Additional information

Screenshot 2021-09-07 at 13 42 34
Gohla commented 3 years ago

Hmm, could these be cascading errors due to the SDF3 Statix spec? I am not sure how to fix that

Gohla commented 3 years ago

This will be improved in the next release due to improved cascaded error handling in the Statix solver.