-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error "(wrong-type-argument number-or-marker-p nil)" when using imenu for golang source files. #547
Comments
You're not using I'm not 100% sure this is the problem, but it's pretty similar to other imenu-related issues that have popped up recently. To make sure, please try with |
M-x imenu is ok. but the content is not right. and it does not invoke eglot-imenu function. |
gopls resut json format is very different than those from clangd: client-request (id:2) Wed Sep 30 21:02:31 2020: server-reply (id:2) Wed Sep 30 21:02:31 2020: |
here is return by clangd for c++ source files. and eglot can handle it. client-request (id:323) Wed Sep 30 20:54:01 2020: server-reply (id:323) Wed Sep 30 20:54:01 2020: |
(defun eglot-imenu () |
it have children nodes also.... |
i try lsp-mode. it works. here is the result: 167 candidates: |
ok. it will be fixed by this issue: #303 |
Hmm, that is odd. That has been merged for a while now. It's very odd that |
error "(wrong-type-argument number-or-marker-p nil)" when using imenu for golang source files:
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
min(2305843009213693951 nil)
(forward-line (min most-positive-fixnum (plist-get pos-plist :line)))
(save-excursion (goto-char (point-min)) (forward-line (min most-positive-fixnum (plist-get pos-plist :line))) (unless (eobp) (let ((tab-width 1) (col (plist-get pos-plist :character))) (unless (wholenump col) $
eglot--lsp-position-to-point(nil)
#f(compiled-function () #<bytecode 0x3bc5845>)()
eglot--call-with-interface((SymbolInformation (:name :kind :location) (:deprecated :containerName)) (:name "JOIN_PROPS_MULTIJOIN_BY_INSTANCEID" :detail "untyped string" :kind 14 :range (:start (:line 52 :chara$
#f(compiled-function (jsonrpc-lambda-elem45) #<bytecode 0x2d2232d>)((:name "JOIN_PROPS_MULTIJOIN_BY_INSTANCEID" :detail "untyped string" :kind 14 :range (:start (:line 52 :character 0) :end (:line 54 :characte$
mapcar(#f(compiled-function (jsonrpc-lambda-elem45) #<bytecode 0x2d2232d>) [(:name "JOIN_PROPS_MULTIJOIN_BY_IN..." :detail "untyped string" :kind 14 :range (:start ... :end ...) :selectionRange (:start ... :en$
eglot-imenu()
apply(eglot-imenu nil)
#f(advice-wrapper :before-until lsp--imenu-create-index eglot-imenu)()
imenu--make-index-alist(t)
counsel--imenu-candidates()
counsel-imenu()
The text was updated successfully, but these errors were encountered: