CQCL / guppylang

Pythonic quantum-classical programming language
https://pypi.org/project/guppylang
Apache License 2.0
33 stars 2 forks source link

Report multiple spans within the same error message #523

Open croyzor opened 1 month ago

croyzor commented 1 month ago

Our current error reporting infrrastructure is limited to only highlighting one code span when reporting an error. Update this to allow showing multiple code spans in error messages

This would unblock #318 and #306

mark-koch commented 1 month ago

Update this to report all the error messages we can find

I think we should only focus on the multiple spans part for now. Reporting multiple errors requires us to recover from previous errors to keep type checking going which will require a separate refactor

mark-koch commented 4 weeks ago

See tracking issue #535