Code Monkey home page Code Monkey logo

Comments (5)

TrunovS avatar TrunovS commented on September 26, 2024

Encountered the same error today. Maybe it can be fixed with some quick workaround?

from ggtags.

Ergus avatar Ergus commented on September 26, 2024

Same error here... Any solution yet?

from ggtags.

aarnez avatar aarnez commented on September 26, 2024

Same here (again). The issue is obviously racy; it worked for some time, but now it's persistent again.
I'm currently circumventing this very crudely, by preserving the compilation buffer even if there's only one match:

diff -u /home/arnez/.emacs.d/elpa/ggtags-20220511.610/ggtags.el\~ /home/arnez/.emacs.d/elpa/ggtags-20220511.610/ggtags.el
--- /home/arnez/.emacs.d/elpa/ggtags-20220511.610/ggtags.el~	2022-06-01 14:07:40.781288558 +0200
+++ /home/arnez/.emacs.d/elpa/ggtags-20220511.610/ggtags.el	2022-07-20 20:18:20.920608602 +0200
@@ -1668,11 +1668,12 @@
       ;; - http://debbugs.gnu.org/23987
       ;; - https://github.com/leoliu/ggtags/issues/89
       ;;
-      (pcase (cl-find 'compilation-auto-jump timer-list :key #'timer--function)
-        (`nil )
-        (timer (timer-event-handler timer)))
-      (ggtags-navigation-mode -1)
-      (ggtags-navigation-mode-cleanup buf t)))))
+      ;; (pcase (cl-find 'compilation-auto-jump timer-list :key #'timer--function)
+      ;;   (`nil )
+      ;;   (timer (timer-event-handler timer)))
+      ;; (ggtags-navigation-mode -1)
+      ;; (ggtags-navigation-mode-cleanup buf t)
+      ))))
 
 (defvar ggtags-global-mode-font-lock-keywords
   '(("^Global \\(exited abnormally\\|interrupt\\|killed\\|terminated\\)\\(?:.*with code \\([0-9]+\\)\\)?.*"

from ggtags.

gmlarumbe avatar gmlarumbe commented on September 26, 2024

I faced this same issue in the past and finally decided to use xref with ggtags as a backend to avoid these races.

The xref backend code section also seems to have a race, but I recently sent PR #224 which seems to fix it.

from ggtags.

Ergus avatar Ergus commented on September 26, 2024

I faced this same issue in the past and finally decided to use xref with ggtags as a backend to avoid these races.

The xref backend code section also seems to have a race, but I recently sent PR #224 which seems to fix it.

At the end I also decided to use xref and all the other emacs provided infrastructure for everything (imenu, completions, project.el). And as I also faced issues there I decided to go with my own simpler and clean implementation optimized for tramp support: https://github.com/Ergus/gtags-mode

It is already in elpa btw.

from ggtags.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.