Cannot find unit (A4711) in freePascalSourcePath

Issue #116 new
Bill Stewart created an issue

Environment: Windows 10, VS Code 1.43.1 x64, FPC 3.0.4

FPC is installed in C:\bin\FPC and FPC source files are in C:\bin\FPC\source

VS Code settings for OmniPascal:

  "omnipascal.defaultDevelopmentEnvironment": "FreePascal",
  "omnipascal.freePascalSourcePath": "C:\\bin\\FPC\\source",

Runtime units in uses clause are detected in this configuration.

Now I am trying to add some more units; I downloaded fpgui (http://fpgui.sourceforge.net/) and compiled the sources.

I placed the source files in C:\bin\FPC\source\fpgui

However, OmniPascal does not detect the units in these directories for the uses clause.

Simple test code:

program test;

uses
  fpg_memo;

begin
end.

The fpg_memo unit is flagged as an error:

Cannot find unit fpg_memo (A4711)

Doesn’t matter which fpg_* unit I choose; OmniPascal does not detect them.

What am I missing?

Thanks!

Comments (0)

  1. Log in to comment