cannot find unit in spite of searchpath settings

Issue #22 closed
Bas Schouten created an issue

Hi,

I've set my objectpascal.objectPath setting to point to my libraries folder including all subfolder, but still the editor shows it cannto find units from that library.

One of the units in question is AdvEdit.pas and is located in D:\Development\Libraries\TMS Component Pack

I tried both this setting: "objectpascal.searchPath": "D:\Development\Libraries\, as this setting: "objectpascal.searchPath": "D:\Development\Libraries\;D:\Development\Libraries\TMS Component Pack",

Comments (6)

  1. Christopher Wosinski repo owner

    The settings are stored in JSON format. So you need to escape backslashes. Try this:

    "objectpascal.searchPath": "D:\\Development\\Libraries\\;D:\\Development\\Libraries\\TMS Component Pack"
    
  2. Bas Schouten reporter

    mm that was strange, my settings are:

        "objectpascal.searchPath": "D:\\Development\\Libraries\\*;D:\\Development\\Libraries\\TMS Component Pack",
    

    But somehow when pasting them into this issue the double backslashes got removed

  3. Log in to comment