Is it possible to setup Intellij to display compile errors from the Flash IDE?

FlashBuilder can do this. Is it possible to link Intellij with a .fla file that get compiled by the Flash IDE?

7 comments
Comment actions Permalink

Can you share a link to this feature description/usage example/tutorial?

0
Comment actions Permalink

We are no longer using Intellij because of it's module structure where everything gets compiled instead of only imports. If you are still interested in viewing this feature let me know and I'll post it.

0
Comment actions Permalink

Sorry, what do you mean by "everything gets compiled instead of only imports"? We are thinking about more convenient project structure, so your feedback would be very much appreciated. But I'm afraid I haven't got the problem.

And yes, we are interested in your original feature request.

0
Comment actions Permalink

http://devnet.jetbrains.net/thread/312144?tstart=0
http://devnet.jetbrains.net/thread/312145?tstart=0

Our 2 main problems are the above (only in Java I think, I don't think Flex tries to compile everything, actually the issue is probably present in Flex as well, but I honeslty didn't bother a whole lot with it. I'm not sure how Flex modules depending on other modules work because compiling 1 module generated a seperate swf for each module)

If you take a minute to think about what I'm saying you'll understand but I'll elaborate here anyway.

Most of my code is structured like this (iso stands for isometric)

iso_farmstory/src app.game.iso
iso_citystory/src app.game.iso
shared/src/shared.game.iso (shared among isometric games), shared.server (shared among all applications), shared.game (shared among games)

97% of the code is in shared. For example, our shared.game.iso.SIsoWorld class is extended by app.game.iso.IsoWorld to implement particular differences in each game. The reasons why it doesn't make sense to split the shared package is because:

it's a hassle and works dandy in eclipse
there is constant development on the entire shared folder and a lot of refactoring/class movement

The main problem and solution (allow multiple uses of the same source folder) is that Intellij gives you an error if you try to use the same source folder across multiple modules. So the attempted solution was to create a shared module and so the above 2 issues arose.

The Maven issue is a little crazy too if doing that doens't work as it seems like it would be a common workflow.

The features of this thread is simple. In FlashDevelop, you can hit compile, it'll switch focus to the opened Flash IDE, compile the currently focused fla, grab any errors and display them in FlashDevelop errors panel where they can be clicked so you have the convenience of jumping to where the errors are. It's not that big of a deal I suppose if you don't write code with compile errors lol! I have to double check if Flash Builder does the same thing but I'm pretty sure it does.

I really hope you guys fix these because Intellij provides significant value over FDT or Flash Builder.

0
Comment actions Permalink

Full compilation of shared module is performed only once, after that compilation is incremental, only changed and dependent classes are compiled. I believe this should not cause performance problem.

As for compilation of fla files - looks like http://youtrack.jetbrains.net/issue/IDEA-69059. Please vote/comment this request.

0
Comment actions Permalink

Hehe so I guess we can get it working, we just have to write an app that pretends to use the entire shared module.

What about adding a module to a maven module? When adding a module as a dependency to a maven module, the IDE does not recognize any imports from the dependency module.

http://devnet.jetbrains.net/thread/312145?tstart=0

0
Comment actions Permalink

When you import multimodular maven projects IDEA sets module-on-module dependencies automatically according to maven model.
Looks like you have imported 2 separate independent modules. So you can add module-on-module dependency manually at File | Project Structure | Modules | <dependent module> | Dependencies tab.

0

Please sign in to leave a comment.