Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Problem with adding a file association to PHP content type
Problem with adding a file association to PHP content type [message #25771] Wed, 06 June 2007 01:04 Go to next message
Langdon Stevenson is currently offline Langdon StevensonFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,

I need to associate a file extension (*.thtml) with the PHP content
type. I have followed the procedure of:


Window > Preferences...
General -> Content Types -> Text -> PHP Content Type
File association: Add: *.thtml


Now .thtml files show up in the Navigator as being PHP files. All looks
good so far.

Problems:

1. When I open a .thtml file Eclipse freezes. The file never opens, and
Eclipse must be forced to quit. I have even left this overnight just to
be sure.

2. .php files open successfully, however, when I try to add any HTML
tage (like <body>) Eclipse once again freezes and has to be forced to
quit. This too has been left overnight, but never releases.

3. .js files behave the same a .thtml files. Can't be opened as they
cause Eclipse to freeze.


My setup:

- Linux: Fedora 7
- Fedora Eclipse package (3.2.2)
- PDT 1.0.0v20070520 installed through Update Manager
(with required dependencies)
- SVN Team Provider 1.2.1


Can anyone suggest to me how to go about debugging this issue? Any
suggestions greatly appreciated.

Regards,
Langdon
Re: Problem with adding a file association to PHP content type [message #25789 is a reply to message #25771] Wed, 06 June 2007 03:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipsenews.20.epm.spamgourmet.com

Hi Langdon

I'm not sure about the cause of the crashes, but I normally use the
General>Editors>File Associations settings to set which editor should be
used for a file extension. That works OK for me, and I have it setup to
use PDT for thtml files.

But I suspect your crashes might be an unrelated problem, if you are
also getting crashes when opening JS.

Cheers
Tom

Langdon Stevenson wrote:
> Hi,
>
> I need to associate a file extension (*.thtml) with the PHP content
> type. I have followed the procedure of:
>
>
> Window > Preferences...
> General -> Content Types -> Text -> PHP Content Type
> File association: Add: *.thtml
>
>
> Now .thtml files show up in the Navigator as being PHP files. All looks
> good so far.
>
> Problems:
>
> 1. When I open a .thtml file Eclipse freezes. The file never opens, and
> Eclipse must be forced to quit. I have even left this overnight just to
> be sure.
>
> 2. .php files open successfully, however, when I try to add any HTML
> tage (like <body>) Eclipse once again freezes and has to be forced to
> quit. This too has been left overnight, but never releases.
>
> 3. .js files behave the same a .thtml files. Can't be opened as they
> cause Eclipse to freeze.
>
>
> My setup:
>
> - Linux: Fedora 7
> - Fedora Eclipse package (3.2.2)
> - PDT 1.0.0v20070520 installed through Update Manager
> (with required dependencies)
> - SVN Team Provider 1.2.1
>
>
> Can anyone suggest to me how to go about debugging this issue? Any
> suggestions greatly appreciated.
>
> Regards,
> Langdon
Re: Problem with adding a file association to PHP content type [message #25857 is a reply to message #25789] Wed, 06 June 2007 09:57 Go to previous message
Langdon Stevenson is currently offline Langdon StevensonFriend
Messages: 2
Registered: July 2009
Junior Member
Hi Tom,

Thanks for the reply. I have tried your suggestion, but end up with the
following error flashed up (very briefly) in a new window when I try to
open a .thtml file:


"Unable to create this part due to an internal error. Reason for this
failure: An exception was thrown during initialization"


I am inclined to agree with you that I have a bigger problem here.

My thought is that perhaps I should download and install Eclipse from
eclipse.org rather than working with the Fedora Eclipse package.

Still, if anyone can suggest other avenues to investigate I would be
grateful, before I go down that path.

Regards,
Langdon


> I'm not sure about the cause of the crashes, but I normally use the
> General>Editors>File Associations settings to set which editor should be
> used for a file extension. That works OK for me, and I have it setup to
> use PDT for thtml files.
>
> But I suspect your crashes might be an unrelated problem, if you are
> also getting crashes when opening JS.
>
> Cheers
> Tom
>
> Langdon Stevenson wrote:
>> Hi,
>>
>> I need to associate a file extension (*.thtml) with the PHP content
>> type. I have followed the procedure of:
>>
>>
>> Window > Preferences...
>> General -> Content Types -> Text -> PHP Content Type
>> File association: Add: *.thtml
>>
>>
>> Now .thtml files show up in the Navigator as being PHP files. All
>> looks good so far.
>>
>> Problems:
>>
>> 1. When I open a .thtml file Eclipse freezes. The file never opens,
>> and Eclipse must be forced to quit. I have even left this overnight
>> just to be sure.
>>
>> 2. .php files open successfully, however, when I try to add any HTML
>> tage (like <body>) Eclipse once again freezes and has to be forced to
>> quit. This too has been left overnight, but never releases.
>>
>> 3. .js files behave the same a .thtml files. Can't be opened as they
>> cause Eclipse to freeze.
>>
>>
>> My setup:
>>
>> - Linux: Fedora 7
>> - Fedora Eclipse package (3.2.2)
>> - PDT 1.0.0v20070520 installed through Update Manager
>> (with required dependencies)
>> - SVN Team Provider 1.2.1
>>
>>
>> Can anyone suggest to me how to go about debugging this issue? Any
>> suggestions greatly appreciated.
>>
>> Regards,
>> Langdon
Previous Topic:False syntax error
Next Topic:[newbee] PDT as platform for Java-PHP
Goto Forum:
  


Current Time: Tue Jan 14 05:53:14 GMT 2025

Powered by FUDForum. Page generated in 0.03009 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top