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: Fri, 24 Feb 2023 18:19:40 +0100 Message-ID: <87a613f0b7.fsf@gmx.de> References: <87y1ootw2t.fsf@gmail.com> <69968923.705640.1677163650760@office.mailbox.org> 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="23791"; 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 Fri Feb 24 18:20:14 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 1pVbjx-0005y5-KT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Feb 2023 18:20:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVbjo-0004Zb-O6; Fri, 24 Feb 2023 12:20: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 1pVbjn-0004ZM-Hl for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 12:20:03 -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 1pVbjm-0005hZ-Cx for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 12:20:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVbjm-0004Lg-8u for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 12:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Feb 2023 17:20: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.167725919116696 (code B ref 61350); Fri, 24 Feb 2023 17:20:02 +0000 Original-Received: (at 61350) by debbugs.gnu.org; 24 Feb 2023 17:19:51 +0000 Original-Received: from localhost ([127.0.0.1]:38175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVbja-0004LD-SV for submit@debbugs.gnu.org; Fri, 24 Feb 2023 12:19:51 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:58567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVbjY-0004Kv-8y for 61350@debbugs.gnu.org; Fri, 24 Feb 2023 12:19:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677259181; i=michael.albinus@gmx.de; bh=8mAbpc4jEzoAFm9AqkxrDS4821Mlu5Md8ptU9SwXhVw=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=TEKJy3eZHOUMzSTqFhVi7juc2b1MO9Q/7El4YQ5EVpicbVuIEWhoYK2X9UjbWAb3f 6FaQbdXHwijEUBiCHcEJ66v/syJUZGGKhZdXvEDr0MlepOegRvSQtGuHRMXh9bkgzL fCtIYXaHUyTcj00eHseyhLswV1uyjPwHKMC5e6CFtCsmFkVFc50SSIq/4eg/UNDGvo nmbryzbNw+z0MpUOOm3I/BJmwyuP9kKXoJSzindp/FVJErE99lH6vD04ZP+EOSZTIs KIx6zuzCosXiRpqJRz9fbuwog0sHhJG1qNKWLAf1fOW48LExJMXghz9HXS+29ABdk9 VbuD1gNT2idAA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MDQeU-1pOQih2jxu-00AUJw; Fri, 24 Feb 2023 18:19:41 +0100 In-Reply-To: ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Thu, 23 Feb 2023 15:22:33 +0000") X-Provags-ID: V03:K1:OGBatwoNb58SGGdaHVEtVgUbRi6SYa1z8WOZys2TpPE0NS+dt5n dfbUbv2nFDXiYNgFWjR4D3oj1yFeq3tEwIx9hHEpb4c8R9eOotDoiNFJhYBJAON3knXUNsq 9gSxU67RCP1884kB25tjZ22BEs8VSGxhOaUFM5in9L3tuqoVMkhwXSXfY31D7cOCTfZlZmZ /UfVEoKgalsbw8mq2Yl6g== UI-OutboundReport: notjunk:1;M01:P0:Fl2v9Bqm5t0=;RpfQwEcMNxlDaP+t5Th7//zA+6n PEE4ztb2VLmBsCxBMGZVornO85EpRzL/xaspSex7NnuC0L1FItwpZ0E7aN8UTT+bUCFqO6hMI bJrMyE87Cb992LqNxlLmblFgXJrCdlLXbsI0Hk82tvF4Tr74wpHPQ9R/ZLmDzs6l7unjXUQZj jpKGrpwVkoL5FRN1jlVYVFg9dTlgA+GWH5GCjCePqVsdAUtQcP9TktvmBrTyPxcq3pMTn8eTD hqGsTGNoj9prPxsR6vWDGepqOH9NiHQRpzEMsRs1txhoyrj8z+X+Q5vK3uLVb16y1z0CWlZ0Z 0hNyQwNaAjrP1H97wb2JevpFUGiSUpI/ssVWdifxuerz4Uo79g4JS/r5JvBElDwUzwsrYMW9M mm2DpS3vM6pvSYbteZ0bRC/06RpnQQOiNfmZfYy4PkIULwFN3CzGQ11oDGFjgxVYlQ8w5qzZZ K1Ql580XrL0bdg9JITGzI9iPCOBu9N/INp7o9nrb6I1cKB2qY6c+V1MwbvVs7HmnHJ8by3g/A fytH4YNupliveuv32rIcGeW2dh3IYiTQepQWJpOoZsFWNTidrT7KdgS8R4ZXnETdxJJgG7MPs 9K0voTX3JUZFRTJTCNG8Qq/KzwjMBesSIanUPQigwDOK3agMG7QZv5prMlzByeCnuG7t5WoMI RDoDiTjRbcuJ7Nlg0QMHsQbD9ntmrd2G9DM0/DBiJC9a59E/arCBMftglPaSQv+A2gxhQwhkU /h4zHPp2t2VULE9O8UkFWeTE++bAESvj/vb281iH8/aCyoI1Bzly6bpbPrSTM5gluKijf7Zx 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:256644 Archived-At: Jo=C3=A3o T=C3=A1vora writes: Hi, sorry for the delay, I have been out of order the last days :-( >> Thanks Jo=C3=A3o, but with the jsonrpc patch it is the same as with the = previous patch: Emacs still hangs. This time I could unfreeze it with C-g, = but it hangs again a moment later. I confirm, that with the jsonrpc patch the problem still happens to me. I'm using the emacs-29 branch for test. > I'll need you to describe the conditions that lead Emacs to hang. > An Emacs -Q run, a server, an example file, all in all, a MRE. See > how this user informally but very effectively reported a bug in Eglot: > > https://lists.gnu.org/archive/html/emacs-devel/2023-02/msg00851.html > > Here, I don't even understand whether you're trying this with TRAMP > or locally. I have prepared the test as described by Thomas in . After setting up everything on the remote side, I have called --8<---------------cut here---------------start------------->8--- # ~/src/emacs-29/src/emacs -Q /ssh:ubuntu-2204:/home/albinus/src/yacy_searc= h_server/source/net/yacy/yacy.java -f eglot --8<---------------cut here---------------end--------------->8--- The remote machine is a virgin Ubuntu VM. > If I can't see the error you're facing in my machine, it's likely > I won't be of any help. I can report I've been working for a few > hours with that patch with the Clangd server with no problems using > a local project (no TRAMP). > > We can also wait for Michael to try out the patch, as I'm sure he > can report any problems just as clearly as he last did in this > thread. As said above, same result: eglot hangs. Your patch doesn't change the game. You don't call jsonrpc--notification-dispatcher anymore in the process filter directly. But calling it by a timer has the same effect: The process filter (accepting output) is still active, and the called function in the timer still uses file-truename, which tries to read output from the Tramp process. Again, I still believe we need a general solution in Tramp, using threads. > Jo=C3=A3o Best regards, Michael.