From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pedro Andres Aranda Gutierrez Newsgroups: gmane.emacs.bugs Subject: bug#60777: 29.0.60; tramp+eglot don't work if remote user is not local user Date: Sun, 15 Jan 2023 08:21:44 +0100 Message-ID: References: <87cz7id4in.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000031854405f2485358" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40160"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60777@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 15 08:23:19 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 1pGxMM-000AGE-Ru for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Jan 2023 08:23:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGxM9-0003GG-Ks; Sun, 15 Jan 2023 02:23: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 1pGxM6-0003Fn-HB for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2023 02:23: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 1pGxM6-0003zP-7R for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2023 02:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pGxM5-0000X4-Vv for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2023 02:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pedro Andres Aranda Gutierrez Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Jan 2023 07:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60777 X-GNU-PR-Package: emacs Original-Received: via spool by 60777-submit@debbugs.gnu.org id=B60777.16737673421978 (code B ref 60777); Sun, 15 Jan 2023 07:23:01 +0000 Original-Received: (at 60777) by debbugs.gnu.org; 15 Jan 2023 07:22:22 +0000 Original-Received: from localhost ([127.0.0.1]:56047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGxLR-0000Vq-Lk for submit@debbugs.gnu.org; Sun, 15 Jan 2023 02:22:22 -0500 Original-Received: from mail-ed1-f48.google.com ([209.85.208.48]:46737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGxLM-0000Vb-SR for 60777@debbugs.gnu.org; Sun, 15 Jan 2023 02:22:20 -0500 Original-Received: by mail-ed1-f48.google.com with SMTP id x36so2084625ede.13 for <60777@debbugs.gnu.org>; Sat, 14 Jan 2023 23:22:16 -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=hEwjXCmC6D6rhAfJsUZdEI8SWO2QMiPzMc7kdhYJNPk=; b=Nz7faf4tR3R8HxYol4oxsUpwUxMGiJ7cjEF9qJoh7Fo7znog52BEj19IF8NL6rxx+v foh2jtnPYlqKuLU4luAgkp8eeURMFRoo9GEDbjUX44zZ525HDj5N2NS2TtMnO5ZYZlaw hrlP2tALkQf077hybAjHNxw+iopYfDRXTUh1UIXjmpXJyD8nfkn1ysoz6ttT39xpLwbR BL3od7wXkwoFw6h+enA+NFd+EZwjYvfPjFdowP2PDM9wcZOBKqtWOujgyotjnkP1gaJv J9niyL6vNJgD1RN7ooCui1Xp7ipVPLckSv0RJP9bGBy+H7bkf3pm31tzm+mbJnC9xcYW GTtw== 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=hEwjXCmC6D6rhAfJsUZdEI8SWO2QMiPzMc7kdhYJNPk=; b=S0OUyTqdemXy428ZluCGaRWKowLzPjeUDk/NJ4AcHrNbN4a15vuSLhxcLYAJES9n6g Oxoy5oqKwFIv+El7Yl7NF5we/kg+dnE0oS+uYaZQj+x4rdGHfH8hxlVy20m4qZfCWBBw 5Njfpz+VPmAf2IlV/SS1U3j3LOKHDtCQrRnsWtuNTRKRbWK0+v394yF6rhOzo7HPyupi pg4gfz6C59nZlpkt21T1hirlTIdcd1TuFWyRBbx0ht6gQj7i/axfKyls25A0SJiOlbC7 3385K/Wg3+76JXaYwCHTOXljSV3iqkjysc0N6qB9ZohkCg0EKX5hSfZyLtX9vYwqkTMg G/xw== X-Gm-Message-State: AFqh2krmXlWBoqEN4Ph1E2BAfvVY8bRUXhpGivqlkaolzLV18H6cFgwB j7Z1cQr/2oXLLenCE+PH74dguQGNqfUJ7F06sxY= X-Google-Smtp-Source: AMrXdXv96dCfu+R1NgDl37F+H730wCAcjTnbAb9PKMUXBNFW3+BOSHaIKX+zwlGHVUOs2YPr8lI1smK5DhowEr3VEko= X-Received: by 2002:a05:6402:349:b0:49c:d010:4a9 with SMTP id r9-20020a056402034900b0049cd01004a9mr639089edw.196.1673767330873; Sat, 14 Jan 2023 23:22:10 -0800 (PST) In-Reply-To: <87cz7id4in.fsf@gmx.de> 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:253409 Archived-At: --00000000000031854405f2485358 Content-Type: text/plain; charset="UTF-8" Close this. It doesn't happen on GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-01-14 anymore. I'll keep the recipe ready for future problems and report including the output directly. Thanks, /PA On Fri, 13 Jan 2023 at 13:04, Michael Albinus wrote: > Pedro Andres Aranda Gutierrez writes: > > Hi Pedro, > > > (use-package tramp > > :config > > ;; > > ;; For VMs with the student user and for my private VMs > > ;; > > (add-to-list 'tramp-remote-path "/home/paag/.local/bin") > > (add-to-list 'tramp-remote-path "/home/student/.local/bin")) > > Could you pls add (setq tramp-verbose 6) to this config? > > > When I edit Python code locally or on the 'paag' user in the VM > > everything works correctly. However, when I try to edit remotely > > on the 'student' user, I get the following error: > > > > Tramp: Checking 'vc-registered' for > > /ssh:student@localhost#10042:/home/student/Devel/test1.py...done > > Configuring eglot > > Tramp: Opening connection *EGLOT (Devel/(python-mode)) stderr* for > > student@localhost using ssh...done > > Tramp: Opening connection EGLOT (Devel/(python-mode)) for > > student@localhost using ssh...done > > [jsonrpc] Server exited with status 127 > > Error in post-command-hook (#[0 > > "\303\304\300\242\305#\210\306\301!\205 \0r\301q\210 > > ?\205 \0\307\310\311 \")\207" [(#0) # > > eglot--managed-mode remove-hook post-command-hook nil buffer-live-p > > apply eglot--connect eglot--guess-contact] 4]): (error "[eglot] -1: > > Server died") > > Rerun the test. > > With this config, there shall also be a Tramp debug buffer > *debug tramp/ssh student@localhost#10042* Pls send it as attachment. > > Best regards, Michael. > -- Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --00000000000031854405f2485358 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Close this.=C2=A0
<= br>
It doesn't happen on GNU Emacs 29.0.60 (build= 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 202= 3-01-14 anymore.

