Subject: Re: bug#78572: 30.1; Tramp Project error message loop - File is missing

From: Alexis Bakatine <[email-masked]>
Date: Sun, 25 May 2025 14:15:44 +0000

Hi Michael, thanks for the reply.

>Could you please provide a step-by-step recipe for reproducing the problem?

Surely. In your init.el, only have:

--8<---------------cut here---------------start------------->8---
(require 'project)
(setopt project-vc-extra-root-markers '(".project"))
(setopt project-mode-line t)
--8<---------------cut here---------------start------------->8---

After that, do:
C-x C-f /ssh:x|sudo::

Then wait a couple minutes for the Tramp session to automatically timeout.

Now it becomes difficult to get the exact same bug behavior all the time.
Sometimes it only prints "File is missing: /sudo:root@x:/root/" constantly in the *Messages* buffer, and some other time it also prints a full debug backtrace over and over like in my first email.

As well, after the Tramp session expires, when you do <RET> to open a file in the Tramp dired buffer, Emacs crashes instantly, and I'm forced to kill the Emacs process externally.