-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix #7087: Add log for "contains no units" SyntaxError #7157
Conversation
Merge upstream/develop to develop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @kevintab95! But one question: do you need any info about earlierInputString?
Codecov Report
@@ Coverage Diff @@
## develop #7157 +/- ##
===========================================
- Coverage 86.92% 86.92% -0.01%
===========================================
Files 941 941
Lines 85507 85511 +4
Branches 2727 2727
===========================================
+ Hits 74331 74332 +1
- Misses 11176 11179 +3
Continue to review full report at Codecov.
|
I guess laterInputString can be derived from laterInput. I've removed that. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Hi @kevintab95 -- just to clarify, I meant, "should we also log earlierInputString" as opposed to "should we remove laterInputString"... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
@seanlip, can this be merged as-is or do you want more work on this? |
Let's not merge it just yet -- I want to get confirmation that @kevintab95 is happy with it (in light of my last comment). If he is then we can merge it. Thanks for checking! |
Oh I missed that, I see what you mean now. I've logged earlierInput as well. Thanks @seanlip! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @kevintab95 !
@nithusha21, I'm not sure whether I should add "Bug fixes" label to this PR. Do you have any suggestion? |
Hm good point, I put it under "infrastructural changes" as it's adding logging. Thanks for checking! Will merge it now. |
Explanation
Fixes #7087: Added a try-catch to additionally log the actual input string and parameter passed to math.unit(). This information will help us reproduce the issue.
Checklist
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.