I'll keep the recipe ready for futu= re problems and report including the output directly.

<= div>Thanks, /PA



On Fri, 13 Jan 202= 3 at 13:04, Michael Albinus <m= ichael.albinus@gmx.de> wrote:
Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:

Hi Pedro,

> (use-package tramp
>=C2=A0 =C2=A0:config
>=C2=A0 =C2=A0;;
>=C2=A0 =C2=A0;; For VMs with the student user and for my private VMs >=C2=A0 =C2=A0;;
>=C2=A0 =C2=A0(add-to-list 'tramp-remote-path "/home/paag/.loca= l/bin")
>=C2=A0 =C2=A0(add-to-list 'tramp-remote-path "/home/student/.l= ocal/bin"))

Could you pls add (setq tramp-verbose 6) to this config?

> When I edit Python code locally or on the 'paag' user in the V= M
> everything works correctly. However, when I try to edit remotely
> on the 'student' user, I get the following error:
>
> Tramp: Checking 'vc-registered' for
> /ssh:student@localhost#10042:/home/student/Devel/test1.py...done
> Configuring eglot
> Tramp: Opening connection *EGLOT (Devel/(python-mode)) stderr* for
> student@localhost using ssh...done
> Tramp: Opening connection EGLOT (Devel/(python-mode)) for
> student@localhost using ssh...done
> [jsonrpc] Server exited with status 127
> Error in post-command-hook (#[0
> "\303\304\300\242\305#\210\306\301!\205 \0r\301q\210
> ?\205 \0\307\310\311 \")\207" [(#0) #<buffer test1.py>=
> eglot--managed-mode remove-hook post-command-hook nil buffer-live-p > apply eglot--connect eglot--guess-contact] 4]): (error "[eglot] -= 1:
> Server died")

Rerun the test.

With this config, there shall also be a Tramp debug buffer
*debug tramp/ssh student@localhost#10042* Pls send it as attachment.

Best regards, Michael.


--
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um = gestellt zu werden
Georg Kreisler

Headach= es with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.u= niter.operation we should run a leader-deposed hook here, but we can't = yet

--00000000000031854405f2485358--