-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Error reporting for inlined code now depends on source code of library #6538
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
Comments
Should be fixed by #6412 |
@smarter Thanks for the pointer. I just checked, we are using the latest nightly:
|
The issue is in
where they as for a line of a position for which we do not have a source available. I see three options
The last one is the most robust and the only one that would not lose position information |
This code is actually in the sbt bridge in the dotty repo, so we can fix it: https://github.com/lampepfl/dotty/blob/2b6c757adb3bba7d3eebfa0ac2e216ba63640698/sbt-bridge/src/xsbt/DelegatingReporter.java#L89 |
Fix #6538: Make interfaces.SourcePosition resilient to missing sources
In working with ScalaTest macros, we get the following compile error, which points to path on our release machine, which crashes the compiler:
This seems to be a general problem when we report errors inside inlined code.
complete stacktrace
The text was updated successfully, but these errors were encountered: