Skip to content

projectile-find-dir returns only terminal directories, not all directories in a project  #1596

@zeus-hammer

Description

@zeus-hammer

Expected behavior

I expect projectile-find-dir to return a list of all directories within a project.

Actual behavior

projectile-find-dir returns 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:

root/
    src/
        ComponentA/
                      a.cc
        ComponentB/
                      b.cc
        ComponentC/
                      c.cc
    config/
            config_file_1
            config_file_2

When using projectile-find-dir within root, the path root/src is not listed. The paths listed are:

root/src/ComponentA
root/src/ComponentB
root/src/ComponentC
root/config

Environment & Version information

Projectile version information

Projectile 20201030.1132

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions