IntelliJ started to mark two of my imports unused....
# intellij
t
IntelliJ started to mark two of my imports unused. Is this a known bug or should I open a ticket? IntelliJ IDEA 2024.2 (Ultimate Edition) K2 enabled
s
Assuming `AuthTests`'s package is not the same as the imports? If they're in the same package, you wouldn't need the imports.
r
ummm , maybe because its a reference within the context of transaction .
s
I guess you probably tried removing the imports to see if that builds? If it doesn't, then this definitely sounds like a bug.
t
AuthTest and PrincipalTable are in different packages, actually, in different projects. If I remove the import I get a compilation error (which is correct):
Also, other imports from the project where PrincipalTable is are fine, only the ones where I use the
plusAssign
operator on an object have this behaviour.
Actually, if I add a
println(PrincipalTable)
the import turns to used and the warning goes away, so I think it is the
plusAssign
on an object.
s
Yeah, that does sound like a bug, then.
a
cc @Roman Golyshev
thank you color 1
r
Hey! This looks like a bug for sure, thanks for reporting it! I have indeed reproduced it locally in IDEA 2024.2
However, it is already fixed in the Nightly builds, and in 2024.3 it will work correctly:
🙌 1
But I have noticed that we have a problem resolving
ClientTransaction
in this piece of code even in Nightly So thanks again for reporting this; I will create an issue for that 👌
thank you color 1
Here is the issue: KT-70794