Skip to content

.projectile file is driving me nuts #1941

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

Open
tx46 opened this issue Apr 20, 2025 · 3 comments
Open

.projectile file is driving me nuts #1941

tx46 opened this issue Apr 20, 2025 · 3 comments
Labels

Comments

@tx46
Copy link

tx46 commented Apr 20, 2025

I have a (where pr=project root, confirmed via projectile-project-root) pr/lib (build garbage) and pr/src/lib dir.

I have tried pr/.projectile file:

lib/   # ignores everything both pr/lib and pr/src/lib
lib    # same as above
-lib   # same as above
-lib/  # same as above
/lib/  # works, but ONLY if i invoke projectile-find-file from pr, otherwise it INCLUDES both pr/lib AND pr/src/lib
/lib   # same
-/lib  # same
-/lib/ # same

help me out here, how can I get my head around this? this is complicated by the fact that there's native indexing (previously hybrid??) and hybrid (not same as previous hybrid) and alien.. i dont care which one i use as long as i get consistent results.

@bbatsov
Copy link
Owner

bbatsov commented May 21, 2025

Admittedly, for a very long time I've just used the alien indexing which completely ignores .projectile's filtering of results. I will revisit it at some point, but I can't promise when this will happen.

@bbatsov bbatsov added the Bug label May 21, 2025
@bbatsov
Copy link
Owner

bbatsov commented May 21, 2025

Btw, to be clear - you expect this to behave like .gitignore, right?

@tx46
Copy link
Author

tx46 commented May 22, 2025

Btw, to be clear - you expect this to behave like .gitignore, right?

I'd say yes, but the point is it needs to work consistently. :) It also starts behaving differently inside and outside git repos, further confusing things.

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

No branches or pull requests

2 participants