When you create a new ColdFusion project in CFBuilder, you end up with 3 things in your project folder:
- A .project file -- this is par for the course in Eclipse
- A .settings folder
- And a settings.xml file
During the pre-release process I voiced my opinion that this was too much meta and that they should find a way to cut back or combine where possible. That hasn't happened. In addition, I complained that the file name "settings.xml" is too generic and quite likely to be something that the average developer would want to create for their project. This, too, seems to have fallen on deaf ears.
Oh well. Maybe next time.
However, in the meantime, I've created a quick shortcut for my Mac to create a new git repository and ignore all of the CFB Project Meta files all in one step. On Snow Leopard, edit the .profile file in your account folder (/Users/[your username]/.profile) and add this line:
alias cfgit="git init;echo '.project' >> .gitignore;echo '.settings' >> .gitignore;echo 'settings.xml' >> .gitignore;echo '.gitignore' >> .gitignore;git status"
It all has to be on one line to work properly, but I'll break down each command individually here so that it's easier to read.
alias cfgit="..."
Here we're creating a bash command alias. This translates to, "When I type cfgit I want you to do [this] instead." Where [this] is what you put inside the quotation marks. You can put multiple commands here as long as you separate them with a semicolon.
echo '.project' >> .gitignore;
echo '.settings' >> .gitignore;
echo 'settings.xml' >> .gitignore;
echo '.gitignore' >> .gitignore;
Each of these appends a new line to the file .gitignore with the contents of the single-quotation marks; so in this case it's adding a new line for .project, .settings, settings.xml, and .gitignore (ignore itself). By using >> instead of >, you append to the file if it exists, or create it otherwise. If you're unaware, the .gitignore file tells the local git client which files in the folder are to be excluded from the repository.
Lastly, it runs git status to show the current status of the folder/repository; mostly just as a sanity check to make sure that everything that I want to have happened has.
Posted in
Apple |
CFBuilder |
Git
| 4 Responses
July 06 2010
Every so often, despite what might seem like obvious reasons to some of us, we still see arguments against paying for the IDE that Adobe has provided for CFML development -- ColdFusion Builder. "Why should I pay for CFB when CFEclipse is free?!" Here, I'll make a case for the minuscule ($300!) price-tag that Adobe is charging for the awesome editor that is CFB.
There are a lot of features that CFB provides that no other CFML editor currently does; and some of them are kind of subtly named. They may not sound like much by name alone, but each is a powerful and useful feature in its own right. Lots of details after the jump. You may want to freshen your drink first.
Read more →
Posted in
CFBuilder
| 14 Responses
May 24 2010
ColdFusion Builder update 1 has been released, and it provides fixes for most of the issues that have been bugging me; specifically:
- (bug) Jumping around when editing long lines with horizontal scroll
- (bug) Odd behavior with code folding
- (bug) Memory issues
- (bug) Sometimes copy & pasting resulted in a StackOverflow error
- (bug) A refactoring issue
- (bug) A bug when using SourceGear source control
- (bug) And a personal favorite: The split pane buggyness that I noticed was fixed.
You can get instructions on the proper way to handle the update here, but here are a few notes:
- Updates are managed via Adobe Updater, which checks weekly by default (can be configured to monthly in options)
- You can force it to check for updates several ways, including choosing the Help > Adobe ColdFusion Builder Updates... menu option from within CFB.
- Only the most recent install will be updated. For example, if you installed as a plugin within Eclipse and later as stand-alone, only the stand-alone install will be updated.
- If you are updating a stand-alone install, you only need to restart CFB after the update process. If updating a plugin install, you need to restart eclipse with the
-clean option.
- If you're using Windows Vista or Windows 7, make sure you run CFB/Eclipse as an administrator before starting the update process. If you don't, you won't be prevented from running the updater, but the update may not function properly.
Lastly, you'll know that the update installed correctly by the version number shown in Help > Product Details. 1.0 was version 1.0.0.271911, and Update 1 is version 1.0.0.274293.
Posted in
CFBuilder
| 2 Responses
May 20 2010
For my personal projects, I have switched entirely over to Git for version control. However, at work I still have to use Subversion so that everyone on my team can share. That is not to say that Git isn't perfectly capable of working for our team, but that the team isn't ready to make the switch.
While I am extremely curious about the prospect of using Git as my Subversion client -- something that I understand is not difficult to do -- I haven't yet worked up the nerve to try it on something as important as a work project. I can't afford for something to go wrong. So for the time being, I'm still using native SVN clients.
Recently I decided that I would give the Subversive client a try. When I first started with SVN I used Tortoise, and when I started developing with Eclipse and CFEclipse, there seemed to be (after very little research) a consensus that Subclipse was the better client; so it's what I've used for the last few years.
Myself and at least one other coworker have been using Subclipse and having some problems that we believe may be unique to Subclipse -- or at least to using Subclipse in our environment. We often have projects checked out onto a shared drive and have sometimes run into a situation where a commit can't be made from the root, or issues when selecting a few individual files in disparate directories. Suffice it to say, frustration is setting in and while the command-line works, it would be nice if IDE integration worked.
So that's why I'm trying something new. Not only is Subversive now an official part of the Eclipse project (a nice endorsement), but I've heard lots of praise for it recently. I've always wondered if I had made the right choice going with Subclipse, so now I'm aiming to find out.
Speed
My very first impression was how fast it seems to be. I haven't done direct side-by-side comparisons, but from a subjective standpoint it feels like browsing a large repository -- the Mango Blog repository, for example -- is extremely fast. Even a checkout seemed faster. And you can't complain about too much speed.
Does it work?
Of course, most importantly, is the reason that I switched: Does it work in cases where Subclipse seemed to fail us before. The answer is short and sweet: Yes! So far, I haven't run into any similar complaints about Subversive.
Shortcuts
I never knew how much I needed keyboard shortcuts for version control.
Update? Ctrl+Alt+U
Commit? Ctrl+Alt+C
Compare with latest from repository? Ctrl+Alt+L
And the list goes on. I could never switch to an Eclipse-based SVN client that didn't have these or similar keyboard shortcuts available and not experience some serious frustration.
Any complaints?
Actually, yes. I was quite surprised to find that after installing the client through the Eclipse update site, it still wasn't fully installed. It seemed like there was a framework in place for the functionality, but the first time I tried to anything with a repository, I was prompted to install a connector -- a step that (to the developer's credit) Subclipse completes during the original installation.
Now, this may not be that big of a deal, and I suppose it really isn't, but I am trying hard to use UAC in Windows 7. I have my reasons, but suffice it to say that I want my relationship with UAC in Windows 7 to work out. In order to install the plugin in the first place, I had to run CFBuilder as an administrator. Fine, did that. After the install, I was prompted to restart. Ok, that's not desirable, but fairly reasonable. Once I try to connect to a repository, I'm prompted to install a connector -- but oh wait, you can't just install it, you have to exit CFBuilder, run as an administrator, and install the connector. And then restart again, of course.
It's not the end of the world, but it was annoying enough that I thought I should mention it. And it's not CFBuilder's fault at all, this is a combination of seemingly-odd choices by the plugin developers and Windows UAC pains.
Do I recommend it?
Absolutely. Even if for the keyboard shortcuts alone. That plus added speed is a no-brainer for me. Where I can't use Git, I'll be using Subversive.
Posted in
CFBuilder |
Subversion
| 4 Responses
May 13 2010