Skip to content
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

Display error messages based on the transformed positions when source mapping is perfomed #1082

Merged

Conversation

tototoshi
Copy link
Contributor

This commit is to improve Twirl's error message with Scala3.
playframework/twirl#498

As I commented here, I think it is better to solve this problem on sbt's side, instead of letting Dotty use sourcePositionMappers.

This pull request makes sbt ignore Problem#rendered passed from the compiler if source mapping is actually performed.
Sbt will display the error message based on the Position transformed by source mapping.
When the source mapping is not performed, the message in Problem#rendered is displayed as before.

This commit is to improve Twirl's error message with Scala3.
playframework/twirl#498

This pull request makes sbt ignore `Problem#rendered` passed from the compiler  if source mapping is actually performed.
Sbt will display the error message based on the `Position` transformed by source mapping.
When the source mapping is not performed, the message in `Problem#rendered` is displayed as before.
@eed3si9n eed3si9n merged commit 1120174 into sbt:develop Apr 9, 2022
@tototoshi tototoshi deleted the disable-rendered-field-for-sourcemapper branch April 11, 2022 14:06
@mkurz mkurz mentioned this pull request Jul 11, 2022
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.

None yet

2 participants