From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: cc-mode fontification feels random Date: Sat, 05 Jun 2021 09:41:15 +0300 Message-ID: <838s3olsok.fsf@gnu.org> References: <831r9iw473.fsf@gnu.org> <87h7ieyma7.fsf@gmail.com> <15be7dd8-e901-e317-5111-e1a34f6f0416@gmail.com> <83k0n9l9pv.fsf@gnu.org> <83eedhl83r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15934"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ubolonton@gmail.com, dancol@dancol.org, theo@thornhill.no, joaotavora@gmail.com, emacs-devel@gnu.org To: Jim Porter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 05 08:42:02 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lpQ0Q-0003vu-HC for ged-emacs-devel@m.gmane-mx.org; Sat, 05 Jun 2021 08:42:02 +0200 Original-Received: from localhost ([::1]:44866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpQ0O-0001aY-Od for ged-emacs-devel@m.gmane-mx.org; Sat, 05 Jun 2021 02:42:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpPzm-0000r7-7x for emacs-devel@gnu.org; Sat, 05 Jun 2021 02:41:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40682) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpPzk-0007dp-EL; Sat, 05 Jun 2021 02:41:20 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4279 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpPzj-0000jf-Va; Sat, 05 Jun 2021 02:41:20 -0400 In-Reply-To: (message from Jim Porter on Fri, 4 Jun 2021 13:05:40 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270417 Archived-At: > From: Jim Porter > Date: Fri, 4 Jun 2021 13:05:40 -0700 > Cc: João Távora , > Theodor Thornhill , Daniel Colascione , ubolonton@gmail.com, > emacs-devel@gnu.org > > On Fri, Jun 4, 2021 at 12:53 PM Eli Zaretskii wrote: > > > > > From: Jim Porter > > > 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?