29 Replies Last post: Jan 24, 2012 4:56 PM by Alexander Doroshko  
Peter Jacobsen Novice 335 posts since
Apr 22, 2003
Currently Being Moderated

Oct 6, 2011 12:08 PM

Build configuration help

I imported my IDEA Flex project an cannot get it to compile. I basically want to use the Flex SDK flex-config.xml and override some values with my project flex-config.xml (no special Astella dialog options) but I cannot find a configuration setting for that. Tried "Load configuration file" in the compiler settings but it does not work.

What do I overlook? If this legacy behaviour were not possible, switching to Astella would be a complete blocker for me.

 

Any help?

 

Thanks and Regards,

Peter

Alexander Doroshko JetBrains 1,257 posts since
Jun 9, 2009
Currently Being Moderated
Oct 12, 2011 1:57 PM in response to: Peter Jacobsen
Re: Build configuration help

We don't want to literally use flex-config.xml from SDK for several reasons. But config file that Astella generates by default is equivalent to standard config from SDK. Support for custom config file with additional parameters will be added later.

Alexander Doroshko JetBrains 1,257 posts since
Jun 9, 2009
Currently Being Moderated
Oct 12, 2011 3:36 PM in response to: Peter Jacobsen
Re: Build configuration help

Custom configs will be supported, so just wait for some time.

Do you also patch standard flex-config.xml from SDK? One of the reasons why we won't use config from SDK is library path. Astella allows to configure whether your build configuration is pure AS or not, whether you use Spark, MX or both, whether famework is merged, external or RSL. Configuration from standard flex-config.xml doesn't work for all these cases.

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 12:46 PM in response to: Alexander Doroshko
Re: Build configuration help

Dear team,

 

why am I getting this error in side my perfectly valid services-config.xml file included with my coldfusion installation?

 

[ComplaintsSystem (ComplaintsSystem)] unexpected element 'services-config', expected 'flex-config'

Alexander Doroshko JetBrains 1,257 posts since
Jun 9, 2009
Currently Being Moderated
Jan 24, 2012 12:53 PM in response to: future systemz
Re: Build configuration help

Looks like you have configured services-config.xml as an additional compiler config file. In fact it is not a compiler config file, it doesn't contain compiler options. It is a  Data Services config file. So its place is in the table at Compiler Options tab, there look for Server Technology node and Data Services config file subnode.

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 1:12 PM in response to: Alexander Doroshko
Re: Build configuration help

it wouldn't allow me to stick it in the additional compiler options as -services, but ok thx for the help

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 1:14 PM in response to: future systemz
Re: Build configuration help

an any case, all the other options are greyed out

Alexander Doroshko JetBrains 1,257 posts since
Jun 9, 2009
Currently Being Moderated
Jan 24, 2012 1:25 PM in response to: future systemz
Re: Build configuration help
> all the other options are greyed out

See legend at the right to understand colors.

it wouldn't allow me to stick it in the additional compiler options as -services

Why? This should work in the same way as Data Services config file set in the table.

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 2:07 PM in response to: Alexander Doroshko
Re: Build configuration help

Thanks Alex, where do I set these global options?

Alexander Doroshko JetBrains 1,257 posts since
Jun 9, 2009
Currently Being Moderated
Jan 24, 2012 2:09 PM in response to: future systemz
Re: Build configuration help

They are so global, that you can't set them manually . Isn't project or module defaults enough for you?

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 2:52 PM in response to: future systemz
Re: Build configuration help

additional compiler options:

 

-locale en_US -services 'X:\ColdFusion9\wwwroot\WEB-INF\flex\services-config.xml'

 

error

 

[ComplaintsSystem (ComplaintsSystem)] command line: unable to open ''X:\ColdFusion9\wwwroot\WEB-INF\flex\services-config.xml''

 

Alexander Doroshko JetBrains 1,257 posts since
Jun 9, 2009
Currently Being Moderated
Jan 24, 2012 3:21 PM in response to: future systemz
Re: Build configuration help

Try -locale=en_US -services=X:\ColdFusion9\wwwroot\WEB-INF\flex\services-config.xml

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 3:26 PM in response to: Alexander Doroshko
Re: Build configuration help

Cool, now I get:

 

[ComplaintsSystem (ComplaintsSystem)] flex.messaging.config.ConfigurationException: The services configuration includes a channel-definition 'java-polling-amf' that has an endpoint with a context.root token but a context root has not been defined. Please specify a context-root compiler argument.

Alexander Doroshko JetBrains 1,257 posts since
Jun 9, 2009
Currently Being Moderated
Jan 24, 2012 3:28 PM in response to: future systemz
Re: Build configuration help

