mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
display groovyc version mismatch message more prominently (IDEA-96332)
This commit is contained in:
@@ -86,7 +86,11 @@ public class GroovyCompilerWrapper {
|
||||
processException(e, INCOMPATIBLE_CLASS_CHANGE_ERROR);
|
||||
}
|
||||
catch (LinkageError e) {
|
||||
processException(e, LINKAGE_ERROR);
|
||||
if (e.getCause() instanceof GroovyRuntimeException) {
|
||||
processException(e, getExceptionMessage((GroovyRuntimeException)e.getCause()));
|
||||
} else {
|
||||
processException(e, LINKAGE_ERROR);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
addWarnings(unit.getErrorCollector());
|
||||
@@ -207,6 +211,9 @@ public class GroovyCompilerWrapper {
|
||||
|
||||
final StringWriter writer = new StringWriter();
|
||||
writer.append(prefix);
|
||||
if (!prefix.endsWith("\n")) {
|
||||
writer.append("\n\n");
|
||||
}
|
||||
//noinspection IOResourceOpenedButNotSafelyClosed
|
||||
exception.printStackTrace(new PrintWriter(writer));
|
||||
collector.add(new CompilerMessage(forStubs ? GroovyCompilerMessageCategories.INFORMATION : GroovyCompilerMessageCategories.ERROR, writer.toString(), null, -1, -1));
|
||||
|
||||
Reference in New Issue
Block a user