Bug description
When asserting that a query results in exactly one result, my custom error message is not triggered, but instead an error occurs indicating a mismatch between a wildcard and an empty list.
Thanks for reporting. This is indeed a bug introduced in a recent improvement in query execution. It should be fixed in 17e02f04e905cedd7293c8f3ba20772348d82bb6.
Bug description When asserting that a query results in exactly one result, my custom error message is not triggered, but instead an error occurs indicating a mismatch between a wildcard and an empty list.
Versions Spoofax version:
Spoofax Eclipse runtime 2.6.0.20220228-175858-master
Statix setup:single-file
Steps to reproduce the behavior Reproduction in .stxtest file as follows:
Observed behavior Error message in stxtest evaluation:
Expected behavior Expected to output the "Custom error message".
--
PS: issue default text suggests to read 'https://www.spoofax.dev/spoofax-docs/howtos/statix/debugging/', but points to a 404, probably should be 'https://www.spoofax.dev/howtos/statix/debugging/'. Same for references/statix.