Skip to main content
Inspiring
December 9, 2008
Question

CFEclipse Marking Files as Read Only

  • December 9, 2008
  • 2 replies
  • 541 views
I have successfully installed Eclipse. I am able to open .CFM files in Eclipse, and view both the code and text. However, after I install CFEclipse, any .CFM file I attempt to open gives me a "this file is read only" error message. I click "Make Writeable," and the file appears to open. However, there is no code or text visible. The screen is blank.

I am using Eclipse Europa and CFEclipse 1.3.1.6. Please don't suggest that I install Ganymede and CFEclipse 1.3.2 Beta. I attempted to do that at first, and CFEclipse wouldn't even function. Using my current installation, I am able to select the CFEclipse perspective. For whatever reason, Ganymede with CFEclipse 1.3.2 doesn't work for me.

Clearly the read-only issue is caused by CFEclipse. But why? Is it because my Eclipse program files are located at C:\Eclipse, and my .CFM files are located at C:\Gwen H Documents\Websites\? Does CFEclipse get cross if the .CFM files are outside the Eclipse folder?

Many thanks,
Gwen H
    This topic has been closed for replies.

    2 replies

    GwenHAuthor
    Inspiring
    December 10, 2008
    Thanks! Once I figured out that Eclipse doesn't want your workspace folder to also be the folder where your project files are located, I was finally able to define a project. Once I could do that, I could view and edit the code and text for my .CFM files. Funny, this isn't documented in the Eclipse Help feature.

    Many thanks,
    Gwen H
    Inspiring
    December 10, 2008
    Gwen,

    It sounds to me like you are trying to open a CFML file using the CFEclipse perspective but the file is not located in a project. This was the only time I ever saw this symptom (and I did see this). I would try to edit a random CFML file in CFEclipse (say, fixing a bug from a site I built in Dreamweaver prior to my IDE change). No go. Blank white page. If I added the file to a project (or added a new project that contained said file), I could see everything as one would expect.

    Basically, CFEclipse works "best" when everything is in a project.

    Try the following:
    1. Open Eclipse
    2. Switch to the CFEclipse perspective (if necessary)
    3. File --> New --> Project
    4. File --> New --> CFML File
    5. Open the file (well, it should have opened automatically).

    You should now be able to code in this file and see your code, tag insights, and all that good stuff. If not, there might be a larger issue.

    P.S. While I am using Ganymede (Eclipse 3.4.1) and CFEclipse 1.3.2 beta without any problems, Europa (Eclipse 3.3) and CFEclipse 1.3.1.6 run very well and are stable. Mark Drew and the CFEclipse team even recommend NOT running CFEclipse on Ganymede, as it is not fully flushed out for Ganymede.