Is there a compiler flag to suppress an error in t...
# compiler
m
Is there a compiler flag to suppress an error in the entire project? I have hundreds if not thousands of false-positive
PRE_RELEASE_CLASS
due to a bug in Kotlin 1.4.30. (It builds just fine with Gradle)
t
What about temp compiler plugin as workaround? šŸ™‚
😵 1
I can publish gradle plugin which will suppress listed warnings. Is this required?
m
@turansky would be great. For now I simply ignore all the red code šŸ˜…
t
Do you mean red code in IDEA?
m
Yes. It’s red only in IDEA and I can
@Suppress
i there.
t
IDEA plugin required šŸ˜ž
m
Why is that? The IDE uses compiler plugins too and reports the errors the compiler emits. If the compiler plugin prevents the emission then the IDE shouldn’t report the errors, right?
t
No šŸ˜ž For now IDEA ā€œcompanionā€ required
m
šŸ˜•
t
Usually they (compiler and IDEA plugins) use common codebase
AFAIK Arrow install IDEA plugin from Gradle plugin to solve this problem :)
m
😮 that’s weird
t
It works šŸ™‚
m
sounds fragile
t
I saw discussion about synchronization with compiler plugins, question is open.
In my cases I will need IDEA plugin in any case (suppressing - additional logic)