Skip to content

bug involving eglot + corfu with clojure-lsp or rustic (likely others too) #1202

Answered by joaotavora
mpenet asked this question in Q&A
Discussion options

You must be logged in to vote

This is a bug in eglot.el .... and jsonrpc.el. I'll have more details in the commit that fixes it. Markdown's gfm-view-mode is a read-only-mode, and the modifications that eglot--format-markup does in that buffer have been "illegal" for a long time now. But those modifications weren't being flagged to me because jsonrpc.el blindly sets inhibit-read-only to t in the process filter, so everyone in that stack can do whatever they want to buffers.

After Eglot 1.14, a new caching mechanism came along that doesn't always contact the server, and it seems to be kicking in your case, which is really good. But that doc request doesn't come in from LSP and jsonrpc.el doesn't enter into the picture t…

Replies: 4 comments 28 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
13 replies
@jdtsmith
Comment options

@joaotavora
Comment options

@jdtsmith
Comment options

@joaotavora
Comment options

@jdtsmith
Comment options

Comment options

You must be logged in to vote
15 replies
@mpenet
Comment options

@joaotavora
Comment options

@joaotavora
Comment options

@joaotavora
Comment options

Answer selected by mpenet
@mpenet
Comment options

@joaotavora
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug emacs-bug Something to be solved mostly in Emacs
4 participants