Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Prevent projectile-find-file from recursing into submodules #1174
Comments
thblt
commented
Sep 7, 2017
|
Re Projectile version: Sorry, I was in fact missing |
ambihelical
commented
Oct 16, 2017
|
Not really answering your issue (I don't know the answer), but a workaround may be to turn caching on |
thblt
commented
Oct 16, 2017
|
Actually, I just found that |
thblt commentedSep 7, 2017
•
edited
Expected behavior
When using
projectile-find-files, I would expect to have the option not to list files in submodules, and have submodules treated as separate projects.Actual behavior
No such option seems to exist. In a project with around 100 submodules, the completion list takes several seconds to appear, which makes Projectile almost unusable.
The time issue is especially surprising, since in the same project,
git ls-files --recurse-submodulescompletes in less than 0,25s.Steps to reproduce the problem
Run
projectile-find-filein a project with several submodules. Observe that files in submodules are listed.Environment & Version information
Projectile version information
Include here the version string displayed by
M-x projectile-version. Here's an example:Projectile is installed from Borg, as a git submodule, I guess this is the origin of this issue.
git describereturns:v0.2-1452-gadf6ae2Emacs version
25.2.1
Operating system
NixOS 17.03
Thanks!
Edited: Fixed Emacs version.