From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Nov 2022 11:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59214 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 59214@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166825401012323 (code B ref -1); Sat, 12 Nov 2022 11:54:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Nov 2022 11:53:30 +0000 Received: from localhost ([127.0.0.1]:47423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otp4k-0003Ch-Dd for submit@debbugs.gnu.org; Sat, 12 Nov 2022 06:53:30 -0500 Received: from lists.gnu.org ([209.51.188.17]:44450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otp4i-0003CX-Er for submit@debbugs.gnu.org; Sat, 12 Nov 2022 06:53:28 -0500 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 1otp4i-0004Uz-7u for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 06:53:28 -0500 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otp4g-0002tR-8m for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 06:53:27 -0500 Received: by mail-pf1-x432.google.com with SMTP id b185so7009942pfb.9 for ; Sat, 12 Nov 2022 03:53:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20210112.gappssmtp.com; s=20210112; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=wl7KkWHjX0xPRZ9H7sLw9lY7Yn8lJxTbvlR9skwLy+k=; b=JxN0/pk4Ug5Idsx9euhYPLfQDxvaBamlsV/i8k4YwMi5r7tyz/x7Q53Y25h/y/dmsR vI85NI8uB2kRAPj4GKhaXhhCt2wMWyRAy9h2+YX5vn4J7J96NKvT9D8LCIQISHDj1+6o oe9NNA7kQ+tJHnfpnWha1ZG3ah0uR1t/pu+8z/JAegHPaeK384qNjuh/40BB2Ko0GZtH 4rXfH2NMJKipft5h64/NbUJYAtAVk/QIUUYc7xXb3fgUi8usy1Dmmj4nI3IJsIv9ftar IA83nOKBwT41w+ujZ6ICy78YhGizaaY40FLB9GGMieBygUxr0SexHuOgFKsL06SeDAuc MSRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wl7KkWHjX0xPRZ9H7sLw9lY7Yn8lJxTbvlR9skwLy+k=; b=bw8Pwo03hYbiIqJ10Sq8tW8T1fE4O6YIm6I16C4HWFvdsiiTICPtAz+9RW0tqn6jAU YcMp9IvKGazUhYRVwx9c6BjwLSSonLuM8ayn/ioGeRLyLa/ZvlPs2kuyvDJj6akI/en/ pqiNySGyh+OHZ/kSuNNzhOK2wrqjNaRkKicv5yBDppS822VHqbQc+QCZ7NcTjDs7gArr WHB/mV0fMI1Y/KJvLxi1Hv7DEEeR1wreSrCd/c31m3TrooP0Ce03+7NLFfmvYSd3nnV8 5CX8uuxmqpJ1hxIcVhsXz1gK344U895aA9PsebktHVnyKcNHhX8g3shBs91IvptuwZ+A ujRw== X-Gm-Message-State: ANoB5pkteLLmoD9U1pM34AJdziv2HbpsnQdQ+kkqlxS28b0Oaz3EloJd 4hIiKFCBwWi89zdLY3dwRi/qD4EDF5uTRA== X-Google-Smtp-Source: AA0mqf67PEuAlCf6FRB4hp6b8xkSDDDo1yH6EfHDJTAdelPSfaC47A6+v6wORDEi1NqBSg6a9gLN2w== X-Received: by 2002:a63:4d1c:0:b0:462:e0d0:2582 with SMTP id a28-20020a634d1c000000b00462e0d02582mr5089230pgb.48.1668254003427; Sat, 12 Nov 2022 03:53:23 -0800 (PST) Received: from anant ([49.36.236.45]) by smtp.gmail.com with ESMTPSA id sc17-20020a17090b511100b0021828120643sm554261pjb.45.2022.11.12.03.53.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 03:53:22 -0800 (PST) From: Pankaj Jangid Date: Sat, 12 Nov 2022 17:23:19 +0530 Message-ID: <87o7tc2xu8.fsf@codeisgreat.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=2607:f8b0:4864:20::432; envelope-from=pankaj@codeisgreat.com; helo=mail-pf1-x432.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.1 (---) * lisp/progmodes/eglot.el (eglot-server-programs): There are two ways to run rust-analyzer. After adding the rustup component, users can add rust-analyzer to path and run rust-analyzer directly or they may run ``rustup run stable rust-analyzer'' command. This revision adds the 2nd command to the list of server programs. --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 63ebbe6cab..f54c2d2c3a 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -181,7 +181,7 @@ eglot-alternatives when probe return (cons probe args) finally (funcall err))))))) -(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" "rls"))) +(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" ("rustup" "run" "stable" "rust-analyzer") "rls"))) (cmake-mode . ("cmake-language-server")) (vimrc-mode . ("vim-language-server" "--stdio")) (python-mode -- 2.30.2 From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Nov 2022 12:04: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 To: Pankaj Jangid Cc: 59214@debbugs.gnu.org Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166825459214032 (code B ref 59214); Sat, 12 Nov 2022 12:04:01 +0000 Received: (at 59214) by debbugs.gnu.org; 12 Nov 2022 12:03:12 +0000 Received: from localhost ([127.0.0.1]:47444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otpE3-0003e8-0Y for submit@debbugs.gnu.org; Sat, 12 Nov 2022 07:03:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otpE1-0003dW-Hy for 59214@debbugs.gnu.org; Sat, 12 Nov 2022 07:03:06 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otpDw-0004xG-84; Sat, 12 Nov 2022 07:03:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=LklKHdl0O6avzsOGdCEnrL6dl6LXu11G695wxjSpAto=; b=UFR2rlFG+Wr+ VHDMJ9jA45Z1FqAw6eZLMOKwhZTGteJ6WFPzRAIB8ntwT2kOp5/RzS/KxUvG64Hxow/7oyBSW5GPu 9KiSGkKUwJv6WEz+eHJ3+vbwsxrBvQj9cU5DtkwgUr8U7oCA9f3oKPI1sGZkc9Ovv4gFDnbfK4BK9 70EZeuJoFg8mY5RQSwaK0UFoT3ZdgvfiFpCa1HLjz1NMKqxKic3AaPG1B/dU1lrqkKcmmzkcgbVjG /fgqMOnpiIlKe29QIESIqqtqNsjbe0oZMg+uq2IuWD0aYvnlxRIMoYBpOo4Agfcr3B4LyF8ND4dix gpDF9LhKEj3MvdecW8MLBw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otpDv-00078J-JB; Sat, 12 Nov 2022 07:03:00 -0500 Date: Sat, 12 Nov 2022 14:03:05 +0200 Message-Id: <835yfknzwm.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87o7tc2xu8.fsf@codeisgreat.org> (message from Pankaj Jangid on Sat, 12 Nov 2022 17:23:19 +0530) References: <87o7tc2xu8.fsf@codeisgreat.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Pankaj Jangid > Date: Sat, 12 Nov 2022 17:23:19 +0530 > > * lisp/progmodes/eglot.el (eglot-server-programs): There are two > ways to run rust-analyzer. After adding the rustup component, > users can add rust-analyzer to path and run rust-analyzer directly What do you mean by "add rust-analyzer to path"? what is "path" in this case and why would one add rust-analyzer to it? Thanks. From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added In-Reply-To: <87o7tc2xu8.fsf@codeisgreat.org> Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Nov 2022 12:23:02 +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 To: 59214@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166825575715898 (code B ref -1); Sat, 12 Nov 2022 12:23:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Nov 2022 12:22:37 +0000 Received: from localhost ([127.0.0.1]:47452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otpWu-00048L-PB for submit@debbugs.gnu.org; Sat, 12 Nov 2022 07:22:37 -0500 Received: from lists.gnu.org ([209.51.188.17]:55256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otpWt-00048E-La for submit@debbugs.gnu.org; Sat, 12 Nov 2022 07:22:36 -0500 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 1otpWr-0004zV-TE for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 07:22:35 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otpWq-0002Lz-DL for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 07:22:33 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1otpWo-0007RF-15 for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 13:22:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ From: Pankaj Jangid Date: Sat, 12 Nov 2022 17:52:21 +0530 Message-ID: <87k0402whu.fsf@codeisgreat.org> References: <87o7tc2xu8.fsf@codeisgreat.org> <835yfknzwm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:QQHdBEYEJPWywZ3owiHJWGNyRbU= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Eli Zaretskii writes: >> * lisp/progmodes/eglot.el (eglot-server-programs): There are two >> ways to run rust-analyzer. After adding the rustup component, >> users can add rust-analyzer to path and run rust-analyzer directly > > What do you mean by "add rust-analyzer to path"? what is "path" in > this case and why would one add rust-analyzer to it? I meant "link rust-analyzer executable into a directory which is covered by PATH environment variable". Typically, rust programmers have ~/.cargo/bin directory added to PATH env variable. So the official rust-analyzer documentation suggests that either you link rust-analyzer to this location or run using command `rustup run stable rust-analyzer'. Ref: https://rust-analyzer.github.io/manual.html#rustup From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Nov 2022 12:52:02 +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 To: Pankaj Jangid Cc: 59214@debbugs.gnu.org Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166825746827256 (code B ref 59214); Sat, 12 Nov 2022 12:52:02 +0000 Received: (at 59214) by debbugs.gnu.org; 12 Nov 2022 12:51:08 +0000 Received: from localhost ([127.0.0.1]:47496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otpyV-00075Y-Ok for submit@debbugs.gnu.org; Sat, 12 Nov 2022 07:51:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otpyU-000757-TI for 59214@debbugs.gnu.org; Sat, 12 Nov 2022 07:51:07 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otpyN-0000Zc-J1; Sat, 12 Nov 2022 07:51:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=mVHic9+LL9xtQtuM+HQR/bxsmGEhUGeuhmJB/UYH3dA=; b=aoIrBc9X5r/Ur4CwVt95 prqyzW2bTVjy/2kh0t0Pu0U/B6U8UILy1eMkQdm91QV8yRsSpj1wK0CntQHjRf9ztGwxW8ZmzSKdo gE5QqIHd3gZD27bmv05FoWf4SLyGm73XFm3Ozz2armhIH8Xg8OvrPP7iAFv8cXxYvXgCwzEO8Ag7p 50DWFJN7iHHEsdUYc13pzX3OAmP5gNVZaEHWNUusW033nmtKZbQ3t/wywfVBE1vZBOu0wDJCC8TIK 3GLN4XAU62Xeqqtd/Axo1pCyVS9pwaTb9wrEEQf0xYxsIel6B6sBIn5wdyolystOdK6RImUI5FzQs qVK58qLnmRiepQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otpyI-0008DY-7V; Sat, 12 Nov 2022 07:50:59 -0500 Date: Sat, 12 Nov 2022 14:51:00 +0200 Message-Id: <83wn80mj4b.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87k0402whu.fsf@codeisgreat.org> (message from Pankaj Jangid on Sat, 12 Nov 2022 17:52:21 +0530) References: <87o7tc2xu8.fsf@codeisgreat.org> <835yfknzwm.fsf@gnu.org> <87k0402whu.fsf@codeisgreat.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Pankaj Jangid > Date: Sat, 12 Nov 2022 17:52:21 +0530 > > Eli Zaretskii writes: > > >> * lisp/progmodes/eglot.el (eglot-server-programs): There are two > >> ways to run rust-analyzer. After adding the rustup component, > >> users can add rust-analyzer to path and run rust-analyzer directly > > > > What do you mean by "add rust-analyzer to path"? what is "path" in > > this case and why would one add rust-analyzer to it? > > I meant "link rust-analyzer executable into a directory which is covered > by PATH environment variable". Then please modify the commit log message to use "PATH", upper-case. > Typically, rust programmers have > ~/.cargo/bin directory added to PATH env variable. So the official > rust-analyzer documentation suggests that either you link rust-analyzer > to this location or run using command `rustup run stable rust-analyzer'. > > Ref: https://rust-analyzer.github.io/manual.html#rustup I'll defer to João in the decision of whether we want to support both methods or just one of them. Thanks. From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Nov 2022 13:11: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 To: Eli Zaretskii Cc: 59214@debbugs.gnu.org Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166825860329070 (code B ref 59214); Sat, 12 Nov 2022 13:11:01 +0000 Received: (at 59214) by debbugs.gnu.org; 12 Nov 2022 13:10:03 +0000 Received: from localhost ([127.0.0.1]:47515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otqGo-0007YX-Po for submit@debbugs.gnu.org; Sat, 12 Nov 2022 08:10:03 -0500 Received: from mail-pj1-f54.google.com ([209.85.216.54]:52934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otqGm-0007Xq-64 for 59214@debbugs.gnu.org; Sat, 12 Nov 2022 08:10:02 -0500 Received: by mail-pj1-f54.google.com with SMTP id b11so6641336pjp.2 for <59214@debbugs.gnu.org>; Sat, 12 Nov 2022 05:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=6tmJkyS9g39cu8eHe6xKLpFRC+1UOJF5Fx+lrCMBQoI=; b=Xbjw2//MKmTDM9olngYOQR84xYncpuF0alnIYhYSIaWEo8Te3w1gJGmxPOrNgQDKmP gaLtvGTuK7EB6t/W72kav/KFSBbVy6BtnP+LAgEEHfD5YorPPkbRytT8zfKyHjroJ0r8 dAAxaCuF1WPnmJA0b6q109q6oOCijjh2TKlBavQm3bpDB6rbVf/9667i1pScfecX7za7 w9OKS7U6aB2rcD5P03LE+OhtMdGIExqz8QYfn3IRS0+s/1SS5dy6MP/UX0e6YLqMdNpb stjjc8CcLUP/Mi1N0rgi8qc/GdnGltuVtGGlm4jAWXlgpIpxl9h7LNog3sz8MUhvtX+e 6WNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6tmJkyS9g39cu8eHe6xKLpFRC+1UOJF5Fx+lrCMBQoI=; b=734kpi2u6hbWP/k5MZ5SeA2E4Cvay8olqAcvxpRNWjXkt2zT4Ze+fuNY+ccDBUV3V2 ZnQrr4Dd20TIfty4z+20jj8a1H5CkLEf+DxC/07G6nzj6Mm1dCkzdhDSmDo5q3LnR2Os 83DSCgaHokXq7UjWxcxVnTUyih45HmZVQJOL1t31E2MkyDHqGkT8LtW/bfy30HpVWKVM E+jwe1lRo2Ff9n4TEy9hr883CC+ofIfDPyX3WUwnB8HUzOT6p2QyN+J3zbx+EtkdEkTx aBsb8LcpnsRs4zzVvPKUxRIdOjXp6CttT9x8j9E7KZGUlPYrEi1rcDluNxbg2ANBMh97 tTtA== X-Gm-Message-State: ANoB5plPzmblB73Zgo42A1y4pMdm/KXpGpl5yLiFlr8EqdQMDuFZw83E 64ElCO3NCiFAWAuqnOgknwmqcLNwm0ZuHA== X-Google-Smtp-Source: AA0mqf7/WVWS16NGHei0fM86gPDZ8E0MAYizQq/g5U3ESiK1FFAoyfP+Q78MJcV6rwE9V9jB68KGvw== X-Received: by 2002:a17:902:cf4c:b0:186:ff42:704d with SMTP id e12-20020a170902cf4c00b00186ff42704dmr6621175plg.153.1668258593941; Sat, 12 Nov 2022 05:09:53 -0800 (PST) Received: from anant ([49.36.236.45]) by smtp.gmail.com with ESMTPSA id p19-20020a170902c71300b001745662d568sm3568927plp.278.2022.11.12.05.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 05:09:53 -0800 (PST) From: Pankaj Jangid In-Reply-To: <83wn80mj4b.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 12 Nov 2022 14:51:00 +0200") References: <87o7tc2xu8.fsf@codeisgreat.org> <835yfknzwm.fsf@gnu.org> <87k0402whu.fsf@codeisgreat.org> <83wn80mj4b.fsf@gnu.org> Date: Sat, 12 Nov 2022 18:39:50 +0530 Message-ID: <87fseo2uap.fsf@codeisgreat.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> I meant "link rust-analyzer executable into a directory which is covered >> by PATH environment variable". > > Then please modify the commit log message to use "PATH", upper-case. > Sure. Attached is the updated patch. >> Typically, rust programmers have >> ~/.cargo/bin directory added to PATH env variable. So the official >> rust-analyzer documentation suggests that either you link rust-analyzer >> to this location or run using command `rustup run stable rust-analyzer'. >>=20 >> Ref: https://rust-analyzer.github.io/manual.html#rustup > > I'll defer to Jo=C3=A3o in the decision of whether we want to support both > methods or just one of them. Sure. Just to add to my pitch. The additional method is a fallback that I added because I do not touch the ~/.cargo/bin directory by hand and let `rustup' handle this. There may be few other users like me. Of course decision is Jo=C3=A3o's. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Alternate-rust-analyzer-command-added.patch >From 7915d320d87acbb807dde00acd9ce2c8237ed048 Mon Sep 17 00:00:00 2001 From: Pankaj Jangid Date: Sat, 12 Nov 2022 17:21:56 +0530 Subject: [PATCH] Alternate rust-analyzer command added * lisp/progmodes/eglot.el (eglot-server-programs): There are two ways to run rust-analyzer. After adding the rustup component, users can add rust-analyzer to PATH and run rust-analyzer directly or they may run ``rustup run stable rust-analyzer'' command. This revision adds the 2nd command to the list of server programs. --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 63ebbe6cab..f54c2d2c3a 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -181,7 +181,7 @@ eglot-alternatives when probe return (cons probe args) finally (funcall err))))))) -(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" "rls"))) +(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" ("rustup" "run" "stable" "rust-analyzer") "rls"))) (cmake-mode . ("cmake-language-server")) (vimrc-mode . ("vim-language-server" "--stdio")) (python-mode -- 2.30.2 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 12 23:01:23 2022 Received: (at control) by debbugs.gnu.org; 13 Nov 2022 04:01:23 +0000 Received: from localhost ([127.0.0.1]:49738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ou4BP-0007z8-KG for submit@debbugs.gnu.org; Sat, 12 Nov 2022 23:01:23 -0500 Received: from mail-ot1-f50.google.com ([209.85.210.50]:47070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ou4BO-0007yW-9g for control@debbugs.gnu.org; Sat, 12 Nov 2022 23:01:22 -0500 Received: by mail-ot1-f50.google.com with SMTP id d26-20020a05683018fa00b0066ab705617aso4918256otf.13 for ; Sat, 12 Nov 2022 20:01:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=oe18PUSRsW1xRetdJJ55ZQ8qozImxd87SK5nwDHZtzg=; b=RAmY+th9f6hWYmBuZkAvMGfIIzsAQjYWoH9sFiEzD5PQPTxJduOsbpgSMOBIE54E5+ WUQXZ9RiEDFDx2MXZTc40M3raivTm264DWjMzB883ysuA72soynkE8R/wtEDGduIHxF6 k2IuAIgQMfYtP2ADtCRW8wLGL3hW5i0XrEtI/UMhPnS3kDH1hoxiEpml6FLECOgj5S8J APMlTjely0SHriSnoiMq8J8Gex1QXfAhHabvgasAy9rYaq19vU6MMhwvK3Ddtpn1m1PB hhRc8QCEA7GBskoHZdTTUrPz4mqiJiW6zrFGtWcXAEGXrFwBaqr4CFofcFhk29ZpOVqN t0hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=oe18PUSRsW1xRetdJJ55ZQ8qozImxd87SK5nwDHZtzg=; b=MakrrG4pq8g8zYXnbLN1LMfxZ/XYW98lHhzetOUn+zlIUbXFG6sMKB/wamg8jdkKij +nupAFsYfrqj3iOcOuLSyJQebkBEfECMvdoTz5eEdrT4ItZ7ZULNefcts85r2BGWUqIM nsymRUUnGOkREdD4COGWgVvAzkcP3zm2uZSV1AEQA7cn/Kib/ftYTCaEWSinx/ylSaR5 fkLr9W0eu5g2cWuriyxAwx4CQgNjO6/4w1NwmY3GYdba54NiiXkNAa3ocYsOA2aPt4ql gJiGIRmInlubKY4oEJ6/u3yyuNvdHP6YYpLrqnpv/o+w/MrnbJa4+cAH6XYMD+w+u3Zf lUaA== X-Gm-Message-State: ANoB5pkFMGsdwOVFXQBYBl0DwEGAA55jhNpOEomyQ2yl0rYQ2cao+vSC l3x+I6txjD8PaSK8NZ9Lj2iCWW5xOehYBXe3Ai2jVA3xzv0= X-Google-Smtp-Source: AA0mqf5bWmS0i+6WOYtpe1NF2CCe28C0uW3YnYxCev2N9/QzBO2yaix2sibnynbmtyZM9T4frM22oWkg9od3NjB6bJ4= X-Received: by 2002:a9d:6399:0:b0:661:c48b:12db with SMTP id w25-20020a9d6399000000b00661c48b12dbmr4144402otk.105.1668312076887; Sat, 12 Nov 2022 20:01:16 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 12 Nov 2022 20:01:16 -0800 From: Stefan Kangas X-Hashcash: 1:20:221113:control@debbugs.gnu.org::IGesGZk2fUYKayuw:6bku MIME-Version: 1.0 Date: Sat, 12 Nov 2022 20:01:16 -0800 Message-ID: Subject: control message for bug #59214 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 59214 wishlist quit From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Nov 2022 17:06: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 To: Pankaj Jangid , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: 59214@debbugs.gnu.org Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166861834531684 (code B ref 59214); Wed, 16 Nov 2022 17:06:01 +0000 Received: (at 59214) by debbugs.gnu.org; 16 Nov 2022 17:05:45 +0000 Received: from localhost ([127.0.0.1]:57996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovLr6-0008Ex-IY for submit@debbugs.gnu.org; Wed, 16 Nov 2022 12:05:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovLr2-0008Ei-Dk for 59214@debbugs.gnu.org; Wed, 16 Nov 2022 12:05:43 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovLqu-0007wv-Cf; Wed, 16 Nov 2022 12:05:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=hak6P9lnfgZgEap6JpOdfY3BfJswlcXZbGQIRWRqM3M=; b=fMYHTEZzhZBdWbEkWpeT uZh1RnM7HN9m08SqJuCuKRMW1wG/pNvN0UeUo27px4J7tlA7MDBPoEFQpDhVUJ0n1YeoyQDYFYn06 lK1eHGka2ew59eCs+tQVNh5KuE/90EEt8LcioWPEw//q95GztH8VSejoPaROIbp94jG//z9jGiMx/ yyovAQKmjVULzK0N7owGwVFcekRcY7sz17I4FsFGrT279dGzhYKjgmuNXzTThfsepPn6ve5CUOsQo mXHopDG0hfA4gabTugHi4C8796/rVak4dS5vf2DaudVN2rY4wkEPlnyoy7LTtqHczA5wvesE2C1VM xnf0tAwy3HQ6Eg==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovLqt-0006yx-Nl; Wed, 16 Nov 2022 12:05:32 -0500 Date: Wed, 16 Nov 2022 19:05:30 +0200 Message-Id: <83leoag78l.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87o7tc2xu8.fsf@codeisgreat.org> (message from Pankaj Jangid on Sat, 12 Nov 2022 17:23:19 +0530) References: <87o7tc2xu8.fsf@codeisgreat.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Pankaj Jangid > Date: Sat, 12 Nov 2022 17:23:19 +0530 > > * lisp/progmodes/eglot.el (eglot-server-programs): There are two > ways to run rust-analyzer. After adding the rustup component, > users can add rust-analyzer to path and run rust-analyzer directly > or they may run ``rustup run stable rust-analyzer'' command. This > revision adds the 2nd command to the list of server programs. > --- > lisp/progmodes/eglot.el | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el > index 63ebbe6cab..f54c2d2c3a 100644 > --- a/lisp/progmodes/eglot.el > +++ b/lisp/progmodes/eglot.el > @@ -181,7 +181,7 @@ eglot-alternatives > when probe return (cons probe args) > finally (funcall err))))))) > > -(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" "rls"))) > +(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" ("rustup" "run" "stable" "rust-analyzer") "rls"))) > (cmake-mode . ("cmake-language-server")) > (vimrc-mode . ("vim-language-server" "--stdio")) > (python-mode > -- > 2.30.2 João, what is the procedure for handling the submissions such as this one? Should we ping you and wait for your decision, or are you okay with installing such additions based on our own judgment? From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Nov 2022 17:15:02 +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 To: Eli Zaretskii Cc: 59214@debbugs.gnu.org, Pankaj Jangid Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166861887332542 (code B ref 59214); Wed, 16 Nov 2022 17:15:02 +0000 Received: (at 59214) by debbugs.gnu.org; 16 Nov 2022 17:14:33 +0000 Received: from localhost ([127.0.0.1]:58024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovLzc-0008Sl-FT for submit@debbugs.gnu.org; Wed, 16 Nov 2022 12:14:33 -0500 Received: from mail-oi1-f178.google.com ([209.85.167.178]:42628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovLza-0008SW-7C for 59214@debbugs.gnu.org; Wed, 16 Nov 2022 12:14:31 -0500 Received: by mail-oi1-f178.google.com with SMTP id q186so19198211oia.9 for <59214@debbugs.gnu.org>; Wed, 16 Nov 2022 09:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/RgbyeWSWsiYKCfuqFFemp3EB6KUAeCW153CUMsM6ho=; b=i9hu9BB8y29q+T3atwPfcSvMUv3mw8TpjN/8+13Kd/AdFVRjOfxHbHGAYeprxcmK8I BX65ySvmtWYxR5BJmzArLvUYlRWwxnd6uFXYhjajb/2LKUYOiP/EBe7Z2vVkDyy3NnLL v4Dh8JCuvfrkVVgxwGd+1zfCatvDvrziLTtfFjaqRVangTc2fqRVwKRT0lmaEIkZtrYa qDMBtDPPRL47llGwuRVsfhpwv11Do/t/davZ5ZzXHXCmMnfPQXfxh1QHwEds+ZrG9N/g HEHDjW+GcvXESkGx1bCKRx3W+sKR/vOfPF/qlrmFf47qJdreuWUrGadGz9e8Jr3hM12P tvbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/RgbyeWSWsiYKCfuqFFemp3EB6KUAeCW153CUMsM6ho=; b=J9eb7L9h6woJV84H6qC4qDOOSjx+dy7juSVo1nhPQ8oag2PdXNfuZ7n7Keh+udiePJ 4pQTthF+alMYPV3AFUpVxoZ9u2vm28FWZFupqqG3j7RPoejSLRSeEv7sdSta1qkyK5HX M9myQtKkJqmF6khyCOmAevSkK9HSQp2Ofc5DqwrkHq0lGEHLkzNmXUUAtoFchnTOn6OJ 3dfsvPsWQrYYyMUmxDGyK39aM5NTnJBBTwru/CqDZGDv4LNi1gQzAVxn5ec7cd4kDWU6 dO0l16jU23l8opjgZpcdhgs+PuS1/2LMDwv3dern/bc1CEjTQOep4E1zDkc6bmoybF84 Btwg== X-Gm-Message-State: ANoB5pkMO9sc5ntWO3SIs/RIgpKuTOzFrKcANFBFRgtgTpSmpS40+l45 P0auONoifJTEW/7b4HQYh018VzqYk378Hy9tDG4= X-Google-Smtp-Source: AA0mqf4hCGmSV+wljBxbnn2S63GDY2+N75tNtwS/tjd2yyIWaDr3AZVF61Mo4yqdrCl9WkKbdwdVYqGp/E+Jh/2mUtc= X-Received: by 2002:aca:170d:0:b0:35a:7e8d:8ad6 with SMTP id j13-20020aca170d000000b0035a7e8d8ad6mr2036910oii.171.1668618864333; Wed, 16 Nov 2022 09:14:24 -0800 (PST) MIME-Version: 1.0 References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> In-Reply-To: <83leoag78l.fsf@gnu.org> From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Date: Wed, 16 Nov 2022 17:14:11 +0000 Message-ID: Content-Type: multipart/alternative; boundary="000000000000ac99f305ed999a32" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000ac99f305ed999a32 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Nov 16, 2022, 17:05 Eli Zaretskii wrote: > > From: Pankaj Jangid > > Date: Sat, 12 Nov 2022 17:23:19 +0530 > > > > * lisp/progmodes/eglot.el (eglot-server-programs): There are two > > ways to run rust-analyzer. After adding the rustup component, > > users can add rust-analyzer to path and run rust-analyzer directly > > or they may run ``rustup run stable rust-analyzer'' command. This > > revision adds the 2nd command to the list of server programs. > > --- > > lisp/progmodes/eglot.el | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el > > index 63ebbe6cab..f54c2d2c3a 100644 > > --- a/lisp/progmodes/eglot.el > > +++ b/lisp/progmodes/eglot.el > > @@ -181,7 +181,7 @@ eglot-alternatives > > when probe return (cons probe args) > > finally (funcall err))))))) > > > > -(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives > '("rust-analyzer" "rls"))) > > +(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives > '("rust-analyzer" ("rustup" "run" "stable" "rust-analyzer") "rls"))) > > (cmake-mode . ("cmake-language-server"= )) > > (vimrc-mode . ("vim-language-server" > "--stdio")) > > (python-mode > > -- > > 2.30.2 > > Jo=C3=A3o, what is the procedure for handling the submissions such as thi= s > one? Should we ping you and wait for your decision, or are you okay > with installing such additions based on our own judgment? > Additions of servers in eglot-server-programs can be installed freely according to your judgement. Deletions and replacements based on reports of stale/unmaintained/deprecated servers as well, but feel free to ping me. Here, we would need and rust expert to explain why the the middle entry is different or more useful than the first one. I'm not that expert, but Pankaj's rationale looks reasonably sane. So maybe delete the simple "rust-analyzer" one? Or maybe not. But two entries for the same server looks odd. As i said, this must be looked at by someone with knowledge of rust toolchain and configuration idioms. Jo=C3=A3o > --000000000000ac99f305ed999a32 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, Nov 16, 2022, 17:05 Eli Zaretskii <eliz@gnu.org<= /a>> wrote:
> From: Pankaj Ja= ngid <pankaj@codeisgreat.org>
> Date: Sat, 12 Nov 2022 17:23:19 +0530
>
> * lisp/progmodes/eglot.el (eglot-server-programs): There are two
> ways to run rust-analyzer. After adding the rustup component,
> users can add rust-analyzer to path and run rust-analyzer directly
> or they may run ``rustup run stable rust-analyzer'' command. T= his
> revision adds the 2nd command to the list of server programs.
> ---
>=C2=A0 lisp/progmodes/eglot.el | 2 +-
>=C2=A0 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
> index 63ebbe6cab..f54c2d2c3a 100644
> --- a/lisp/progmodes/eglot.el
> +++ b/lisp/progmodes/eglot.el
> @@ -181,7 +181,7 @@ eglot-alternatives
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 when probe return (cons probe args)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 finally (funcall err)))))))
>=C2=A0
> -(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives = 9;("rust-analyzer" "rls")))
> +(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives = 9;("rust-analyzer" ("rustup" "run" "stab= le" "rust-analyzer") "rls")))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (cmake-mode . ("cmake= -language-server"))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (vimrc-mode . ("vim-l= anguage-server" "--stdio"))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (python-mode
> --
> 2.30.2

Jo=C3=A3o, what is the procedure for handling the submissions such as this<= br> one?=C2=A0 Should we ping you and wait for your decision, or are you okay with installing such additions based on our own judgment?
<= /div>

Additions=C2=A0 of= servers in eglot-server-programs can be installed freely according to your= judgement. Deletions and replacements based on reports of stale/unmaintain= ed/deprecated servers as well, but feel free to ping me.

Here, we would need and rust expert to exp= lain why the the middle entry is different or more useful than the first on= e. I'm not that expert, but Pankaj's rationale looks reasonably san= e. So maybe delete the simple "rust-analyzer" one? Or maybe not. = But two entries for the same server looks odd. As i said, this must be look= ed at by someone with knowledge of rust toolchain and configuration idioms.=

Jo=C3=A3o
--000000000000ac99f305ed999a32-- From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Nov 2022 19:32:02 +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 To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: 59214@debbugs.gnu.org, pankaj@codeisgreat.org Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166862710930791 (code B ref 59214); Wed, 16 Nov 2022 19:32:02 +0000 Received: (at 59214) by debbugs.gnu.org; 16 Nov 2022 19:31:49 +0000 Received: from localhost ([127.0.0.1]:58220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovO8T-00080Z-2u for submit@debbugs.gnu.org; Wed, 16 Nov 2022 14:31:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovO8Q-00080K-HN for 59214@debbugs.gnu.org; Wed, 16 Nov 2022 14:31:48 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovO8K-0003xD-Kg; Wed, 16 Nov 2022 14:31:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=0Yb2ZQnSXK9SAa0zN99GK2h26wuXfT5sO/hc1xSo/3I=; b=kb1YEEVqhz58K3Uqof63 zMm0kwTYMSev1URzo4e6JSDlXAEWlinnx+Kkh3rtZd43ezNRqPARPStlo/ylQkt+0tmRgnnkegWcE +2sqM+8mqAr5XuFYI4LE2IIEsLBftR4PEkvDDtkEY5sL4Sf5LvcKhceN7cHoj8C0x/j+fsgwoST8F /mh6S1yHCUdSxbOZ0Sewn2GuUOq6FaC55f0gUQGKGvOGRolPcOJizm5WzMRm4Vg8R2lBh9Irqz9+p IFw30sgn0qI+l4yO9U5f673E+Qi3AWOk9dxmHsBYmY5mQQhD3Epw7FcbJmojW3h6oP/hKTKjqBpIR 5PMWXpo0RqySmQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovO8J-0005z5-TF; Wed, 16 Nov 2022 14:31:40 -0500 Date: Wed, 16 Nov 2022 21:31:39 +0200 Message-Id: <83fseig0h0.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Wed, 16 Nov 2022 17:14:11 +0000) References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: João Távora > Date: Wed, 16 Nov 2022 17:14:11 +0000 > Cc: Pankaj Jangid , 59214@debbugs.gnu.org > > Here, we would need and rust expert to explain why the the middle entry is different or more useful than the > first one. I'm not that expert, but Pankaj's rationale looks reasonably sane. So maybe delete the simple > "rust-analyzer" one? Or maybe not. But two entries for the same server looks odd. As i said, this must be > looked at by someone with knowledge of rust toolchain and configuration idioms. For starters, maybe Pankaj could provide more details to answer your questions? Perhaps after talking to a Rust expert? From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Nov 2022 21:06: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 To: Eli Zaretskii Cc: 59214@debbugs.gnu.org, pankaj@codeisgreat.org Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.16686327117321 (code B ref 59214); Wed, 16 Nov 2022 21:06:01 +0000 Received: (at 59214) by debbugs.gnu.org; 16 Nov 2022 21:05:11 +0000 Received: from localhost ([127.0.0.1]:58305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovPao-0001u0-Ji for submit@debbugs.gnu.org; Wed, 16 Nov 2022 16:05:10 -0500 Received: from mail-oi1-f178.google.com ([209.85.167.178]:37792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovPam-0001to-WC for 59214@debbugs.gnu.org; Wed, 16 Nov 2022 16:05:09 -0500 Received: by mail-oi1-f178.google.com with SMTP id b124so19984376oia.4 for <59214@debbugs.gnu.org>; Wed, 16 Nov 2022 13:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kPTL8j8795le3bDVMPtbaqbVro1JbAsY2t5vssBf/k8=; b=arZIzqmoKgnCIG9jVAyke14NmOgzY3n5ssDgQWCp6Ti6GTf/yLHuXQZGP2JX447qzq nebHsUwWp9qbdEJDU0YkXXcgnRFSKYof9UfU+fG/px9Ep1yC2TxDV8g6cD2mccvMZgnA iEz1SCqCv2rOF6cmQ1jWLGN8IqnGEPVVoBf5R/l5IME0Oct8N0LOAJkWaYykmFJOSM7L tHHLpDRz4tXImfhm1nEHlihnADOKnzpgHaHQlNZIUZFw7zfRYq+d5ahr2qeySjZpsahy QnH97YPAjKaTiTBjpwi6RejMy+oLu+2Jrq559KMFcImcAmYwchvx8BI4tFWQKsLkXG7h +1vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kPTL8j8795le3bDVMPtbaqbVro1JbAsY2t5vssBf/k8=; b=AThpRenBsxks6Qa6AsqdckE7TOm9cBXARjn8Ilq0tf9/5DSyhKS+2UtOVVoBrB9rVb CxeT5+B+Qjo+LxDYBB79kXx3VBpZzPkezamrDq+jGN06YBIgOU6RoPRF/YEwLhMnqB/i vfSLHOWjhFIl2NV9EWjEEbemq+dkNUqYToUk9R5Sc3NuDu0U3SiyP7+7dW8FXf+eesX7 2UVv79nRo2ewj9qncscsKiuxK5nQp5YIC8YCC75+3+z55XdDps1qZVP0HJV5itoOwPRk T000rw0BFgD5fKE94+NPaQizDQtE559MupJOeUNlHAoAoy93z5YuwKTmocEdPqneQtvT lWtw== X-Gm-Message-State: ANoB5pmAxYeWliEXuHliGjiR3JLtPSUYRzUN1uGHbCCgTfGNDOdlp9JF VOvLGGWHZ/3O5MiJ226aEKUHyJKMn22Bj21wh3s= X-Google-Smtp-Source: AA0mqf6Gn2dXSd3o1FRxPYAxuF1TkIoBsvTDUeY/D+2Ys8fRPkieOmnGSoQCbw8clEsk0Z0wQZMV3O4Q2oE5ejcDfp0= X-Received: by 2002:aca:3442:0:b0:359:ca6a:7fc0 with SMTP id b63-20020aca3442000000b00359ca6a7fc0mr2604320oia.215.1668632703048; Wed, 16 Nov 2022 13:05:03 -0800 (PST) MIME-Version: 1.0 References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> In-Reply-To: <83fseig0h0.fsf@gnu.org> From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Date: Wed, 16 Nov 2022 21:06:06 +0000 Message-ID: Content-Type: multipart/alternative; boundary="00000000000086a05805ed9cd368" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000086a05805ed9cd368 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Nov 16, 2022 at 7:31 PM Eli Zaretskii wrote: > > From: Jo=C3=A3o T=C3=A1vora > > Date: Wed, 16 Nov 2022 17:14:11 +0000 > > Cc: Pankaj Jangid , 59214@debbugs.gnu.org > > > > Here, we would need and rust expert to explain why the the middle entry > is different or more useful than the > > first one. I'm not that expert, but Pankaj's rationale looks reasonably > sane. So maybe delete the simple > > "rust-analyzer" one? Or maybe not. But two entries for the same server > looks odd. As i said, this must be > > looked at by someone with knowledge of rust toolchain and configuration > idioms. > > For starters, maybe Pankaj could provide more details to answer your > questions? Perhaps after talking to a Rust expert? > After thinking about it some more, I think this case is comparable to ensuring 'serverx' is available in PATH/exec-path, which is something that we already ask users to do (not only for LSP servers). So I'd say don't change the value. Users can always try out new server invocations with C-u M-x eglot (I do this all the time, and because the resulting session is reasonably long lived and the invocation is persisted in history, sometimes I don't even bother to edit eglot-server-programs at all). Pankaj, is it really that uncommon to have a tool installed as part of a Rust package be in the execution path of a shell? It's not uncommon in other toolchains with what I think are similar package architectures, such as Node JS. Jo=C3=A3o --00000000000086a05805ed9cd368 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Nov 16, 2022 at 7:31 PM Eli Zaret= skii <eliz@gnu.org> wrote:
> From: Jo=C3=A3o T=C3=A1vora <joaotavora@gmail.com>
> Date: Wed, 16 Nov 2022 17:14:11 +0000
> Cc: Pankaj Jangid <pankaj@codeisgreat.org>, 59214@debbugs.gnu.org
>
> Here, we would need and rust expert to explain why the the middle entr= y is different or more useful than the
> first one. I'm not that expert, but Pankaj's rationale looks r= easonably sane. So maybe delete the simple
> "rust-analyzer" one? Or maybe not. But two entries for the s= ame server looks odd. As i said, this must be
> looked at by someone with knowledge of rust toolchain and configuratio= n idioms.

For starters, maybe Pankaj could provide more details to answer your
questions?=C2=A0 Perhaps after talking to a Rust expert?

After thinking about it some more= , I think this case is comparable to
ensuring 'serverx&#= 39; is available in PATH/exec-path, which is something
that we al= ready ask users to do (not only for LSP servers). So I'd say don't =
change the value.=C2=A0 Users can always try out new server = invocations
with C-u M-x eglot (I do this all the time, and becau= se the resulting
session is reasonably long lived and the in= vocation is persisted in history,
sometimes I don't even= bother to edit eglot-server-programs at all).

Pan= kaj, is it really that uncommon to have a tool installed as part of
a Rust package be in the execution path of a shell? It's not un= common
in other toolchains with what I think are similar package = architectures,
such as Node JS.

Jo=C3=A3= o
--00000000000086a05805ed9cd368-- From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 00:13:02 +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 To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , Eli Zaretskii Cc: 59214@debbugs.gnu.org, pankaj@codeisgreat.org Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.16686439731401 (code B ref 59214); Thu, 17 Nov 2022 00:13:02 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 00:12:53 +0000 Received: from localhost ([127.0.0.1]:58502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovSWT-0000MX-6l for submit@debbugs.gnu.org; Wed, 16 Nov 2022 19:12:53 -0500 Received: from mail-ot1-f52.google.com ([209.85.210.52]:39692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovSWN-0000M4-ME for 59214@debbugs.gnu.org; Wed, 16 Nov 2022 19:12:51 -0500 Received: by mail-ot1-f52.google.com with SMTP id g51-20020a9d12b6000000b0066dbea0d203so105984otg.6 for <59214@debbugs.gnu.org>; Wed, 16 Nov 2022 16:12:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=aGLIbSkL70nlcrrXFjxHc8hqFWozaiK3cr4Pvn6BSGM=; b=fD60CPL+OMPWsgO64mAGF40rRuahllrGHyQcgYBxlRlNqjpAP2O1X/v48539j3TS6B QedSfn42rksw5VVcdyzFygJlFQRWGvDGxo4SP6UC6h3981dFg6PFR9eRlPKlXXRp2qUk ecS+3c41MfrzlQIkAUFYJK7fx/YlCbXHzHA5THKc6iGWUSvWdlHt/yzfvyezLt5e7zur Y2qKfNA0cf+e9uQRjyv2rgw6/UO/Oq3TIiH5BcQ2PCbGDRA4igeWg9P0am3md1/Xzldx XdsPtAvRN5SyK9PzLAVECJLQjkDRjaaUax8WvlZkbkYJpokxWezAWFlJNhTwagq9FAHE cL6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=aGLIbSkL70nlcrrXFjxHc8hqFWozaiK3cr4Pvn6BSGM=; b=ycDkWwrl3szTqTZI8poiarr0OCEn6zRpv9esnKdgVz8DCAVdNK2S1V6ul+kr28iHWS knC+0TlJGFCmq+de2WBbcDPV15mo/qISZwu2ehE/vA1n0hfSF4X8eceJjeKiieklRSmq OQo8uHfmjXu5QVjzWoiYrHLeJoAfROoXP2Wq0/RDCU2PN3Xl0lVLzOmvOqacaLwOK4Om MNaAK59low3Qxmnu1fx+nWRSFIXhpLyt7u9L9l2TinF+bdJjm4A9+y6JpzSNSwmB9xLe J6s+027QmEXLPgerCT+Hz2jZRewIB6NWrIIZaa6kT9NU3IyypOBFyL+HTxxyC0+KF4FC px/g== X-Gm-Message-State: ANoB5pm5JDGA2HDaz1cFHKw9bJGErOVm67UR6H0oIO9J9LCMJwjr/GAF gAQvbAZmKcZxbUQQ4jrKxYnrDCJ+3O0Hf4sSRfE= X-Google-Smtp-Source: AA0mqf4bu4w0rmOZjL3HvthA5vK0YYnxSfNPXl7LFTk7AXZSUg/2mH7lntMhvrxT1sGCiGDdNPEKhmAyB9apxFYtwQ4= X-Received: by 2002:a9d:70cc:0:b0:66c:5232:b9d1 with SMTP id w12-20020a9d70cc000000b0066c5232b9d1mr272113otj.224.1668643962165; Wed, 16 Nov 2022 16:12:42 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 16 Nov 2022 16:12:41 -0800 From: Stefan Kangas In-Reply-To: References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> X-Hashcash: 1:20:221116:pankaj@codeisgreat.org::PGgU9Rfy7vbhf3A+:4gC9 MIME-Version: 1.0 Date: Wed, 16 Nov 2022 16:12:41 -0800 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jo=C3=A3o T=C3=A1vora writes: > After thinking about it some more, I think this case is comparable to > ensuring 'serverx' is available in PATH/exec-path, which is something > that we already ask users to do (not only for LSP servers). So I'd say > don't change the value. The difference is that rust-analyzer itself recommends using the rustup invocation as an alternative to adding the language server to PATH.[1] I also don't see any downside to adding it. The variable will get a tiny bit uglier perhaps, but the benefit is that a real hurdle will be eliminated for users. That's a win in my book. Footnotes: [1] https://rust-analyzer.github.io/manual.html#rustup From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 05:58:02 +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 To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: 59214@debbugs.gnu.org, Eli Zaretskii Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166866466310711 (code B ref 59214); Thu, 17 Nov 2022 05:58:02 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 05:57:43 +0000 Received: from localhost ([127.0.0.1]:58819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovXuB-0002mg-AW for submit@debbugs.gnu.org; Thu, 17 Nov 2022 00:57:43 -0500 Received: from mail-pj1-f49.google.com ([209.85.216.49]:55964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovXu9-0002mR-3d for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 00:57:41 -0500 Received: by mail-pj1-f49.google.com with SMTP id k5so738985pjo.5 for <59214@debbugs.gnu.org>; Wed, 16 Nov 2022 21:57:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=jTiYfV4Bmw6UwhEBbrGCJRZfyfjAzaBdW69jfqtDG9I=; b=rWK0YM4TzREjKowmBQzowN39KBrkZg9AyNXQ+g7VIs40KSnyERZxh4jal3laf9lizZ KT4qf4RxjTnFb83I1kPpPiZ6makinOEiLgKx9bPLwYDj3mIe5WuXR7nYCdntQFJORLh5 4qi2y3LYhTo3Y5tP6Rwg1cnUUXYU4XWl9/IfUu6PLfU3t+MFiE/UyWEyxnyLzJvi7M6H HMjH3aVUeFbekEuqzO3gTKjydPDg7GQ0ebE7fqzFqN29aDEbFjrciis7e4GXwxja7cRV 3qtn2hkAv3zRBSqCrNSJF/ac0LSAtgZsYoB3hwFD/HcF10ammsqu3t8iNROh5QXLngGT CpgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jTiYfV4Bmw6UwhEBbrGCJRZfyfjAzaBdW69jfqtDG9I=; b=nADsn17PMHXpk6Hzh0ZdPcjQzFeAJmQ7E7fosGwxkTzWB83mb+JB+Sd/gkGoY/8h6d QseTqTn2g4j14QdHaIr0edS+4YIH3OOEP4wdRGIsZW1kJO9PCNisXW/RbHdE1LQajKLz lVrX0vEftMowDhaegr8KIbzDfIYpqxBgYGRwq/x/K3PMCV4yGEC86KPmIv0lwcBpTPoT ea6nYF/jHg8vIied8BiAYK0xBMp+KLXJbBePdxTQLMN/V4hV0DbAExhiH+eMzpXfJyLY ZazjwTXdXuogoJWX/8knGVKqaMlq2uVuO3eayR8LJ/1rQqb91cMAt+gPnZ/QI1csy1y8 SFzQ== X-Gm-Message-State: ANoB5pnAWN9VXeMJulALGcQAizbqNUEQgjH5F06EGQRkzA5GyBkKVZcR dDxMSkXG2ZYWt2ElERevBB+eKKtuqyiaXw== X-Google-Smtp-Source: AA0mqf6bn783ynEE7XyiCkCHyCLnN/pAnLWlkaoht/EF38VkBTL2/RGVSK1tTcfIz3e82vNLepuWiQ== X-Received: by 2002:a17:90a:c286:b0:212:2098:fd2f with SMTP id f6-20020a17090ac28600b002122098fd2fmr1240771pjt.162.1668664655105; Wed, 16 Nov 2022 21:57:35 -0800 (PST) Received: from anant ([49.36.236.45]) by smtp.gmail.com with ESMTPSA id c17-20020a170902d49100b00187033cac81sm216523plg.145.2022.11.16.21.57.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 21:57:34 -0800 (PST) From: Pankaj Jangid In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Wed, 16 Nov 2022 21:06:06 +0000") References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> Date: Thu, 17 Nov 2022 11:27:31 +0530 Message-ID: <87sfiirulw.fsf@xyz.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jo=C3=A3o T=C3=A1vora writes: > Pankaj, is it really that uncommon to have a tool installed as part of > a Rust package be in the execution path of a shell? It's not uncommon > in other toolchains with what I think are similar package architectures, > such as Node JS. Perhaps I wasn't clear enough. The rust toolchain is similar to the tools of NodeJS world. Both try to install packages/components in a standardised location. And users are not required to move files and create links manually using OS level commands like `cp', `ln' etc. `npm' and `rustup' commands do that for users. >From the rust users mailing, as far as I have understood, the maintainers are seeing `rust-analyzer' as a replacement for `rls'. And `rust-analyzer' was recently moved from `nightly' to `stable'. They have not yet placed `rust-analyzer' executable in PATH/exec-path, possibly because they don't want to keep two executables for the same job. Or may be they are thinking of keeping the name `rls'. Not sure though. But `rustup run stable rust-analyzer' will work in all cases. So my recommendation is that we keep just the `rustup' version and `rls' as fallback. I have attached the updated patch. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Invoke-rust-analyzer-using-rustup.patch >From 727e362e142ae3d292bf7abed3b592e0dff36725 Mon Sep 17 00:00:00 2001 From: Pankaj Jangid Date: Thu, 17 Nov 2022 11:25:16 +0530 Subject: [PATCH] Invoke rust-analyzer using rustup * lisp/progmodes/eglot.el (eglot-server-programs): There are two ways to run rust-analyzer. After adding the rustup component, users can add rust-analyzer executable to PATH/exec-path using OS level `cp' or `ln' commands and then run rust-analyzer directly or they may run ``rustup run stable rust-analyzer'' command without making PATH changes. 2nd command is the preferred way to invoke the language server because it doesn't require user to manually create link inside `~/.cargo/bin'. --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 12808e80c4..fb95313aa0 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -181,7 +181,7 @@ eglot-alternatives when probe return (cons probe args) finally (funcall err))))))) -(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"))) (cmake-mode . ("cmake-language-server")) (vimrc-mode . ("vim-language-server" "--stdio")) (python-mode -- 2.30.2 --=-=-=-- From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 06:00:02 +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 To: Stefan Kangas Cc: 59214@debbugs.gnu.org, Eli Zaretskii , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166866478510921 (code B ref 59214); Thu, 17 Nov 2022 06:00:02 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 05:59:45 +0000 Received: from localhost ([127.0.0.1]:58834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovXw9-0002q5-Hl for submit@debbugs.gnu.org; Thu, 17 Nov 2022 00:59:45 -0500 Received: from mail-pj1-f43.google.com ([209.85.216.43]:51957) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovXw7-0002pr-6n for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 00:59:43 -0500 Received: by mail-pj1-f43.google.com with SMTP id o7so762181pjj.1 for <59214@debbugs.gnu.org>; Wed, 16 Nov 2022 21:59:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=PfdXkVx2LHD1c5FVCBO2S2xVtfdKcnDSx+mX6jQRhs8=; b=O1saMFcLtokJ0AcLepVOlfjIVsmTYqm3qyxpCnfxQFkAjXiE6F6/vgTpgwplnYbW3D hO1NqZdgO9mWQEjmSz5UNSbqsTmTG7jCSKdczSKdx017WVVLygn33d5wcolUdpUHWtF/ u9rSlqCGuUaKsfGvHH6GcVLc3UjlArt5iSRYXrzTysJic8CYj2sk/tlcxjTvVFjN2FG6 omKOE3ZWK/8Pr/EQaAlZD319ML7yvSjv0R0Ov3DgZARTIHrrpsGj9M8xBJID5HZHJUmh skq9HWUC7ML1B7sMl7PA1L7iifXSWyZI1m4PzVOZFwMgoidVCkooXDndPxsHeBu8yPsW 4+Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=PfdXkVx2LHD1c5FVCBO2S2xVtfdKcnDSx+mX6jQRhs8=; b=zPxdb8nu8kYzT5i7h8VDhBV4QNqC52NaRqcg8j38O/cOvE7ZiM9bdv3X/RbAyWlb1C /sgdMJT3l2d+D6U4ZmVJ6hUdjXceHBl4RY3BSGKTHwko2Fw+nnF3FLOkRdSAIN4kJXCf 7+T1DqCe6HY4Yn2wO6cpmz33zD3DRNHOgVg35vNTs6Z9zznoPEMXCiNw4HOGO0aPXgyM JiC16+0EVAUMyG4OroSaQCqZpxLLf5LKxN+CCT4ElfabJCch2O/WG/mtZXVKSq5iAedJ GZxJd6TvAesV9OauLIBGVavdAO8+PlFixlY9WVteA6c+ESLfEDiVPNwgKPlXYQZG+k0s uYqQ== X-Gm-Message-State: ANoB5pkBBv+/w8zQcKN98lSUvLz1pRn6r9ZOd9FHueyYUT6/LXzdnEoF nJo3RPiN63ZTr+mDN0JjdomzVnWIl4WBfw== X-Google-Smtp-Source: AA0mqf6z+yj98fNCAi/vTCF9o2JhdXh36P61lROcPdN9Ts6/ju3gBdzYpIN15/0LPINlAsDmES5JmQ== X-Received: by 2002:a17:902:a609:b0:186:9c2b:3a39 with SMTP id u9-20020a170902a60900b001869c2b3a39mr1281803plq.115.1668664777403; Wed, 16 Nov 2022 21:59:37 -0800 (PST) Received: from anant ([49.36.236.45]) by smtp.gmail.com with ESMTPSA id z11-20020aa79e4b000000b0056bd95259d6sm72130pfq.189.2022.11.16.21.59.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 21:59:37 -0800 (PST) From: Pankaj Jangid In-Reply-To: (Stefan Kangas's message of "Wed, 16 Nov 2022 16:12:41 -0800") References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> Date: Thu, 17 Nov 2022 11:29:34 +0530 Message-ID: <87o7t6ruih.fsf@codeisgreat.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Stefan Kangas writes: > The difference is that rust-analyzer itself recommends using the rustup > invocation as an alternative to adding the language server to PATH.[1] > > I also don't see any downside to adding it. The variable will get a > tiny bit uglier perhaps, but the benefit is that a real hurdle will be > eliminated for users. That's a win in my book. Yes. That's exactly my thought. I have updated the patch accordingly. From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 08:13: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 To: Pankaj Jangid Cc: 59214@debbugs.gnu.org, Eli Zaretskii Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.1668672731907 (code B ref 59214); Thu, 17 Nov 2022 08:13:01 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 08:12:11 +0000 Received: from localhost ([127.0.0.1]:58998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ova0J-0000EZ-9C for submit@debbugs.gnu.org; Thu, 17 Nov 2022 03:12:11 -0500 Received: from mail-wr1-f42.google.com ([209.85.221.42]:40738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ova0E-0000E1-Ay for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 03:12:10 -0500 Received: by mail-wr1-f42.google.com with SMTP id z14so2392592wrn.7 for <59214@debbugs.gnu.org>; Thu, 17 Nov 2022 00:12:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RJswb4XUnid8gMGM/MNAyrsySwKETt8H/0c0jFKkWdQ=; b=gkiO+MgO90MOlZgEAMtd0cUIF3wa9VHFpKu3H2SJTVMtWHFIvLKp+Drfyk4MbSFkT4 pC9pclD7D85cMwmTDF6jHu/uZxAerhB8HSDnUAoNF/luypTEuvY7XelpxIjS/UnLX6Gt CaiubQnUT6M7sZAwA36d5XaDoxYbu6Cr6exqLJiI25RX3E4QuFj2gE1kURnsQ2oz/WxG FHaaKwfUjNY27rTRX/P9SohXoViWMTS3VT+icfQUzKzrxZPE4vLmHLYj997vyKOrpBvU 09C0HqhHq6lUWlbca5GFkrUM1E82kXcUUZ+a5c0jdkWAGF/0HVVrwQVTSCtKrtUwQsZn uTZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=RJswb4XUnid8gMGM/MNAyrsySwKETt8H/0c0jFKkWdQ=; b=1fZWK2eznMdcEDk6J9Ps7GWuL0Dav/HRv+/6YY07dSYfMLAJXCSo23cGbnpigiOJKk Pu3IGi5zwix7xf91jcNUCVGCOHfI2/aMuljsjK9YU7Uhh0VGSDXvnZVOq2nvLwjpML+J 8pyjes97p44tMqZhPR4CTRaIG+wjQrhoNhKgToOr9UCOUQboxQXGdQk7rEM5amQKqIO9 nY4hMRQNqJTk/GiyBZpF49OSOm3Ctr2dv7OcofikMsXtVudYvc6qeoV0NJkDgw3AMMjh Eq65te8zlnWY8Rx8gi5M01OR5pLpZ+rQ+BPO/5QZFrLa6yxqYjXnC4SY/IR7nO70HT+4 Ydbw== X-Gm-Message-State: ANoB5pk+2CpRAannn6y0uJaCT7/WIRH7KC5H//w4n3t6puFWOrp6LsHx VV+l6V/REidSEbIUAR288CdCvyIuTQ4= X-Google-Smtp-Source: AA0mqf7Qm565QACsRN8+741GjXFyCLFV1jkpswaq2FeRndUZHrDtWVizKUAj3+Pxd6t2rDHR9aSeQg== X-Received: by 2002:a5d:4e8b:0:b0:241:9606:110c with SMTP id e11-20020a5d4e8b000000b002419606110cmr714985wru.531.1668672720105; Thu, 17 Nov 2022 00:12:00 -0800 (PST) Received: from krug (87-196-81-1.net.novis.pt. [87.196.81.1]) by smtp.gmail.com with ESMTPSA id j20-20020a5d6e54000000b002416f0f1e96sm250362wrz.43.2022.11.17.00.11.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 00:11:59 -0800 (PST) From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= In-Reply-To: <87sfiirulw.fsf@xyz.invalid> (Pankaj Jangid's message of "Thu, 17 Nov 2022 11:27:31 +0530") References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> <87sfiirulw.fsf@xyz.invalid> Date: Thu, 17 Nov 2022 08:13:12 +0000 Message-ID: <875yfem21z.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Pankaj Jangid writes: > Jo=C3=A3o T=C3=A1vora writes: > > So my recommendation is that we keep just the `rustup' version and `rls' > as fallback. I have attached the updated patch. I'll let you guys make a decision but consider maybe consider these simple questions when making it. 1. If I was to start developing rust today as a average programmer but Rust newbie and I installed one of these "stable" or "nightly" things, which one would I probably pick? And would I have a 'rust-analyzer' executable in my PATH as a result of that? 2. What are the odds that a average Rust programmer understands a message telling her "Searching for program: No such file or directory, rust-analyzer" and endeavors to create a 'rust-analyzer' script with sth like #!/bin/sh rustup run rust-analyzer somewhere in this config? Node JS/NPM also has this 'npm link' which creates a global link to a given specific version of an NPM package, and that includes ensuring its executables are in the PATH. Is there such a thing in RustVille? 3. What are the chances that an average Rust programmer stumbles across the Eglot manual and reaches: (with-eval-after-load 'eglot (add-to-list 'eglot-server-programs ("fools" "--stdio"))) And understands what to do? 4. The 'rust-analyzer' executable that was once, somehow, an out-of-the-box thing, right? Why is it not anymore? Is it temporary, i.e. it coming back in the future? Or does Rust frown upon these things and inequivocally prefers 'rustup run' from now on? Or was it never an out-of-the-box thing? If so, why is it in eglot.el as if it was? 5. If you take away the current 'rust-analyzer' entry, how many bug reports from annoyed users will we get? 0? 1? Million? Jo=C3=A3o From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 08:20: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 To: "M. Ian Graham" Cc: 59214@debbugs.gnu.org, Eli Zaretskii , pankaj@codeisgreat.org Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.16686731421561 (code B ref 59214); Thu, 17 Nov 2022 08:20:01 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 08:19:02 +0000 Received: from localhost ([127.0.0.1]:59010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ova6v-0000P6-W4 for submit@debbugs.gnu.org; Thu, 17 Nov 2022 03:19:02 -0500 Received: from mail-oi1-f180.google.com ([209.85.167.180]:38652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ova6u-0000Ob-Sl for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 03:19:01 -0500 Received: by mail-oi1-f180.google.com with SMTP id v81so1103952oie.5 for <59214@debbugs.gnu.org>; Thu, 17 Nov 2022 00:19:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=D1hJXdssLPPr9Zu29FnbKa+genAtMVrmWtbO+z3EZow=; b=DF/Njk9V4SrhD9YJM2kI+CV80q+c6ilmhJZXprrAP2jEkxpVYyHxOJhwiPlS464eHK y7HnqftzY8Nb93yxW1S1f3ol0lsh5+d2cF/sZvSkH2y9NScNfmOCWQ88WeSvDDo27VFT hx52qLlQjTNwOEGYB6sKAN2VmBgnuySZPqHISlaWDagp8gt1DiAJIuWEfeOZPAUacT6T PYBSnOpCZEGeQj2uKGIHjRr2rcyxe98AFacDAUDEL1rOWAFvGqnuUQ8n/WAsMbpPqZsl G4bCeAskOzB5HrTYV1wz8MvLYnnMw0yXAYia6brODj7PnSRfzIX44lzxME2++FiUcp+Q BOig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=D1hJXdssLPPr9Zu29FnbKa+genAtMVrmWtbO+z3EZow=; b=ZE8vEbtBVakfb0B16jutuobZ7YOaN68aV25h0mEWrBg4F6paEUm7fPccIWZmci8hGB 5OQvfCEWrof35vYFCw7Jhe/AQ/JAIdXp95+RkxzadhCIpZPs1AQDN/tJ0icICecurgSF qkdVtSfweblA/E0lspAKlwuok6bUra62LKNmhsXQmfWJ5beJjb9POyZf5DZ5DccgBexe kApMae48N4L/prhGisjhxx1F9rNNYvBIF7PLpmlN7wlRwtyeicY8Xm6E/fQGQJy3tG2E lLEushVPG4jWzIAiR7QJqQkL19egw5f2fVLcfDYxhJq0o/HxfldZtsuU0dghw/HfEpfk Jk7A== X-Gm-Message-State: ANoB5plY4Ivkw0Q1slmIFxy+4iWkAgmu0iwjnsnbNDMGUB9ynYH6FsIU UiZAnZqAU3hHLvU9jOqSwvm9DVYDh+WJQAs7Axk= X-Google-Smtp-Source: AA0mqf6Un2FgA5sNlO4zoU+FGnSDR1uOT/O8V2co/jr+2mJ/9I2YvhAjs0JCnTSsTIIDHHEUMvMwwsLBJ3nSZAtOsRE= X-Received: by 2002:a05:6808:68b:b0:359:ca6a:7fc0 with SMTP id k11-20020a056808068b00b00359ca6a7fc0mr611631oig.215.1668673135233; Thu, 17 Nov 2022 00:18:55 -0800 (PST) MIME-Version: 1.0 References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> In-Reply-To: From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Date: Thu, 17 Nov 2022 08:19:57 +0000 Message-ID: Content-Type: multipart/alternative; boundary="00000000000078ce5505eda63d09" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000078ce5505eda63d09 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Nov 17, 2022 at 8:12 AM M. Ian Graham wrote: > > If we're adding a new dependency on an optional installation method, can > we also please retain the "add rust-analyzer to PATH and eglot will just > work" current behavior as well? > So rustup is just an optional way of installing rust-analyzer? If so I think we shouldn't tweak this. Jo=C3=A3o (tangent: rustup being optional is intriguing and interesting. If I wanted to learn Rust, just Rust, should I start with a rustup-less setup?) --00000000000078ce5505eda63d09 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Nov 17, 2022 at 8:12 AM M. Ian Gr= aham <hello+emacs@miangr= aham.com> wrote:

If we're adding a new dependency on an optional installation method, ca= n we also please retain the "add rust-analyzer to PATH and eglot will = just work" current behavior as well?

So rustup is just an optional way of installing rust-analyzer? If so I t= hink we shouldn't
tweak this.

J= o=C3=A3o

(tangent:=C2=A0 rustup being optional is = intriguing and interesting. If I wanted
to learn Rust, just = Rust, should I start with a rustup-less setup?)


--00000000000078ce5505eda63d09-- From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 09:07: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 To: "M. Ian Graham" Cc: 59214@debbugs.gnu.org, Eli Zaretskii , pankaj@codeisgreat.org Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.16686759946320 (code B ref 59214); Thu, 17 Nov 2022 09:07:01 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 09:06:34 +0000 Received: from localhost ([127.0.0.1]:59073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovaqv-0001dr-QB for submit@debbugs.gnu.org; Thu, 17 Nov 2022 04:06:34 -0500 Received: from mail-oi1-f169.google.com ([209.85.167.169]:40949) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovaqu-0001de-3Z for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 04:06:33 -0500 Received: by mail-oi1-f169.google.com with SMTP id n186so1195742oih.7 for <59214@debbugs.gnu.org>; Thu, 17 Nov 2022 01:06:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=N+X6xwE7I3Y+MX2Lh76rDZ7QU1llpgj79mROYzX/1Ac=; b=X1zGCcTewYFmDkmeXpIHuXUfPXs9SpBakkzY4r36RIfYQha5Dzmlkv37vyMhqWroy2 4HccQoXnEE4Y+sFEEE+N+3pdRubr6qcsL4NOztin9yYDptvLa04rrwGFg0v9SyGpRRK1 JXqnbT9IFMrr/M1z0op854WnPcGrWzkWmRMXxh1+ZBGKvNqWokDKn6rjhC3dJpFNftm8 4QiCL+eNeSvLH9yfoBF2axiz1C7jGmI6HydljxvFL1yYlma+Domv5gJRZ621clApXis+ De/AF/CvvmBITN2LoFj/QYyz6OAcm3ALg3N1VWkfZFFJ+IL7QygPo6iXb5LNu1SYqlxN d47A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=N+X6xwE7I3Y+MX2Lh76rDZ7QU1llpgj79mROYzX/1Ac=; b=arFzw6o4xUTXw8OQ9s6E4XbKz9N3uXtrTyrcPQmrHriAEoR/MUb399jOiE27BTgvpU hgqM58el2AO6HCI9cYdsMUqyzWxLvuYu3Xaao/xgjYzK2+eORugF61xk8tJaPSQFVt5x y7F/NOUHiF+ROWyS4bhBvSlW1wBgDGkCRh5k3cJur3u2Ep11avYyrlk8ckUvWpncIV3e uKjSwyDbGlE/KauinUKwswnZZd5WaFJTVUylFGNCtp4ZzqGoqoZvv+L3uE06rxvxK49l VicG5OoY36jfLqJvTc7KXf0/sywfocNQkotMgce2FVM/wUWRzLnjmOMgWfp1btHow/qE 9UjQ== X-Gm-Message-State: ANoB5pmCrEEi5hNJAZ+Q2qVj/xo72EopaJd56TSBUajK0GlVzelvSlKT 9oCHTWHDNb3AvFOx6T9lI9Jem9b5nM1g8mk3u/8= X-Google-Smtp-Source: AA0mqf51yk2dcZ9aZ4SMoix6KZYJpZ7RUNghYZYtQelF24128q0u4E+cPQK/fgzuR35qVY0lC8IQJdKwnfiKRoGc0dc= X-Received: by 2002:aca:170d:0:b0:35a:7e8d:8ad6 with SMTP id j13-20020aca170d000000b0035a7e8d8ad6mr3323799oii.171.1668675986437; Thu, 17 Nov 2022 01:06:26 -0800 (PST) MIME-Version: 1.0 References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> In-Reply-To: From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Date: Thu, 17 Nov 2022 09:07:28 +0000 Message-ID: Content-Type: multipart/alternative; boundary="0000000000006abab305eda6e7b2" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000006abab305eda6e7b2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Nov 17, 2022 at 9:01 AM M. Ian Graham wrote: > > If you're an emacs user comfortable with other CLI compilers, you'd be > absolutely fine starting with your preferred package manager's "install > rust" command and working from there for the bottom-up approach, assuming > your distro packages the standard installer. Using this gives you > rustc+cargo, which is the equivalent of node+npm, go+subcommands, etc. If > that's not available, rustup is fine too! > Indeed, I'm definitely a bottom-up guy these days. Many thanks for the tips. I'm using archlinux, I think it carries a good rust package. Jo=C3=A3o --0000000000006abab305eda6e7b2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Nov 17, 2022 at 9:01 AM M. Ian Gr= aham <hello+emacs@miangr= aham.com> wrote:

If you're an emacs user comfortable with other CLI compilers, you'd= be absolutely fine starting with your preferred package manager's &quo= t;install rust" command and working from there for the bottom-up appro= ach, assuming your distro packages the standard installer. Using this gives= you rustc+cargo, which is the equivalent of node+npm, go+subcommands, etc.= If that's not available, rustup is fine too!

=
Indeed, I'm definitely a bottom-up guy these days.=C2=A0 Man= y thanks for the tips.
I'm using archlinux, I think it c= arries a good rust package.

Jo=C3=A3o
--0000000000006abab305eda6e7b2-- From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 10:19: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 To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: 59214@debbugs.gnu.org, Eli Zaretskii Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166868032013543 (code B ref 59214); Thu, 17 Nov 2022 10:19:01 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 10:18:40 +0000 Received: from localhost ([127.0.0.1]:59202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovbyi-0003WN-4H for submit@debbugs.gnu.org; Thu, 17 Nov 2022 05:18:40 -0500 Received: from mail-pj1-f49.google.com ([209.85.216.49]:37761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovbyf-0003W8-Ar for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 05:18:38 -0500 Received: by mail-pj1-f49.google.com with SMTP id d59-20020a17090a6f4100b00213202d77e1so5020614pjk.2 for <59214@debbugs.gnu.org>; Thu, 17 Nov 2022 02:18:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bZ1/C6ZbNXlyQG7GJk0PzYCrxFdMzi2ap7xuVWFOIMc=; b=A2VJdZ/Wy+wXnDGySKgXSjH3VKGWBLvfZboVSzEXVSaG4FD5eD0PXVy6+/M8Pj6Cga 3gff3/tsKL50rfyP4Sazsou3OPckjuW6VRctlNDdRh4oiwU6Py9X7a5RT+8wYFIlDeS9 +Z1jUwAEp6nwcMKN/xE/NcAL2BjQJWY/+1mmDwlcT6ooh6S6PMg/NoS/IjXRuNxqHduH RswzSgRgR/9ObIsgwVfb1PQwR0FbwzHcnlha65vyzv8LL4wtUwBlPPI0nTC4RfSIUkqG oXu8j378cGiHcjf6q7s8bhbA8wMj03sswNZWsowurIE/lXyxkG1xDjH7Xt3MSphYjztp Rscg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=bZ1/C6ZbNXlyQG7GJk0PzYCrxFdMzi2ap7xuVWFOIMc=; b=Hq51wPrdEtkizQCuf8RPEvbkarzusqp6C80uq8Ptytdo6O01i8QDvsW5UHHtTnViL/ J4WjPyBxQoj6oTkK7m9h1PzATbZEVgU6ZQOHig3xF3ugEhcHnMQKcnUYllIeHAVs9VOf aG5ZEKJ9ttubrFbNvMrnwovQA9GOpvNNQFhWOwGrXPt++UHmhj8dGrhXBjsbjU2Fut7C kAgq4s2T/3aa4ogt75BQalilLpSdjIQfUJsBRHb7Up1g52CvxenRGOOFq90+9StGRaDo E6YgW9iXC+wHGMd1yFRSElIuSFGipE8e0iGKB1+FRxQTut+VIVBGjPGxDFEvtC9axvRK goSA== X-Gm-Message-State: ANoB5pnrrlAP8JXG0dd5yzcf0mrs0W2wg2SXmUoNpBxKjV/tOrxecgBP xWO1sTAgWGuQZ4QTIu6khJekpIEVmF5ozA== X-Google-Smtp-Source: AA0mqf4kviR/2zBGDjj3ZCxndTtQ/H7JkE0jd0ifPW/5LuHIUfRh/Enz1xlUiIzfVqc6sOVuZeHmIQ== X-Received: by 2002:a17:903:31ce:b0:186:5f71:7939 with SMTP id v14-20020a17090331ce00b001865f717939mr1999081ple.162.1668680311210; Thu, 17 Nov 2022 02:18:31 -0800 (PST) Received: from anant ([49.36.236.45]) by smtp.gmail.com with ESMTPSA id a6-20020a1709027e4600b0017f36638010sm827640pln.276.2022.11.17.02.18.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 02:18:30 -0800 (PST) From: Pankaj Jangid In-Reply-To: <875yfem21z.fsf@gmail.com> ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Thu, 17 Nov 2022 08:13:12 +0000") References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> <87sfiirulw.fsf@xyz.invalid> <875yfem21z.fsf@gmail.com> Date: Thu, 17 Nov 2022 15:48:27 +0530 Message-ID: <8735ahsx3g.fsf@codeisgreat.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Jo=C3=A3o T=C3=A1vora writes: > 1. If I was to start developing rust today as a average programmer but > Rust newbie and I installed one of these "stable" or "nightly" > things, which one would I probably pick? And would I have a > 'rust-analyzer' executable in my PATH as a result of that? If the installation was done using `rustup', as described in the official page - https://www.rust-lang.org/tools/install, then `rust-analyzer' executable will not be in PATH. But as pointed out by Ian, there may be other users who are following alternate installation methods. So keeping one or the other in server programs will be annoying for at least one set of users. > 2. What are the odds that a average Rust programmer understands a > message telling her > > "Searching for program: No such file or directory, rust-analyzer" > > and endeavors to create a 'rust-analyzer' script with sth like > > #!/bin/sh > rustup run rust-analyzer > > somewhere in this config? > > Node JS/NPM also has this 'npm link' which creates a global link to a > given specific version of an NPM package, and that includes ensuring > its executables are in the PATH. Is there such a thing in RustVille? If user has installed rust-analyzer using some other package manager from their distribution then this problem won't occur. But if user is following the `rustup' path then there are features like `rustup which' that user can use to find the location of executable and then create a link in an accessible location. It will not be difficult for a GNU/*nix user. But windows users will have to add the whole directory (return by `rustup which') in PATH. I can speak for myself though. It is easy for me to create that link. But I don't want to touch the directory which is managed by `rustup'. It would be best if `rust-analyzer' works out-of-box if I just install, Emacs and Rust (via rustup). Then I would just say, (add-hook 'rust-mode-hook #'eglot-ensure) > 3. What are the chances that an average Rust programmer stumbles across > the Eglot manual and reaches: > > (with-eval-after-load 'eglot > (add-to-list 'eglot-server-programs > ("fools" "--stdio"))) > > And understands what to do? If user is conversant with Emacs, this is ok. If the user is new to Emacs as well, then he/she might have some difficulty understanding this. > 4. The 'rust-analyzer' executable that was once, somehow, an > out-of-the-box thing, right? Why is it not anymore? Is it > temporary, i.e. it coming back in the future? Or does Rust frown > upon these things and inequivocally prefers 'rustup run' from now on? > Or was it never an out-of-the-box thing? If so, why is it in > eglot.el as if it was? I am not sure about this. I have never seen this in my PATH. May be because I just use `rustup' to install/update, like I use `apt' in Debian. > 5. If you take away the current 'rust-analyzer' entry, how many bug > reports from annoyed users will we get? 0? 1? Million? After reading Ian's arguments, I feel that it is best to keep both -- rust-analyzer and rustup ... -- to make it convenient for both non-rustup users and rustup users. So the first patch was more suitable. From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: "M. Ian Graham" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 10:24:02 +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 To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: 59214@debbugs.gnu.org, Eli Zaretskii , pankaj@codeisgreat.org Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166868061314078 (code B ref 59214); Thu, 17 Nov 2022 10:24:02 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 10:23:33 +0000 Received: from localhost ([127.0.0.1]:59219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovc3N-0003et-Qn for submit@debbugs.gnu.org; Thu, 17 Nov 2022 05:23:33 -0500 Received: from mail-4018.proton.ch ([185.70.40.18]:10677) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ova0I-0000EN-In for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 03:12:14 -0500 Date: Thu, 17 Nov 2022 08:11:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=miangraham.com; s=protonmail; t=1668672723; x=1668931923; bh=fBgzlcNBuPnC91eQgxQWk5en6hW0xhS8oVLRBOZuieU=; 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=bBtp1Y23U9nXeQwmUrOEceS3HXTF5FvTl8A8HfdL/Im1M9PcQyZFWIz4a/AxOduUe QnB2aC3yLx7kW+M+Z78YHWSJrdUuM7YfABmw/M6caA/Wg/khf/KEpTlRcjnpog6cP9 yipA/03PuoBIXEjPQoHtqkyI+Dds6ZfxhTjAmm6qO1hQcvdirl/6GUxXY5SiB+4kZ3 X7SoT/ibvr4J46WV3fbp+GXmuBrnpSCc921ubEJa0NlDU/Cev+7KDm/l+lLkizUWXf mC7/kuwG+OTiriYvkMeuAISAgD7HmNZvZZjSShlDu6HvLwUlDAVsBmyPjGgrzfCl9m M8scku9Ds413w== From: "M. Ian Graham" Message-ID: In-Reply-To: References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> Feedback-ID: 29547276:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Mailman-Approved-At: Thu, 17 Nov 2022 05:23:29 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jo=C3=A3o T=C3=A1vora wrote: > Pankaj, is it really that uncommon to have a tool installed as part of > a Rust package be in the execution path of a shell? It's not uncommon > in other toolchains with what I think are similar package architectures, > such as Node JS. Hello from the peanut gallery and no this is not at all uncommon. At minimum, guix/nix users avoid rustup (as they do other convenience insta= llers like nvm, gvm, etc) to keep project-specific toolchain versions out o= f the global environment. Quantitatively, more mac+homebrew users installed rust-analyzer directly th= is month than installed rustup. Those users have rust-analyzer in PATH and = (probably) no rustup. https://formulae.brew.sh/formula/rust-analyzer https://formulae.brew.sh/formula/rustup-init Personally, my main language is rust and I haven't used rustup in years. It= is useful but strictly optional. Requiring it for access to rust-analyzer = will break working setups. If we're adding a new dependency on an optional installation method, can we= also please retain the "add rust-analyzer to PATH and eglot will just work= " current behavior as well? Thanks, Ian From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: "M. Ian Graham" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 10:24:02 +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 To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: 59214@debbugs.gnu.org, Eli Zaretskii , pankaj@codeisgreat.org Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166868061314086 (code B ref 59214); Thu, 17 Nov 2022 10:24:02 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 10:23:33 +0000 Received: from localhost ([127.0.0.1]:59221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovc3R-0003f1-8w for submit@debbugs.gnu.org; Thu, 17 Nov 2022 05:23:33 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]:31125) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovamY-0001W0-Th for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 04:02:06 -0500 Date: Thu, 17 Nov 2022 09:01:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=miangraham.com; s=protonmail; t=1668675715; x=1668934915; bh=0PEDyueUrkIGiAoEJSH1Pt0yv/gpSjP0AnbuQtfHA0A=; 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=oVc8U/RtlGK5C9Z9A+gEssEmm7qZxkAoXvPc2P23X2DeE5ZexWe6ZeUjBvhINkPaW 9Mbpsdv8tmPtwCuP7ekYH3tzCUbNfMVIQOQtMcSzwvWbr0N43Bmy5mKtv9vSSD1K+T ZZVul/boA8TYCgc5sG2SinBGC48N8m1LgheKfkbcoUynH0vDd6r38ox+D1nykhMScA RAHQXmGMnQlkXdcR3ZzUxETtB1bN/QOjjXkUHH6aJxsaDZQs4H4ev2TOCEy8S9wOce wW16/ifXnZ0v8BtpRYhWHh8PCSCPzaqqMoNUbKj2o+lhbqbdORJN9E8ZPiT/s5Mw0d Axw+evTKeDZ+g== From: "M. Ian Graham" Message-ID: In-Reply-To: References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> Feedback-ID: 29547276:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Mailman-Approved-At: Thu, 17 Nov 2022 05:23:29 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jo=C3=A3o T=C3=A1vora wrote: > So rustup is just an optional way of installing rust-analyzer? Rustup is not required, only recommended for new developers. See Rust's installation guide, which also describes how to add components t= o PATH when using rustup: https://www.rust-lang.org/tools/install See also the next page's description of other installation methods for peop= le who have "Preference for the system package manager" or "Preference agai= nst curl | sh" (!): https://forge.rust-lang.org/infra/other-installation-methods.html > If I wanted to learn Rust, just Rust, should I start with a rustup-less s= etup? The docs above do a good job of breaking down reasons for different install= ation methods. I'd take their word over mine, but IMO the biggest factor is= whether you prefer learning bottom-up and adding complexity as you go, or = top-down and having unfamiliar pieces managed for you. Rustup is a top-down= , "just works" sort of tool. If you're an emacs user comfortable with other CLI compilers, you'd be abso= lutely fine starting with your preferred package manager's "install rust" c= ommand and working from there for the bottom-up approach, assuming your dis= tro packages the standard installer. Using this gives you rustc+cargo, whic= h is the equivalent of node+npm, go+subcommands, etc. If that's not availab= le, rustup is fine too! Cheers, Ian From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 10:34: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 To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: 59214@debbugs.gnu.org, "M. Ian Graham" , Eli Zaretskii Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166868118615074 (code B ref 59214); Thu, 17 Nov 2022 10:34:01 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 10:33:06 +0000 Received: from localhost ([127.0.0.1]:59243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovcCg-0003v3-6L for submit@debbugs.gnu.org; Thu, 17 Nov 2022 05:33:06 -0500 Received: from mail-pg1-f176.google.com ([209.85.215.176]:44792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovcCc-0003uY-Vv for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 05:33:04 -0500 Received: by mail-pg1-f176.google.com with SMTP id q1so1572248pgl.11 for <59214@debbugs.gnu.org>; Thu, 17 Nov 2022 02:33:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OlbrlptDBYGE5xIDHPsYmAktJmofYHNTdX5SukRXwDk=; b=Owv2fkT98dfw0dFvziY90EmQADDd7a8ZiE/c+4ZiRDhGBAjXeghtG5qtSgdSD6JM0z gtMW83ZZnX1D9WjtDedqEghd7FubDaQZ9pt+0v2dYcQuqlWTSx1zU4M26TXZhURavBqe lQxGNcsobLSeY+f6NvPF92Lu5m3RR3v0FlFuLMl+R0UpJwrpQK57L+GKq+2cSLa/2Ign QRYppi/+sjf+0s4OvHvyfzGjoXwqtJ5bZNmumbmtcvntM2TRZPCnOU4oevAslrcNLrZS IwcC5aebU187hwQ1VZqXbZBItK/DaCRjOo0saLBnMdhGlhYZ3eFeSt0KEZ50W6q2Tz3y ChxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=OlbrlptDBYGE5xIDHPsYmAktJmofYHNTdX5SukRXwDk=; b=XIuNrSW/Fufz2jLNyIkbwrn97zey+RSOhiEAsZ8o8e8cUGI3qqK3Y5pkVVeXxO0J+B /JR0Ze6N1RALIGfdC0C2Zd46lzF0g/PmIoUbATtg7yfkSAWF7a7Mg3Bb0MCA8OLD+opi P6Vnz96SyQhcmvc/hDLQ+Jn9x4U6rsfzrsFNTzwhWLPC7cfDQVfUSpSw/wSG5hLFRQEf bwaFtRq+SCZ+tE/Om3IkUpP6tf8nNqbtdVFKprqR5JjuKuY0PDbkx3CeFtXbSHOff7mg /wzsITKtpJjbzWOS3Q4T4/ulwKsqq5pOwUIUSPJrnchR+REf2Vc5kwoKIKXOPGdi4JkO A+bA== X-Gm-Message-State: ANoB5plrh7cFg5ihLwHO7S940bN69ePrXojHmi+fBJ8nSaPEf7nwEHuY MHxWd1kK85vFEGAHjyKzCWLwUb00Ua0VfA== X-Google-Smtp-Source: AA0mqf6QElx9DB0k2/vDkKMOT71EfBySmDRjDI4XMRS/mMvTOK4O0sRiiAtnjlLP1KhlU7ZiF3+1vg== X-Received: by 2002:a63:5a10:0:b0:476:c39b:bd67 with SMTP id o16-20020a635a10000000b00476c39bbd67mr1526417pgb.46.1668681175599; Thu, 17 Nov 2022 02:32:55 -0800 (PST) Received: from anant ([49.36.236.45]) by smtp.gmail.com with ESMTPSA id w186-20020a6262c3000000b00572198393c2sm717717pfb.194.2022.11.17.02.32.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 02:32:55 -0800 (PST) From: Pankaj Jangid In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Thu, 17 Nov 2022 08:19:57 +0000") References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> Date: Thu, 17 Nov 2022 16:02:52 +0530 Message-ID: <87y1s9rhuz.fsf@codeisgreat.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Jo=C3=A3o T=C3=A1vora writes: > So rustup is just an optional way of installing rust-analyzer? If so I > think we shouldn't > tweak this. It may be optional, but it is *the* official method advertised in the docs. Other methods are categorised as, as expected, "Other Installation Methods". > (tangent: rustup being optional is intriguing and interesting. If I want= ed > to learn Rust, just Rust, should I start with a rustup-less setup?) I would recommend `rustup'. Rust is a fast moving language and other installation methods are not officially maintained. And distribution providers may have a delay of few days before pushing latest release. From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 12:53:02 +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 To: "M. Ian Graham" Cc: 59214@debbugs.gnu.org, Eli Zaretskii , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166868953423097 (code B ref 59214); Thu, 17 Nov 2022 12:53:02 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 12:52:14 +0000 Received: from localhost ([127.0.0.1]:59509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oveNK-00060T-7l for submit@debbugs.gnu.org; Thu, 17 Nov 2022 07:52:14 -0500 Received: from mail-pl1-f182.google.com ([209.85.214.182]:34436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oveNF-00060B-DC for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 07:52:13 -0500 Received: by mail-pl1-f182.google.com with SMTP id v17so1539450plo.1 for <59214@debbugs.gnu.org>; Thu, 17 Nov 2022 04:52:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=YoStUwL9eLBOEIhUq2CoYRovHaIKOeg8O6cpOkT8ltw=; b=F+Fn7xvLl1QBQm30KvlJ0cY9fub4zMHEE7rZKAk9UobE8M1OhoVwwTnxxuWmoiuwT9 4dM7tnyU30pr3xbdoHwsJ60P78gxDQc6D66y2OGZ2mRvkQNU8W+OJrKRi7ai8npUCXwN OBHshrQcuUks8IlvBk+a67SQibLn1rZTvvLMWwcqrMue6Pd+Z6JgolFTmwm/TDBAtqvS fj+i04lQm/dFWEFWr7O1Bau/NdXeG5lboPjHsSQBFugFFobBBBidrnziFkTdQTUZ8jol gqb0P3tNxZ/HJvMZqcy74Layh5HMOMkQEz5VbONm+JyxxLArX1eHHB9sfwdIT1FSKAC5 OM+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YoStUwL9eLBOEIhUq2CoYRovHaIKOeg8O6cpOkT8ltw=; b=gKUfDG6PhObUJLSbo7HztVMHT6nvCP0SancisP+tjATR1O6qXksmumMaTEWc8quUbk MzsL5vw7Hb4/QM8WRyJOs1c8lIEcdK8eHRevAE9fSzzuIcL9PXhP5tVPB4waq3hEvFZ9 I0pV+xJ7QxaALLrc11zG3/TTvvhSaRjV1Fg79iqScomNCozmG1TstzJu1BYYHHUdD1NT 5cAa5yaotRfMGq8OFy5UKDhoxf7cmePjQct980NStDSZYUZfkiuZcmvyMUMqyXIm9hYx jrMgV3VzNhKWSdduxGTmIUqILKnG0JLK3Fipgh86AQirQsnqxL5jgFoqqefftfJNY1wf UwKg== X-Gm-Message-State: ANoB5plMpnE54khb/0RrODu4dqyqAftqBGS2N7K/DcSgsqFVswZ1Mksu P4SjFFHT5mCPQcZ6P3rGzIVhWg== X-Google-Smtp-Source: AA0mqf4waMcvhSwe77qii0b+c9GxT+I2jwHkN8Ao6+jPALoeW+1cCY/oLag8MeYueeC1GvhCKvJbjg== X-Received: by 2002:a17:902:c613:b0:188:4bac:cc97 with SMTP id r19-20020a170902c61300b001884baccc97mr2523701plr.159.1668689523407; Thu, 17 Nov 2022 04:52:03 -0800 (PST) Received: from anant ([49.36.236.45]) by smtp.gmail.com with ESMTPSA id 85-20020a621958000000b0056b4c5dde61sm1069578pfz.98.2022.11.17.04.52.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 04:52:02 -0800 (PST) From: Pankaj Jangid In-Reply-To: (M. Ian Graham's message of "Thu, 17 Nov 2022 10:52:54 +0000") References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> <87sfiirulw.fsf@xyz.invalid> Date: Thu, 17 Nov 2022 18:21:59 +0530 Message-ID: <878rk9921c.fsf@codeisgreat.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) "M. Ian Graham" writes: > Pankaj Jangid 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"))) Given your valid arguments, the 1st patch would be recommended. Not the above. Earlier patch was, -(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" "rls"))) +(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" "("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? Wow. This is good observation. Here is how rustup users do it. And maybe I need to update the patch accordingly. There are two ways to select the toolchain. One is the `rustup default nightly' command. This sets the nightly toolchain globally. Another approach is to create a file `rust-toolchain' in the project root directory and just write the name of toolchain for the project; just write `nightly' or `stable' on the first line and save. This is like setting node version in `.nvm' file. Just for the project. Also `rustup which rust-analyzer' command tells us the full path of the `rust-analyzer' executable based on active toolchain. Inside Emacs, the project specific setting (via rust-toolchain file) would be tricky to pick up. But this will work for globally configured default toolchain. Should we probe using `shell-command-to-string' and then insert the value in `eglot-server-programs'? My suggestion would be that, we include the stable `rust-analyzer' in Emacs and user can always override if he/she wants to experiment. From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: "M. Ian Graham" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 15:27: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 To: Pankaj Jangid Cc: 59214@debbugs.gnu.org, Eli Zaretskii , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.16686987917641 (code B ref 59214); Thu, 17 Nov 2022 15:27:01 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 15:26:31 +0000 Received: from localhost ([127.0.0.1]:34042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovgmb-0001zA-W2 for submit@debbugs.gnu.org; Thu, 17 Nov 2022 10:26:31 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]:44153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovcW4-0004Ss-Sy for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 05:53:10 -0500 Date: Thu, 17 Nov 2022 10:52:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=miangraham.com; s=protonmail; t=1668682382; x=1668941582; bh=Ck6WzgPRFbmPLDQrAzsiSvD0+sv9Sbvq9xrLYkwVXP4=; 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=ldPiukivx/PNAKY7q36/eScg9vMAVy01izMQXO4JygkQqkbxf6xCayG9QgGVpXAHo NHD3C4KG8CwTVUbq4O23pUXiyh4PC7e8t3BTAoQp7CAAtb6i/6lD7YyqdFN5ie5Kcf DXzMH2QXjLTUAOXUJ45nQfOJ5XhhKfy9NHydRyiUIVwv6jSlu9/4r7T3GZpXMjRUtt 1oWvATLyLT2/IzpAiwXEyGg79hY+pMX4o/bJm0YNddIWxxrnTLmm9d7BcUQiNBAhcq fjDroyuPcXOr6WkCmX/H7kGCfheThftCQSa/2OolMBdx6MCnI1tlIC9mLnJ/pu4olA 03E6bJSfg5pKQ== From: "M. Ian Graham" Message-ID: In-Reply-To: <87sfiirulw.fsf@xyz.invalid> References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> <87sfiirulw.fsf@xyz.invalid> Feedback-ID: 29547276:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Mailman-Approved-At: Thu, 17 Nov 2022 10:26:28 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Pankaj Jangid wrote: > -(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rus= t-analyzer" "rls"))) > +(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '(("ru= stup" "run" "stable" "rust-analyzer") "rls"))) Another open question and source of future bug reports: How does a rustup u= ser make eglot work with the nightly release channel when stable is specifi= ed here? Nightly is required by some libraries, and a minority of people use it in d= evelopment for improved error messages and other benefits. Are we asking those people to redefine eglot-server-programs? Cheers, Ian From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 18:21: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 To: "M. Ian Graham" Cc: 59214@debbugs.gnu.org, Eli Zaretskii , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.1668709240952 (code B ref 59214); Thu, 17 Nov 2022 18:21:01 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 18:20:40 +0000 Received: from localhost ([127.0.0.1]:34302 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovjV9-0000FI-G3 for submit@debbugs.gnu.org; Thu, 17 Nov 2022 13:20:39 -0500 Received: from mail-pl1-f173.google.com ([209.85.214.173]:43753) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovjV7-0000F2-Eu for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 13:20:38 -0500 Received: by mail-pl1-f173.google.com with SMTP id d20so2373946plr.10 for <59214@debbugs.gnu.org>; Thu, 17 Nov 2022 10:20:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=AtoZT6ZQCcVHtTqPMYjxDwVWFvQvmMBHIfIkQKqILSU=; b=1XikdyVDiYywwT9XlhP8Brh2mdh47iNo8A80e1Yer5P8rpGVT+7i5mmO/tMFfxKVfN l8Wk9dl62SBClf2dcmQEoebs1rWT5uXdHXz9bAurIC7GUoLnDCmtFWc184a+FDCb5vzI uR/CAnHBWgfdf02sfvTd0bRWd6CdXjDxoXKGXtLH8HnsrvVukrDsEEBUfCkngXfRUyKo 51w0TBy+PrIJBfPBcsYoa8B0vDr5VP2vyoCHklFRIQCyA6D7OVpigBQ7pmQYYfOwc8Ys KHmpmFfH4GpQw/JiReQhKvbACpjHe+UNZJ8yopgXVgcp84gSsch6+wjsykb5/XzzUX+i ollw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AtoZT6ZQCcVHtTqPMYjxDwVWFvQvmMBHIfIkQKqILSU=; b=PWbpqw3UJNvGWi2uD0eNwSY1dEQd5P0aV27DQ4zxwggk+QB7yLpAVyQa1iqTw5y2gb S/dkX0u5un4JxguFdCLtiwlxtX/daZLM1+R0jC5HOqzdMFbSVPl6KDqcFggyH+uAf1j+ BtwL8HanwfswU68Ivuizu2CEwMqvuXC6y4Jxi1hNg6fsevFlSEorYsYef2pcrJjPrwtJ udK0/ea9ddk/4xNAQmS9c0Z03qV9chSObZ7X2/5236xGxI+dm+fBtmWVMMNfHiNu3r3C lTyjzxLMfaaKihIvs7AYDmuf7NWws240y/c5p8dqXNq7kFsz+ns3zTl5xiZlj3tJji3J C2Ww== X-Gm-Message-State: ANoB5pkKpuQu3Q9jASOpF3BAvtazdq/pKkBXNenqnzKEy78qNMXh3UKg OzPBVjMwNkWIeNMbclsGhLrQPQ== X-Google-Smtp-Source: AA0mqf6KFCd2CyUH2J2k+l5yH21gTjvHlhKeGZ5JVBE2GFtZZoUle+U5ls7oSVq5jAa9MAoUUtyMcw== X-Received: by 2002:a17:90b:507:b0:213:971d:9022 with SMTP id r7-20020a17090b050700b00213971d9022mr4069089pjz.47.1668709231387; Thu, 17 Nov 2022 10:20:31 -0800 (PST) Received: from anant ([49.36.236.45]) by smtp.gmail.com with ESMTPSA id 135-20020a62178d000000b0056ba6952e40sm1435633pfx.181.2022.11.17.10.20.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 10:20:30 -0800 (PST) From: Pankaj Jangid In-Reply-To: (M. Ian Graham's message of "Thu, 17 Nov 2022 18:11:32 +0000") References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> <87sfiirulw.fsf@xyz.invalid> <878rk9921c.fsf@codeisgreat.org> Date: Thu, 17 Nov 2022 23:50:27 +0530 Message-ID: <871qq18mtw.fsf@codeisgreat.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) "M. Ian Graham" writes: > I just noticed this quote from the announcement at https://blog.rust-lang.org/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 you want to PATH and eglot will defer to your > environment." Rustup will do this for them automatically, for the rust > version of their preference, and eglot will just work. > > In the meantime, as is, rustup users have the option of symlinking > rust-analyzer into .cargo/bin or adding its location directly to > PATH. Anyone not comfortable doing this is also probably not running > emacs from master, so they're unlikely to benefit from a short-term > elisp fix until the problem goes away. And if emacs adds code > depending on rustup, subsequently removing what should theoretically > be a temporary fix will in practice break users remaining on older > rustup versions. > > Unless I'm misunderstanding the situation above or something has > changed since the announcement, to me it seems prudent to wait on > rustup's fix and avoid letting emacs develop an opinion about the > installation method or version details of external components. Agree. Then we just wait for the next release of `rustup'. Anyway that will happen before the next release of Emacs. So this patch is not required. From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 18:48: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 To: "M. Ian Graham" Cc: 59214@debbugs.gnu.org, pankaj@codeisgreat.org, joaotavora@gmail.com Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.16687108793522 (code B ref 59214); Thu, 17 Nov 2022 18:48:01 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 18:47:59 +0000 Received: from localhost ([127.0.0.1]:34331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovjva-0000uj-J7 for submit@debbugs.gnu.org; Thu, 17 Nov 2022 13:47:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovjvZ-0000tx-0V for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 13:47:57 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovjvT-0004fy-Cw; Thu, 17 Nov 2022 13:47:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=4COOAjI0SJzkltANuGeMjNZO1zpI57sizWO8zAnq4Ks=; b=bOGhbfDndvjwNOOzEgN6 a9zTiwfd0HGDopzMYb57rljN2rqYtf1sbAAK1Ob4q0zTmvmnxMRhyajxARQgGN7p0M6Iia8fQLDf7 7pxomNEb1QvGSWrs8K97H1UmwbuzrbWaoaT7kld9No9N2ApEoNv5WZxpMlfq6ciURPUxDKbNKFzar iUvbZQen1/9QF0/q2CSLyJTOqMg4f4qHH2KZ6ISvBjPFsTzJCEjTfAwf6O6SZ/g0yH3y9m9iQBuw4 XS94XDtNjBnh3vQeFKf64QAQkwFzLGh2gNXz96+Tkq9m8GZjq8uAE0DLSR7wlmrbI54tJj3Jo8sCn +4Y57hlcAbB7zQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovjvS-000239-Ml; Thu, 17 Nov 2022 13:47:51 -0500 Date: Thu, 17 Nov 2022 20:47:52 +0200 Message-Id: <83o7t5ct9j.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (hello+emacs@miangraham.com) 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: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Thu, 17 Nov 2022 18:11:32 +0000 > From: "M. Ian Graham" > Cc: 59214@debbugs.gnu.org, Eli Zaretskii , João Távora > > Pankaj Jangid wrote: > > > -(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" "rls"))) > > +(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" "("rustup" "run" "stable" "rust-analyzer") "rls"))) > > I just noticed this quote from the announcement at https://blog.rust-lang.org/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 you want to PATH and eglot will defer to your environment." Rustup will do this for them automatically, for the rust version of their preference, and eglot will just work. > > In the meantime, as is, rustup users have the option of symlinking rust-analyzer into .cargo/bin or adding its location directly to PATH. Anyone not comfortable doing this is also probably not running emacs from master, so they're unlikely to benefit from a short-term elisp fix until the problem goes away. And if emacs adds code depending on rustup, subsequently removing what should theoretically be a temporary fix will in practice break users remaining on older rustup versions. > > Unless I'm misunderstanding the situation above or something has changed since the announcement, to me it seems prudent to wait on rustup's fix and avoid letting emacs develop an opinion about the installation method or version details of external components. FWIW, I think Rust is too crazy for us to follow its daily changes and offer support for its server OOTB in eglot-server-programs. Emacs is not equipped to follow such frequent and radical changes. If we want to make this seamless for users of Rust, we should provide a special command to update eglot-server-programs with whatever it is the latest Rust fashion. Or maybe we should even leave that to Rust mode. From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Nov 2022 21:49: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 To: Eli Zaretskii Cc: 59214@debbugs.gnu.org, "M. Ian Graham" , pankaj@codeisgreat.org Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166872169321100 (code B ref 59214); Thu, 17 Nov 2022 21:49:01 +0000 Received: (at 59214) by debbugs.gnu.org; 17 Nov 2022 21:48:13 +0000 Received: from localhost ([127.0.0.1]:34557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovmk0-0005UC-NS for submit@debbugs.gnu.org; Thu, 17 Nov 2022 16:48:13 -0500 Received: from mail-oi1-f178.google.com ([209.85.167.178]:35676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovmjy-0005Tc-2o for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 16:48:11 -0500 Received: by mail-oi1-f178.google.com with SMTP id h132so3399988oif.2 for <59214@debbugs.gnu.org>; Thu, 17 Nov 2022 13:48:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZmIHzP6Q2QBW60sV3cu6wWrxz23TD/rjyTSGsIq4I4o=; b=RkdSL8t3CIkOr3k2nuJCifMGByk5cIUv+ZxO2dz1FrXwKFZ1YdHjJn8g/E/Os8/Tdq 03kkVQGu4btxVtc070G10A9AXHQeM0SgMAFWyaV8/7Qn/UgmQgWCPxegYdyYegb2siyx 5Vix8MuZbsQKBOpuo6EATE9HSqt+0yMbLo4JhvlceBk53Ies1BuXWO45Px/amAUYHBGS 7jDA5c9kqeq4UpvoysCMpYSeTo/GI0x+go9/SZKuKmASDXG0/xZIqEVjQxw5lobrfyHi GBFsrb43zJqHOLRFhLUO2HiJVCd0URGOZvqZEGDi5+WHyzB4ddF22bSMHO/jFajUhqn7 jyTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZmIHzP6Q2QBW60sV3cu6wWrxz23TD/rjyTSGsIq4I4o=; b=7x6WwWqldnJsY98bkW3ii2rhCMUsfXgsxhyjCqRzfphXSbt7fEGqWn4eIaS6pTvp70 C4CdjsjzBFzyAhcbeXIO5C40S2P/Y0RUP52Ajwam3m+YrT7Wr96yjvBfg2vwGvYL9Yd5 vE/g8uHhfn3Cm12RBVTlZ4cAis5xc7g6Y/CAJX9ZeTUkNBUt+qE8VhYy0Mgjp0RYBKs4 m0aJIWGFX0BLEtbUkzlTxJAygFMlTv8Nu+aWKdqvwDxLy8Zt0hFrNliELvFwvUTdwb32 ktXxYfKix0zWaEvrS5+rTJasGentNQw4tHZa6pyNNmb6OGy3yApCUuQ6UO0vXh1/kNGj Y1/g== X-Gm-Message-State: ANoB5pnKpvXoob9EDmkUJ5w3p/fvg8GhWrgQYub0CiOJiCsdRV2Gai6E 0Lc47WmEizML+R1p+Xp06H1IkAUVYVrifw5y2V80XcXsh60= X-Google-Smtp-Source: AA0mqf7nE9CpH9veWSc+b0GEAmFJZCxu1tXBeiuYh+rlw3cW1YPpBtQKDcghqmGuyzLkIXrUcf8RyJCEvVARFcuR6H4= X-Received: by 2002:a05:6808:68b:b0:359:ca6a:7fc0 with SMTP id k11-20020a056808068b00b00359ca6a7fc0mr2196845oig.215.1668721684363; Thu, 17 Nov 2022 13:48:04 -0800 (PST) MIME-Version: 1.0 References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> <87sfiirulw.fsf@xyz.invalid> <878rk9921c.fsf@codeisgreat.org> <83o7t5ct9j.fsf@gnu.org> In-Reply-To: <83o7t5ct9j.fsf@gnu.org> From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Date: Thu, 17 Nov 2022 21:49:06 +0000 Message-ID: Content-Type: multipart/alternative; boundary="00000000000039bf4c05edb18b95" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000039bf4c05edb18b95 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Nov 17, 2022 at 6:47 PM Eli Zaretskii wrote: > > Date: Thu, 17 Nov 2022 18:11:32 +0000 > > From: "M. Ian Graham" > > Cc: 59214@debbugs.gnu.org, Eli Zaretskii , Jo=C3=A3o T=C3= =A1vora < > joaotavora@gmail.com> > > > > Pankaj Jangid wrote: > > > > > -(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives > '("rust-analyzer" "rls"))) > > > +(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives > '("rust-analyzer" "("rustup" "run" "stable" "rust-analyzer") "rls"))) > > > > I just noticed this quote from the announcement at > https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html#rust-analyzer-is-n= ow-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. Onc= e > it arrives, the right answer--even for rustup users--will be "just add wh= at > you want to PATH and eglot will defer to your environment." Rustup will d= o > this for them automatically, for the rust version of their preference, an= d > eglot will just work. > > > > In the meantime, as is, rustup users have the option of symlinking > rust-analyzer into .cargo/bin or adding its location directly to PATH. > Anyone not comfortable doing this is also probably not running emacs from > master, so they're unlikely to benefit from a short-term elisp fix until > the problem goes away. And if emacs adds code depending on rustup, > subsequently removing what should theoretically be a temporary fix will i= n > practice break users remaining on older rustup versions. > > > > Unless I'm misunderstanding the situation above or something has change= d > since the announcement, to me it seems prudent to wait on rustup's fix an= d > avoid letting emacs develop an opinion about the installation method or > version details of external components. > > FWIW, I think Rust is too crazy for us to follow its daily changes and > offer support for its server OOTB in eglot-server-programs. Emacs is > not equipped to follow such frequent and radical changes. If we want > to make this seamless for users of Rust, we should provide a special > command to update eglot-server-programs with whatever it is the latest > Rust fashion. Or maybe we should even leave that to Rust mode. > Yes, indeed, my thoughts exactly, especially this last bit. In fact, I once idealized eglot-server-programs itself as a temporary thing, to be superseded by a eglot-server-program buffer-local variable set by major-modes (and hence more apt and equipped to deal with these endless variations). This plan isn't necessarily a priority right now. Jo=C3=A3o --00000000000039bf4c05edb18b95 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Nov 17, 2022 at 6:47 PM Eli Zaret= skii <eliz@gnu.org= > wrote:
> Date: Thu, 17 Nov 2022 18:11:32 +0000
> From: "M. Ian Graham" <hello+emacs@miangraham.com>
> Cc: 59214@d= ebbugs.gnu.org, Eli Zaretskii <eliz@gnu.org>, Jo=C3=A3o T=C3=A1vora <joaotavora@gmail.com> >
> Pankaj Jangid <pankaj@codeisgreat.org> wrote:
>
> > -(defvar eglot-server-programs `((rust-mode . ,(eglot-alternative= s '("rust-analyzer" "rls")))
> > +(defvar eglot-server-programs `((rust-mode . ,(eglot-alternative= s '("rust-analyzer" "("rustup" "run"= "stable" "rust-analyzer") "rls")))
>
> I just noticed this quote from the announcement at https://blog.rust-lang.= org/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 in= voke 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. On= ce it arrives, the right answer--even for rustup users--will be "just = add what you want to PATH and eglot will defer to your environment." R= ustup will do this for them automatically, for the rust version of their pr= eference, and eglot will just work.
>
> In the meantime, as is, rustup users have the option of symlinking rus= t-analyzer into .cargo/bin or adding its location directly to PATH. Anyone = not comfortable doing this is also probably not running emacs from master, = so they're unlikely to benefit from a short-term elisp fix until the pr= oblem goes away. And if emacs adds code depending on rustup, subsequently r= emoving what should theoretically be a temporary fix will in practice break= users remaining on older rustup versions.
>
> Unless I'm misunderstanding the situation above or something has c= hanged since the announcement, to me it seems prudent to wait on rustup'= ;s fix and avoid letting emacs develop an opinion about the installation me= thod or version details of external components.

FWIW, I think Rust is too crazy for us to follow its daily changes and
offer support for its server OOTB in eglot-server-programs.=C2=A0 Emacs is<= br> not equipped to follow such frequent and radical changes.=C2=A0 If we want<= br> to make this seamless for users of Rust, we should provide a special
command to update eglot-server-programs with whatever it is the latest
Rust fashion.=C2=A0 Or maybe we should even leave that to Rust mode.



--00000000000039bf4c05edb18b95-- From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added 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 To: Pankaj Jangid Cc: 59214@debbugs.gnu.org, Eli Zaretskii , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.16687328017231 (code B ref 59214); Fri, 18 Nov 2022 00:54:01 +0000 Received: (at 59214) by debbugs.gnu.org; 18 Nov 2022 00:53:21 +0000 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 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 Date: Thu, 17 Nov 2022 18:11:32 +0000 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== From: "M. Ian Graham" Message-ID: In-Reply-To: <878rk9921c.fsf@codeisgreat.org> References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> <87sfiirulw.fsf@xyz.invalid> <878rk9921c.fsf@codeisgreat.org> Feedback-ID: 29547276:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: "M. Ian Graham" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Nov 2022 00:54:02 +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 To: Eli Zaretskii Cc: 59214@debbugs.gnu.org, pankaj@codeisgreat.org, joaotavora@gmail.com Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.16687328027237 (code B ref 59214); Fri, 18 Nov 2022 00:54:02 +0000 Received: (at 59214) by debbugs.gnu.org; 18 Nov 2022 00:53:22 +0000 Received: from localhost ([127.0.0.1]:34721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovpdB-0001sa-S7 for submit@debbugs.gnu.org; Thu, 17 Nov 2022 19:53:22 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]:55113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovknd-0002Ho-AP for 59214@debbugs.gnu.org; Thu, 17 Nov 2022 14:43:50 -0500 Date: Thu, 17 Nov 2022 19:43:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=miangraham.com; s=protonmail; t=1668714222; x=1668973422; bh=6mUCZVnnNSJQNcN+E05c0OL59YBkT0z3U2oDP6ZC2N4=; 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=UfI5K1CTyJIMUDULrtn9j61d2vfVNeYeSlMOGtny775HN2Ias8HYpPi/a4vNlzXfD 4YXnSVKSCNwmacbhwvE3mTuzji9Cwv7hjf7Tj52AVTIw+jUDgFETz8If/T10oDBBts Nt5BK6IEG0tAZSFJgCityyo3rZr7NR3xRrFUg2xpvSRwZBzo/qPRP/tXH0I9G383Ej /tI3BWiEMntTonFDZwWPPBt4Vs4SvmgREfKPdRymZjU8+cJ1QFeKArQyN3OUd+wM46 GyJy1kqXZCBZEvuJ+hS3PmCqL5iK6JLMrbyieYlzMSVytYHrxx1jgD4/HJv3dBOTeU rIZ12xQQx1oEw== From: "M. Ian Graham" Message-ID: In-Reply-To: <83o7t5ct9j.fsf@gnu.org> References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> <87sfiirulw.fsf@xyz.invalid> <878rk9921c.fsf@codeisgreat.org> <83o7t5ct9j.fsf@gnu.org> Feedback-ID: 29547276:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii wrote: > FWIW, I think Rust is too crazy for us to follow its daily changes and > offer support for its server OOTB in eglot-server-programs. Emacs is > not equipped to follow such frequent and radical changes. Completely agreed. I don't think there's a great way to support most Rust d= evs in a stable Emacs release besides treating Rust like any other language= , deferring to normal environment settings, and letting individuals, their = configs, and their outside libraries cross the thrash gap to fix defvars, e= nvvars, and other settings as needed. > If we want to make this seamless for users of Rust, we should provide=20 > a special command to update eglot-server-programs with whatever it is=20 > the latest Rust fashion. This, however, also sounds like a great enabler to me. Rust devs would gain= the option of easily matching the change velocity in their elisp config ra= ther than through env vars, which would probably improve the case of Window= s users that Pankaj brought up earlier. Apologies to the participants for my jumping all over this thread. I'm abso= lutely in support of improving the new Rust dev experience if Emacs can do = it without painting itself into a corner. Rust has a lot of paint. :) Cheers, Ian From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Pankaj Jangid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Nov 2022 05:14:02 +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 To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: 59214@debbugs.gnu.org, Eli Zaretskii , "M. Ian Graham" Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.1668748396364 (code B ref 59214); Fri, 18 Nov 2022 05:14:02 +0000 Received: (at 59214) by debbugs.gnu.org; 18 Nov 2022 05:13:16 +0000 Received: from localhost ([127.0.0.1]:34974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovtgi-00005k-7o for submit@debbugs.gnu.org; Fri, 18 Nov 2022 00:13:16 -0500 Received: from mail-pl1-f173.google.com ([209.85.214.173]:46833) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovtgf-00005X-9I for 59214@debbugs.gnu.org; Fri, 18 Nov 2022 00:13:15 -0500 Received: by mail-pl1-f173.google.com with SMTP id jn7so1757078plb.13 for <59214@debbugs.gnu.org>; Thu, 17 Nov 2022 21:13:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TbWMLOymF/zWPJESt/eeTKZ8IASbfIKhBSDcVCIDJfc=; b=DlLSP3CbO1yYvJnJo76kAHEKSyu1eRyKPPDsthSRQVmmwyyIw5XHtJLsO34X9QxAaO X1Hujklvyps1tFV8YsvSRuAv9P7Zqh9CcLQOI05iISzLeLeu6R0Nl3JiPtVyWfck9dzt I32jnAWwK7IaD1g0B/AufwFsvJWJf40WDfg2LJosDT0XmHmNy6DeSAm34FHKdVqCnfp1 J6Agi73OiLZPQXa0w36sbPq8PhFwZankCWcydZTwh+7iD/TrU5H1exEZfXiAr3bmFeTg wUz1kzgXydOkrYUpWzkV6Ci/AphZv67NnrKoOyHP29YbuIbOMBqwT0qeqchlEKX+/jOU cqTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=TbWMLOymF/zWPJESt/eeTKZ8IASbfIKhBSDcVCIDJfc=; b=Bh1Gm1QoPyg526ClgY5VyUjjOAPtbDxplenzMfBbahB50Q6ZBXxDRpkKeO1SJhyZy3 ZrYh+R/60flR2p4Tvkt2J4My1sHVfFSHe/+s9b5hjEbd/uPFhsYtreVXefiAV/fuGdMM ieR9IY9EuvI2XrS8Nmqi7KL59Uk6V73TCuqeyLSgmWHQtpKAY7oZjP23R2eFWFofS1An UVB1w9yIcYFqIgwhtcLsq+T2SEoPo2Iltkx05F8p2Sp2KWYe4OJwY2MMfW7/tuNbPWpc VkLCQmzalws6U4vpFJr8GRuw5aITPVvqEGmsIVfeLKjumjC8F40gTS7tOfOHZteAcZrT ry5w== X-Gm-Message-State: ANoB5pkJt1kyrlBE3RK8FthcHnYnli3s8/NEEQiKlI0P5Oxr8E+uTFXR jf3KqG/D+evuSLdg0dhjcF08xQD9rU/79A== X-Google-Smtp-Source: AA0mqf5balArhS4pXudWLq0EHOOY4rZW+MqBqBPSuQATRYrtVAOTMCxNYz/TLaJ6qvDV2e84dw7CvA== X-Received: by 2002:a17:902:a503:b0:184:e4db:e3e with SMTP id s3-20020a170902a50300b00184e4db0e3emr5947742plq.47.1668748386966; Thu, 17 Nov 2022 21:13:06 -0800 (PST) Received: from anant ([49.36.236.45]) by smtp.gmail.com with ESMTPSA id pq15-20020a17090b3d8f00b00212e5fe09d7sm1867190pjb.10.2022.11.17.21.13.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 21:13:06 -0800 (PST) From: Pankaj Jangid In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Thu, 17 Nov 2022 21:49:06 +0000") References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> <87sfiirulw.fsf@xyz.invalid> <878rk9921c.fsf@codeisgreat.org> <83o7t5ct9j.fsf@gnu.org> Date: Fri, 18 Nov 2022 10:43:02 +0530 Message-ID: <87a64oj15t.fsf@codeisgreat.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Jo=C3=A3o T=C3=A1vora writes: >> FWIW, I think Rust is too crazy for us to follow its daily changes and >> offer support for its server OOTB in eglot-server-programs. Emacs is >> not equipped to follow such frequent and radical changes. If we want >> to make this seamless for users of Rust, we should provide a special >> command to update eglot-server-programs with whatever it is the latest >> Rust fashion. Or maybe we should even leave that to Rust mode. >> > > Yes, indeed, my thoughts exactly, especially this last bit. > Agree. And thank you, Ian, for bringing up the counter thoughts in the discussion. It was an eye opener for me. I was thinking `rustup' is the only way to use `rust'. From unknown Sun Jun 22 01:00:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#59214: [PATCH] Alternate rust-analyzer command added Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Nov 2022 08:30: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 To: Pankaj Jangid Cc: 59214@debbugs.gnu.org, hello+emacs@miangraham.com, joaotavora@gmail.com Received: via spool by 59214-submit@debbugs.gnu.org id=B59214.166876017221254 (code B ref 59214); Fri, 18 Nov 2022 08:30:01 +0000 Received: (at 59214) by debbugs.gnu.org; 18 Nov 2022 08:29:32 +0000 Received: from localhost ([127.0.0.1]:35197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovwke-0005Wk-4M for submit@debbugs.gnu.org; Fri, 18 Nov 2022 03:29:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovwka-0005WV-CM for 59214@debbugs.gnu.org; Fri, 18 Nov 2022 03:29:30 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovwkU-0006ob-U2; Fri, 18 Nov 2022 03:29:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=iTgMPkHyDTN3LxFeXSObQ3Vm12K8B0M/GNfEJWQs5u0=; b=lc9xW4CbKQRd0bgupivO wtneuKmYjQYsiuIgYTF8DGMHo2lpfoUdP/7yxhpnwQP0RVf7BdO6LfOiRuHt2fafbR27TlZZaVlT0 qqY73aso2JMM7DgBcMJFIhW36lyBazku67mS4jmXkmW2Wtz3i/i0+o0foy6b6w5D7r7ApbBzFehu5 F1CZORiTsmC1YhSgrMXbuJVY983k7N2Z9x8cxtZBAJIcdmm7QozS7MDoOdo9HVVLfpo4F8tNVtlqh mw+J9KI5UQNCvbcPSYBPC13D6A54QfltP2gdFUnx+qEjtTu8yDZMkkOLVX21N8KL7Q1/Rmr/eNkv2 ChP9SP09UIA//A==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovwkT-0000sU-Un; Fri, 18 Nov 2022 03:29:22 -0500 Date: Fri, 18 Nov 2022 10:29:25 +0200 Message-Id: <83y1s8br8a.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87a64oj15t.fsf@codeisgreat.org> (message from Pankaj Jangid on Fri, 18 Nov 2022 10:43:02 +0530) References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> <87sfiirulw.fsf@xyz.invalid> <878rk9921c.fsf@codeisgreat.org> <83o7t5ct9j.fsf@gnu.org> <87a64oj15t.fsf@codeisgreat.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Pankaj Jangid > Cc: Eli Zaretskii , "M. Ian Graham" > , 59214@debbugs.gnu.org > Date: Fri, 18 Nov 2022 10:43:02 +0530 > > João Távora writes: > > >> FWIW, I think Rust is too crazy for us to follow its daily changes and > >> offer support for its server OOTB in eglot-server-programs. Emacs is > >> not equipped to follow such frequent and radical changes. If we want > >> to make this seamless for users of Rust, we should provide a special > >> command to update eglot-server-programs with whatever it is the latest > >> Rust fashion. Or maybe we should even leave that to Rust mode. > >> > > > > Yes, indeed, my thoughts exactly, especially this last bit. > > > > Agree. > > And thank you, Ian, for bringing up the counter thoughts in the > discussion. It was an eye opener for me. I was thinking `rustup' is the > only way to use `rust'. So what's the bottom line here? Do we need to make any change in eglot.el, and if so, what change is that? From unknown Sun Jun 22 01:00:54 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Pankaj Jangid Subject: bug#59214: closed (Re: bug#59214: [PATCH] Alternate rust-analyzer command added) Message-ID: References: <87o7tc2xu8.fsf@codeisgreat.org> X-Gnu-PR-Message: they-closed 59214 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 59214@debbugs.gnu.org Date: Fri, 18 Nov 2022 08:44:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1668761042-22682-1" This is a multi-part message in MIME format... ------------=_1668761042-22682-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #59214: [PATCH] Alternate rust-analyzer command added which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 59214@debbugs.gnu.org. --=20 59214: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D59214 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1668761042-22682-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 59214-done) by debbugs.gnu.org; 18 Nov 2022 08:43:41 +0000 Received: from localhost ([127.0.0.1]:35221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovwyK-0005tB-Pd for submit@debbugs.gnu.org; Fri, 18 Nov 2022 03:43:41 -0500 Received: from mail-oi1-f171.google.com ([209.85.167.171]:37390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovwyJ-0005sx-LG for 59214-done@debbugs.gnu.org; Fri, 18 Nov 2022 03:43:40 -0500 Received: by mail-oi1-f171.google.com with SMTP id b124so4668736oia.4 for <59214-done@debbugs.gnu.org>; Fri, 18 Nov 2022 00:43:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=43gw4J/YiwKS7bjFWBSTkAp9XjImNDwT7EkhHvnYlZY=; b=Vbyoy0986wC/UcBmieskCYQeblkqpxpIP6+uF4n9YDaczrEOGPvLmidA6v4kcqZ611 OyHSt7V7ssbOIvn05nxK1sKo0SAQIBp8ZB2NI7BALNMoeR2Tm2/AX42YRc2yqM9qQj9f jXmCTVuKf8iS0krqIQpZVhbcYRu48hNMeSznwppQYUTheWAZKKxtV9CTzBaOZv+PLVtL yU9x64drA3u09CryZBeXTLbj67XcHFAJkToFvEJRpPtPuDCS769jjA62UhUmw0yxWBlN dcoSdmBIMdZzuljFzpXXWw2UE0I80CNeN590Z4TieeiB1tePkFumDcIEtjCI/sx/fDxk Jwpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=43gw4J/YiwKS7bjFWBSTkAp9XjImNDwT7EkhHvnYlZY=; b=gd5/6v9A6keAHx53ReOO3cvVQmVs5l4DkuTY/NYxFPKhEtImLpLaAvCc+16SVgb4EC BN9uS/GuyOJ80hi0euL1VHCPYq9qgYyvG63G1++tcYN/2tio5Z74i4eFDQybli/RjTqT WWnXfsBAHXd/SgHHNEsfoqDMRjbx892adYOv38vp+2kDZLzP1ZgSipLx+MtbVv45KMXE 2mP/QIIUUS49HLlHb+MdJj0VGeMoMmLuLaXvDae5y/kOQY2Co3C2h0fx+gYeu2+pYo9D tTXOXUStec11XHJmgQbCqV0wQlTxJwNHFWST52x9N6BaMtIL2vsmEENANuwNMnRuI/pZ DAkw== X-Gm-Message-State: ANoB5pmdCtQ1RJ/+5cwdaS6K3yzaGuPI6WgTKTMEMhZFnFgULT+Q5ebX xcVfLmQoFwXBA7GaRIgFkpE1MY8qkJL9Np2erPI= X-Google-Smtp-Source: AA0mqf4FtwwW9yQdSD230HaU4escYC2pfc5y/mTmZzcY8JxC5KphQRrldinfCzGsyWnGbHyoFuG5oF0AyUwjaCOhDts= X-Received: by 2002:aca:170d:0:b0:35a:7e8d:8ad6 with SMTP id j13-20020aca170d000000b0035a7e8d8ad6mr5507661oii.171.1668761013962; Fri, 18 Nov 2022 00:43:33 -0800 (PST) MIME-Version: 1.0 References: <87o7tc2xu8.fsf@codeisgreat.org> <83leoag78l.fsf@gnu.org> <83fseig0h0.fsf@gnu.org> <87sfiirulw.fsf@xyz.invalid> <878rk9921c.fsf@codeisgreat.org> <83o7t5ct9j.fsf@gnu.org> <87a64oj15t.fsf@codeisgreat.org> <83y1s8br8a.fsf@gnu.org> In-Reply-To: <83y1s8br8a.fsf@gnu.org> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Fri, 18 Nov 2022 08:44:35 +0000 Message-ID: Subject: Re: bug#59214: [PATCH] Alternate rust-analyzer command added To: Eli Zaretskii Content-Type: multipart/alternative; boundary="00000000000073cd1905edbab326" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 59214-done Cc: 59214-done@debbugs.gnu.org, hello+emacs@miangraham.com, Pankaj Jangid X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000073cd1905edbab326 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable No, I think we came to the conclusion that there's nothing to be done. "rust-analyzer" is a good current candidate for an executable and it will be an even better candidate soon, as the rustup folks have announced, because they too will soon providel an executable in PATH named exactly like that. So I'm closing this bug. Jo=C3=A3o On Fri, Nov 18, 2022 at 8:29 AM Eli Zaretskii wrote: > > From: Pankaj Jangid > > Cc: Eli Zaretskii , "M. Ian Graham" > > , 59214@debbugs.gnu.org > > Date: Fri, 18 Nov 2022 10:43:02 +0530 > > > > Jo=C3=A3o T=C3=A1vora writes: > > > > >> FWIW, I think Rust is too crazy for us to follow its daily changes a= nd > > >> offer support for its server OOTB in eglot-server-programs. Emacs i= s > > >> not equipped to follow such frequent and radical changes. If we wan= t > > >> to make this seamless for users of Rust, we should provide a special > > >> command to update eglot-server-programs with whatever it is the late= st > > >> Rust fashion. Or maybe we should even leave that to Rust mode. > > >> > > > > > > Yes, indeed, my thoughts exactly, especially this last bit. > > > > > > > Agree. > > > > And thank you, Ian, for bringing up the counter thoughts in the > > discussion. It was an eye opener for me. I was thinking `rustup' is the > > only way to use `rust'. > > So what's the bottom line here? Do we need to make any change in > eglot.el, and if so, what change is that? > --=20 Jo=C3=A3o T=C3=A1vora --00000000000073cd1905edbab326 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
No, I think we came to the conclusion that there'= s nothing
to be done.=C2=A0 "rust-analyzer" is a good c= urrent candidate
for an executable and it will be an even better = candidate
soon, as the rustup folks have announced, because = they
too will soon providel an executable in PATH named exactly
like that.

So I'm closing this bu= g.
Jo=C3=A3o


> From= : Pankaj Jangid <pankaj@codeisgreat.org>
> Cc: Eli Zaretskii <eliz@gnu.org>,=C2=A0 "M. Ian Graham"
>=C2=A0 <hello+emacs@miangraham.com>,=C2=A0 59214@debbugs.gnu.org
> Date: Fri, 18 Nov 2022 10:43:02 +0530
>
> Jo=C3=A3o T=C3=A1vora <joaotavora@gmail.com> writes:
>
> >> FWIW, I think Rust is too crazy for us to follow its daily ch= anges and
> >> offer support for its server OOTB in eglot-server-programs.= =C2=A0 Emacs is
> >> not equipped to follow such frequent and radical changes.=C2= =A0 If we want
> >> to make this seamless for users of Rust, we should provide a = special
> >> command to update eglot-server-programs with whatever it is t= he latest
> >> Rust fashion.=C2=A0 Or maybe we should even leave that to Rus= t mode.
> >>
> >
> > Yes, indeed, my thoughts exactly, especially this last bit.
> >
>
> Agree.
>
> And thank you, Ian, for bringing up the counter thoughts in the
> discussion. It was an eye opener for me. I was thinking `rustup' i= s the
> only way to use `rust'.

So what's the bottom line here?=C2=A0 Do we need to make any change in<= br> eglot.el, and if so, what change is that?


--
Jo=C3=A3o T=C3=A1vora
--00000000000073cd1905edbab326-- ------------=_1668761042-22682-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Nov 2022 11:53:30 +0000 Received: from localhost ([127.0.0.1]:47423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otp4k-0003Ch-Dd for submit@debbugs.gnu.org; Sat, 12 Nov 2022 06:53:30 -0500 Received: from lists.gnu.org ([209.51.188.17]:44450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otp4i-0003CX-Er for submit@debbugs.gnu.org; Sat, 12 Nov 2022 06:53:28 -0500 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 1otp4i-0004Uz-7u for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 06:53:28 -0500 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otp4g-0002tR-8m for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 06:53:27 -0500 Received: by mail-pf1-x432.google.com with SMTP id b185so7009942pfb.9 for ; Sat, 12 Nov 2022 03:53:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20210112.gappssmtp.com; s=20210112; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=wl7KkWHjX0xPRZ9H7sLw9lY7Yn8lJxTbvlR9skwLy+k=; b=JxN0/pk4Ug5Idsx9euhYPLfQDxvaBamlsV/i8k4YwMi5r7tyz/x7Q53Y25h/y/dmsR vI85NI8uB2kRAPj4GKhaXhhCt2wMWyRAy9h2+YX5vn4J7J96NKvT9D8LCIQISHDj1+6o oe9NNA7kQ+tJHnfpnWha1ZG3ah0uR1t/pu+8z/JAegHPaeK384qNjuh/40BB2Ko0GZtH 4rXfH2NMJKipft5h64/NbUJYAtAVk/QIUUYc7xXb3fgUi8usy1Dmmj4nI3IJsIv9ftar IA83nOKBwT41w+ujZ6ICy78YhGizaaY40FLB9GGMieBygUxr0SexHuOgFKsL06SeDAuc MSRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wl7KkWHjX0xPRZ9H7sLw9lY7Yn8lJxTbvlR9skwLy+k=; b=bw8Pwo03hYbiIqJ10Sq8tW8T1fE4O6YIm6I16C4HWFvdsiiTICPtAz+9RW0tqn6jAU YcMp9IvKGazUhYRVwx9c6BjwLSSonLuM8ayn/ioGeRLyLa/ZvlPs2kuyvDJj6akI/en/ pqiNySGyh+OHZ/kSuNNzhOK2wrqjNaRkKicv5yBDppS822VHqbQc+QCZ7NcTjDs7gArr WHB/mV0fMI1Y/KJvLxi1Hv7DEEeR1wreSrCd/c31m3TrooP0Ce03+7NLFfmvYSd3nnV8 5CX8uuxmqpJ1hxIcVhsXz1gK344U895aA9PsebktHVnyKcNHhX8g3shBs91IvptuwZ+A ujRw== X-Gm-Message-State: ANoB5pkteLLmoD9U1pM34AJdziv2HbpsnQdQ+kkqlxS28b0Oaz3EloJd 4hIiKFCBwWi89zdLY3dwRi/qD4EDF5uTRA== X-Google-Smtp-Source: AA0mqf67PEuAlCf6FRB4hp6b8xkSDDDo1yH6EfHDJTAdelPSfaC47A6+v6wORDEi1NqBSg6a9gLN2w== X-Received: by 2002:a63:4d1c:0:b0:462:e0d0:2582 with SMTP id a28-20020a634d1c000000b00462e0d02582mr5089230pgb.48.1668254003427; Sat, 12 Nov 2022 03:53:23 -0800 (PST) Received: from anant ([49.36.236.45]) by smtp.gmail.com with ESMTPSA id sc17-20020a17090b511100b0021828120643sm554261pjb.45.2022.11.12.03.53.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Nov 2022 03:53:22 -0800 (PST) From: Pankaj Jangid To: bug-gnu-emacs@gnu.org Subject: [PATCH] Alternate rust-analyzer command added Date: Sat, 12 Nov 2022 17:23:19 +0530 Message-ID: <87o7tc2xu8.fsf@codeisgreat.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=2607:f8b0:4864:20::432; envelope-from=pankaj@codeisgreat.com; helo=mail-pf1-x432.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.1 (---) * lisp/progmodes/eglot.el (eglot-server-programs): There are two ways to run rust-analyzer. After adding the rustup component, users can add rust-analyzer to path and run rust-analyzer directly or they may run ``rustup run stable rust-analyzer'' command. This revision adds the 2nd command to the list of server programs. --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 63ebbe6cab..f54c2d2c3a 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -181,7 +181,7 @@ eglot-alternatives when probe return (cons probe args) finally (funcall err))))))) -(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" "rls"))) +(defvar eglot-server-programs `((rust-mode . ,(eglot-alternatives '("rust-analyzer" ("rustup" "run" "stable" "rust-analyzer") "rls"))) (cmake-mode . ("cmake-language-server")) (vimrc-mode . ("vim-language-server" "--stdio")) (python-mode -- 2.30.2 ------------=_1668761042-22682-1--