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?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= 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 23:41:28 +0000 Message-ID: <87356qekwn.fsf@gmail.com> 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: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31769"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 61748@debbugs.gnu.org To: =?UTF-8?Q?J=C3=A9r=C3=B4me?= M. Berger Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 28 00:40:16 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 1pWn6O-00086i-31 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Feb 2023 00:40:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWn6C-0000W7-WD; Mon, 27 Feb 2023 18:40:05 -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 1pWn6B-0000Vs-4e for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2023 18:40:03 -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 1pWn6A-0008Pq-SD for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2023 18:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWn6A-0004SU-J3 for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2023 18:40:02 -0500 X-Loop: help-debbugs@gnu.org 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: Mon, 27 Feb 2023 23:40:02 +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.167754118517101 (code B ref 61748); Mon, 27 Feb 2023 23:40:02 +0000 Original-Received: (at 61748) by debbugs.gnu.org; 27 Feb 2023 23:39:45 +0000 Original-Received: from localhost ([127.0.0.1]:49213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWn5t-0004Rk-6D for submit@debbugs.gnu.org; Mon, 27 Feb 2023 18:39:45 -0500 Original-Received: from mail-wm1-f54.google.com ([209.85.128.54]:44991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWn5o-0004RU-Nn for 61748@debbugs.gnu.org; Mon, 27 Feb 2023 18:39:44 -0500 Original-Received: by mail-wm1-f54.google.com with SMTP id m25-20020a7bcb99000000b003e7842b75f2so4825638wmi.3 for <61748@debbugs.gnu.org>; Mon, 27 Feb 2023 15:39:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677541174; 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=yw2xnYSy8iOxUmlMdJzH3kvv5HMbyrHV8YX+HZSyq+Q=; b=flAR2izCmLTAduE8dx+m7cl5wStc9AfNLHDx0FJ6O0scmNJYlQgR7eQUKT0WWr092o b20rbWmSigpNXg/ekoKGfYyM1g72llfeX7ZX+EbSmenFv6CtqfeownxufVyA6koMgkz6 dnJ16mqgv+deeD2/sRsRYQJURCto/XxpmjrHS3gYXQ+ld4GS9n6noTaNpb1B98q08pys y5mL9PyTeUw16WsddSdyEdLYIPPk4o/ILnfz0fYognFz3GJNdwHhiXp25LBBfLFI0B8O exEgl6OnFNrnWOAAWijgWnPzGhac3ozlIzkM3hcn+pVvLa9knqaaNSzcasWmugkce0cC Dehg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677541174; 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=yw2xnYSy8iOxUmlMdJzH3kvv5HMbyrHV8YX+HZSyq+Q=; b=c51vs3gyEPjsiYtFAVdYYFVFTxyPRqD0xAVrukH41YmaJ5gy6WB2DwYmAqGwFUl1pn N2uu648VQXVbjJ3DYf85H8MrGr6dpzO2OQ0O6h8n7fr1d5GQ2MRmJ6GPcZz0Rei+l5Vg eASemGa8VIbcFnjqiSn+J4rrfufgcF6u/rCg3hfzkypj+XFYhUv/n7gJzryT5hbGkxwt pTd+2hR/M905RRNmAI0jtKK97G3Fg//ho1zuQSkFrHIIh1btXrq+b3NAiBJv/5ynqqyC H1W+0JdY5qq95umeWLBqp/S+PHq2epOJq2jRKd1E3hjyXYMWRpOFbUxdxxf0irl2/4YR K5LQ== X-Gm-Message-State: AO0yUKWtbyDONpp75F+N75jHhYpEeqy8XQYHmXa2u7YESL4ttjkvpa67 tx1gVh1KpHm5YUMhYt98imvcghM/O78= X-Google-Smtp-Source: AK7set+V18JsW0I63Pr9+GOsj9RKcB0wcRW9o3ajlBY6BvMB7G/diFhIapC1llZ0cX7B3X4piBA+gQ== X-Received: by 2002:a05:600c:4450:b0:3dc:16d2:ae5e with SMTP id v16-20020a05600c445000b003dc16d2ae5emr567049wmn.32.1677541174345; Mon, 27 Feb 2023 15:39:34 -0800 (PST) Original-Received: from krug (87-196-72-142.net.novis.pt. [87.196.72.142]) by smtp.gmail.com with ESMTPSA id l3-20020a05600012c300b002c5694aef92sm8173166wrx.21.2023.02.27.15.39.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 15:39:33 -0800 (PST) In-Reply-To: ("=?UTF-8?Q?J=C3=A9r=C3=B4me?= M. Berger"'s message of "Mon, 27 Feb 2023 18:59:00 +0100") 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:256922 Archived-At: J=C3=A9r=C3=B4me M. Berger writes: > On 2/27/23 1:05 PM, Jo=C3=A3o T=C3=A1vora wrote: > =C2=A0=C2=A0=C2=A0 I already had `tramp-own-remote-path` in my > `tramp-remote-path`. But I don't use `~/.profile` to setup my path so > it doesn't help for Eglot. Note that Eglot is the only tool which has > this issue: others (e.g. `counsel-rg`) work fine over Tramp and pick > up the path from `zsh` correctly. I don't know what counsel is or how it deals with this issue, but feel free to share any relevant code here. Even though "make it work" hacks abound, Eglot promotes separation of responsibilities. Being is core is great for figuring out exactly where fixes should go. Eglot's business is LSP. TRAMP accesses remote files. Eglot knows close to nothing about TRAMP or how it does its file access job. After all the 'T' in tramp stands for "transparent". Not ruling out changes to Eglot, but it look like what is needed here for things to work out-of-the-box (or nearly so) is a way to tell Emacs something like: "Whevever I'm working on files of this remote server, find executables in the remote PATH. Calculate PATH to be the same as if I had just logged in interactively as the user I'm accessing this file with." Whether this can be a good default or something you set in your configuration is not up to me, but often what works for you does not work for someone else. Jo=C3=A3o