Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error messages in DefRecursionCheck, Eval example #1046

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

johnynek
Copy link
Owner

I wanted to try implementing cats.Eval now that we have polymorphic recursion #1041 .

I couldn't see a way to do it without a poor version of the fuel pattern: promise up front how many recursions you would do at most.

But along the way, I noticed that we are only returning one error message from any branch in the code in DefRecursionCheck, so I implemented a version of the idea in #1044 which allowed me to see all the error messages at once (when they are on parts of the code I was already traversing).

@codecov-commenter
Copy link

codecov-commenter commented Sep 17, 2023

Codecov Report

Patch coverage: 93.54% and project coverage change: +0.16% 🎉

Comparison is base (7890b7b) 91.81% compared to head (ccab783) 91.97%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1046      +/-   ##
==========================================
+ Coverage   91.81%   91.97%   +0.16%     
==========================================
  Files          91       92       +1     
  Lines        9533     9549      +16     
  Branches     2195     2255      +60     
==========================================
+ Hits         8753     8783      +30     
+ Misses        780      766      -14     
Files Changed Coverage Δ
...in/scala/org/bykn/bosatsu/ParallelViaProduct.scala 85.71% <85.71%> (ø)
...ain/scala/org/bykn/bosatsu/DefRecursionCheck.scala 97.66% <95.83%> (-0.39%) ⬇️

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@johnynek johnynek merged commit 423a144 into master Sep 18, 2023
13 checks passed
@johnynek johnynek deleted the oscar/20230917_parallel_defrec_check branch September 18, 2023 23:56
@johnynek johnynek mentioned this pull request Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants