bbatsov / projectile

Project Interaction Library for Emacs
https://docs.projectile.mx
GNU General Public License v3.0
3.99k stars 584 forks source link

projectile discovers projects in home as absolute paths #1888

Open Atemu opened 5 months ago

Atemu commented 5 months ago

For context: I am on Linux and moved my home to /Users/. $HOME reflects this fact:

ELISP> (getenv "HOME")
"/Users/atemu"

Expected behavior

Projects in home should be discovered as ~/...

Actual behavior

Project paths are /Users/atemu/...

Steps to reproduce the problem

  1. Have home in /Users/
  2. Set projectile to auto-discovery projects in ~/Projects/
  3. Open Emacs

Environment & Version information

Projectile version information

Projectile 20240212.1100

Emacs version

GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0,
Xaw3d scroll bars)

Operating system

NixOS x86_64-linux