Recent

Author Topic: Lazarus project files in a symbolic link folder  (Read 978 times)

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 349
Lazarus project files in a symbolic link folder
« on: April 19, 2021, 08:19:19 pm »
For some reason I use a symbolic link for a folder where I store a Lazarus project ("ln -s ...").

However when I open a Lazarus project in a symbolic link folder, Lazarus shows real paths for all project files, including .lpi file.

Is it possible force Lazarus "think" that a symbolic link folder is a "real" folder?

On Windows it works correctly with "mklink /j ...".

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1619
  • Former Delphi 1-7, 10.2 user
Re: Lazarus project files in a symbolic link folder
« Reply #1 on: April 21, 2021, 08:34:51 am »
In Windows mklink /j creates a HARD link, not a symbolic link. In macOS you cannot create hard links to directories, only symbolic links.
Lazarus 2.3 2021-08-10 FPC 3.3.1 r49223 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.3 + FPC 3.3.1 24 Sep 2021 macOS 11.6 aarch64 Xcode 13
Lazarus 2.3 2021-08-11 FPC 3.2.2 FreeBSD 13.0 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

Igor Kokarev

  • Sr. Member
  • ****
  • Posts: 349
Re: Lazarus project files in a symbolic link folder
« Reply #2 on: April 21, 2021, 08:58:25 am »
Thanks, I've understood.

 

TinyPortal © 2005-2018