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
Projectile not recognizing hg projects #1802
Comments
After some tinkering, it seems that it doesn't work on projects that use mercurial, but works just fine for git projects. I'll update the issue accordingly. |
I haven't used Mercurial in ages - it's possible that our project detection there is broken. Should be an easy thing to fix. |
In fact, not just Mercurial projects aren't being detected, but neither are Fossil. And using an empty .projectile file also does not work. |
@zilti I'll try to find some time to reproduce this, but the logic for project detection hasn't been change in a while. This definitely makes me wonder what has happened. You can try setting a breakpoint in |
I've tested this with |
Are you using the latest version of Projectile? Perhaps you can post your config here? At any rate - it'd be good to do the debugging exercise I suggested earlier. |
Hey @bbatsov, I'll give it a try in my free time and try what you suggested earlier. |
My Projectile version is 2.6.0-snapshot, the one that comes with Doom Emacs. It seems Doom manipulates the variables for project detection. Weirdly though |
I forgot to mention that the debugging instructions are here https://docs.projectile.mx/projectile/troubleshooting.html#debugging-projectile-commands |
Hey, adding |
Expected behavior
Going into a mercurial project and calling
projectile-add-to-known-project
Then when trying to switch to the newly added project using
projectile-switch-project
It should show the files inside that project.
Actual behavior
It's showing me files inside my home directory instead
Steps to reproduce the problem
projectile-add-to-known-project
to a mercurial projectThen trying to go into that project using
projectile-switch-project
Mercurial Version
version 6.2.3
Projectile version information
Projectile: 20221004.1327
Emacs version
Emacs 28.2
Operating system
Running Arch Linux: 5.19.13-arch1-1
The text was updated successfully, but these errors were encountered: