Open bitozoid opened 2 years ago
The globbing pattern in .projectile file is ignored in a subdir when running projectile-current-project-files.
.projectile
projectile-current-project-files
In the example below, I would expect y.text not to be in the result, because it has been excluded in the .projectile file.
y.text
I get excluded patterns in the project files list.
("test.el" "mysubdir/x.txt" "mysubdir/y.text")
mkdir test-hybrid{,/mysubdir} touch test-hybrid/mysubdir/{x.txt,y.text} echo "-*.text" > test-hybrid/.projectile echo "(projectile-current-project-files)" > test-hybrid/test.el
Start emacs.
Set projectile indexing to hybrid.
hybrid
(setq projectile-indexing-method 'hybrid)
Open test.el
test.el
Run the sexp with C-u C-x C-e.
C-u C-x C-e
Projectile version: 20220402.624
GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.16.0) of 2022-03-24
GNU/Linux
I have the same problem when running projectile-replace (Projectile version: 20231130.1934).
projectile-replace
Expected behavior
The globbing pattern in
.projectile
file is ignored in a subdir when runningprojectile-current-project-files
.In the example below, I would expect
y.text
not to be in the result, because it has been excluded in the.projectile
file.Actual behavior
I get excluded patterns in the project files list.
Steps to reproduce the problem
Start emacs.
Set projectile indexing to
hybrid
.Open
test.el
Run the sexp with
C-u C-x C-e
.Environment & Version information
Projectile version information
Emacs version
Operating system
GNU/Linux