emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode db8284d 485/495: Handle godef "no object" error


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode db8284d 485/495: Handle godef "no object" error
Date: Sat, 7 Aug 2021 09:06:14 -0400 (EDT)

branch: elpa/go-mode
commit db8284d5eb18add8c6a858761d4957a5a05b8067
Author: David Buchmann <david.buchmann@gmail.com>
Commit: Peter Sanford <psanford@sanford.io>

    Handle godef "no object" error
    
    Improve successful output parsing to detect newest godef giving
    output: no object
    
    Closes: #351 [via git-merge-pr]
---
 go-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/go-mode.el b/go-mode.el
index f6f895a..4a740ef 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -2336,6 +2336,7 @@ description at POINT."
 (defun godef--successful-p (output)
   (not (or (string= "-" output)
            (string= "godef: no identifier found" output)
+           (string= "godef: no object" output)
            (go--string-prefix-p "godef: no declaration found for " output)
            (go--string-prefix-p "error finding import path for " output))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]