ports/devel/gps/files/patch-share_plug-ins_dispatching.py
John Marino 2a63f169a3 devel/gps: Remover requirement on gnatinspect, plus
Currently gnatinspect is useless because GNAT FSF cannot generate the
cross-reference definitions.  It needs to be implmented at the compiler
level (and one day I may do it).

In the meantime, alter gps to skip as many cross-reference checks as
we can and remove gnatcoll from RUN_DEPENDS list.

While here:
 1) generate all the pyc files (a bunch were missed)
 2) fix pkg-plist
 3) Fix locale support (use ISO8859-* instead of ISO-8859-*)

These changes were done in an attempt to solve PR/202317, but that
FreeBSD-only problem still exists (error highlight works perfectly on
DragonFly).  Cause still unknown.
2015-12-08 14:54:44 +00:00

30 lines
1.3 KiB
Python

--- share/plug-ins/dispatching.py.orig 2014-11-13 18:15:57 UTC
+++ share/plug-ins/dispatching.py
@@ -35,11 +35,8 @@ class Dispatching_Highlighter(Location_H
GPS.Hook("file_edited").add(self.__on_file_edited)
GPS.Hook("file_changed_on_disk").add(self.__on_file_edited)
- if GPS.Logger("ENTITIES.SQLITE").active:
- GPS.Hook("xref_updated").add(self.__on_compilation_finished)
- else:
- GPS.Hook("compilation_finished").add(
- self.__on_compilation_finished)
+ GPS.Hook("compilation_finished").add(
+ self.__on_compilation_finished)
def __del__(self):
Location_Highlighter.__del__(self)
@@ -47,11 +44,8 @@ class Dispatching_Highlighter(Location_H
GPS.Hook("file_edited").remove(self.__on_file_edited)
GPS.Hook("file_changed_on_disk").remove(self.__on_file_edited)
- if GPS.Logger("ENTITIES.SQLITE").active:
- GPS.Hook("xref_updated").remove(self.__on_compilation_finished)
- else:
- GPS.Hook("compilation_finished").remove(
- self.__on_compilation_finished)
+ GPS.Hook("compilation_finished").remove(
+ self.__on_compilation_finished)
def __on_preferences_changed(self, hook):
changed = False