Fortran files: gedit code-comment plugin and gtksourceview
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gedit-plugins (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Binary package hint: gedit-plugins
Hi,
I just installed the beta of Hardy Heron, and have a couple of comments regarding gedit:
In Gutsy, the gedit code-comment plugin was unable to comment/uncomment Fortran files (*.f90, *.f95, etc.), although that option used to be available in Feisty ---I thought it was related to the "sort-of-beta" status of gktsourceview-2.0, so my solution was simply to add an old version of codecomment.* to my plugins folder. The problem still persists in Hardy.
Also, I noticed that the gedit version that comes with Hardy is unable to identify an *.f90 file as Fortran source, if the file starts with "!-" (without the quotes) , as in the following:
!------
program hello
print *, 'Hello world!'
end program
!------
In those cases the mime type, according to the the tooltip, is text/x-vhdl, instead of text/x-fortran. It looks like gedit/gtksourceview is not considering the file extension at all.
John.
...:~$ lsb_release -rd
Description: Ubuntu hardy (development branch)
Release: 8.04
...:~$ apt-cache policy gedit
gedit:
Installed: 2.22.0-0ubuntu1
Candidate: 2.22.0-0ubuntu1
Version table:
*** 2.22.0-0ubuntu1 0
500 http://
100 /var/lib/
...:~$ apt-cache policy libgtksourcevie
libgtksourcevie
Installed: 2.2.0-0ubuntu1
Candidate: 2.2.0-0ubuntu1
Version table:
*** 2.2.0-0ubuntu1 0
500 http://
100 /var/lib/
There are two new issues, besides the one I pointed out above, with the way gedit highlights Fortran files:
-If the file extension is F90 (instead of f90) and the file was originally written in MS-Windows, it is clasiffied as a MATLAB file (mime: text/x-matlab)
-If the file extension is f or F, the file is not highlighted at all (i.e., the mime is text/plain).