flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christofer Dutz <christofer.d...@c-ware.de>
Subject AW: Debugging Air Mobile application built with Flexmojos in IntelliJ Ultimate?
Date Thu, 07 Aug 2014 12:59:18 GMT
Hi Alexander,

I think I found the problems.
1. I initially had a flex project targeting flash ... I then chaned that successivelsy to
an air application so I guess when importing the module IntelliJ setup things and didn't notice
the changes. After changing the configuration type, I could setup debugging correctly.

2. I think IntelliJ doesn't like my latest changes to the mavenizer output. Cause I changed
the way the poms are generated. Instead of a simple list of dependencies, I now have a list
of dependencies without a version and then a dependencyManagement block defining the versions
for each of these dependencies. When importing such a pom, the compiler classpath is always
empty in IntelliJ. The main Idea was to allow to import the pom in a dependency management
section of a project. In previous versions I generated a dedicated pom for this, but I had
always disliked it. I could add the versions to the dependencies directly and have the version
defined twice, but I would like to keep it that way, if there are no real reasons. Could you
eventually make IntelliJ work with the new pom structure? (flex-sdkutils in the mavenizer-refactoring
branch)

Chris
 
________________________________________
Von: Alexander Doroshko <alexander.doroshko@jetbrains.com>
Gesendet: Donnerstag, 7. August 2014 14:34
An: users@flex.apache.org
Betreff: Re: Debugging Air Mobile application built with Flexmojos in IntelliJ Ultimate?

On 07.08.2014 15:29, Christofer Dutz wrote:
> Yeah! Thanks for that fast response :-)
>
> I think I have tracked down the problem a little more:
> If I create a flexmojos maven project that builds an Air application, I am unable to
debug this as an Air application (When building a Flash application, it works however). Whenever
I I try to create a Flash run configuration it only contains some rudimentary settings and
is unable to start ADL.
>
> I have found out however, if I go to the project settings, select "Modules" and add a
new "Flash build configuration", I am able to select "Mobile" and all the other stuff.
>
> If I now try to create a new rund/debug configuration and select that manually created
configuration, I get the expected options and ADL launches niceley.
When importing Flexmojos project for the first time IDE tries to guess
its target platform (Web, Desktop or Mobile) analyzing pom dependencies.
For example if it finds mobilecomponents.swc and airglobal.swc then it
makes the project Mobile-targeted automatically. After first import you
need to go to Project Structure | Modules | [imported module] | [build
config subnode] | all tabs and fix everything as you like. On reimport
options set manually should be preserved.
> Another thing I have noticed:
> If I select a FDK that I installed using the Flex installer, I am able to bebug my application,
if however I select the automatically detected Flexmojos FDK, I get SocketTimeoutExceptions
during startup. Am I missing anything in my mavenized FDKs (old mavenizer)?
Can't say for sure what's wrong. You may try to analyze fdb command line
(printed in Debug console). May be some jar paths there are missing or
incorrect or lead to unexistent files.

> Chris
>
> ________________________________________
> Von: Alexander Doroshko <alexander.doroshko@jetbrains.com>
> Gesendet: Donnerstag, 7. August 2014 11:46
> An: users@flex.apache.org
> Betreff: Re: Debugging Air Mobile application built with Flexmojos in IntelliJ Ultimate?
>
> I'll try to help you. Please give some details & screenshots on what you
> do / what you get / what you want, so far I'm far from understanding the
> problem. You can email me directly if you want.
>
> Alex
>
> On 07.08.2014 11:55, Christofer Dutz wrote:
>> Hi,
>>
>>
>> as I am currently working on a prototype for a mobile application in order to promote
Flex in my new company, I wanted to setup running/debugging Air applications inside IntelliJ
... Mlexmojos correctly builds the Air applications, but I seem to be unable to setup a build
configuration. IntelliJ doesn't seem to offer the same options a "normal" Air module has.
>>
>>
>> Would I have to do something in Flexmojos (configuration or are there missing parts
that I should add to Flexmojos) in order to do this?
>>
>>
>> Chris
>>
>>


Mime
View raw message