Recent

Author Topic: It's time for spring cleaning  (Read 464 times)

Paolo

  • Hero Member
  • *****
  • Posts: 589
It's time for spring cleaning
« on: May 01, 2025, 10:13:20 am »
Hello (win64, FPC 3.2.2/Laz3.6)

I have my Package (MyPackage.lpk) with my custom components, all works fine.
The package uses some other units, that I put inside a “.\shared\” folder.

Now:

1)   When I have a project that use some of my components, I sistematically receive the message “Warning: other unit files search path (aka unit path) of "ABCD" contains "XXX\Shared", which belongs to package "MyPackage". How to avoid such message ? is it dangerous ignoring that message ?

2)   I would like that any new project sees automatically the folder “.\share\” . How can I do that ?
I want to avoid adding manually each time the search path of units in the “.\share\” folder.

Please note that everything is working fine in my projects, I would just like to reorganize the file configuration better to overcome the above-mentioned points.

Thank you.

wp

  • Hero Member
  • *****
  • Posts: 12905
Re: It's time for spring cleaning
« Reply #1 on: May 01, 2025, 11:03:11 am »
I don't know what you exactly are doing. But mentioning the "search path in the -/share folder" sounds suspicious. As a general rule: do not set search paths into commonly used folders or into packages, but use the package system. Rather than setting the search path into ./share put the contents of this folder into a package and add this package to the requirements of MyPackage.

Paolo

  • Hero Member
  • *****
  • Posts: 589
Re: It's time for spring cleaning
« Reply #2 on: May 01, 2025, 01:23:49 pm »
Code: Text  [Select][+][-]
  1. I don't know what you exactly are doing
  2.  

me too  :D

Code: Text  [Select][+][-]
  1. Rather than setting the search path into ./share put the contents of this folder into a package and add this package to the requirements of MyPackage.
  2.  

Ok, thanks, I'll try.

 

TinyPortal © 2005-2018