Flex SDK voodoo is back

I am not able to configure the Flex SDK within Flex Builder 3 (no spaces in the path) anymore on OS-X 10.5.4. With all previous builds when configuring the Flex SDK I had to completely wipe ~/Library/Caches/IntelliJIDEA80 and re-configure through the project settings for IDEA to recognize the SDK. With 8618 no luck.

All in all I have to say that I am disappointed with the progress on the Flex support in IntelliJ. I used to be a die hard IntelliJ user during my Java developer days - now that I do full-time Flex development I thought I could carry my expectations over and use IDEA for Flex the same way I used it for Java. It is probably my fault because IDEA does not seem to be meant as a real competitor to Flex Builder - the workflow and efficiency is just too clumsy. To make me switch from Flex Builder IDEA for Flex needs:
- reliable selection of the Flex SDK (also for experimenting with different SDK builds - which are open-source
- selection of library SWCs (similar to handling jars in Java - as mentionened in another thread)
- a better compiling approach; ANT is fine for creating the final production package but for the edit/compile/debug/run cycle it is too slow and the error messages are too cryptic in the console)
- code inspection through continuous compiling (when saving a file) - double-clicking on a compiler error message in the console should jump me to the problem in source code. I think Flex Builder and FDT from PowerFlasher both cache the SDK compiler, so the startup delay is not noticable.
- of course I do not expect/need design view
IDEA has a lot of potential (editor, refactoring, source navigation etc.) to be more efficient than Flex Builder but right now the above mentioned issues are just too annoying and slow me down too much in my day to day work.

Peter

12 comments
Comment actions Permalink

Thank you for detailed feedback!
AFIR, IDEA looks for 'bin/mxml' file in Flex SDK home so it seems
something is different for MacOS + Flex Builder, will look when my
MacBook returns from repair :).
Compiling experience will be made better in next couple of builds.
Btw, swc can be selected in IDEA 8 # 8621+

Peter Jacobsen wrote:

I am not able to configure the Flex SDK within Flex Builder 3 (no spaces in the path) anymore on OS-X 10.5.4. With all previous builds when configuring the Flex SDK I had to completely wipe ~/Library/Caches/IntelliJIDEA80 and re-configure through the project settings for IDEA to recognize the SDK. With 8618 no luck.

All in all I have to say that I am disappointed with the progress on the Flex support in IntelliJ. I used to be a die hard IntelliJ user during my Java developer days - now that I do full-time Flex development I thought I could carry my expectations over and use IDEA for Flex the same way I used it for Java. It is probably my fault because IDEA does not seem to be meant as a real competitor to Flex Builder - the workflow and efficiency is just too clumsy. To make me switch from Flex Builder IDEA for Flex needs:
- reliable selection of the Flex SDK (also for experimenting with different SDK builds - which are open-source
- selection of library SWCs (similar to handling jars in Java - as mentionened in another thread)
- a better compiling approach; ANT is fine for creating the final production package but for the edit/compile/debug/run cycle it is too slow and the error messages are too cryptic in the console)
- code inspection through continuous compiling (when saving a file) - double-clicking on a compiler error message in the console should jump me to the problem in source code. I think Flex Builder and FDT from PowerFlasher both cache the SDK compiler, so the startup delay is not noticable.
- of course I do not expect/need design view
IDEA has a lot of potential (editor, refactoring, source navigation etc.) to be more efficient than Flex Builder but right now the above mentioned issues are just too annoying and slow me down too much in my day to day work.

Peter



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Using SWCs doesn't quite work for me.

For example, I'd like to use as3corelib (http://code.google.com/p/as3corelib).
So, I add the swc to my module dependencies, and import "com.adobe.utils.ArrayUtil".

However, IDEA seems to insist that any reference to ArrayUtil should be resolved to "mx.utils.ArrayUtil" (which I don't import).

0
Comment actions Permalink

On second attempt it appears to work correctly.

Now, questions and requests:

  • can I attach source to SWC? (either zipped or expanded)

  • can I attach external AsDoc to SWC? (either zipped or expanded)

  • can I use Ctrl-Q to view it?

  • can I launch external browser for it?

0
Comment actions Permalink

Do you use Flex module type or Flex facet?

Taras Tielkes wrote:

Using SWCs doesn't quite work for me.

For example, I'd like to use as3corelib (http://code.google.com/p/as3corelib).
So, I add the swc to my module dependencies, and import "com.adobe.utils.ArrayUtil".

However, IDEA seems to insist that any reference to ArrayUtil should be resolved to "mx.utils.ArrayUtil" (which I don't import).



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Hi Maxim - good to hear about the planned workflow improvements with regards to the compiling issues.

I added the Flex facet to my project and was able to configure the SDK there (IDEA scans it and loads the ActionScript indices). Now the code inspection resolves any references to the SDK. My SWCs are in ]]>/lib and are automatically detected. Unfortunately the DEBUG configuration still does not recognize the SDK - even though I use the same path as in the facet configuration. Anyway, the SDK setup (through facet and/or JDK) is too confusing - which one overrules the other/do I need to set both?

Kind Regards,
Peter

0
Comment actions Permalink

Flex module type needs Flex SDK only, in all other cases Flex facet is
needed.

Peter Jacobsen wrote:

Hi Maxim - good to hear about the planned workflow improvements with regards to the compiling issues.

I added the Flex facet to my project and was able to configure the SDK there (IDEA scans it and loads the ActionScript indices). Now the code inspection


resolves any references to the SDK. My SWCs are in ]]>/lib and are
automatically detected. Unfortunately the DEBUG configuration still does
not

recognize the SDK - even though I use the same path as in the facet
configuration. Anyway, the SDK setup (through facet and/or JDK) is too
confusing -

which one overrules the other/do I need to set both?


Kind Regards,
Peter



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

I am using 8618 on Windows and am having trouble with IDEA recognizing Flex SDK classes. Before I installed this build, I cleaned out my IDEA 8 cache and system folders. After installation I opened my project and configured the Flex SDK. When I go to my source files, all Flex SDK classes show up as errors. IDEA does recognize references to other as files within my project.

0
Comment actions Permalink

Do you have Flex modules or Flex facets?

jayj wrote:

I am using 8618 on Windows and am having trouble with IDEA recognizing Flex SDK classes. Before I installed this build, I cleaned out my IDEA 8 cache and

system folders. After installation I opened my project and configured
the Flex SDK. When I go to my source files, all Flex SDK classes show up
as errors.
IDEA does recognize references to other as files within my project.


--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Flex modules.

0
Comment actions Permalink

Flex SDK set as project or module sdk?

jayj wrote:

Flex modules.



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Project SDK. I must be missing something because I don't see a way to set it at the module level. When I select my flex module, all I see is a Sources tab.

0

Please sign in to leave a comment.