That's correct. What is your question?

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 3:31 PM in response to: future systemz
Re: Build configuration help

cool this fixed it, im so used to using fb4.6

 

-locale en_US -services X:\ColdFusion9\wwwroot\WEB-INF\flex\services-config.xml -context-root ''

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 3:35 PM in response to: future systemz
Re: Build configuration help

how can I put an empty string in here as the context root, '' appears in my web calls: 'http://serverr/''/flex2gateway/''

Alexander Doroshko JetBrains 1,257 posts since
Jun 9, 2009
Currently Being Moderated
Jan 24, 2012 3:41 PM in response to: future systemz
Re: Build configuration help

Try double quotes.

Also you can set both context root and DS config file as I mentioned above, under Server Technology node. To set empty value there you'll need to set some non-empty value first and make it empty afterwards, the option will remain bold in this case (this usability issue will be fixed, empty context root will be used automatically as soon as DS coinfig file is specified).

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 3:44 PM in response to: Alexander Doroshko
Re: Build configuration help

I feel like giving up with this and going back to FB 4.6

 

things like the design view dont work,complains about remote object not having default property, and things like outerDocument flag up red as unresolved type, reminds me of the troubles I had with IDEA ages ago that I thought might have been fixed by now.

 

<s:Image source="assets/18edit.png" useHandCursor="true" buttonMode="true" toolTip="Edit complaint" >
            <s:click>
                <![CDATA[
                outerDocument.

Alexander Doroshko JetBrains 1,257 posts since
Jun 9, 2009
Currently Being Moderated
Jan 24, 2012 4:12 PM in response to: future systemz
Re: Build configuration help

UI designer doesn't work currently with flex SDK 4.6. Will be fixed before release.

 

FB doesn't have live errors highlighting, so it is impossible to compare.

But outerDocument is highlighted correctly for me. If <s:Image/> tag is inside <fx:Component/> then outerDocument is green. If not - it is red because such code doesn't compile. Can you please give full code sample that is highlighted incorrectly for you?

 

By the way early access program (EAP) is done exactly for the purpose of collecting feedback on bugs and usability issues from our users. Without your feedback chances to overlook some bugs grow bigger. So please don't hesitate to paste incorrectly highlighted code to the forum or (better) issue tracker.

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 4:21 PM in response to: Alexander Doroshko
Re: Build configuration help

opps sorry, it was my bad the OD code was non inside an inline component but a sererate mxml file

 

In fb all non as3 and mxml files in src dir are automatically transfered to the output dir on saving, this was handy for .cfc and .cfm files as it saved me manually copying them or writing ant files,

 

there appears not to be a similar option in Astelli, not essential but would be cool for lazy coders like me

Alexander Doroshko JetBrains 1,257 posts since
Jun 9, 2009
Currently Being Moderated
Jan 24, 2012 4:27 PM in response to: future systemz
Re: Build configuration help

Go to File | Settings | Compiler, and add ?*.cfc and ?*.cfm patterns to the Resource patterns field.

Note: this is IDEA-style resource management, and it will work only if you use standard output folder, i.e. [project folder]/out/production/[module name]. We plan to make more convenient resource management before release.

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 4:26 PM in response to: Alexander Doroshko
Re: Build configuration help

wow, it appears my rant was unjustified

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 4:27 PM in response to: future systemz
Re: Build configuration help

Can you reccomend a xml editor that would semi work with cfm files?

Alexander Doroshko JetBrains 1,257 posts since
Jun 9, 2009
Currently Being Moderated
Jan 24, 2012 4:30 PM in response to: future systemz
Re: Build configuration help

To be able to edit cfm file as a usual xml file please add cfm extension to XML file type at Settings | File Types. For more advanced CF support you can use IntelliJ IDEA.

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 4:49 PM in response to: Alexander Doroshko
Re: Build configuration help

1st class support

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 4:54 PM in response to: future systemz
Re: Build configuration help

btw im using sdk 4.5.1

Alexander Doroshko JetBrains 1,257 posts since
Jun 9, 2009
Currently Being Moderated
Jan 24, 2012 4:56 PM in response to: future systemz
Re: Build configuration help

Then please give details which MXML file failed to be shown in UI designer and what the error looks like. Better in issue tracker.

future systemz Newbie 50 posts since
Aug 17, 2011
Currently Being Moderated
Jan 24, 2012 4:55 PM in response to: Alexander Doroshko
Re: Build configuration help

hmm that is a bit of a bummer :

 

[project folder]/out/production/[module name]. We plan to make more convenient resource management before release.

More Like This

  • Retrieving data ...