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: 27.2; Eglot should use shell-file-name when launching the language server for a remote file Date: Mon, 27 Feb 2023 12:05:23 +0000 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: 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="33148"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61748@debbugs.gnu.org To: jeberger@free.fr Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 27 13:04:58 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 1pWcFV-0008SK-Lw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Feb 2023 13:04:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWcF6-0002nb-1r; Mon, 27 Feb 2023 07:04:32 -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 1pWcEg-0002ht-Mb for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2023 07:04:13 -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 1pWcEc-0002YN-HH for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2023 07:04:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWcEc-0004FY-3D for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2023 07:04: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 12:04: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.167749942916315 (code B ref 61748); Mon, 27 Feb 2023 12:04:02 +0000 Original-Received: (at 61748) by debbugs.gnu.org; 27 Feb 2023 12:03:49 +0000 Original-Received: from localhost ([127.0.0.1]:46280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWcEO-0004F5-TW for submit@debbugs.gnu.org; Mon, 27 Feb 2023 07:03:49 -0500 Original-Received: from mail-oa1-f54.google.com ([209.85.160.54]:41855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWcEM-0004Eq-Iq for 61748@debbugs.gnu.org; Mon, 27 Feb 2023 07:03:47 -0500 Original-Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-172334d5c8aso7120111fac.8 for <61748@debbugs.gnu.org>; Mon, 27 Feb 2023 04:03:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677499421; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NiFa2jmjCAYKnnctP5v24IM202Onyb33lNQs38apvsg=; b=VajdTCPBLwxB6Dt9XJ0aXMrYP+h7YrtWa8+F6P0d3srNYQ7UQcF7hMaize2LxpSQLD iLFjgvhDTlww3Stapac++XGRKYjpo1MeHYebAtsENvAMPRp4BLGg3DjR6IHMfbBrx8IH UEO8kmZEugn1BlsQvx1YK8QWKtQolgpO6MdkB3MWeu4Sto0e/emqr0fzOzQNas941j0o YEnDtzZZ8ZXOKpw3HRYDBVSV+IOF1CIvJ5WcdBkcH9ppG2t3fGOBK0+Gko3xlN2ugsnb z1En8PgqqHkWNDCR4tkz8k3xpEzIPg4kgszAV9rtPb/u7Rnki+J/Q7q4taeZNkEWvnCo vk8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677499421; h=content-transfer-encoding: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=NiFa2jmjCAYKnnctP5v24IM202Onyb33lNQs38apvsg=; b=yJbeUOfvLhNa7STT33jYDu6lW5gAoyGa/ZEN8cWSQBc9DI7EqYvPFk39aJenUTCRY+ Mkp0Y+5k2abXpfMv8CEtXl0Sj9YjSZvoSjUVooRtHFuXktCObbBLGvUqpfnmwq3vweQT pRXxhOIxnGVaAIE+GU8kipGKeYHX29Ybj4JroZ7SVNm2Ikx1RhjTONVW8oN/KWSU3W5y /OWYbtpbA+534n0D0GE71x7hu5AA8DN7DIYuuDD1PuXt3ezyZ9f4vDJfnQq+ZFLc6RYM d2MFZe5Sou2s/79OoYgcLbxM6p+duEvze8dCbfoROJk02Y5kat5sO62kP2kXIHN8zRnF AHkw== X-Gm-Message-State: AO0yUKUoe81m+ZYe9mLiyvWKBaISD300lMmUKnH5bXpKA6Iqm4emdWtc DbbtBCPTXYpl8lYeWIJMmnT0b3RzYn+P/YOynqo= X-Google-Smtp-Source: AK7set+vOrzKx5XMgmXQmPB+I6pfFLTOQnV9nQCnBvasTKW2XQeSO/SJCFohlqCTvnNPKnOAXJhp36XL2OBMCk4vDKg= X-Received: by 2002:a05:6870:f80e:b0:169:ce1c:d7c2 with SMTP id fr14-20020a056870f80e00b00169ce1cd7c2mr3789922oab.5.1677499420811; Mon, 27 Feb 2023 04:03:40 -0800 (PST) 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:256875 Archived-At: 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 this to the Eglot manual section on Tramp-related troubleshooting. Jo=C3=A3o On Mon, Feb 27, 2023 at 11:07=E2=80=AFAM Jo=C3=A3o T=C3=A1vora wrote: > > Hello, > > I'm Eglot maintainer and, as of very recently, in analyzing bug#61350, > also an Eglot-over-Tramp user. So I can now reproduce this bug. > > I have the `jdtls` script installed in `~/bin/jdtls` of my remote host us= er's > HOME, and I too suffer from this bug. On the local host, I use > zsh and shell-file-name is "/bin/zsh", although in Tramp-accessed > buffers it is "/bin/sh". > > Bizarrely, this only happens sometimes. When it works, it works perfectl= y > and, as expected, the remote PATH of the remote host user is consulted. > > Jo=C3=A3o --=20 Jo=C3=A3o T=C3=A1vora