Skip to main content
Known Participant
August 31, 2010
Question

Finding errors in a Coldfusion source file at compile time

  • August 31, 2010
  • 1 reply
  • 630 views

My application is built using Coldfusion, Flex and MySQL as backend. I am using FlexBuilder 3 for editing/compiling the Flex source(MXML and Actionscript) files. For the Coldfusion(CF) source files(cfm and cfc files), I am using Coldfusion Builder to edit the source files since it is an IDE for Coldfusion so using that I can see the CF syntax highlighted and text which is commented. After, I complete editing the Coldfusion source files in Coldfusion Builder I close them in CF Builder. Then, the application is compiled using the Flex Builder, but I cannot see any syntax errors if they exist in the Coldfusion source files and I learn of the errors at run time that there is a tag nesting error.

After, I edit the Coldfusion source files I close them in CF Builder so that Flexbuilder can compile the project and there is no issue of CF source file being locked due to being open in CF builder.

1. What can I do to ensure I see the CF errors at compile time?

2. Is there a better/another method than what I am doing to work on a project which has Flex/CF source files?

Any advice would be appreciated.

Thanks

This topic has been closed for replies.

1 reply

ilssac
Inspiring
August 31, 2010

While you are 'compiling' your application since it has a FLEX front end that is compiled.  This actually does nothing with the ColdFusion files, or at least I can't imagine what it would be doing with those files.

CFML is just-in-time compiled at run time.  And I do not believe using it in a Flex builder application would change this.

What I would do in this situation is develop the back-end and front-end separately.  Build the CFML, test it with simple test cases run through direct browser requests of the CFML or some test harness CFML that executes your back-end logic and runs it through it paces.  Once that is built and tested.  Then attach the FLEX front end to it and test that.

h_c1Author
Known Participant
August 31, 2010

Thanks for the clarification.

I did know CFML is compiled at run time.Now, I know my opening the CFML in another editor will not cause any issues.

I appreciate your advice and time.