- edited description
Includes
Issue #66
new
I use external library for PostgreSQL .
They use a lot of Includes ($I), and plugin has some problems with it.
For example there is unit MemDataSet:
{$I Dac.inc}
unit MemDataSet;
{$IFNDEF FPC}
Error
{$ENDIF}
{$I MemDS.pas}
If I use it like this, then every time when I try use for example db.Query.First(); Then First() is underlined with info about unrecognized identifier.
But if I copy code from MemDS.pas and paste it to unit MemDataSet (without $I ofc), then everything is fine.
Comments (3)
-
reporter -
repo owner I-Pascal doesn't support declarations in included files yet. Only conditional defines.
-
repo owner BTW, in case of external library you can add it to classpath as .dcu or .ppu. In that case declarations will be imported and used correctly.
- Log in to comment