From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#55743: 28.1.50; No directory error in comp-run-async-workers Date: Tue, 31 May 2022 20:31:36 +0300 Organization: LINKOV.NET Message-ID: <86y1yhsxin.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14806"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) To: 55743@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 31 20:07:45 2022 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 1nw6HQ-0003if-9o for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 May 2022 20:07:44 +0200 Original-Received: from localhost ([::1]:38438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nw6HO-00052g-Su for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 May 2022 14:07:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nw682-0007oJ-LS for bug-gnu-emacs@gnu.org; Tue, 31 May 2022 13:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54936) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nw682-0002dV-9n for bug-gnu-emacs@gnu.org; Tue, 31 May 2022 13:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nw682-0007R2-9I for bug-gnu-emacs@gnu.org; Tue, 31 May 2022 13:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 May 2022 17:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55743 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.165401982328496 (code B ref -1); Tue, 31 May 2022 17:58:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 May 2022 17:57:03 +0000 Original-Received: from localhost ([127.0.0.1]:48833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nw674-0007PS-Ua for submit@debbugs.gnu.org; Tue, 31 May 2022 13:57:03 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nw66q-0007O4-Jg for submit@debbugs.gnu.org; Tue, 31 May 2022 13:57:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nw66q-0006vW-77 for bug-gnu-emacs@gnu.org; Tue, 31 May 2022 13:56:48 -0400 Original-Received: from relay2-d.mail.gandi.net ([2001:4b98:dc4:8::222]:39981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nw66o-0002Wm-HO for bug-gnu-emacs@gnu.org; Tue, 31 May 2022 13:56:47 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id D00BE40006 for ; Tue, 31 May 2022 17:56:40 +0000 (UTC) Received-SPF: pass client-ip=2001:4b98:dc4:8::222; envelope-from=juri@linkov.net; helo=relay2-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.bugs:233449 Archived-At: 0. emacs -Q 1. C-x C-f emacs/lisp/s TAB M-v Then after switching to the Completions window after a short delay this error is raised: Debugger entered--Lisp error: (file-missing "Setting current directory" "No such file or directory" "emacs/lisp/s/") make-process(:name "Compiling: emacs/lisp/net/goto-addr.el" :buffer # :command ("emacs/src/emacs" "--batch" "-l" "/tmp/emacs-async-comp-goto-addr-cVqUYL.el") :sentinel #f(compiled-function (process event) #) :noquery t) comp-run-async-workers() #f(compiled-function (process event) #)(# "finished\n") completing-read-default("Find file: " read-file-name-internal file-exists-p confirm-after-completion "emacs/lisp/" file-name-history "emacs/lisp/" nil) read-file-name-default("Find file: " nil "emacs/lisp/" confirm-after-completion nil nil) read-file-name("Find file: " nil "emacs/lisp/" confirm-after-completion) find-file-read-args("Find file: " confirm-after-completion) command-execute(find-file) This is because default-directory is set in the Completions buffer to a non-existent "emacs/lisp/s/" from incomplete minibuffer input. And comp-run-async-workers fails to make a process in that non-existent dir. So here are two problems: why completion sets default-directory to non-existent dir, and why comp-run-async-workers tries to run a process in such arbitrary invalid dirs.