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

Bo Berglund bo.berglund at gmail.com
Fri Feb 11 18:34:54 CET 2011


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.

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.


Bo Berglund





More information about the Lazarus mailing list