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: Sat, 18 Feb 2023 13:10:44 +0200 (EET) Message-ID: <687235760.209554.1676718644945@office.mailbox.org> References: <1163788660.69273.1675787581764@office.mailbox.org> <87r0uo7h2w.fsf@gmx.de> <1557187872.167775.1676630029885@office.mailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26367"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "joaotavora@gmail.com" , 61350@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 18 12:11:26 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 1pTL7l-0006gh-Ig for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Feb 2023 12:11:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTL7U-0003cD-GM; Sat, 18 Feb 2023 06:11:08 -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 1pTL7O-0003bn-RC for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2023 06:11: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 1pTL7O-00015h-Is for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2023 06:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pTL7O-0000A4-7K for bug-gnu-emacs@gnu.org; Sat, 18 Feb 2023 06:11: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: Sat, 18 Feb 2023 11:11: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.1676718657608 (code B ref 61350); Sat, 18 Feb 2023 11:11:02 +0000 Original-Received: (at 61350) by debbugs.gnu.org; 18 Feb 2023 11:10:57 +0000 Original-Received: from localhost ([127.0.0.1]:42617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTL7J-00009j-4a for submit@debbugs.gnu.org; Sat, 18 Feb 2023 06:10:57 -0500 Original-Received: from mout-p-101.mailbox.org ([80.241.56.151]:34300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pTL7G-00009T-AI for 61350@debbugs.gnu.org; Sat, 18 Feb 2023 06:10:55 -0500 Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (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-101.mailbox.org (Postfix) with ESMTPS id 4PJmFL0ZYyz9sTg; Sat, 18 Feb 2023 12:10:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=koch.ro; s=MBO0001; t=1676718646; 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=RVL/I0jME5Qke4ng51kPQIet5D2Ibh6fcE8I2WXsE9U=; b=fevOlGfPl5HfG5fZWogjXDI59V0WY5U9bIp/6WuVDuYV0yhY8+puqvUmxNyAXGgTyc6U8h wHgT6T1dkADCtQT+7vuWx9TksNa3nMMD2hsViejV/V6bpQ6VeMSU5fbPvk7hutNgVeNJNF 2CfUr5i/akZSXeFGN+8by+mm2bGhbJg5zlgVOEzntludgZTtWldBL/sB2uhXEufoM1m8pu /xW8WuxnUBVm8nKSH20DekXgqcvDEZJ984LHaR6uZAeBQ/XncZDVR2zaDgcD0JIfqighip wZoq4bRLVGLDr4EN3f6RFPo2NbyXD5RRk87ZwmSobvMIuXtPv6fopDotolKPyA== In-Reply-To: <1557187872.167775.1676630029885@office.mailbox.org> X-Priority: 3 Importance: Normal X-Rspamd-Queue-Id: 4PJmFL0ZYyz9sTg 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:255952 Archived-At: CC eglot maintainer as requested by him. Please bare with me Michael, if I ask a stupid question although you're a long time Emacs contributor. I saw now that concurrency in Emacs is an age old problem: https://www.emacswiki.org/emacs/ConcurrentEmacs There are emacs-async and emacs-deferred. Couldn't one of them be used to write a non-blocking wrapper for file-io? NodeJS made this programming model popular when it appeared in 2009. I can't believe that nobody discussed this before for Emacs? (Of course I otherwise despise JavaScript and NodeJS in particular with passion.) Meanwhile I could hack eglot to not block so far by replacing find-buffer-visiting with get-file-buffer in eglot-handle-notification. Of course there will probably be other places that cause problems and I could also only use this hack because my project files are not opened via symlinks.