Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

projectile-find-file not working for .gitignored directories despite them being unignored #1475

Closed
rileyrg opened this issue Dec 4, 2019 · 2 comments

Comments

@rileyrg
Copy link

rileyrg commented Dec 4, 2019

projectile-globally-unignored-directories is a variable defined in ‘projectile.el’.
Its value is ("/vendor/")

(tried vendor/ and vendor too)

vendor is gitignored and I have tried to enable it as a search candidate by using the setting above. Indexing is off and indexing method is, if relevant, set to alien in case its used elsewhere for search algorithms.

So: how do I enable projectile to search gitgnored subdirectories. In this case I want it to search the symfony vendor subdirectory.

@rileyrg rileyrg changed the title projectile-find-file not working for .gitignored directories despites them being unignored projectile-find-file not working for .gitignored directories despite them being unignored Dec 4, 2019
@spaceotter
Copy link
Contributor

I just ran into this.

It does not seem like unignoring is supposed to work in alien mode. See the documentation for projectile-indexing-method.

However, hybrid mode doesn't work either. There is a mistake in projectile-keep-ignored-directories. I'm working on a pull request.

spaceotter pushed a commit to spaceotter/projectile that referenced this issue Jan 1, 2020
When using hybrid mode and unignoring files that are ignored by git, the
settings in .projectile would not work. The arguments to internal
function projectile-get-repo-ignored-directory were in the wrong
order. So it would return nil instead of the desired list of git ignored
files.

The issue is caught by the projectile-add-unignored test.
spaceotter pushed a commit to spaceotter/projectile that referenced this issue Jan 1, 2020
When using hybrid mode and unignoring files that are ignored by git, the
settings in .projectile would not work. The arguments to internal
function projectile-get-repo-ignored-directory were in the wrong
order. So it would return nil instead of the desired list of git ignored
files.

The issue is caught by the projectile-add-unignored test.
spaceotter pushed a commit to spaceotter/projectile that referenced this issue Jan 1, 2020
When using hybrid mode and unignoring files that are ignored by git, the
settings in .projectile would not work. The arguments to internal
function projectile-get-repo-ignored-directory were in the wrong
order. So it would return nil instead of the desired list of git ignored
files.

The issue is caught by the projectile-add-unignored test.
@cdarken
Copy link

cdarken commented May 15, 2020

I can't make this work for the life of me. It's driving me crazy. I'm using projectile with Doom Emacs. I've the variable, I can see that it's set when I inspect vars, but still can't find a file located in my vendor directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants