[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cc-mode fontification feels random
From: |
Eli Zaretskii |
Subject: |
Re: cc-mode fontification feels random |
Date: |
Sat, 05 Jun 2021 09:41:15 +0300 |
> From: Jim Porter <jporterbugs@gmail.com>
> Date: Fri, 4 Jun 2021 13:05:40 -0700
> Cc: João Távora <joaotavora@gmail.com>,
> Theodor Thornhill <theo@thornhill.no>, Daniel Colascione
> <dancol@dancol.org>, ubolonton@gmail.com,
> emacs-devel@gnu.org
>
> On Fri, Jun 4, 2021 at 12:53 PM Eli Zaretskii <eliz@gnu.org> wrote:
> >
> > > From: Jim Porter <jporterbugs@gmail.com>
> > > Date: Fri, 4 Jun 2021 12:41:56 -0700
> > > Cc: joaotavora@gmail.com, theo@thornhill.no, dancol@dancol.org,
> > > ubolonton@gmail.com, emacs-devel@gnu.org
> > >
> > > Currently, the way Eglot works for remote files is that it
> > > runs the LSP server on the remote host via TRAMP.
> >
> > Why does it do that? Does the LSP server have to access the file
> > itself? We have all the contents of that file locally in a buffer, so
> > we could hand it to LSP locally.
>
> I'm not an expert on the internals of LSP servers, but it's my
> understanding that for a language server like clangd, it needs access
> not just to the current file, but the entire source tree[1].
I see, thanks.
So is Emacs the only editor using LSP with remote files? If other
editors support that, how do they solve this problem without incurring
delays?
> Moreover, in my own usage of Eglot, I find it very convenient that it
> runs the LSP server remotely. I often find myself files remotely over
> TRAMP from a local machine with a minimal set of devtools. While I
> could install all the LSP servers I need on all the machines I connect
> from, it's less effort to rely on the fact that the machine that'll be
> doing the compilation has all the devtools I need.
That sounds like a use case for running Emacs on the remote machine,
and only having the display on the local machine, like via X
forwarding or similar technology?
- Re: cc-mode fontification feels random, (continued)
- Re: cc-mode fontification feels random, Joost Kremers, 2021/06/04
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/05
- Re: cc-mode fontification feels random, Joost Kremers, 2021/06/05
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/05
- Re: cc-mode fontification feels random, Joost Kremers, 2021/06/05
- Re: cc-mode fontification feels random, Stefan Monnier, 2021/06/05
- Re: cc-mode fontification feels random, Óscar Fuentes, 2021/06/05
- Re: cc-mode fontification feels random, Stefan Monnier, 2021/06/05
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/05
- Re: cc-mode fontification feels random, João Távora, 2021/06/05
- Re: cc-mode fontification feels random,
Eli Zaretskii <=
- Re: cc-mode fontification feels random, João Távora, 2021/06/05
- Re: cc-mode fontification feels random, Ergus, 2021/06/05
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/05
- Re: cc-mode fontification feels random, Daniel Colascione, 2021/06/05
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/05
- Re: cc-mode fontification feels random, Jim Porter, 2021/06/05
- Re: cc-mode fontification feels random, Daniel Martín, 2021/06/05
- Re: cc-mode fontification feels random, Ergus, 2021/06/05
- Remote GUI Emacs really works (was: cc-mode fontification feels random), Óscar Fuentes, 2021/06/05
- Re: cc-mode fontification feels random, Eli Zaretskii, 2021/06/05