Cannot find unit ...

Issue #79 closed
Benny Luypaert created an issue

The following issue shows up with omniPascal 0.15.0:

The code:

Uses {$ifdef unix}cthreads, {$endif} Sysutils, Sockets, Classes, xStringUtils, xLogUtils, xLoader;

The issue:

Cannot find unit Sysutils Cannot find unit Sockets Cannot find unit Classes

My person xStringUtils, xLogUtils, xLoader units can be found without issue.

Yet, all the configuration files are correct.

"omnipascal.defaultDevelopmentEnvironment": "FreePascal", "omnipascal.freePascalSourcePath": "C:\FPC\3.0.4",

The units can be found in the FPC directory.

C:\FPC\3.0.4\units\i386-win32\rtl-extra\sockets.o // .ppu ...

Added this to see if it helped solve the issue. No luck.

"omnipascal.searchPath": "C:\FPC\3.0.4\*",

Tried different path settings, none solved the issue. Updated VSC to latest release same issue.

OmniPascalServer.exe is running and consuming 7.7MB, shows some CPU activity when first loading VSC.

Directory is clean with only I ( ignore indexing ), files are marked as IA ( ignore indexing, read for archiving ).

Very odd...

Note: removing the following has also no effect.

{$ifdef unix}cthreads, {$endif}

Comments (3)

  1. Benny Luypaert reporter

    Problem solved.

    The issue is that the default FreePascal compiler does not have the source files for the units included by default.

    Installing Lazarus with FreePascal 3.0.4 included ( has the source files ).

  2. Benny Luypaert reporter

    Issue solved. May need more clear description that OmniPascal only works properly with FPC + Source or Lazarus ( that has FPC + Source ) by default.

  3. Log in to comment