Jed Veatch
Jed Veatch

Reputation: 2526

Unable to find units in Delphi installation path

I'm trying out OmniPascal but I can't get it to find units in the Delphi installation directory like System.SysUtils. It just tells me that it cannot find the unit. See the attached image. Any ideas what I could be doing wrong?

It also doesn't find units in the local workspace for a very large Delphi project folder (thousands of files and hundreds of folders).

enter image description here

Upvotes: 1

Views: 1349

Answers (1)

Wosi
Wosi

Reputation: 45343

There's a bug in the OmniPascalServer.exe in version 0.10.0 and below. The bug prevents the server from finding folders having the system, hidden or archive flag set. This leads to unresolvable unit names when a unit is placed in a folder with at least one of said attributes set.

Version 0.11.0 will fix that bug.

Workaround for version 0.10.0 and below:

Ensure there are no folders in your search path having above listed attributes set.

Upvotes: 0

Related Questions