Bozhidar Batsov
Bozhidar Batsov
PR welcome! I think it'd be probably best to update this somewhere in `projectile-switch-project`, but making the tracking reliable will be hard as someone can switch between projects just by...
Well, depends on how people normally use Projectile. I always use `switch-project`, so something like this will work just fine for me. :D There's even a hook that'd be handy...
I haven't used Mercurial in ages - it's possible that our project detection there is broken. Should be an easy thing to fix.
@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....
I've tested this with `.projectile` project just now and it works fine for me.
I also cloned a Mercurial project now and it works fine:  So, I can't reproduce any of the problems outline here.
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.
I forgot to mention that the debugging instructions are here https://docs.projectile.mx/projectile/troubleshooting.html#debugging-projectile-commands
Isn't it much easier to set a custom project name using `.dir-locals.el`?
But at the cost of adding more complexity to an already complex thing. That's why I'm a bit on the fence about this. I wonder if it won't be simpler...