phcode-dev / phoenix

Phoenix is a modern open-source Code Editor for the web, built for the browser.
https://phcode.io
GNU Affero General Public License v3.0
1.78k stars 124 forks source link

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

Open abose opened 1 month ago

abose commented 1 month ago

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 commented 1 month ago

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