On top of the class name, it would be nice to disp...
# eap
c
On top of the class name, it would be nice to display where it was loaded from
u
cedric: could you please look at
AnalyzerWithCompilerReport.Companion.reportDiagnostics
and what is the `hasIncompatibleClassErrors`‘s value there?
in the debugger
c
Oh it’s
false
Ah found a
true
one
Can’t paste screenshot in a thread apparently
u
The
reportDiagnostics
which returns
ReportDiagnosticsResult
— is
hasIncompatibleClassErrors
true there? If yes, this means, there’s at least one other relevant diagnostic (INCOMPATIBLE_CLASS / PRE_RELEASE_CLASS), need to find out why is it not reported
c
It is being reported, but the class name is never displayed
u
I don’t see neither INCOMPATIBLE_CLASS nor PRE_RELEASE_CLASS in the K2JVMCompiler output you’ve pasted earlier
c
Yes that was the one where the error was
false
. The next one it was
true
and had that. But either way, I don’t see any code that will display the class that is out of date, isn’t that simply the problem?
u
Let me clarify. The error “Incompatible classes were found in dependencies. <…>” is not supposed to contain the name of the problematic class. This is a “master” error which is output only if there’s another error which does contain the name of the class. This other error reads: “Class XXX is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler”. I’m trying to find out now why is there no such error in the output you’ve posted, since judging by the code, there should be at least one such error
I think I might have an idea — could you please evaluate
diagnostic.isValid
on the PRE_RELEASE_CLASS diagnostic you’ve posted on a screenshot above?
My suspicion is that
diagnostic.isValid
returns false, and so the PRE_RELEASE_CLASS diagnostic is not reported, but its existence is incorrectly taken into account and then the master error is reported
c
Ah ok got it. Yes, never saw any of these previous error messages.
Ok let me see if I can make this happen again (I’ve upgraded all the classes now)