Compound Theory

v2.0

Categories

  1. Transfer
  2. ColdFusion
  3. JRuby
  4. Java
  5. ColdSpring
  6. Squabble
  7. JavaLoader
  8. ColdDoc
  9. 2ddu
  10. AsyncHTTP
  11. OO Analysis and Design
  12. Flex
  13. Railo
  14. XML / XSL
  15. Hibernate
  16. ColdFusion Builder
  17. Fall
  18. Ubuntu
  19. XHTML / CSS
  20. Eclipse
  21. Git
  22. Oracle Database
  23. Usability / UI Design
  24. webDU
  25. cf.Objective()
  26. LWJGL
  27. cf.Objective(ANZ)
  28. Captcha
  29. MAX
  30. Melbourne CFUG
  31. Martial Arts
  32. Random Things
  33. Conduit

Recent Posts

Projects

Recent Comments

10 April 2011 08:22 AM 1 Comment

Tip for ColdFusion Builder - Adding a New Server via RDS

Something I (somehow) worked out a while ago for adding a new ColdFusion server in ColdFusion builder, that I'm not sure is widely known.

Adding a new server to ColdFusion Builder can be a bit of a pain, as you have to remember / work out a stack of details about the server, and make sure you get it 100% correct when enterting the details into all the boxes.  This can be even more complicated if you have a JEE install of ColdFusion, and/or are working with remote servers.

There is actually an easier way baked into Builder already!

  1. Go to Windows > Preferences > RDS Configuration (or through any one of the RDS views) and create a RDS connection to the server in question.
  2. Go to the Server View, and click 'Add a Server'. This will now give you the option of importing from an RDS connection. Do that.
  3. You should now have all the fields of the Server pre-populated for you, for a connection.
  4. Add in any extra configuration you like from here - virtual hosts, folders mappings etc.
  5. You are now done.
Isn't that easier?
08 September 2010 06:50 AM 9 Comments

Trying the CFML Plug-in on IntelliJ

For a long time I’ve been meaning to try out the the IntelliJ CFML plug-in for two reasons. One of which, I’ve always heard really good things about the IntelliJ platform for editing Java, Groovy and Flex, and also because as a Linux based ColdFusion developer, my CFML IDE options are limited.

So I decided I was going to get some work done on JavaLoader, to move it into a 1.0 Final, and I was going to do it all in IntelliJ with the CFML plugin, and use that as a way of seeing how the CFML plugin was going.

Installation
Installation was the biggest hurdle for me, as I ran into a lot of issues getting the plug-in installed and running.

From what I could see, IntelliJ makes no mention that you need to set a JDK_HOME variable in your environment. Except when you first run it and get an error message. Once that was done however, it fired up with no problems at all.

For whatever reason, after running IntelliJ, the CFML plug-in didn’t show up in the plug-in list.  If it had, I’m sure things may have gone a lot smoother for me.

I then browsed to the plugin page, to download the plug-in manually.  Two things went wrong at this point.
  1. As far as I could see, IntelliJ does not describe anywhere how to install a plug-in manually. This is the only documentation I could find on installing a plug-in, and it was via the plug-in manager (see above), so it was not very helpful. It is very simple, you just unzip it and put it in the /plugins folder.
  2. I downloaded the wrong plug-in for my version on IntelliJ. I downloaded 9.03 Ultimate edition, or if you look in the build.txt file that comes with IntelliJ, that’s Build IU-95.429.  Unbeknownst to me it’s that build number that is used on the plug-in download page (See Since build and Until build ) that define what a plug-in is compatible with. Honestly I am confused as to why they don’t just use the IntelliJ product number, but maybe there is a good reason.
(Apparently this has since been fixed, and you can now install from the plug-in manager again)

Appearance
My first thought when opening IntelliJ was “Wow, this is ugly”. I’m used to working in Eclipse, and the Linux build of Eclipse takes the Ubuntu theme that is currently set very nicely. So much so that people at conferences often ask me how I get my Eclipse to look the way it does.  In IntelliJ, the text wasn’t even anti-aliased.

I quickly found an Appearance setting, and switch the theme over to GTK+, which I expect made IntelliJ use Ubuntu native GTK rendering engine, and suddenly IntelliJ matched my Ubuntu theme, and was much more pleasant to look at.  Eclipse still looks more polished, but maybe that’s just because I’m used to it.

Documentation
This is where things fall down, unfortunately rather hard.  The only documentation for the CFML plug-in is a blog that can be found here and a google group .  This project is in desperate need of a website/wiki/Google doc/anything that has some sort of structure. Skipping through blog posts and searching the google group in an attempt to find that one piece of knowledge you need is frustrating, to say the least.

Creating a Project
I go to create a project, and... there is no ColdFusion Project. Uh oh.  Fire off an email to the group and ask “What do I do now?”. (Update, I just got told to create a Java project. Weird, but it works).

In the mean time, I switch tacks, and import an existing Eclipse Project.  IntelliJ asks me for a JDK, but is happy enough when I skip over it, figuring I wouldn’t need one for a CFML project.  That worked quite well, and I’m now on my way to editing ColdFusion.

Editing Files
Code completion for variables and functions inside a CFM and/or CFC is one of the biggest priorities for me, and in the plug-in, I have to say, this feature works very well.

That being said, one thing that is missing for variable completion for me, is completion for variables such as arguments , application , server , CGI , etc, for which there are already bugs for.  That and CFC resolution is missing, which Builder does for things like createObject() etc, (somewhat).

