[Eric] Files opening in external editor.

Detlev Offenbach detlev at die-offenbachs.de
Sun May 18 16:49:34 BST 2008


On Sonntag, 18. Mai 2008, johnl wrote:
> Detlev Offenbach wrote:
> > On Donnerstag, 8. Mai 2008, J. David Lee wrote:
> >> I have a project with python,HTML, and javascript files. The python and
> >> HTML files open correctly in eric4, but when I click on a javascript
> >> file, it is opened in an external editor. Is there a simple way to fix
> >> this?
> >>
> >> Thank you,
> >>
> >> J. David Lee
> >>
> >> _______________________________________________
> >> Eric mailing list
> >> Eric at riverbankcomputing.com
> >> http://www.riverbankcomputing.com/mailman/listinfo/eric
> >
> > Which eric4 version are you using? What is the mime type of javascript
> > files? (It should start with text/...)
> >
> > Regards,
> > Detlev
>
> Detlev,
>
> Thank you for your reply. I'm using eric 4.1.1(r1972), which is the
> version in the Ubuntu repositories. I don't understand what you mean by
> mime type in this context, the files are ascii text, on my local machine
> with a .js extension. 

Check the file "/etc/mime.types" for the extension "js". If the associated 
mime type entry doesn't look like "text/x-js" (i.e. start with text), that is 
causing the problem. However, the behavior has been changed in eric 4.2 
snapshot.

> Under "Project" -> "Filetype Associations" I've 
> set "*.js" as "sources".
>
> Some of the files, when double clicked in the project-viewer, don't open
> at all, 

Which ones?

> and some open in an external editor. It looks like only those 
> files that start with a c-style comment are opened.
>
> Thank you,
>
> J. David Lee


Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list