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!

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
wow gold's Gravatar
Morhaime, <a href="http://www.wowgoldvip.com/news_list.asp">w... gold</a> then the<a href="http://www.wowgold1000.com">wow gold</a> chief executive<a href="http://www.wowgoldvip.com">buy wow gold</a> of Blizzard, <a href="http://www.wowgold1000.com">buy wow gold</a> chose a steakhouse <a href="http://www.wowgoldvip.com">cheap wow gold</a>near his <a href="http://www.wowgold1000.com">cheap wow gold</a>company's Irvine, <a href="http://www.wowgoldvip.com/wow-power-leveling.asp&q... power leveling</a> Calif., headquarters. But<a href="http://www.wowgold800.com">wow power leveling</a> he ended<a href="http://www.wowgoldvip.com/powerleveling.asp"&... leveling</a> up booking a <a href="http://www.wowgold800.com">power leveling</a>large banquet room by mistake.
# Posted By wow gold | 1/3/09 11:30 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.1.002. Contact Blog Owner