lsp-grammarly icon indicating copy to clipboard operation
lsp-grammarly copied to clipboard

lsp-describe-session shows no capabilities

Open uliw opened this issue 3 years ago • 3 comments

Syntax checking works, however, when I issue lsp-describe-session the capabilities heading has no child headings

Thanks for any pointers how to look into this

uliw avatar May 01 '22 14:05 uliw

I think this issue was the previous server. Can you try the new server and see if it works for you? Thanks!

jcs090218 avatar May 09 '22 08:05 jcs090218

I get the following. But trying tab on capabilities does nothing. I am concerned because I get LSP :: Error from the Language Server: Request $/getDocumentStatus failed with message: object is not iterable (cannot read property Symbol(Symbol.iterator)) (Internal Error), when I try to run lsp-grammarly-stats.

[-] /home/bevan/projects/bee-lab/diversity-code/r-codes
 `-[-] grammarly-ls:26948
    |-[-] Buffers
    |  `-[+] test.txt
    `-[+] Capabilities

bevsxyz avatar Jun 23 '22 09:06 bevsxyz

The function lsp-grammarly-stats is not yet implemented! If you look into the function, it's

(defun lsp-grammarly-stats ()
  "Return document state."
  (interactive)
  (lsp-request-async
   "$/getDocumentStatus" `(:uri ,(lsp--buffer-uri))
   (lambda (_state)
     ;; TODO: ..
     (user-error "[INFO] Currently WIP")
     )))

Hope the information helps!

jcs090218 avatar Jun 23 '22 12:06 jcs090218