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

treemacs-projectile doesn't work. #1116

Open
parishrutpandey opened this issue Jul 16, 2024 · 4 comments
Open

treemacs-projectile doesn't work. #1116

parishrutpandey opened this issue Jul 16, 2024 · 4 comments

Comments

@parishrutpandey
Copy link

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
Copy link
Owner

Alexander-Miller commented Jul 17, 2024

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
Copy link
Author

Thanks for replying, I'll look into it.

Copy link

stale bot commented Sep 17, 2024

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).

@stale stale bot added the stale label Sep 17, 2024
@heiheshang
Copy link

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

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

No branches or pull requests

3 participants