metaborg / nabl

Spoofax' Name Binding Language
Apache License 2.0
7 stars 12 forks source link

Preserve `note`s from entailment contexts #70

Open AZWN opened 3 years ago

AZWN commented 3 years ago

Short description Messages from entailment contexts are now always suppressed, which is not always desirable.

Problem description. Often, Statix specifications are debugged using try {false } | note $[<message>] constraints. However, when these constraints are anywhere in an entailment context, their messages are not included in the final solver result. Therefore, entailed constraints are much harder to debug.

Describe the solution you'd like Messages with note level should be transferred from an entailment context to the outer context.

Describe alternatives you've considered There are several alternative solutions: