Skip to content

Don't follow symlinks on project root #1387

@memeplex

Description

@memeplex

Expected behavior

If my project root is a symlink I don't want it to be expanded/followed by projectile. For example, I have a project in dropbox ~/dbox/project where ~/dbox -> ~/home/apps/Dropbox is a symlink. There is a .projectile marker there. I've even manually edited the project roots file and added ~/dbox/project. Now when I open a file file in the project using C-c p p the buffer file name is ~/apps/Dropbox/project/file instead of ~/dbox/project/file. This plays bad with my config which I don't want to depend on the explicit location of the Dropbox folder, I want to keep this fact isolated behind the symlink.

Moreover, the project roots file is updated with a redundant ~/apps/Dropbox/project, even if ~/dbox/project was already there.

Actual behavior

Described above.

Steps to reproduce the problem

Described above.

Environment & Version information

Projectile version information

Projectile 20190126.1117

Emacs version

GNU Emacs 26.1.92 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-03-09

Operating system

Arch Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions