GNU bug report logs - #80013
31.0.50; "No such file or directory" "vc-nil"

Previous Next

Package: emacs;

Reported by: Manuel Uberti <manuel.uberti <at> inventati.org>

Date: Mon, 15 Dec 2025 17:15:02 UTC

Severity: normal

Found in version 31.0.50

Done: Dmitry Gutov <dmitry <at> gutov.dev>

To reply to this bug, email your comments to 80013 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#80013; Package emacs. (Mon, 15 Dec 2025 17:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Manuel Uberti <manuel.uberti <at> inventati.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 15 Dec 2025 17:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Manuel Uberti <manuel.uberti <at> inventati.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; "No such file or directory" "vc-nil"
Date: Mon, 15 Dec 2025 18:13:39 +0100
Hi,

this is a recipe to reproduce the problem:

- (require 'project)
- (setq-default project-vc-extra-root-markers '(".project"))
- M-x make-directory /tmp/test
- Create a file named ".project" in /tmp/test
- Visit that file
- C-x p f

In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, cairo version
 1.18.0) of 2025-12-15 built on baruch
Repository revision: 45285a41d4f784b6ec9d9f808920d20add59e17b
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12302006
System Description: Ubuntu 24.04.3 LTS

Configured using:
 'configure --with-x-toolkit=no 'CFLAGS=-O2 -pipe -march=native
 -fomit-frame-pointer''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP
NOTIFY INOTIFY OLDXMENU PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS
TIFF TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR ZLIB

Important settings:
  value of $LC_MESSAGES: en_GB.UTF-8
  value of $LC_MONETARY: it_IT.UTF-8
  value of $LC_NUMERIC: it_IT.UTF-8
  value of $LC_TIME: it_IT.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Debugger

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-nonselected-mode: t
  minibuffer-regexp-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug lisp-mnt message mailcap yank-media puny
rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config
gnus-util time-date mm-decode mm-bodies mm-encode mailabbrev gmm-utils
mailheader sendmail mail-parse rfc2231 rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils thingatpt pp cl-seq cus-load dired-aux
dired dired-loaddefs help-fns radix-tree cl-print debug backtrace
help-mode find-func compile text-property-search comint subr-x ansi-osc
ansi-color ring comp-run comp-common rx project byte-opt gv bytecomp
byte-compile cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset
image regexp-opt fringe tabulated-list replace newcomment text-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo xinput2 x
multi-tty move-toolbar make-network-process tty-child-frames
native-compile emacs)

Memory information:
((conses 16 93844 19428) (symbols 48 8785 0) (strings 32 26536 4464)
 (string-bytes 1 785848) (vectors 16 17406)
 (vector-slots 8 194039 10551) (floats 8 39 86) (intervals 56 610 12)
 (buffers 1064 16))

-- 
Manuel Uberti
https://manueluberti.eu




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#80013; Package emacs. (Wed, 17 Dec 2025 12:46:01 GMT) Full text and rfc822 format available.

Message #8 received at 80013 <at> debbugs.gnu.org (full text, mbox):

From: Sean Whitton <spwhitton <at> spwhitton.name>
To: 80013 <at> debbugs.gnu.org, Manuel Uberti <manuel.uberti <at> inventati.org>
Subject: Re: bug#80013: 31.0.50; "No such file or directory" "vc-nil"
Date: Wed, 17 Dec 2025 12:45:45 +0000
Hello,

On Mon 15 Dec 2025 at 06:13pm +01, Manuel Uberti wrote:

> Hi,
>
> this is a recipe to reproduce the problem:
>
> - (require 'project)
> - (setq-default project-vc-extra-root-markers '(".project"))
> - M-x make-directory /tmp/test
> - Create a file named ".project" in /tmp/test
> - Visit that file
> - C-x p f

I'm not sure that this is a bug, because by setting
project-vc-extra-root-markers that way, you are telling Emacs to expect
that one of the entries in vc-handled-backends will recognise the file
as managed by a VCS, but it isn't?

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#80013; Package emacs. (Wed, 17 Dec 2025 16:09:02 GMT) Full text and rfc822 format available.

Message #11 received at 80013 <at> debbugs.gnu.org (full text, mbox):

From: Manuel Uberti <manuel.uberti <at> inventati.org>
To: Sean Whitton <spwhitton <at> spwhitton.name>, 80013 <at> debbugs.gnu.org
Subject: Re: bug#80013: 31.0.50; "No such file or directory" "vc-nil"
Date: Wed, 17 Dec 2025 17:08:27 +0100
On 12/17/25 13:45, Sean Whitton wrote:
> I'm not sure that this is a bug, because by setting
> project-vc-extra-root-markers that way, you are telling Emacs to expect
> that one of the entries in vc-handled-backends will recognise the file
> as managed by a VCS, but it isn't?

Correct, it's not a project managed by VCS, but
project-vc-extra-root-markers can be used for non VCS projects, as per
its documentation:

These will be used in addition to regular directory markers such
as ".git", ".hg", and so on, depending on the value of
‘vc-handled-backends’.  It is most useful when a project has
subdirectories inside it that need to be considered as separate
projects.  It can also be used for projects outside of VC
repositories.


-- 
Manuel Uberti
https://manueluberti.eu




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#80013; Package emacs. (Wed, 17 Dec 2025 17:39:01 GMT) Full text and rfc822 format available.

Message #14 received at 80013 <at> debbugs.gnu.org (full text, mbox):

From: Sean Whitton <spwhitton <at> spwhitton.name>
To: 80013 <at> debbugs.gnu.org, Dmitry Gutov <dmitry <at> gutov.dev>
Cc: Manuel Uberti <manuel.uberti <at> inventati.org>
Subject: Re: bug#80013: 31.0.50; "No such file or directory" "vc-nil"
Date: Wed, 17 Dec 2025 17:37:53 +0000
Hello,

On Wed 17 Dec 2025 at 05:08pm +01, Manuel Uberti wrote:

> On 12/17/25 13:45, Sean Whitton wrote:
>> I'm not sure that this is a bug, because by setting
>> project-vc-extra-root-markers that way, you are telling Emacs to expect
>> that one of the entries in vc-handled-backends will recognise the file
>> as managed by a VCS, but it isn't?
>
> Correct, it's not a project managed by VCS, but
> project-vc-extra-root-markers can be used for non VCS projects, as per
> its documentation:
>
> These will be used in addition to regular directory markers such
> as ".git", ".hg", and so on, depending on the value of
> ‘vc-handled-backends’.  It is most useful when a project has
> subdirectories inside it that need to be considered as separate
> projects.  It can also be used for projects outside of VC
> repositories.

Fair enough.  I don't think I understand why this mechanism isn't
altogether separate from the VC project type.  Let's see what Dmitry
thinks of this bug; adding him.

-- 
Sean Whitton




Reply sent to Dmitry Gutov <dmitry <at> gutov.dev>:
You have taken responsibility. (Thu, 18 Dec 2025 01:51:02 GMT) Full text and rfc822 format available.

Notification sent to Manuel Uberti <manuel.uberti <at> inventati.org>:
bug acknowledged by developer. (Thu, 18 Dec 2025 01:51:02 GMT) Full text and rfc822 format available.

Message #19 received at 80013-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Sean Whitton <spwhitton <at> spwhitton.name>, 80013-done <at> debbugs.gnu.org
Cc: Manuel Uberti <manuel.uberti <at> inventati.org>
Subject: Re: bug#80013: 31.0.50; "No such file or directory" "vc-nil"
Date: Thu, 18 Dec 2025 03:50:25 +0200
On 17/12/2025 19:37, Sean Whitton wrote:
>> Correct, it's not a project managed by VCS, but
>> project-vc-extra-root-markers can be used for non VCS projects, as per
>> its documentation:
>>
>> These will be used in addition to regular directory markers such
>> as ".git", ".hg", and so on, depending on the value of
>> ‘vc-handled-backends’.  It is most useful when a project has
>> subdirectories inside it that need to be considered as separate
>> projects.  It can also be used for projects outside of VC
>> repositories.
> Fair enough.  I don't think I understand why this mechanism isn't
> altogether separate from the VC project type.  Let's see what Dmitry
> thinks of this bug; adding him.

Hi! Thank you both, should be fixed now in 75a1403ff3e.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#80013; Package emacs. (Thu, 18 Dec 2025 11:50:02 GMT) Full text and rfc822 format available.

Message #22 received at 80013 <at> debbugs.gnu.org (full text, mbox):

From: Sean Whitton <spwhitton <at> spwhitton.name>
To: 80013 <at> debbugs.gnu.org
Cc: dmitry <at> gutov.dev, manuel.uberti <at> inventati.org
Subject: Re: bug#80013: 31.0.50; "No such file or directory" "vc-nil"
Date: Thu, 18 Dec 2025 11:48:51 +0000
Hello,

On Thu 18 Dec 2025 at 03:50am +02, Dmitry Gutov wrote:

> On 17/12/2025 19:37, Sean Whitton wrote:
>>> Correct, it's not a project managed by VCS, but
>>> project-vc-extra-root-markers can be used for non VCS projects, as per
>>> its documentation:
>>>
>>> These will be used in addition to regular directory markers such
>>> as ".git", ".hg", and so on, depending on the value of
>>> ‘vc-handled-backends’.  It is most useful when a project has
>>> subdirectories inside it that need to be considered as separate
>>> projects.  It can also be used for projects outside of VC
>>> repositories.
>> Fair enough.  I don't think I understand why this mechanism isn't
>> altogether separate from the VC project type.  Let's see what Dmitry
>> thinks of this bug; adding him.
>
> Hi! Thank you both, should be fixed now in 75a1403ff3e.

Ah, many thanks Dmitry.

-- 
Sean Whitton




This bug report was last modified 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.