
Flash develop 3 supports haXe projects now.
As many IDEs, FD3 has his own completion system that helps you writing code in a specified language, and for now it's haXe language case too.
Here comes a patch for FD3 that allows
haXe compiler's built-in completion.
Let's see how install it and how it works.
Download patch
Installation :
Copy the archive's 5 DLLs into the FD3's plugin directory (usually : C:\Program Files\FlashDevelop\Plugins )
Copy the archive's fdbuild.exe into the FD3's tools directory (usually : C:\Program Files\FlashDevelop\Tools )
Note : You must have
FD3 RC2 installed.
How it works :
-CTRL+Space gives you traditionnal FD3 completion (as for AS3 projects)
-after a "." or a "(" haXe compiler completion occurs and gives you exactly the same completion as
haxefd does for FD2 (except that I've added exceptions after : if, switch, for, while, function, catch and trace that displays errors in FD2 and displays nothing in FD3). Take a look
here for more informations
-If an error is displayed instead of completion, that mainly means that you have a real error somewhere in your code (the error displayed gives you the file and the line number where the error should be)
Why is it interressting to use it :
-You get the real haXe compiler completion from the haXe compiler version that you are using. It means that it's synchronized with your compiler (If you update the compiler version, you'll not have to update FD3 or FD3's haXe context...)
-It displays errors inside your code without having to compile your project (you can save some developpement time:p)
Known issues :
-sometimes after a "." or a "(" a partial member list is displayed and when you select a suggestion, it erases 2 characters before the current carret position. To solve that, you have to press CTRL+Space once and it will givbe you the complete member list and will not erase anything. It seems that it's a FD3 issue and not really linked with haXe completion. I'm sure it will be fixed as soons as possible

-after the "super(" word, haXe compiler gives us an error that should be fixed soon too. I think it will give us completion for the super class arguments.
TODO:
-Enable or disable haXe compiler completion in the project or the haXe context settings
Feature requests or bug reports :
Don't hesitate to report bugs or give your suggestions to improve it.
Thanks fly to
Nicolas and
Philippe for their help !