GNU bug report logs - #78572
30.1; Tramp Project error message loop - File is missing

Previous Next

Package: emacs;

Reported by: Alexis Bakatine <abakatine <at> proton.me>

Date: Sat, 24 May 2025 02:28:02 UTC

Severity: normal

Found in version 30.1

Fixed in version 31.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Alexis Bakatine <abakatine <at> proton.me>
Subject: bug#78572: closed (Re: bug#78572: 30.1; Tramp Project error
 message loop - File is missing)
Date: Wed, 04 Jun 2025 15:25:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

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

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 78572 <at> debbugs.gnu.org.

-- 
78572: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78572
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Michael Albinus <michael.albinus <at> gmx.de>
To: Alexis Bakatine <abakatine <at> proton.me>
Cc: 78572-done <at> debbugs.gnu.org
Subject: Re: bug#78572: 30.1; Tramp Project error message loop - File is
 missing
Date: Wed, 04 Jun 2025 17:24:31 +0200
Version: 31.1

Alexis Bakatine <abakatine <at> proton.me> writes:

> Hello Michael,

Hi Alexis,

>> Pushed to master. Could you, pls, check?
>
> I confirm I'm not able to reproduce any of the messages, neither the project-vc-related ones nor the "File is missing".

Thanks for the feedback. I'm closing the bug.

> Thank you Michael, have a great day.

Best regards, Michael.

[Message part 3 (message/rfc822, inline)]
From: Alexis Bakatine <abakatine <at> proton.me>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 30.1; Tramp Project error message loop - File is missing
Date: Fri, 23 May 2025 16:06:23 +0000
When using either one of these settings, or both at the same time:

(setopt project-vc-extra-root-markers '(".project"))
(setopt project-mode-line t)

Tramp produces error messages in the minibuffer after connecting
to the remote server:

File is missing: /sudo:root <at> x:/root/
File is missing: /sudo:root <at> x:/

It only happens when using Tramp with:
/ssh:x|sudo::

If I'm using the command below, the problem doesn't occur (note that "x" is simply a
host server config name in my ~/.ssh/config file):
/ssh:x:

What's worse is that it loops over and over trying to search for some
file that it cannot find remotely, and after a few minutes connected
Emacs becomes unresponsive.

Here is an excerpt of the debug backtrace:
*debug tramp/sudo root <at> x*
05:37:50.799367 tramp-file-name-handler (10) #
  backtrace()
  tramp-file-name-handler(file-directory-p "/sudo:root <at> x:/")
  file-directory-p("/sudo:root <at> x:/")
  tramp-handle-directory-files("/sudo:root <at> x:/" nil "\\`\\(\\`\\.git\\'\\)\\|\\(\\`\\.project\\'\\)\\'" t nil)
  tramp-sh-file-name-handler(directory-files "/sudo:root <at> x:/" nil "\\`\\(\\`\\.git\\'\\)\\|\\(\\`\\.project\\'\\)\\'" t nil)
  apply(tramp-sh-file-name-handler directory-files ("/sudo:root <at> x:/" nil "\\`\\(\\`\\.git\\'\\)\\|\\(\\`\\.project\\'\\)\\'" t nil))
  tramp-file-name-handler(directory-files "/sudo:root <at> x:/" nil "\\`\\(\\`\\.git\\'\\)\\|\\(\\`\\.project\\'\\)\\'" t nil)
  directory-files("/sudo:root <at> x:/" nil "\\`\\(\\`\\.git\\'\\)\\|\\(\\`\\.project\\'\\)\\'" t)
  #f(compiled-function (d) #<bytecode 0x1acb9e5dc5281a7c>)("/sudo:root <at> x:/")
  locate-dominating-file("/sudo:root <at> x:/root/" #f(compiled-function (d) #<bytecode 0x1acb9e5dc5281a7c>))
  project-try-vc--search("/sudo:root <at> x:/root/")
  project-try-vc("/sudo:root <at> x:/root/")
  run-hook-with-args-until-success(project-try-vc "/sudo:root <at> x:/root/")
  project--find-in-directory("/sudo:root <at> x:/root/")
  project-current(nil)

I tested this on Emacs 30.1 on Linux, macOS and Windows, with the same
results.

ps: sorry for the poor formatting.



This bug report was last modified 13 days ago.

Previous Next


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