From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#61350: Eglot over Tramp freezes with large project Date: Fri, 24 Feb 2023 17:45:45 +0000 Message-ID: References: <87y1ootw2t.fsf@gmail.com> <69968923.705640.1677163650760@office.mailbox.org> <87a613f0b7.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40120"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Thomas Koch , 61350@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 24 18:47:18 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 1pVcAA-000AFj-PN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Feb 2023 18:47:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVc9w-0004Kv-MX; Fri, 24 Feb 2023 12:47: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 1pVc9u-0004DZ-Sd for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 12:47: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 1pVc9u-0005NQ-6e for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 12:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVc9t-000564-LC for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 12:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Feb 2023 17:47: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.167726076419520 (code B ref 61350); Fri, 24 Feb 2023 17:47:01 +0000 Original-Received: (at 61350) by debbugs.gnu.org; 24 Feb 2023 17:46:04 +0000 Original-Received: from localhost ([127.0.0.1]:38202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVc8x-00054m-Ti for submit@debbugs.gnu.org; Fri, 24 Feb 2023 12:46:04 -0500 Original-Received: from mail-oa1-f49.google.com ([209.85.160.49]:40675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVc8w-000540-5U for 61350@debbugs.gnu.org; Fri, 24 Feb 2023 12:46:02 -0500 Original-Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-17235c8dab9so286852fac.7 for <61350@debbugs.gnu.org>; Fri, 24 Feb 2023 09:46:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677260756; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2i1zM5byu58slcvjwks/s7pt5ud3UXQTlChSwuy6csw=; b=ZthgdmDkpxsBGHLPkkUCDd6scaGHROtoB/5tTvTiHosPZyv5hoxzebyRXiilSfUhuY uogb887AjE364wfI1oOPJQqvcjlayaz+jK3OqgGXkXesD9fyh73qKXLZ/OpSy9Xax5IN OKpXujBRUbVgkmC5pn3G+KFmh1sud/xycul4qvtOVSNI7YGhLDz0CtDCkOnZwNc7ljwX yw2D7cPEEUJB23oTqP9CYX5Uqqn9TOymqZZE5YN5XWwybdwDl4qkvJJZoF36TLPZew3N 5oil+f0vxi2B9lhlJwucltv0+Z9GoQUBu4nDvjw94nc8UaNDAaUWjcqnKb9hNUlonMBP HQZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677260756; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2i1zM5byu58slcvjwks/s7pt5ud3UXQTlChSwuy6csw=; b=HyplDHQtni1llQCdDXHvtJDZxGL6nt4UjXc0tsGs1BAUrR8vEG6mklSo86mKoQHnlI a6KQ33bGGQOID1W9MEoMXNg4LzGP91S5HF7C8Fpffw0Cvz8/q+1eI9j2XhA99N9caVuk OKgPIcgUtKuVSJTbNesSnHX+lp5Q04O05l7d/1W8YGvFqbiCDxJQPtWuXK4WiNlG63Ag zEsIYgC9+kvVFeei/K1xKBjUAuRnEc8j6m+tmTCTlYVm3dYa/Hsj+36d9B4OTYs3Ny/+ madmCz6ERGqkzkX9Zk0D1zGgicIJlTAk81rLkXHGFi8zrBn1XQa+GUj0xbq9TUI4lHec G7qg== X-Gm-Message-State: AO0yUKUMbgr76YjtGSPmzWer9KXuN31n/WuPoTTj9m4afhrM3ozucMT/ udjq68gmbTKMShjlBbCZZ2G4+x8chX2mGS5/lkQ= X-Google-Smtp-Source: AK7set/4vBd2yUArPlGK8Z6lxAOR7VSeSqyciSJHdEh8pvyAmPW5Ugj82eTR58GKwuRImtoxbmF+DunxCzY5FAo7kcw= X-Received: by 2002:a05:6870:954f:b0:16a:6ab4:e878 with SMTP id v15-20020a056870954f00b0016a6ab4e878mr1264534oal.8.1677260756569; Fri, 24 Feb 2023 09:45:56 -0800 (PST) In-Reply-To: <87a613f0b7.fsf@gmx.de> 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:256645 Archived-At: On Fri, Feb 24, 2023 at 5:19 PM Michael Albinus wrote: > sorry for the delay, I have been out of order the last days :-( No problem. Hope you're feeling better! > As said above, same result: eglot hangs. Your patch doesn't change the > game. Sorry to hear about that, I thought it was problem related to processes inside processes. > 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, What exactly do you mean by "still active" and what process are you referring to? Jsonrpc's or Tramp? > and the called > function in the timer still uses file-truename, which tries to read > output from the Tramp process. This part I can understand. But I don't understand this that you wrote in the original message: > > Since jsonrpc always accepts output from *all* running processes, there > > could be (and is!) the constellation, that process output has been read > > already, and Tramp didn't get it, waiting for the output forever. I could understand if we were talking C and read() here, but the process output of other processes read by jsonrpc's call to accept-process-output surely must have run through some filter function, it wasn't just lost AFAIK. You've probably seen this trick a mililon times, but markers in the process buffer is what is used commonly. > Again, I still believe we need a general solution in Tramp, using threads. I don't understand what is conceptually impossible (or very hard) to achieve with evented IO like we have in Emacs.