unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Ko Nishi <kohnish@gmx.com>
Cc: 66093@debbugs.gnu.org, joaotavora@gmail.com
Subject: bug#66093: Eglot over tramp sshfs/sftp
Date: Tue, 19 Sep 2023 09:46:20 +0200	[thread overview]
Message-ID: <878r92wqpf.fsf@gmx.de> (raw)
In-Reply-To: <trinity-39fb5dd7-39be-4e8b-b92e-ee57d9e93b48-1695059545116@3c-app-mailcom-bs07> (Ko Nishi's message of "Mon, 18 Sep 2023 19:52:25 +0200")

Ko Nishi <kohnish@gmx.com> writes:

> Hi,

Hi Ko,

> I was suggested to contact here from a github discussion
> https://github.com/joaotavora/eglot/discussions/1294.
> But in short, at the moment, eglot fails to spawn a functioning
> language server process over tramp when sshfs or sftp is used.
> For sshfs, I see clangd process without stty command on remote, while
> with sftp eglot doesn't find the path.

Tramp's sftp integration doesn't support remote processes. So there's no
chance to make it working.

sshfs, as general concept, doesn't allow remote processes either. Tramp
has added this functionality by opening a parallel ssh connection, see
tramp-sshfs.el for its configuration (the lines, where
tramp-sshfs-method is added to tramp-methods). However, it calls remote
commands directly via ssh, like this (according to Tramp traces):

--8<---------------cut here---------------start------------->8---
ssh -q -e none -t -t gandalf cd /home/albinus/src/emacs/ && ( env INSIDE_EMACS\=30.0.50\,tramp\:2.7.0-pre ENV\=\'\' TMOUT\=0 LC_CTYPE\=\'\' CDPATH\= HISTORY\= MAIL\= MAILCHECK\= MAILPATH\= PAGER\=cat autocorrect\= correct\= /bin/sh -c stty\ raw\ \>\ /dev/null\;\ /usr/bin/clangd )
--8<---------------cut here---------------end--------------->8---

I'm not sure, but likely the snippet "stty\ raw\ \>\ /dev/null\;\ /usr/bin/clangd"
might need another quoting.

> Best regards,
> Ko

Best regards, Michael.





  reply	other threads:[~2023-09-19  7:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-18 17:52 bug#66093: Eglot over tramp sshfs/sftp Ko Nishi
2023-09-19  7:46 ` Michael Albinus [this message]
2023-09-19 18:59   ` Ko Nishi
2023-09-20  9:14     ` Michael Albinus
2023-09-22 18:02     ` Michael Albinus
2023-09-22 18:11       ` Michael Albinus
2023-09-26  9:03         ` Ko Nishi
2023-09-26 16:59           ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=878r92wqpf.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=66093@debbugs.gnu.org \
    --cc=joaotavora@gmail.com \
    --cc=kohnish@gmx.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).