Re: [GNU ELPA] New package: flymake-harper

João Távora <[email protected]>
Newsgroups gmane.emacs.devel
Message-ID <[email protected]>
Hi Juri,

> 'harper-ls' has a code action for quick fixes that
> suggests fixes for the selected error.  But integration
> with eglot is more uncertain.

What do you mean?  Have you ever tried this particular one?  I use tons
of LS's (unfortunately, for debugging Eglot) and they largely work
consistently with `eglot-code-actions`.

> Only someone with a wide overview of capabilities of many LSP servers
> can find a common denominator for all auto-correction tools because
> server capabilities differ wildly.

Do you really mean that?  For auto-correction specifically, the
denominator is usually, if not always, the 'codeActionProvider'
capability.  Code actions, to be precise, are how LSP associates
arbitrary changes to regions in a document.  It's a fairly narrow and
well understodd part of LSP (and Eglot).

There are, of course, LSP commands, and those are completely arbitrary
and some of them even interactive.  They makes a language server its own
"remote major mode", if you will.  You can "find other file" to go to
file related to this one or automatically run tests for example.  It's a
slightly more variable and unexplored world.  You may be also be
referring to out-of-band non-LSP extensions.  That is potentially a
"wild" place indeed.

> For example, some use "textDocument/formatting" with 'eglot-format'
> for auto-corrections,

Who?  What LS?  That entry point is strictly for non-semantic whitespace
changes.

> some provide auto-corrections for the whole project, or for a separate
> file, or for one error kind, etc.

Can you give examples of this?  Are you talking about LSP commands or
something else?

João
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.