-
Notifications
You must be signed in to change notification settings - Fork 501
Report file names in which "Unexpected Julia interpolation" occurred #2793
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
Merged
fingolfin
merged 12 commits into
JuliaDocs:master
from
aaruni96:ak96/more-info-on-mdparser-problems
Nov 7, 2025
Merged
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
d2028ec
Add some potentially helpful file information to unexpected interpola…
aaruni96 da43460
Apply suggestions from code review
aaruni96 41fba66
use locrepr
aaruni96 827e554
Slightly better phrasing of what the reported location is
aaruni96 8462744
Update changelog
aaruni96 ee2a0cb
Merge branch 'master' into ak96/more-info-on-mdparser-problems
fingolfin 8ee9045
tweaks
fingolfin 63eb11b
Merge branch 'master' into ak96/more-info-on-mdparser-problems
fingolfin b555eb1
Adjust tests
fingolfin 216ba07
Adjust warning indentation
fingolfin e63295b
runic
fingolfin b48b0f8
seems runic is not perfect
fingolfin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@aaruni96 PR #2803 is now merged. Can you please resolve the conflicts in
CHANGELOG.mdand then try this: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.
The missing
docsbeforesrcis to be expected, given that Oscar'sdocs/make.jldoes this:and the file names/paths we print are relative to the current working directory.
I am not sure why Oscar does that, it would be nice if we could get rid of it, but that's for another day.
Uh oh!
There was an error while loading. Please reload this page.
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.
This doesn't work, complains about wrong data types. I tried monkey patching a few things hoping its a trivial error, but I couldn't make any headway (just more and different errors).
The error I get is
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.
Argh. Seems my previous PR did not have enough coverage to reveal that I messed up... Try applying this patch in addition:
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.
Without trying it now, relying on my memory of attempting something like this during my "monkey patching", I expect this to not work because
dctx.navnode.pageis a string, butlocreprexpects something of type::Page.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.
No, my patch is patching the locrepr method I added earlier today. It had a merge conflict which I resolved incorrectly.
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.
After applying your patch, I still get the error I predicted :
The locrepr method in utilities.jl doesn't specify needing the second argument as a
::Page, but assumes it, and tries accessing the fieldsource.