From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Koch Newsgroups: gmane.emacs.bugs Subject: bug#61350: Eglot over Tramp freezes with large project Date: Sun, 26 Feb 2023 12:24:39 +0200 (EET) Message-ID: <1898310314.855305.1677407079921@office.mailbox.org> References: <87y1ootw2t.fsf@gmail.com> <69968923.705640.1677163650760@office.mailbox.org> <87a613f0b7.fsf@gmx.de> <87r0udvmzr.fsf@gmx.de> <878rglxrzm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18117"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61350@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 26 11:25:25 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pWEDZ-0004Qd-DI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Feb 2023 11:25:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWEDL-0002XU-Hd; Sun, 26 Feb 2023 05:25:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWEDI-0002XG-E5 for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 05:25:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWEDH-0000xp-6k for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 05:25:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWEDG-0008VR-F5 for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 05:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Thomas Koch Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Feb 2023 10:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61350 X-GNU-PR-Package: emacs Original-Received: via spool by 61350-submit@debbugs.gnu.org id=B61350.167740709132675 (code B ref 61350); Sun, 26 Feb 2023 10:25:02 +0000 Original-Received: (at 61350) by debbugs.gnu.org; 26 Feb 2023 10:24:51 +0000 Original-Received: from localhost ([127.0.0.1]:42373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWED5-0008Ux-FK for submit@debbugs.gnu.org; Sun, 26 Feb 2023 05:24:51 -0500 Original-Received: from mout-p-202.mailbox.org ([80.241.56.172]:55096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWED3-0008Uh-Gm for 61350@debbugs.gnu.org; Sun, 26 Feb 2023 05:24:50 -0500 Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4PPfrT07x6z9sSX; Sun, 26 Feb 2023 11:24:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=koch.ro; s=MBO0001; t=1677407081; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XsW2KGZMaKqIbuLElvm5pe5ImCH//EGF63iP0Y3sdek=; b=j2EamJMEXjG26gYHG5+YHWMWScGhF3AXiMp3sHJT2DPKvyH0cG3EH6i7wcC5v/NT2feLcT 0K1f1YhVx/aV8kwwY2ugRp4sUD8Msz7h1QyHiFJat+d8oK56lfHDE+2o/lzIYc6Eb+RdRH LV4zg81SVSdqOuWH1AUBACoFn4x9K9GnEgaO2VEVhVTum08lM/VbCcHPzb3CLncQBJ1AUT 3jasa1fFkzpttZ56PvvOtDoEHqBnjNbzXpEZkBveXl7vJ8fStI1hCNDdbRq/JAGBP9Rbh3 t/XCuzR2hfv4uJNAkyrklUeAFYa0I2OCz6Y93lc5EiQZFxNj44FFQdyI1neeFQ== In-Reply-To: <878rglxrzm.fsf@gmail.com> X-Priority: 3 Importance: Normal X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256779 Archived-At: Michael and I met yesterday for a debugging session. Eventually we tried without SSH ControlMaster (via tramp-use-ssh-controlmas= ter-options). Eglot did not freeze anymore. I actually found the hint to ControlMaster already early on but probably ma= de a mistake when trying it: - Either I set tramp-ssh-controlmaster-options to nil, which is the default= and does not have any effect. - Or SSH still used ControlMaster due to my ssh config: Host * ControlMaster auto I still see one error in process filter: tramp-error: peculiar error: "Forbidden reentrant = call of Tramp" I don't consider this a solution but just a workaround. After all I had tra= mp freeze my emacs also before I used eglot. After reading jsonrpc and tram= p source code yesterday I also believe that Jo=C3=A3os proposal might help = to make Tramp more stable. Unfortunately I've not done any elisp programming yet and thus can't help w= ith coding. I was thinking whether there could be an abstract (and reliable) process in= teraction library to be used by tramp, jsonrpc and others. In my init.el I = found at least magit (magit-process.el) and maybe org-export (ox.el) which = also call external processes and need to reliably parse process output. jsonrpc is special since it needs to match process output by message id to = previous process input. Otherwise it seems to me that there is a lot of shared logic?