From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: No Wayman Newsgroups: gmane.emacs.bugs Subject: bug#62004: 30.0.50; comp-run-async-workers failure when default-directory deleted Date: Mon, 06 Mar 2023 10:48:58 -0500 Message-ID: <874jqxyhfo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10375"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.21; emacs 30.0.50 To: 62004@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 06 17:25:34 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 1pZDeY-0002SD-6R for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Mar 2023 17:25:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZDe4-0003zd-EO; Mon, 06 Mar 2023 11:25: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 1pZDe2-0003zR-VD for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 11:25: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 1pZDe2-000326-Eu for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 11:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZDe1-00053w-UG for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 11:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: No Wayman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Mar 2023 16:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62004 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167811986819414 (code B ref -1); Mon, 06 Mar 2023 16:25:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Mar 2023 16:24:28 +0000 Original-Received: from localhost ([127.0.0.1]:43429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZDdU-000533-AW for submit@debbugs.gnu.org; Mon, 06 Mar 2023 11:24:28 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:60542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZDdS-00052w-TE for submit@debbugs.gnu.org; Mon, 06 Mar 2023 11:24:27 -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 1pZDdR-0003hh-DF for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 11:24:25 -0500 Original-Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZDdO-0002xG-OZ for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 11:24:25 -0500 Original-Received: by mail-qt1-x82c.google.com with SMTP id y10so11164465qtj.2 for ; Mon, 06 Mar 2023 08:24:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678119853; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=7Wp1YpgnHnyR6qH55VZGRxuw8LHNTc3QjWYWI65Tz2w=; b=RYFCn1LHmKGZhWDVFtBTLoB9eGUN+6XN6cyUDK5zpmtWvlgK/9A+bRSXerjG0u+qo6 RVWktfTnv9qidjjxuS0EtvDSDQfODp1bNEcssG11AzUiTIg0wUGtHxxuoiLxoc5XI090 dIZAbyJxdnr/tXHu5RYNF89qZ1KBa+8HOk/4fAFxd4VvGxPOU8Lk98GHgA0oYZbi8D7j jvpLkF0cxJjQwu7s/fLojWZbzSIHR9tXZ6RqG8eviOApKi8/geGBAvlM3gPyfIyyQIEn GLI6Hn3d0A44zKT//acWZGeJB+lCJBMqajVP26tkYupicuo5mn25RcKiIGbprv4K10fg Cw0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678119853; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7Wp1YpgnHnyR6qH55VZGRxuw8LHNTc3QjWYWI65Tz2w=; b=NpCMdt28L0zjH2GtSwEMUHkTvWd8OixpbBRFs3iMENm7XuOjCxRbEbfe/I4yJn3mNd RWovb62y4tzo7YlWB4jBeKDHNnHLuoTWD5/NFbREqcguXvhZSgFyqsxWeIWgYRPidNA6 DR4ynIDOSwy7cudk2YReauMJ8MDvZjfx7mBNZyFeaswoUZndNU7e3nx3R5IJ16YkNyl5 bCZgMU97DH8sjF+qWN3XAYZ6o2mv6F51cXSTFCQFBycrP4XuY+U8ebWH/O5rhQFB0Wee B09km2/BRCyPtXBTrbCVykMLbGvxcFG03qRmgh4WZKnhndxwlOr0Xnuqs612r3Y4Qv/e 933Q== X-Gm-Message-State: AO0yUKWZcCzymbvfTRSSsE3+MqCXJuE6lpzM6C31m7tecBaeX6pTlBar 1M5KPJDxth1RblboLzhdz/svKbFpQsQ= X-Google-Smtp-Source: AK7set+7SBDwbj47J/u3D3uGy/o+Lr00SVW0+nlP1QWbUp4RIruOpudJ1J5/kXWfF2mwxwnpgtqnpw== X-Received: by 2002:ac8:5e10:0:b0:3bf:d254:bb9b with SMTP id h16-20020ac85e10000000b003bfd254bb9bmr20030079qtx.44.1678119853199; Mon, 06 Mar 2023 08:24:13 -0800 (PST) Original-Received: from nbook ([2601:84:847f:c697:8a6b:6703:a961:212b]) by smtp.gmail.com with ESMTPSA id bl33-20020a05620a1aa100b007422fa6376bsm7781404qkb.77.2023.03.06.08.24.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 08:24:12 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qt1-x82c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:257403 Archived-At: 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. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.8) of 2023-02-06 built on nbook Repository revision: 907fd1f7ff402f9d226ebb3b891ea5b54fac1d1c Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101006 System Description: Arch Linux