Search in sources :

Example 1 with CompilerErrorEvent

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);
}
Also used : CompilerErrorEvent(com.facebook.buck.event.CompilerErrorEvent)

Example 2 with CompilerErrorEvent

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);
}
Also used : CompilerErrorEvent(com.facebook.buck.event.CompilerErrorEvent)

Aggregations

CompilerErrorEvent (com.facebook.buck.event.CompilerErrorEvent)2