Skip to content

Properly offset line numbers in runtime stack traces #5504

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
merged 8 commits into from
Jul 10, 2025

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Jul 10, 2025

Fixes #5502, taking the same bytecode-mangling approach as Ammonite and Scala-CLI, but with some additional heuristics to try and resolve class file names back to their original source files

Covered with an integration test that throws exceptions in various build.mill, package.mill, and helper *.mill files to check that their line numbers are all correct

@lihaoyi lihaoyi merged commit 8bccc84 into com-lihaoyi:main Jul 10, 2025
40 checks passed
@lefou lefou added this to the 1.0.1 milestone Jul 11, 2025
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.

Line numbers in package.mill task body are off
2 participants