branch: elpa/go-mode
commit db8284d5eb18add8c6a858761d4957a5a05b8067
Author: David Buchmann <[email protected]>
Commit: Peter Sanford <[email protected]>

    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