The code comment plugin does't work with Fortran 95

Bug #183603 reported by Rafael Sachetto
4
Affects Status Importance Assigned to Milestone
gedit-plugins
Fix Released
Low
gtksourceview (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: gedit-plugins

The code comment plugin does't work with Fortran 95. I've made a very ugly hack to correct this (attached patch).
The problem is in the method get_metadata('line-comment-start') from gtksourceview2.Language.
This method returns None when the language is Fortran 95 and I think it should return ! (fortran line comment)

Tags: bitesize patch
Revision history for this message
Rafael Sachetto (rsachetto) wrote :

The very ugly patch!

Changed in gedit-plugins:
importance: Undecided → Wishlist
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your report, can you send this bug upstream at bugzilla.gnome.org since they write the code? thanks.

Revision history for this message
Rafael Sachetto (rsachetto) wrote :

Reported at bugzilla.gnome.org

Revision history for this message
Pedro Villavicencio (pedro) wrote :

May you tell us the bug number of the upstream report? thanks you.

Changed in gedit-plugins:
status: New → Triaged
Revision history for this message
Rafael Sachetto (rsachetto) wrote :
Changed in gedit-plugins:
status: Unknown → Fix Released
Revision history for this message
Rafael Sachetto (rsachetto) wrote :

Please don't apply the above path (it won't break your system, but it isn't the right way o solve the problem).

To correct the problem apply this new patch in /usr/share/gtksourceview-2.0/language-specs/fortran.lang

Changed in gedit-plugins:
status: Triaged → Fix Committed
Morten Kjeldgaard (mok0)
Changed in gtksourceview:
status: Fix Committed → Confirmed
Revision history for this message
Daniel Holbach (dholbach) wrote :

Sébastien: can you please take a look at it?

Revision history for this message
Sebastien Bacher (seb128) wrote :

did you try if that's still an issue in hardy? the patch attached seems to be reversed and the hardy version contain the change

Changed in gtksourceview:
status: Confirmed → Incomplete
Revision history for this message
Rafael Sachetto (rsachetto) wrote :

It's working in hardy :)

Changed in gtksourceview:
status: Incomplete → Fix Released
Changed in gedit-plugins:
importance: Unknown → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.