From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#61350: Eglot over Tramp freezes with large project Date: Tue, 07 Mar 2023 15:31:50 +0100 Message-ID: <87mt4otyy1.fsf@gmx.de> References: <87y1ootw2t.fsf@gmail.com> <87h6v8f7u9.fsf@gmail.com> <87o7pflfcd.fsf@gmx.de> <87wn43e9ht.fsf@gmail.com> <874jr6oont.fsf@gmx.de> <87sfeqd4zi.fsf@gmail.com> <877cw1swjm.fsf@gmx.de> <87k0016dgo.fsf@gmx.de> <1458446553.50372.1677606917251@office.mailbox.org> <87ilfkh89k.fsf@gmail.com> <87y1ofct83.fsf@gmx.de> <87356n8kja.fsf@gmail.com> <877cvvfnp6.fsf@gmx.de> <54377687.213790.1678016749459@office.mailbox.org> <87356jfktc.fsf@gmx.de> <87a60ovi90.fsf@gmx.de> <31964054.380679.1678194256931@office.mailbox.org> <87r0u0u0rl.fsf@gmx.de> 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="5067"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Thomas Koch , 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 Tue Mar 07 15:33:24 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 1pZYNW-00016R-Hp for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Mar 2023 15:33:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZYNE-0007wD-DU; Tue, 07 Mar 2023 09:33:04 -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 1pZYNC-0007tb-9a for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 09:33:02 -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 1pZYNC-0007in-1U for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 09:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZYNB-0005F6-RN for bug-gnu-emacs@gnu.org; Tue, 07 Mar 2023 09:33:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Mar 2023 14:33:01 +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.167819952220054 (code B ref 61350); Tue, 07 Mar 2023 14:33:01 +0000 Original-Received: (at 61350) by debbugs.gnu.org; 7 Mar 2023 14:32:02 +0000 Original-Received: from localhost ([127.0.0.1]:44934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZYME-0005DM-Aj for submit@debbugs.gnu.org; Tue, 07 Mar 2023 09:32:02 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:52805) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZYMC-0005Cz-6b for 61350@debbugs.gnu.org; Tue, 07 Mar 2023 09:32:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1678199513; i=michael.albinus@gmx.de; bh=SSRgBeppsl2pA75hz37Doa1qsUllxGajrCUypkIVlys=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=kLrCJJxUeG5xHYrdL/vLX/UXtuNtSia63noemFG4Hy+6liAxRfG25KZXvQxq4GczY YCx51i5Ket56Ewn40Cz9X/2DMjfmQs8ZgPdzeOcjzDtG1wH6sC7SN4cc5LBV26l/zY Fzt2dZ0B2wmdPovz9EXKs6hn5TcK6GHLnqoOtw+DeXJ2UuRv3QfKLPUPH0Nq5X/I/x TTuUQAPa1nthNQlvCyAYtJQq9Ld/l9RGhrmC+KG9FWay4kqMObzgqxf0L3cGC3QqJH EgQYoh3YSK+Tqvv72IEsMhrXOgZV/KBC8iGn6uyqOc6SXf/3l2V1AjKwyLNf8WWq/E KwUi1dBLzDaZg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MHoRK-1pl9kF2Bjq-00EvfP; Tue, 07 Mar 2023 15:31:53 +0100 In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Tue, 7 Mar 2023 14:03:34 +0000") X-Provags-ID: V03:K1:inyuzJfiAfnSTYkaJlfUjTmuq2Aoltogg7JeiDPLBbGBfY2AEMP RgHhsc4yTgZszsNPvBdJuq30BdchP27Eo67ZOKWYRSmknHEQjEdW85Su4oYD+weaeafY3D1 omriQPikatstKggh4ujMAjlpfxexP/2hRQL04oMOKyxtTwP/owYJ0HlmzpoNgli6Zstcfbp ofGlTYOPsb9DbmvYpmqig== UI-OutboundReport: notjunk:1;M01:P0:Mw0v2yH8wcw=;5fP4e/SRrZga4ngpzpRh4zHxoEp sVDXMTVY8apFmymA2JqzD2EMHm63qUAp7Pasn9/Q2pLnrc7bvoWhrSBOvgvnInnSG+GHM7YGm Ap8FUDcLt2dWOtb5uc2y0f38KQkfygN8QCALBM7OPEFm0wTz81sOyC2VdC1Kgvvd/mcvX4OSz hdc5uSMPuXq8xePKjFdAkYAF7mKTsfjRyZ2La6eyOLtx60z9RfeYWSISai1Mi052Bn/amBxqb jHPGIFNeW8YlpHfgDJ/ML1gGEdRKoahJ25yDOuR1pAg2RQNq/pKsrQhk85UQW6nFDPomc4x8s oqJ8hmVZQn8wZlnvdqGdDESwmMP7wqqIa/TiwE417tpHXsTR2xpoC0Ow5p3aR1K9xHAlIq+ij fnPxX/RPzZtT/EmhluSW2C9Tsj3boAMyFV0rjHddqEhYvnGMruQHYrQiWY8v60/TJE9ooeUNf JtBsFL9sc4VDMIp6iLu25akg3Sc0UrlGx+p0N08pB0LWC4EY86MWy7SpF0UACVqXC1gth/UuA EnyAvrRf0z3h4E0By5NU46Ujj0kzMiciozKSmDJ3QfMr6ePwuKdsk3s9bkJ1q6hLVGPO1+Ar5 GfS33tg6fz9D765EYMm04zGaTRIjxYUzKDykXSumUoWHwg7CffPTTmQHxWbIDBUTJFDirVZ3o jL7sqzvSy/IBUi0tCQEf9cJiINNcYApc56frQZ4e+a45XpIVhEhBMSE+usnb8MHjzi8tskYf6 noMwZHgk51yytvdILwcjRHM9mmzpvAtCl9AmxRslOyEHuV0K3FeCdJHtI0tukmpxgoaDxA9E 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:257466 Archived-At: Jo=C3=A3o T=C3=A1vora writes: Hi Jo=C3=A3o, >> > So maybe you meant: >> > >> > (while (accept-process-output p 0 nil t)) >> > >> > as suggested in that section? >> >> That was my first idea as well. But tramp-accept-process-output itself is >> called in a loop, so there's no difference in practice[1]. > > Hmmm, I still don't think they are equivalent. In tramp-a-p-o with > TIMEOUT set to nil is where it normally hangs, right? Well then, if > it does hang it will _not_ be called in a loop, by definition. But the hang happens only when there is another process using the same socket. As soon as such a parallel process is detected, my patch does --8<---------------cut here---------------start------------->8--- (setq timeout (or timeout 0)) --8<---------------cut here---------------end--------------->8--- No blocking anymore. >> Pls give my patch testing, in order to see whether Tramp still blocks. > > I will do that later. But 10 out of 10 successes in your testing is > a pretty solid indication that this is on the right track. Thanks. > Jo=C3=A3o Best regards, Michael.