New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A lot of false-positives and false-negative related with wrong classpath #4253
Comments
🤔 maybe this is not related with the Kotlin compiler at all but something that we did. Checking the logs I see messages like this one:
Those errors doesn't appears on 1.18.1. I think that in 1.18.1 we were able to resolve types like |
Are you able to bisect in any form? |
I think that it should doable using composite build. But I never used them. Probably we should add to our documentation a guide about how to do this. It would help a lot in this cases. Or for a new rule that you write and you want to test it in your project directly. |
Thanks for investigating! I suggest reverting that commit then pushing RC2 to see if this and #4250 are resolved. Not sure when I'll be able to properly investigate and attempt that change again, but it's clear we need a functional test to ensure correct behaviour. |
Edit: I saw RC2 but missed the date on this issue. I'm assuming it's not related I'm getting a lot of false positives for:
It seems like all of the false positives are related to either an This only started happening in 1.22.0-RC2 and does not happen in 1.22.0-RC1 |
Yes, this is a known issue of |
It seems that the Kotlin compiler between
1.5.21
and1.5.31
changed a lot. I'm updating the project where I work from1.18.1
to1.19.1-RC1
and I'm getting a lot of false-positives and false-negative in different rules. Some examples:I think that all of them are related with the type-solving and problems in the
BindingContext
that end up creating false positive and negative issues. Until now, in general, this type of problems generated false-negatives. Those are bad, but at least they don't generate noise. But with this release I'm seeing a lot of false-positives too.The text was updated successfully, but these errors were encountered: