[Lazarus] Identifier not found, but code completion works....

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Feb 11 19:21:12 CET 2011


On Fri, 11 Feb 2011 18:34:54 +0100
Bo Berglund <bo.berglund at gmail.com> wrote:

> On Fri, 11 Feb 2011 09:20:25 +0100, Mattias Gaertner
> <nc-gaertnma at netcologne.de> wrote:
> 
> >On Thu, 10 Feb 2011 23:41:27 +0100
> >Bo Berglund <bo.berglund at gmail.com> wrote:
> >
> >> But TSerial is the class name for the component and it is found by
> >> lazarus when I write the code, so why in heavens name does it not find
> >> it when compiling???????
> >
> >Do you have units with upper case letters in the file name?
> >Maybe you have two units with the same name.
> >Go to your uses section, where Serial is uses. Place source editor
> >cursor at the end of the used unit name and use Ctrl+Space to fix the
> >case.
> >
> 
> Ther unit file is Serial.pas
> There is no other file named like this in any case style.

Maybe
fpc/rtl/unix/serial.pp

 
> What I did was to go to the uses clause put the cursor on the word
> Serial and use the pop-up menu command "Open file at cursor", which
> brought the file into the editor...
> Ctrl-Space does nothing other than pop up a window with three names,
> the top being Serial.

I get only one. The one from fpc.

Compile with -vt and see if fpc loads the right unit.
If yes, check for implementation uses sections. Maybe you have the fpc bug I wrote in the other mail.


Mattias




More information about the Lazarus mailing list