-
Notifications
You must be signed in to change notification settings - Fork 121
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
[1.x] Emit SourceInfos
when incremental compilation fails
#1306
Conversation
internal/compiler-interface/src/main/java/xsbti/AnalysisCallback.java
Outdated
Show resolved
Hide resolved
SourceInfos
when incremental compilation failsSourceInfos
when incremental compilation fails
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.
Thanks a lot!
Here are some small suggestions but apart from that it looks good to me.
internal/zinc-core/src/main/scala/sbt/internal/inc/Incremental.scala
Outdated
Show resolved
Hide resolved
7884509
to
fa99c37
Compare
@adpi2 Reopened this PR and added a unit test. @eed3si9n c.c. #932 (comment) for reason for revisiting this PR. I am thinking if this can be merged along with #1309 as both involves adding |
LGTM. could you squash the commits and add problem and solution descriptions in the commit message plz? |
SourceInfos
when incremental compilation failsSourceInfos
when incremental compilation fails
1f2495e
to
ee301d5
Compare
Zinc does not provide a way to surface list of all problems present in a codebase. This PR builds SourceInfos in Analysis Callback and in `handleErrors`, the compiler bridge then throws an exception containing the SourceInfos so build tools like sbt can access the informations. Closes sbt#932
ee301d5
to
2855609
Compare
@eed3si9n Squashed! |
This PR implements #932 via building
SourceInfos
from analysis callback and pass them tohandleErrors
inCompilerBridge.scala
.c.c. @adpi2