Enabling Line Numbers In CFEclipse 1.3.1.6 (On Eclipse Ganymede 3.4)

I've been stumbling upon this bug for a while now, and keep having to remember how to fix it. Tired of googling it every time (and it's never in the top results), I thought I'd write a short entry on how to enable line numbers when there doesn't seem to be an option for it in CFEclipse 1.3.1.6.

There's actually a bug filed over at the CFElipse tracker, so I'm guessing this will be resolved in the next release. In the meantime, here is the fix I found towards the middle of this Google Groups discussion.

Navigate to your Eclipse workspace on your file system. From there, open .metadata, .plugins, .org.eclipse.core.runtime and .settings. Edit the org.cfeclipse.cfml.prefs with notepad and add this line:

lineNumberRuler=true

Close the file and restart Eclipse. Your line numbers should now show in your gutter. Enjoy!

TweetBacks
There are no TweetBacks for this entry.
Comments
Jose's Gravatar Hi,
I am new to cfeclipse.
I saw the same instructions in the cfeclipse wiki but I don't seem to find where that file is, my workspace folder is empty (created in my documents folder) I am running cfeclipse 1.3.2beta on eclipse 3.4 in a mac.
Please help!

Thanks
# Posted By Jose | 8/6/08 11:12 PM
Francois Levesque's Gravatar Hi Jose,

I don't own a Mac, so I'm sort of shooting blind here. From what I was able to find on the net, the .metadata folder seems to be hidden by default in Finder.

Here's a site I found that details how to turn the display of hidden files/folders in Mac on and off: http://www.osxfaq.com/dailytips/02-2005/02-01.ws.

hth
# Posted By Francois Levesque | 8/7/08 6:30 AM
Michael's Gravatar Hello,

I am runing Eclipse 3.4.0 and CFEclipse 1.3.1.5, and I don't see the org.cfeclipse.cfml.prefs file in the .settings directory as above.

Any suggestions?
# Posted By Michael | 8/11/08 11:36 AM
Francois Levesque's Gravatar @Michael,

Are you sure you're looking in your default workspace?

Worst case scenario I'd try uninstalling the CFEclipse plug-in and re-installing it.

hth
# Posted By Francois Levesque | 8/11/08 1:22 PM
Michael's Gravatar yeah, I just re-installed the plugin and now it works fine.
Thanks for finding this! This one has had me stumped for a while now.
# Posted By Michael | 8/13/08 2:59 PM
Francois Levesque's Gravatar Happy to hear it's working :).
# Posted By Francois Levesque | 8/13/08 4:46 PM
Shigeru's Gravatar Thank you!!

BTW, Should I set it every workspaces??
# Posted By Shigeru | 8/23/08 9:11 AM
Francois Levesque's Gravatar @Shigeru

You probably would want to, since I think the settings are distinct per workspace and might not automatically spread to the others.
# Posted By Francois Levesque | 8/23/08 11:32 PM
Leonid's Gravatar if file not there, just create empty file called org.cfeclipse.cfml.prefs and add suggested line.

Francois Levesque, thanks a bunch!
# Posted By Leonid | 9/4/08 3:37 PM
Francois Levesque's Gravatar @Leonid,

I didn't know you could do that, thanks for the info!
# Posted By Francois Levesque | 9/4/08 4:35 PM
Ryan's Gravatar This has been driving me bonkers for weeks! Thanks, man! FYI, using Aptana 1.1.7.x and this fix works perfectly.
# Posted By Ryan | 9/29/08 1:07 PM
Gerald Guido's Gravatar Thanx... Worked like a charm.
# Posted By Gerald Guido | 11/3/08 3:22 PM
Joe Zack's Gravatar Awesome, thanks!
# Posted By Joe Zack | 11/6/08 2:13 PM
Ryan's Gravatar I've followed a lot of other CFEclipse "tutorials" trying to get my line numbers working, and never was successful. Until now! Thanks for posting this.
# Posted By Ryan | 12/17/08 1:26 PM
Mike Henke's Gravatar Thanks, great post. Ryan has been b!tch!ng about his line numbers not working for months.
# Posted By Mike Henke | 12/17/08 10:45 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.3.000. Contact Blog Owner