GNU bug report logs - #62633
30.0.50; project-files returns files that have been deleted

Previous Next

Package: emacs;

Reported by: João Távora <joaotavora <at> gmail.com>

Date: Mon, 3 Apr 2023 01:14:02 UTC

Severity: normal

Found in version 30.0.50

Full log


View this message in rfc822 format

From: João Távora <joaotavora <at> gmail.com>
To: 62633 <at> debbugs.gnu.org
Cc: dgutov <at> yandex.ru, felician.nemeth <at> gmail.com
Subject: bug#62633: 30.0.50; project-files returns files that have been deleted
Date: Mon, 03 Apr 2023 02:14:57 +0100
Hello,

Originally reported in https://github.com/joaotavora/eglot/issues/1198

project-files, used by Eglot, returns files that have been deleted in
the filesystem but are still versioned by Git.  This led to Eglot
reporting a errors to the LSP server since it was using that list of
files to place filesystem watchers.

The problem was worked around in Eglot, but the question remains whether
project-files should be reworked to filter out these nonexistent files
from its return value.

According to Dmitry, doing so might be expensive, since the underlying
Git implementation of this method, 'git ls-files', is 2x faster when not
required to filter out deleted files.

João






This bug report was last modified 2 years and 77 days ago.

Previous Next


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