From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62004: 30.0.50; comp-run-async-workers failure when default-directory deleted Date: Mon, 06 Mar 2023 18:49:09 +0200 Message-ID: <83sfeh7rlm.fsf@gnu.org> References: <874jqxyhfo.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22843"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62004@debbugs.gnu.org To: No Wayman , Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 06 17:50:42 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 1pZE2q-0005kI-Ur for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Mar 2023 17:50:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZE2Z-0003OO-P0; Mon, 06 Mar 2023 11:50:23 -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 1pZE2F-0003KG-T1 for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 11:50: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 1pZE2F-0007la-JN for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 11:50:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZE2F-0005nW-G9 for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 11:50:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Mar 2023 16:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62004 X-GNU-PR-Package: emacs Original-Received: via spool by 62004-submit@debbugs.gnu.org id=B62004.167812137722190 (code B ref 62004); Mon, 06 Mar 2023 16:50:03 +0000 Original-Received: (at 62004) by debbugs.gnu.org; 6 Mar 2023 16:49:37 +0000 Original-Received: from localhost ([127.0.0.1]:43488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZE1p-0005lp-7d for submit@debbugs.gnu.org; Mon, 06 Mar 2023 11:49:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZE1o-0005lP-Ef for 62004@debbugs.gnu.org; Mon, 06 Mar 2023 11:49:36 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZE1Y-0007aD-FQ; Mon, 06 Mar 2023 11:49:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=LdRrS3KtmSois21PE8tfSd+dw09CPQYLZvpoUFGaF5A=; b=kzfv1P+3qq7r Lg0dd5bp7sNnSWSR9LXgt5xn0x9J6xsKc04N1e799lkxfcErvhLVMXFfrdsAy7RQjxO1XW+qQ2hnx vuFOoTphApaUI9XIeTdpC1a08zHLMEHB1FkRKHpp+hf0JV5M4grfsWTVRJq5P6VGkKrav3pwRltVw SBAgHbFVrA4B+DBMJJvd/XtESMUICzn21bJOutMEMa2fIjgTGiVBTHjrtMPhaXv3RYVGdnp1cxwbJ jlIwQPiIW9wvxNJZbhHsEJFBk46Y3FAzaatsJxTqrSMDHjy7E+T7g51y3+lxUyTPqhaB3W4YXmnjT 8Pt6xqiIjeZXYCoa63vJ+g==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZE1T-0008AV-OU; Mon, 06 Mar 2023 11:49:17 -0500 In-Reply-To: <874jqxyhfo.fsf@gmail.com> (message from No Wayman on Mon, 06 Mar 2023 10:48:58 -0500) 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:257406 Archived-At: > From: No Wayman > Date: Mon, 06 Mar 2023 10:48:58 -0500 > > > A corner case I've recently run into with comp-run-async-workers: > > 1. create a non-empty elisp file at /tmp/dir/test.el > 2. visit /tmp/dir/test.el > 3. delete /tmp/dir/ > 4. from within the test.el buffer `M-x > emacs-lisp-native-compile-and-load` > > The process will fail with: > > > /tmp/dir/test.el: Opening input file, No such file or directory, > > /tmp/dir/test.el > > A similar edge case is accounted for when the buffer has no > associated file. > e.g. attempting emacs-lisp-native-compile-and-load from the > *scratch* buffer results in the user error: > > > The buffer must be saved in a file first. > > Perhaps a similar check should be made in the case described > above. That's not the same check: the latter checks whether the buffer visits a file, which in the former case is true. I'm not sure we should do anything here: after all, the error message tells what's wrong quite clearly. Andrea, WDYT?