all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
Cc: 60777@debbugs.gnu.org
Subject: bug#60777: 29.0.60; tramp+eglot don't work if remote user is not local user
Date: Fri, 13 Jan 2023 13:04:48 +0100	[thread overview]
Message-ID: <87cz7id4in.fsf@gmx.de> (raw)
In-Reply-To: <CAO48Bk-ZZ0NAyc+zqo1NL+Br77CToOAuTTOicCq6k_Y+c9UH-Q@mail.gmail.com> (Pedro Andres Aranda Gutierrez's message of "Fri, 13 Jan 2023 10:28:02 +0100")

Pedro Andres Aranda Gutierrez <paaguti@gmail.com> 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) #<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.





  reply	other threads:[~2023-01-13 12:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-13  9:28 bug#60777: 29.0.60; tramp+eglot don't work if remote user is not local user Pedro Andres Aranda Gutierrez
2023-01-13 12:04 ` Michael Albinus [this message]
2023-01-15  7:21   ` Pedro Andres Aranda Gutierrez
2023-02-02  8:58     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87cz7id4in.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=60777@debbugs.gnu.org \
    --cc=paaguti@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.