Conditional compilation actionscript and annotator inspection errors
Hello,
I have a Flex project in which I am using conditional compiler directive to build several versions of the software.
When I run an inpsection on a source file I still get a lot of warnings, about code that is not relevant due to the conditional compiler directive. I have included the directive in "Project Structure -> Modules -> Compiler Options -> Conditional compiler definitions" and set it to false. Stil the inspection is inspecting code that is not relevant. Specifically errors messages from "Annotator Inspection".
This is IntelliJ 2016.3.5
Is there a way to get rid of the warnings/errors? If the answer is: disable Annotator Inspection, can you tell me what I am missing out after that? Is it save to disable that inspection?
Thanks a lot. IntelliJ is great!!
请先登录再写评论。
Unfortunately, IntelliJ IDEA doesn't respect the values of the conditional compiler directives while highlighting the source code.
Disabling Annotator will disable almost all highlighting for all ActionScript code.
Sorry, no reasonable workaround.