Skip to content

Conversation

@fingolfin
Copy link
Collaborator

First, add a `locrepr(::Document, ::Page) method. This receives higher level info and thus has an easier time getting paths right.

Next, improve that method to ensure the source path is computed correctly relative to the actual document root.

Finally, add a locrepr(::DCtx) method which ensures we get correct file paths for those as well.

Should help with some bad file paths I've seen in some cases, but also with the problem @aaruni96 has been seeing in PR #2793.

This has higher level info and thus has an easier time getting paths right.
@fingolfin fingolfin requested a review from mortenpi November 3, 2025 22:15
@fingolfin fingolfin added the Skip Changelog Allows the CHANGELOG.md check to pass without edit to the file. label Nov 3, 2025
@mortenpi
Copy link
Member

mortenpi commented Nov 4, 2025

Let's add a brief changelog maybe, since I believe this improves the error messages? Otherwise, LGTM.

@fingolfin fingolfin removed the Skip Changelog Allows the CHANGELOG.md check to pass without edit to the file. label Nov 4, 2025
@fingolfin
Copy link
Collaborator Author

OK, I folded PR #2796 into this one (as it also is about improving error messages) and added a changelog entry.

@fingolfin fingolfin merged commit c754edc into master Nov 4, 2025
28 of 30 checks passed
@fingolfin fingolfin deleted the mh/locrepr branch November 4, 2025 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants