Alexander-Miller / treemacs

GNU General Public License v3.0
2.12k stars 156 forks source link

treemacs-projectile doesn't work. #1116

Open parishrutpandey opened 4 months ago

parishrutpandey commented 4 months ago

Occasionaly (I can't reporoduce it), treemacs-projectile doesn't show my projectile projects and instead has just one entry in the list, "c:/Windows/System32", even though my projectile-known-projects have more. I am new to emacs. I have a mostly vanilla doom-emacs. Am I missing something?

Alexander-Miller commented 4 months ago

Treemacs pulls the projects from the variable projectile-known-projects. Start with making sure that it is filled correctly. /edit: Never mind that, I just saw that you already checked this.

The selection also depends on your current workspace - due to technical limitations any path can only be in a workspace once. It is not possible to have both a /foo and /foo/bar as projects at the same time. Depending on layout this may limit your selection severely. You can have a look at the projects treemacs considers by running

(--reject (treemacs-is-path (treemacs-canonical-path it) :in-workspace (treemacs-current-workspace))
           (-map #'treemacs--unslash projectile-known-projects))

Finally AFAIK doom makes its own changes to treemacs (if you are using its module) to enforce a one-project-only workflow, so I'm not sure if what you're trying is even supposed to work at all.

parishrutpandey commented 4 months ago

Thanks for replying, I'll look into it.

stale[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity (this bot only works as a reminder, it will not close issues).

heiheshang commented 2 months ago

I have the same problem, I don't understand how to solve it