You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Language Parser: poor error recovery on faulty DU declaration / improve error reporting #11468
changes were done by @dsyme during our parser recovery work today
what would help is surfacing postmortem notes of those occurrences of collaboration from main maintainers and a detailed TOC of compiler workshop videos: (https://www.youtube.com/watch?v=3Zr0HNVcooU), both those could be .md files under fsharp.org repository.
All would help for this type of issues to get taken up by the community.
We can split the issue in two: parser recovery (hard to fix for a person not familiar with parser infrastructure) and error message (easy to tackle by community at large).
In general it'd need a separate recovery for each place in the grammar (which sometimes would only work for some common kind of similar mistakes), so recovery in match expressions clauses won't help much with union case declarations. Though, a similar technique could be applied here, so some errors would be recovered.
Activity
kerams commentedon Apr 22, 2021
Could #10872 help here?
smoothdeveloper commentedon Apr 22, 2021
@kerams, I'd say @auduchinok could help for sure 🙂
also
what would help is surfacing postmortem notes of those occurrences of collaboration from main maintainers and a detailed TOC of compiler workshop videos: (https://www.youtube.com/watch?v=3Zr0HNVcooU), both those could be .md files under fsharp.org repository.
All would help for this type of issues to get taken up by the community.
We can split the issue in two: parser recovery (hard to fix for a person not familiar with parser infrastructure) and error message (easy to tackle by community at large).
smoothdeveloper commentedon Apr 22, 2021
the thriller starts there: https://youtu.be/3Zr0HNVcooU?t=4977
auduchinok commentedon Apr 23, 2021
In general it'd need a separate recovery for each place in the grammar (which sometimes would only work for some common kind of similar mistakes), so recovery in match expressions clauses won't help much with union case declarations. Though, a similar technique could be applied here, so some errors would be recovered.