From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?J=C3=A9r=C3=B4me?= M. Berger Newsgroups: gmane.emacs.bugs Subject: bug#61748: [informatique] Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file Date: Mon, 27 Feb 2023 18:59:00 +0100 Message-ID: References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0sTRtzKfblRxx3UZkBIw8rcgM76ELbGeK" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="797"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 Cc: 61748@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 27 19:00:18 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pWhnN-000AXM-QN for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Feb 2023 19:00:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWhnA-000242-Ej; Mon, 27 Feb 2023 13:00:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWhn8-00022y-SQ for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2023 13:00:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWhn8-0005MT-EY for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2023 13:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWhn7-0007iT-VJ for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2023 13:00:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?J=C3=A9r=C3=B4me?= M. Berger Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Feb 2023 18:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61748 X-GNU-PR-Package: emacs Original-Received: via spool by 61748-submit@debbugs.gnu.org id=B61748.167752074529563 (code B ref 61748); Mon, 27 Feb 2023 18:00:01 +0000 Original-Received: (at 61748) by debbugs.gnu.org; 27 Feb 2023 17:59:05 +0000 Original-Received: from localhost ([127.0.0.1]:48719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWhmD-0007gl-3k for submit@debbugs.gnu.org; Mon, 27 Feb 2023 12:59:05 -0500 Original-Received: from smtp3-g21.free.fr ([212.27.42.3]:42620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWhmA-0007gR-Co for 61748@debbugs.gnu.org; Mon, 27 Feb 2023 12:59:03 -0500 Original-Received: from wraith.localdomain (unknown [78.198.27.247]) by smtp3-g21.free.fr (Postfix) with ESMTP id 431BF13F87E; Mon, 27 Feb 2023 18:59:01 +0100 (CET) Original-Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by wraith.localdomain (Postfix) with ESMTP id E74694FB2CF; Mon, 27 Feb 2023 18:59:00 +0100 (CET) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256892 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0sTRtzKfblRxx3UZkBIw8rcgM76ELbGeK Content-Type: multipart/mixed; boundary="V6AkByZqhanQRKeYvKOWu2pKbTcMpQzK8"; protected-headers="v1" From: =?UTF-8?B?SsOpcsO0bWUgTS4gQmVyZ2Vy?= To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Cc: 61748@debbugs.gnu.org Message-ID: Subject: Re: [informatique] Re: bug#61748: 27.2; Eglot should use shell-file-name when launching the language server for a remote file References: <1909672588.15608265.1677223717877.JavaMail.root@zimbra60-e10.priv.proxad.net> <774021794.15662399.1677224385920.JavaMail.root@zimbra60-e10.priv.proxad.net> In-Reply-To: --V6AkByZqhanQRKeYvKOWu2pKbTcMpQzK8 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: fr-FR On 2/27/23 1:05 PM, Jo=C3=A3o T=C3=A1vora wrote: > After a bit more investigation, I'm not sure this is a bug after all. > It might be. My symptoms were the same as jeberger's but > my setup is slightly different (I'm not using zsh on the remote). > > At least in my case, I was able to make Eglot/Tramp work successfully > by adding 'tramp-own-remote-path' to the 'tramp-remote-path' list. > If I do that, everything works as expected. > > In my case I was using simply a /bin/sh on the remote server > and the user had a ~/bin directory that her ~/.profile adds to PATH. > But without the 'tramp-own-remote-path' fix, the shell used by Tramp > is not interactive and thus won't consider ~/.profile at all. > > It's a bit unfortunate that in such a simple case, there is this hoop > to jump over. But since at least it can be jumped over, I will add thi= s > to the Eglot manual section on Tramp-related troubleshooting. =C2=A0=C2=A0=C2=A0 I already had `tramp-own-remote-path` in my `tramp-re= mote-path`.=20 But I don't use `~/.profile` to setup my path so it doesn't help for=20 Eglot. Note that Eglot is the only tool which has this issue: others=20 (e.g. `counsel-rg`) work fine over Tramp and pick up the path from `zsh` = correctly. =C2=A0=C2=A0=C2=A0 J=C3=A9r=C3=B4me --=20 mailto:jeberger@free.fr http://jeberger.free.fr Diaspora*: https://framasphere.org/u/jeberger --V6AkByZqhanQRKeYvKOWu2pKbTcMpQzK8-- --0sTRtzKfblRxx3UZkBIw8rcgM76ELbGeK Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wmMEABEIACMWIQRJ/HHBGK/E2suu5UN3SRYzgkbeTwUCY/zvZAUDAAAAAAAKCRB3SRYzgkbeT4t0 AJ46/vVc+xrSglYgntn7XWTA+X2QWgCfe585nqNNTHULDz6ERWVZLhF6XyE= =d6Tw -----END PGP SIGNATURE----- --0sTRtzKfblRxx3UZkBIw8rcgM76ELbGeK--