Skip to content

Commit ddcc53d

Browse files
committed
fix
1 parent 0f07a5f commit ddcc53d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

sbt-bridge/src/xsbt/CompilerInterface.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ public CachedCompiler newCompiler(String[] options, Output output, Logger initia
2222
if(isClassLoaderValid()) {
2323
return new CachedCompilerImpl(options, output);
2424
} else {
25-
initialLog.warn(() -> "The compiler class loader is badly configured.");
25+
initialLog.warn(() ->
26+
"The compiler class loader is badly configured.\n" +
27+
"Consider using a more recent version of your build tool:\n" +
28+
" - sbt >= 1.4.0\n" +
29+
" - Mill >= 0.9.3-21-002361\n" +
30+
" - Bloop >= 1.4.6-23-20a501bc"
31+
);
2632
// To workaround the wrong class loader, we construct our own and run
2733
// the following code with it:
2834
// new CachedCompilerImpl(options, output)
@@ -37,7 +43,7 @@ public CachedCompiler newCompiler(String[] options, Output output, Logger initia
3743
}
3844
}
3945

40-
private Boolean isClassLoaderValid() {
46+
private boolean isClassLoaderValid() {
4147
// Check that the `xsbti.*` classes are loaded from the same class loader in the compiler and the bridge
4248
ClassLoader compilerClassLoader = Main.class.getClassLoader();
4349
Class<Logger> clazz = Logger.class;

0 commit comments

Comments
 (0)