[feat] Unable to open folders with symbolic links on Mac
Describe the problem
From issue: I am using Phoenix code on Mac. What I found out is that I can't open folders in phcode if they have any symbolic links in them. Has anyone else seen this and is there a way to get around this?
I can duplicate this problem as follows:
- Create a top level directory.
- Create directory and add a single file.
- Start phcode and click on Open Folder.
- Navigate to the test directory. Note that Phcode can successfully open this directory in phcode and the file created in step 1 is visible.
- Exit phcode
- Add a symbolic link to another file (or directory) inside the test directory.
- Start phcode and click on Open Folder.
- Navigate to the test directory. Note that Phcode won't open the test directory.
Describe the solution you'd like
should be able top open projects with symbolic links
Alternatives considered
No response
Additional context
Raised at discussion https://github.com/orgs/phcode-dev/discussions/1886
Verified this works in Linux and mac with symlinks created with ln -s option for both files and folders.
I have hit this bug as well. Digging into it, the folders have symbolic links to folders/ files that don't exist in the main system.
For example I have an application that runs in a docker container and sets up symlinks that work in the docker container but don't feature on the host file system. e.g. a "schema" folder that links to "/var/www/html/schemas" in the Docker container; but that file path isn't on the host.