Interestingly enough there is no “New CFM” or “New CFC”, there is only “New File”, which I didn’t find myself missing, except for when creating CFCs.  The new CFC dialogue in builder is great, and if you’ve ever worked with interfaces, having Builder generate the method stubs for you is pretty cool as well.

Overall, the responsiveness is very snappy, and code completion comes up almost instantly, which is very nice. I prefer the function hinting in IntelliJ to Builder, as it give you the hint per parameter as you are inside the method, where as Builder only tends to give you the tooltip when you first write the method.

While I didn’t get to play with it, there is also support for code completion of Java objects , including when being used with JavaLoader , which is not something ColdFusion Builder can do.

Live Templates
This is more of a IntelliJ thing, but Live Templates blow CF Builder/Eclipse Snippets out of the water. Wow.  I love being able to define a $FOO$ variable in my snippet and declaring that $FOO$ variable to complete(). IntelliJ then intelligently provides all the code completion that would normally show up if I hit ctrl+space at that point. I think I’m only just scratching the surface of what is possible with Live Templates, but this feature is fantastic.

Learning Curve
IntelliJ does some things differently to Eclipse, which takes a little while to get used to.  That being said, you can switch the keyboard commands to Eclipse style with a menu change (I did some extra tweaking above and beyond that), so that is nice.

Price

The CFML plug-in only works on the commercial version of Intellij. Licences for personal use carries a price tag that is fairly similar to ColdFusion Builder. Corporate licences cost a fair amount more.  For the functionality provided by the CFML plug-in at this stage , I would recommend that if you are on Mac/Win, stick with Builder. You will get more bang for your buck.  If you are on Linux, and refuse to move OS’s (like I am), IntelliJ is well worth an evaluation, as the price tag is very reasonable, and if you are looking to do Groovy, Flex or Java work, IntelliJ already has that functionality bundled in.

Overall
I have to say, once I got over the initial hurdles of installation, and documentation, and became more comfortable with IntelliJ as a whole, it because a really nice IDE to work in.  There are plenty of rough spots around the edges, but I think with a few more revisions, this plug-in could easily be a decent contender for ColdFusion Builder (especially if it gets a debugger).

If you are looking to purchase an IDE, I would still say stick with ColdFusion Builder for now if you are on Mac/Windows, but if you are on Linux, and don’t want to move, IntelliJ looks like a dark horse to watch in the ColdFusion IDE space.

Learning More
If this has piqued your interest, the best place to really learn about this plug-in is the google group, so sign up there. The blog is also good for information about new releases and what new features are available.

18 December 2009 09:56 AM 8 Comments

ColdFusion Builder Beta 3 on Linux

ColdFusion Builder 3 is up on Labs , and available for download, so it's now time to update my scripts for getting it up and running on Linux.

The procedure is as following:
  1. Download the intermediate build *for MAC* (very important! The Windows Adobe Licensing will prevent you from using the Windows version any more, as it uses .dll files, and those don’t work on Linux, but the Mac version works on Linux!)
  2. Download coldfusion_builder_b3.zip .
  3. Unzip coldfusion_builder_b3.zip into a directory
  4. Unzip coldfusionbuilder_b3_install_mac_121709.zip
  5. Unzip /cfbuilder_install.app/Contents/Resources/cfbuilder_install.app/Contents/Resources/Java/Disk1/InstData/Resource1.zip (may be easier to do that into another folder)
  6. From the unzipping of Resource1.zip grab /Z_/dist/_macos_87b1877cbdff_zg_ia_sf.jar and put it in the same folder as where you unzipped coldfusion_builder_b3.zip
  7. Run ’./Rip.py’ from the folder you unzipped it to.
  8. You should now have a ’plugins’ and ’features’ folder with just the bits you need to install into Eclipse.
  9. Enjoy CF Builder in Linux :D

Enjoy!
21 October 2009 05:54 PM 8 Comments

ColdFusion Builder Beta 2 on Linux

For those of you who have been running ColdFusion Builder on Linux, you may have noticed that the installer structure has changed since the last public beta, which means that my previous instructions will no longer work.

This means we have to jump through some different hoops to get things to work this time around.

The steps are now the following:

As new versions of ColdFusion Builder become public, I will attempt to keep this script up to date.

 

Installing ColdFusion Builder Beta on Linux

UPDATE (21 October 2009): This will no longer work with Beta 2 of ColdFusion builder. If you are looking for a more up to date technique for installing ColdFusion Builder on Linux, please see this post .



So I’ve managed to hack my way to getting Bolt installed on Linux, and it wasn’t quite as painful as I thought it was going to be.  It is essentially a pure plug-in install, but we have to jump though a few hoops to get the plug-in itself.

I would suggest starting with a clean installation of Eclipse 3.4.2, with a clean workspace, just to make sure there are no major issues.

Here are the steps you need to reproduce:

So far, there is only 1 annoying bug I’ve found. 

When using CTRL+J to insert a snippet, it inserts perfectly, however, I find I have to click outside of Eclipse, and then back into Eclipse with my mouse before I can edit again (very weird, I know).  It's annoying, but I can work around it.

Hopefully we can provide enough free testing for ColdFusion Beta on Linux, and prove we have a large enough user base, that we can get supported on Linux.

Make sure any bugs you run into are reported to the ColdFusion Builder Bug Tracker page, so that Adobe is aware of them.