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

Adding directory to projectile-ignored-projects does not have desired effect #962

Open
Spauldo opened this Issue Feb 6, 2016 · 4 comments

Comments

Projects
None yet
3 participants
@Spauldo

Spauldo commented Feb 6, 2016

I'm a student, and I keep all my classwork in one directory tree. I use git to synchronize it between three machines.

Inside this directory tree I have multiple unrelated source trees, along with a lot of files that aren't code at all.

I added this directory to projectile-ignored-projects (via customization), ran the command projectile-remove-current-project-from-known-projects, and invalidated the cache via the menu. It doesn't seem to do any good; if I visit a file inside there, go to 'tools->projectile->project info' it tells me I'm using the project I've been trying to ignore.

I've tried both with and without the ending slash on the directory. The variable is being set according to C-h v. Am I misunderstanding the purpose of this variable? My eventual goal is to use .projectile files to mark each separate project in the tree.

I'm using emacs 24.5.1 on Kubuntu 15.10 and projectile 0.13.0 (installed via el-get about a week or two ago). The only projectile-related commands in my init, other than customizing that one variable, are (require 'projectile) and (projectile-global-mode).

@bbatsov

This comment has been minimized.

Show comment
Hide comment
@bbatsov

bbatsov Mar 5, 2016

Owner

Ignored project won't be added to the list of known projects, but will still be treated as project while your interacting with files belonging to them.

Owner

bbatsov commented Mar 5, 2016

Ignored project won't be added to the list of known projects, but will still be treated as project while your interacting with files belonging to them.

@Spauldo

This comment has been minimized.

Show comment
Hide comment
@Spauldo

Spauldo Mar 5, 2016

Any way to get it to not see that directory as a project? That's what I'm actually trying to accomplish.

Spauldo commented Mar 5, 2016

Any way to get it to not see that directory as a project? That's what I'm actually trying to accomplish.

@ChoppinBlockParty

This comment has been minimized.

Show comment
Hide comment
@ChoppinBlockParty

ChoppinBlockParty Sep 18, 2018

I see this discussion is quite old, thought I have just hit a practical issue related to this behavior. Please, see the issue mentioned above. Could you suggest any solution to this problem? The question is basically how to block projectile from considering a particular directory to be a project? Or (may be even better) how to tell projectile that a specific file/directory path (to Makefile, yarn.lock, .git, etc.), that hints this directory to be a project directory, being blocked?

ChoppinBlockParty commented Sep 18, 2018

I see this discussion is quite old, thought I have just hit a practical issue related to this behavior. Please, see the issue mentioned above. Could you suggest any solution to this problem? The question is basically how to block projectile from considering a particular directory to be a project? Or (may be even better) how to tell projectile that a specific file/directory path (to Makefile, yarn.lock, .git, etc.), that hints this directory to be a project directory, being blocked?

@Spauldo

This comment has been minimized.

Show comment
Hide comment
@Spauldo

Spauldo Sep 19, 2018

In my case, I just redefined the function that searched for the project root and added a check so that it would ignore the particular directory I wanted to ignore. I remember the change wasn't very intrusive, but it does require basic knowledge of Emacs Lisp.

I don't have that init file anymore, unfortunately, and I don't use projectile anymore (not because projectile is bad, but because I never used it much - I don't work much on the scale of projects where it really comes in handy).

Spauldo commented Sep 19, 2018

In my case, I just redefined the function that searched for the project root and added a check so that it would ignore the particular directory I wanted to ignore. I remember the change wasn't very intrusive, but it does require basic knowledge of Emacs Lisp.

I don't have that init file anymore, unfortunately, and I don't use projectile anymore (not because projectile is bad, but because I never used it much - I don't work much on the scale of projects where it really comes in handy).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment