Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAdding directory to projectile-ignored-projects does not have desired effect #962
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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.
|
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. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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. |
ericdanan
referenced this issue
Sep 18, 2018
Closed
counsel-projectile command takes $HOME as a root directory when there is no project #105
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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). |
Spauldo commentedFeb 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).