From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "M. Ian Graham" Newsgroups: gmane.emacs.bugs Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Date: Thu, 17 Nov 2022 18:11:32 +0000 Message-ID: References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> <87sfiirulw.fsf@xyz.invalid> <878rk9921c.fsf@codeisgreat.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27826"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59214@debbugs.gnu.org, Eli Zaretskii , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: Pankaj Jangid Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 18 01:54:39 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovpeQ-00071V-75 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Nov 2022 01:54:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovpdy-0007tt-Sg; Thu, 17 Nov 2022 19:54:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovpdu-0007s0-B4 for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2022 19:54:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovpdq-0005fA-BO for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2022 19:54:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovpdp-0001td-V1 for bug-gnu-emacs@gnu.org; Thu, 17 Nov 2022 19:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "M. Ian Graham" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Nov 2022 00:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59214 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.16687328017231 (code B ref 59214); Fri, 18 Nov 2022 00:54:01 +0000 Original-Received: (at 59214) by debbugs.gnu.org; 18 Nov 2022 00:53:21 +0000 Original-Received: from localhost ([127.0.0.1]:34719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovpdA-0001sW-LJ for submit@debbugs.gnu.org; Thu, 17 Nov 2022 19:53:21 -0500 Original-Received: from mail-4317.proton.ch ([185.70.43.17]:16167) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovjMX-0008SC-OI for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 13:11:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=miangraham.com; s=protonmail; t=1668708699; x=1668967899; bh=Udsb8g1RggC1IwzmsW/JYN1q6/5ySzIT5anA8gvdTPs=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Wg8st7+bFzK+ovr2kMreHuNbNRrlNVYB9gh/dnBcpl75UN0pwdjIccy7lbfkyrEyd MKb1xemtKKW8Y4mYR3/RSQ9Rs0hM2q9r9Yvpcc68OqEBSQbSKCVegVgGtfw7JFXRSy PZEV7cHbvM1qQAqlgrrqeRoVKANaOEdbuOXeGo60HBN9y4J6UegE79KPrVrvZPHMb+ sLwsYJtw6nINWhjrHATMotdoRhJwgZ1t8Ard3GLFixc1DiUCUd/GBafSfhic7p1jSz 4d1+4nX0gtHv5dr/rgDQd1hdmRfdTcFGxOJ62Una//XY5YBGAxc8HUjqak9VH0ftGL NeXuKui0LLctg== In-Reply-To: <878rk9921c.fsf@codeisgreat.org> Feedback-ID: 29547276:user:proton X-Mailman-Approved-At: Thu, 17 Nov 2022 19:53:19 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248155 Archived-At: Pankaj Jangid wrote: > -(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rus= t-analyzer" "rls"))) > +(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rus= t-analyzer" "("rustup" "run" "stable" "rust-analyzer") "rls"))) I just noticed this quote from the announcement at https://blog.rust-lang.o= rg/2022/09/22/Rust-1.64.0.html#rust-analyzer-is-now-available-via-rustup : > At this time, to run the rustup-installed version, you need to invoke it = this way: > rustup run stable rust-analyzer > The next release of rustup will provide a built-in proxy so that running = the executable rust-analyzer will launch the appropriate version. So the current situation is temporary. A rustup-side fix is coming. Once it= arrives, the right answer--even for rustup users--will be "just add what y= ou want to PATH and eglot will defer to your environment." Rustup will do t= his for them automatically, for the rust version of their preference, and e= glot will just work. In the meantime, as is, rustup users have the option of symlinking rust-ana= lyzer into .cargo/bin or adding its location directly to PATH. Anyone not c= omfortable doing this is also probably not running emacs from master, so th= ey're unlikely to benefit from a short-term elisp fix until the problem goe= s away. And if emacs adds code depending on rustup, subsequently removing w= hat should theoretically be a temporary fix will in practice break users re= maining on older rustup versions. Unless I'm misunderstanding the situation above or something has changed si= nce the announcement, to me it seems prudent to wait on rustup's fix and av= oid letting emacs develop an opinion about the installation method or versi= on details of external components. Cheers, Ian