Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341603 - "open with ...": editor should abide user's decision about file type
Summary: "open with ...": editor should abide user's decision about file type
Status: RESOLVED WORKSFORME
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: 3.2.3   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: wst.html CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-01 06:52 EDT by arne anka CLA
Modified: 2011-04-04 04:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arne anka CLA 2011-04-01 06:52:13 EDT
i got an html file with the suffix .aspx (foo.aspx).
default editor does not display any syntax coloring or enables completion, so i used
right click -> open with -> HTML Editor

but the editor still does not show any coloring nor auto completion.

after simply renaming the very same file to foo.html, everything works.

the editor should not force its own ideas about the file type upon me -- when i decide, i want to open it as an html file, it has to accept that and open it as an html file.


-- Configuration Details --
Product: Eclipse 1.3.2.20110218-0812 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.platform 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi
Comment 2 arne anka CLA 2011-04-01 11:28:45 EDT
i knew about that already, but that's no solution, it's not even a workaround.
if i say "open this file as an html file", the editor has to do that.

i can't for a single file i get add just another association, just because the editor is to stupid or stubborn to do what _i_ want.

i get that file with a "could you please quickly look into it" and i need to define a new association just for that single file? you must be kidding!

associations are nice for extensions i get often, but if the editor in bad old microsoft-style relies on the file extension instead of being either smart and recognize the type or at least follow a user's instructions, then it is broken. period.
Comment 3 Nitin Dahyabhai CLA 2011-04-01 13:53:33 EDT
The problem you've run into is an architectural limitation for which no solution currently exists.  The surrounding systems in Eclipse won't acknowledge that file extension as one for HTML by default (nor should they as the set of elements with the "asp" prefix would be reported as unknown tags).  A documented workaround *has* been given, but we'll continue to pursue a more streamlined version with bug 320996.
Comment 4 arne anka CLA 2011-04-04 04:59:33 EDT
that's at least an _useful_ answer! 
i got to insist, though, that the given "workaround" is _not_ a workaround for the issue!