When reporting errors with `IrDiagnosticReporter` ...
# compiler
z
When reporting errors with
IrDiagnosticReporter
on declarations that originate from Java, it seems there's never a file present. Is this a bug or should we check for this and report it to
MessageCollector
instead? This is with 2.2.20-RC
d
For now you can use
MessageCollector
, but we are working on replacing all of its usages in the compiler with diagnostics reporter (KT-78277). Actually, the underlying API is ready, now it's possible to declare a diagnostic factory without source (KT-78280), but the IR API was not properly adapted yet.
z
Ah ok, yeah I was migrating everything to that now with 2.2.20 but seems like I should wait then? I’d been eyeing 78280 since it was marked as fixed for Beta2. Is there another issue for adapting the IR API?
d
There is no issue, but I'll prepare an MR today.
👍 1