use of com.facebook.buck.event.CompilerErrorEvent in project buck by facebook.
the class JavacStep method processGeneralBuildFailure.
private void processGeneralBuildFailure(ExecutionContext context, String firstOrderStderr) {
ImmutableSet<String> suggestions = ImmutableSet.of();
CompilerErrorEvent evt = CompilerErrorEvent.create(invokingRule, firstOrderStderr, CompilerErrorEvent.CompilerType.Java, suggestions);
context.postEvent(evt);
}
use of com.facebook.buck.event.CompilerErrorEvent in project buck by facebook.
the class JavacStep method processBuildFailureWithFailedImports.
private void processBuildFailureWithFailedImports(ExecutionContext context, String firstOrderStderr, ImmutableList.Builder<String> errorMessage) {
ImmutableSet<String> failedImports = findFailedImports(firstOrderStderr);
ImmutableSortedSet<String> suggestions = ImmutableSortedSet.copyOf(suggestBuildRules.get().suggest(failedImports));
if (!suggestions.isEmpty()) {
appendSuggestionMessage(errorMessage, failedImports, suggestions);
}
CompilerErrorEvent evt = CompilerErrorEvent.create(invokingRule, firstOrderStderr, CompilerErrorEvent.CompilerType.Java, suggestions);
context.postEvent(evt);
}
Aggregations