George Kurelic
George Kurelic

Reputation: 105

IntelliJ: All Haxe compile conditionals treated as false

I posted this on the InjelliJ Haxe plugin's git issues already, but I'm not sure if this is an actual bug or if I'm supposed to do something so the editor... knows the values or something

in the below example debug is true, and the same thing happens to #if flash or any other #if, meanwhile every #if !foo has active syntax coloring.

https://i.sstatic.net/jbkCa.png (I don't have permission to post images yet)

Upvotes: 2

Views: 124

Answers (1)

matanube
matanube

Reputation: 437

You can edit the active compiler flags by editing the "Project Macros" found under:

  • File -> Project Structure
  • Project Settings -> Modules -> your-haxe-mod-name
  • Haxe Tab -> Edit Button next to Project Macros

enter image description here

The defines also show up in the .idea/haxe.xml.

Upvotes: 4

Related Questions