Skip to content

Commit db8284d

Browse files
wuurrdpsanford
authored andcommitted
Handle godef "no object" error
Improve successful output parsing to detect newest godef giving output: no object Closes: #351 [via git-merge-pr]
1 parent 8bfc70a commit db8284d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

go-mode.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,6 +2336,7 @@ description at POINT."
23362336
(defun godef--successful-p (output)
23372337
(not (or (string= "-" output)
23382338
(string= "godef: no identifier found" output)
2339+
(string= "godef: no object" output)
23392340
(go--string-prefix-p "godef: no declaration found for " output)
23402341
(go--string-prefix-p "error finding import path for " output))))
23412342

0 commit comments

Comments
 (0)