Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
projectile-find-dir returns only terminal directories, not all directories in a project #1596
Comments
|
The crux of the issue is in In this function:
As you can see, it's simply listing all the projectile tracked files in the project and slicing off the file name from the path, leaving us with the directory path. This misses out on directories which only have directories as children. |
|
I'm working on hacking this up on my local copy, but it's inelegant and doesn't take advantage of projectile's caching. I will likely substitute this for
|
I just realized this won't work, as it'll go all the way up to the root of the fs. You'd need to pass in the project path and go up to that as the root. Either way, you'd almost certainly want to look top down |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Expected behavior
I expect
projectile-find-dirto return a list of all directories within a project.Actual behavior
projectile-find-dirreturns directories under which there is a file that projectile is tracking directly underneath the directory. Directories which contain only sub-directories are not available in completion.Steps to reproduce the problem
Consider the directory structure below:
When using
projectile-find-dirwithin root, the pathroot/srcis not listed. The paths listed are:Environment & Version information
Projectile version information
Emacs version
GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
Operating system
Ubuntu 16.04 (4.4.0-139-generic)