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

Reference parser compat: Make toplevel error Exprs more compatible #280

Merged
merged 1 commit into from
May 13, 2023

Conversation

c42f
Copy link
Member

@c42f c42f commented May 13, 2023

When encountering a toplevel error, the reference parser

  • truncates the top level expression arg list before that error
  • includes the last line number
  • appends the error message

Do something similar here so that the associated LoadError shows a more reasonable line number.

When encountering a toplevel error, the reference parser
* truncates the top level expression arg list before that error
* includes the last line number
* appends the error message

Do something similar here so that the associated `LoadError` shows a
more reasonable line number.
@codecov
Copy link

codecov bot commented May 13, 2023

Codecov Report

Merging #280 (e955688) into main (9e9e1a1) will increase coverage by 0.01%.
The diff coverage is 94.73%.

@@            Coverage Diff             @@
##             main     #280      +/-   ##
==========================================
+ Coverage   96.68%   96.69%   +0.01%     
==========================================
  Files          14       14              
  Lines        4011     4028      +17     
==========================================
+ Hits         3878     3895      +17     
  Misses        133      133              
Impacted Files Coverage Δ
src/hooks.jl 80.48% <94.73%> (+2.25%) ⬆️

@c42f c42f merged commit 569abc3 into main May 13, 2023
@c42f c42f deleted the c42f/fix-toplevel-error-linenumbers branch May 13, 2023 23:23
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.

1 participant