all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Jim Porter <jporterbugs@gmail.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
	 Visuwesh <visuweshm@gmail.com>,  Eli Zaretskii <eliz@gnu.org>,
	 Dmitry Gutov <dgutov@yandex.ru>,
	 gerd.moellmann@gmail.com,  emacs-devel@gnu.org
Subject: Re: EBrowse obsolete?
Date: Sat, 23 Jul 2022 12:13:28 +0200	[thread overview]
Message-ID: <87a690jfw7.fsf@gmx.de> (raw)
In-Reply-To: <2dd9c74b-d822-bef2-8907-e8eedbac5eed@gmail.com> (Jim Porter's message of "Thu, 21 Jul 2022 14:26:06 -0700")

Jim Porter <jporterbugs@gmail.com> writes:

Hi Jim,

> I think there are probably two separate (but somewhat related) issues:
>
> 1. LSP over Tramp is "slow". I'm sure there are things we can do to
> make Tramp faster, especially with "well-behaved" remote hosts. For
> example, maybe Tramp can get more info about a host upon connection
> and then use that to avoid some work later on.

What Tramp can do is to start the remote LSP server
faster. Occasionally, I've been in contact with both the glot and the
lsp-mose people, and I've proposed to use the "direct async process"
feature of Tramp, see

(info "(tramp)Improving performance of asynchronous remote processes")

Personally, I don't use lsp servers, so I have no idea whether this
recommendation got attention.

> 2. LSP over Tramp is "unreliable". I think this is the more-pressing
> issue. It's one thing if a remote request takes longer than expected,
> but another thing entirely if it just fails to work every so
> often. When trying to use Eglot + Tramp on some larger projects, I'd
> get hit with "Forbidden reentrant call of Tramp" every so often,
> which, if memory serves, usually required a bit of poking at Eglot, or
> at least retrying the operation I wanted to do. Maybe this has
> improved since the last time I tried this, but (I think) fixing these
> errors would go a long way towards resolving people's
> complaints. That's probably easier said than done though...

This is a general problem. Whenever a remote operation is triggered
asynchronously, from a timer, a process-filter, or process-sentinel,
this operation can be in conflict with another remote operation just in
process. Tramp detects this, and raises a warning, and refuses to
perform this asynchronous operation. One could instruct Tramp to ignore
this error by

(setq debug-ignored-errors
      (cons 'remote-file-error debug-ignored-errors))

But since the remote operation is not performed, it is likely that the
lsp servers won't work correctly then.



  parent reply	other threads:[~2022-07-23 10:13 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-21  6:16 EBrowse obsolete? Gerd Möllmann
2022-07-21  6:44 ` Akib Azmain Turja
2022-07-21 12:46   ` CEDET obsolete? (was: Re: EBrowse obsolete?) Stefan Kangas
2022-07-21 13:00     ` CEDET obsolete? Po Lu
2022-07-22 10:26     ` Jose E. Marchesi
2022-07-22 13:26       ` Stefan Kangas
2022-07-23 11:44     ` CEDET obsolete? (was: Re: EBrowse obsolete?) Lynn Winebarger
2022-07-21  6:49 ` EBrowse obsolete? Po Lu
2022-07-21  7:26 ` Eli Zaretskii
2022-07-21  7:56   ` Bozhidar Batsov
2022-07-21 12:16     ` Zhiwei Chen
2022-07-21  8:16   ` Po Lu
2022-07-21 11:12   ` Gerd Möllmann
2022-07-21 11:44     ` Po Lu
2022-07-21 12:21       ` Dmitry Gutov
2022-07-21 12:28       ` Gerd Möllmann
2022-07-21 12:33       ` Akib Azmain Turja
2022-07-21 17:02         ` Yuri Khan
2022-07-21 12:15     ` Eli Zaretskii
2022-07-21 12:19       ` Dmitry Gutov
2022-07-21 12:28         ` Eli Zaretskii
2022-07-21 15:21           ` Stefan Monnier
2022-07-21 16:16             ` Visuwesh
2022-07-21 16:51               ` Stefan Monnier
2022-07-21 17:07                 ` Visuwesh
2022-07-21 17:16                 ` Jim Porter
2022-07-21 17:39                   ` Stefan Monnier
2022-07-21 21:26                     ` Jim Porter
2022-07-22  2:01                       ` Tim Cross
2022-07-23 10:18                         ` Michael Albinus
2022-07-24 23:25                           ` Tim Cross
2022-07-22 14:29                       ` Brian Cully via Emacs development discussions.
2022-07-22 17:22                         ` Jim Porter
2022-07-23 10:35                           ` Michael Albinus
2022-07-23 10:28                         ` Michael Albinus
2022-07-23 10:13                       ` Michael Albinus [this message]
2022-07-23  9:57                     ` Michael Albinus
2022-07-23 14:36                       ` Stefan Monnier
2022-07-23 15:04                         ` Michael Albinus
2022-07-23  9:51                   ` Michael Albinus
2022-07-22  1:06                 ` Po Lu
2022-07-22  4:55                   ` Gerd Möllmann
2022-07-22  5:15                     ` tomas
2022-07-22  6:52                     ` Eli Zaretskii
2022-07-22  1:35             ` Tim Cross
2022-07-21 12:58       ` Gerd Möllmann
2022-07-21 13:04         ` Eli Zaretskii
2022-07-21 13:16         ` Po Lu

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=87a690jfw7.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=dgutov@yandex.ru \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=gerd.moellmann@gmail.com \
    --cc=jporterbugs@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    --cc=visuweshm@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.