-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Use source file mapping for all compilation providers #46585
Use source file mapping for all compilation providers #46585
Conversation
Thanks for your pull request! Your pull request does not follow our editorial rules. Could you have a look?
This message is automatically generated by a bot. |
6fba0b9
to
afa4345
Compare
This comment has been minimized.
This comment has been minimized.
cc92dcc
to
cb21c07
Compare
This comment has been minimized.
This comment has been minimized.
All compilation providers should be setting the source file attribute for use in debugging, there is no need to limit this to Java. This should allow for deletions of Kotlin classes to be handled correctly.
cb21c07
to
c61a3e2
Compare
Status for workflow
|
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.
Makes perfect sense, thanks!
Any chance we could get this backported? Not sure what the procedure is these days. |
If you just want it in 3.19, I added the backport label and will include it in the next 3.19. |
final StringBuilder sourceRelativeDir = new StringBuilder(); | ||
sourceRelativeDir.append(classesDir.relativize(classFilePath.getParent())); | ||
sourceRelativeDir.append(File.separator); | ||
sourceRelativeDir.append(sourceFile); |
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.
It was preexisting but is there a reason why we are using a StringBuilder
here and not the Path
API given we already have Path
s?
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.
I don't think so, I just moved the code, I didn't really look at it.
Thanks! |
All compilation providers should be setting the source file attribute for use in debugging, there is no need to limit this to Java. This should allow for deletions of Kotlin classes to be handled correctly.