I get the following error with imenu when using say markdown or org files.
progn: jsonrpc-error: "request id=2 failed:", (jsonrpc-error-code . -32601), (jsonrpc-error-message . "Unhandled method textDocument/d\
ocumentSymbol"), (jsonrpc-error-data)
Here is an MWE to help reproduce the error. I have Emacs 28.2 and server version 0.2.1
(setq straight-build-dir (format "build/%d%s%d"
emacs-major-version
version-separator
emacs-minor-version)
straight-use-package-by-default t)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 6))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(setq use-package-hook-name-suffix nil)
(straight-use-package 'use-package)
(use-package eglot
:config
(setq eglot-ignored-server-capabilities
'
(:codeLensProvider
:executeCommandProvider
:hoverProvider ; Automatic documentation popups can be distracting
:foldingRangeProvider
:documentOnTypeFormattingProvider
:documentLinkProvider
:documentHighlightProvider
;; Inlay hints are distracting
:inlayHintProvider)))
(use-package eglot-grammarly
:straight (:host github :repo "emacs-grammarly/eglot-grammarly")
:hook
(text-mode-hook . (lambda ()
(require 'eglot-grammarly)
(eglot-ensure))))
I get the following error with
imenuwhen using saymarkdownororgfiles.Here is an MWE to help reproduce the error. I have Emacs 28.2 and server version 0.2.1