Provide correct type names for unresolved types instead of error.UnresolvedCla$$
#24
Closed
2 of 3 tasks
Labels
backend:kapt
Related to KAPT backend
backend:ksp
Related to KSP backend
enhancement
New feature or request
Milestone
Currently Yatagan yields fake
error.UnresolvedCla$$
stub name for every unresolved type. This is the case for both KSP and KAPT.This is the uniformized behavior introduced because:
<ERROR TYPE>
string can be obtainedcorrectErrorTypes
option to be set, otherwise it provideserror.NonExistentClass
.So, Yatagan detects those cases and provides
error.UnresolvedCla$$
for every backend.But this is really not an acceptable behavior, as sometimes there's no way to identify what types are actually missing/unresolved, if they are not used in hand-written code though are missing from the compilation classpath (typically when users use
implementation
instead ofapi
in Gradle).So there's actually several problems here:
error.UnresolvedCla$$
and with no info on what those types actually are and from where they are referenced from.In order to support error type names in KSP, the google/ksp#1232 needs to be resolved first.
Support from the KAPT backend can be added already, but there's no way to test this, as
correctErrorTypes
option is inaccessible inroom-compile-testing
, so the issue https://issuetracker.google.com/u/2/issues/248552462 has to be resolved for that.Yatagan error types detection can (and should) be implemented now, nothing blocks it.
The text was updated successfully, but these errors were encountered: