From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61350: Eglot over Tramp freezes with large project Date: Wed, 15 Mar 2023 14:30:24 -0400 Message-ID: References: <87y1ootw2t.fsf@gmail.com> <87356jfktc.fsf@gmx.de> <87a60ovi90.fsf@gmx.de> <31964054.380679.1678194256931@office.mailbox.org> <87r0u0u0rl.fsf@gmx.de> <87mt4otyy1.fsf@gmx.de> <87pm9fk6ht.fsf@gmx.de> <87mt4jzf8q.fsf@gmail.com> <87fsabh2z2.fsf@gmx.de> <87edpvxu7w.fsf@gmail.com> <87bkkzgyb8.fsf@gmx.de> <87lek2x09t.fsf@gmail.com> <875yb646d1.fsf@gmx.de> <87fsa7mw9x.fsf@gmx.de> <87fsa7l6o6.fsf@gmx.de> <87a60fl4p7.fsf@gmx.de> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22008"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Thomas Koch , Michael Albinus , 61350@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 15 19:31:28 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 1pcVuJ-0005Vw-Tf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Mar 2023 19:31:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcVty-000627-09; Wed, 15 Mar 2023 14:31:06 -0400 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 1pcVtv-0005z5-1z for bug-gnu-emacs@gnu.org; Wed, 15 Mar 2023 14:31:03 -0400 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 1pcVtu-0001Yw-PS for bug-gnu-emacs@gnu.org; Wed, 15 Mar 2023 14:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pcVtu-0005qS-Bz for bug-gnu-emacs@gnu.org; Wed, 15 Mar 2023 14:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Mar 2023 18:31: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.167890504122424 (code B ref 61350); Wed, 15 Mar 2023 18:31:02 +0000 Original-Received: (at 61350) by debbugs.gnu.org; 15 Mar 2023 18:30:41 +0000 Original-Received: from localhost ([127.0.0.1]:40565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcVtZ-0005pc-1D for submit@debbugs.gnu.org; Wed, 15 Mar 2023 14:30:41 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:5045) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pcVtX-0005pJ-LA for 61350@debbugs.gnu.org; Wed, 15 Mar 2023 14:30:40 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id CF505809FC; Wed, 15 Mar 2023 14:30:33 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 157FB805AC; Wed, 15 Mar 2023 14:30:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1678905032; bh=CvbkK/C2gXlip/GS7jmNvS6KqGQwtShoS6OjKMvl434=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=JFlOczKMbpNZATq2Xi6s0TjcFuOC3vDvb9um+cXIrWSbJbfqhvcJ4CcRPD2Byq1J+ yliSvOzMpTvo7SL3nF1u3KGtY2EyiJ9KEPdJNATizEOHxo7uClsrX5kKA3cGhWfb7c FEXLCwhNlZOu72nX92pqlLdJqI1tTDUojvIFMM53lJJvWv7SikEocVlynRqO5XMhDC pUBAb7/Xldbce+92/vTfoj/giUG/GKwyTQVNbyoRr7KJRzH7nV3KynLSMmTfb9Uj20 u08y/SoIjMtztDeiM4763Q99uwqKgbg0sN6C7jb4ViXGnXMaU+JDWbinDCTGgra24C aFmQ0lFbwLEvw== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E448F12328D; Wed, 15 Mar 2023 14:30:31 -0400 (EDT) In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Wed, 15 Mar 2023 18:05:10 +0000") 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:257978 Archived-At: > We could start by understanding exactly what is triggering this reentrancy. > AFAIU, we don't. If have a recipe to trigger is consistently, now we should > work backwards from there. I think we understand some of the problems well enough to think about solutions. E.g. the case where we run a process filter for process P while we haven't finished running a previous invocation of P's process filter. [ While this tends to occur in hard-to-debug corner cases, it also tends to occur when Edebugging process filters. ] Another is that `process-send-string` should be more clear about its asynchronous behavior: I'd argue that it should *never* block, but it should additionally provide a way to check when the send is completed. I suspect we also have some loose ends in timer handling, where we should provide ways to distinguish "run every N seconds", "wait N seconds between each run", and whether re-entrancy should be allowed when running "every N seconds". And I seem to remember seeing cases where upon a process's exit we run the process sentinel before the last invocation of the process filter: we should clarify the ordering of these things (where "these things" should also include things like `process-live-p` and `process-status`). I haven't bumped into such problem recently, so maybe they've been fixed, but maybe it's just because I haven't played with those tools recently (not sure what the doc says about these things either). Stefan