Subject: Re: bug#59214: [PATCH] Alternate rust-analyzer command added

From: "M. Ian Graham" <[email-masked]>
Date: Thu, 17 Nov 2022 10:52:54 +0000

Pankaj Jangid <[email-masked]> wrote:

> -(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" "rls")))
> +(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '(("rustup" "run" "stable" "rust-analyzer") "rls")))

Another open question and source of future bug reports: How does a rustup user make eglot work with the nightly release channel when stable is specified here?

Nightly is required by some libraries, and a minority of people use it in development for improved error messages and other benefits.

Are we asking those people to redefine eglot-server-programs?

Cheers,
Ian