phoenix icon indicating copy to clipboard operation
phoenix copied to clipboard

[feat] Unable to open folders with symbolic links on Mac

Open abose opened this issue 1 year ago • 2 comments

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:

  1. Create a top level directory.
  2. Create directory and add a single file.
  3. Start phcode and click on Open Folder.
  4. Navigate to the test directory. Note that Phcode can successfully open this directory in phcode and the file created in step 1 is visible.
  5. Exit phcode
  6. Add a symbolic link to another file (or directory) inside the test directory.
  7. Start phcode and click on Open Folder.
  8. 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

abose avatar Oct 17 '24 15:10 abose

Verified this works in Linux and mac with symlinks created with ln -s option for both files and folders.

abose avatar Oct 18 '24 15:10 abose

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.

colinmo avatar May 19 '25 00:05 colinmo