mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-97781 Improve diagnostics when Groovy compiler has wrong dependencies in the classpath (e.g. ASM)
This commit is contained in:
@@ -41,6 +41,10 @@ public class GroovyCompilerWrapper {
|
||||
private static final String LINKAGE_ERROR =
|
||||
"A groovyc error occurred while trying to load one of the classes in project dependencies, please ensure it's present. " +
|
||||
"See the message and the stack trace below for reference\n\n";
|
||||
private static final String INCOMPATIBLE_CLASS_CHANGE_ERROR =
|
||||
"A groovyc error occurred while trying to load one of the classes in project dependencies. " +
|
||||
"Please ensure its version is compatible with other jars (including Groovy ones) in the dependencies. " +
|
||||
"See the message and the stack trace below for reference\n\n";
|
||||
private final List<CompilerMessage> collector;
|
||||
private boolean forStubs;
|
||||
|
||||
@@ -74,11 +78,13 @@ public class GroovyCompilerWrapper {
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
|
||||
}
|
||||
catch (TypeNotPresentException e) {
|
||||
processException(e, LINKAGE_ERROR);
|
||||
}
|
||||
catch (IncompatibleClassChangeError e) {
|
||||
processException(e, INCOMPATIBLE_CLASS_CHANGE_ERROR);
|
||||
}
|
||||
catch (LinkageError e) {
|
||||
processException(e, LINKAGE_ERROR);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user