Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-07

Identifier Completion -> Unit not found

7 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Guionardo Furlan

Buenas staff (this message was send to Editor section of the forum, but nobody answered yet, sou I hope you can help me)

I am organizing my package of utilities, for ease of maintenance here. But I have a very annoying problem in Laz 9.0.29-24657/FPC 2.4.0

The package compiles without problems, but the IDE is lost when using CodeCompletion unit and shows no errors found, as follows:

Code:

H:\#Projects\Lazarus_FPC\GuioUtils\GForms\gdefaultform.pas (9.26) Error: unit not found: GDatabaseCheck

Notice that the folder of the package is GuioUtils and has subfolders like GForms example. In this case, the subfolder within GDatabaseCheck is GDatabase. All paths are defined in the "compiler options" package on the lines "Other files of units" and "Other sources"

I was already on the link:
http://wiki.lazarus.freepascal.org/Unit_not_found_-_How_to_find_unitslooking for some solution but nothing worked.

Any suggestions of what to do?

That hug.

Timeo hominem unius libri Cogito ergo sum - Carpe diem []s Guionardo Furlan http://guionardo.blogspot.com http://www.guionardofurlan.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100722/8d8d418c/attachment.html>

Reply by email

Mattias Gaertner
to Guionardo Furlan
Show quoted text 13 lines
Buenas staff (this message was send to Editor section of the forum, but nobody answered yet, sou I hope you can help me) I am organizing my package of utilities, for ease of maintenance here. But I have a very annoying problem in Laz 9.0.29-24657/FPC 2.4.0 The package compiles without problems, but the IDE is lost when using CodeCompletion unit and shows no errors found, as follows: Code: H:\#Projects\Lazarus_FPC\GuioUtils\GForms\gdefaultform.pas (9.26) Error: unit not found: GDatabaseCheck

Is the # really there?

Notice that the folder of the package is GuioUtils and has subfolders like GForms example. In this case, the subfolder within GDatabaseCheck is GDatabase. All paths are defined in the "compiler options" package on the lines "Other files of units" and "Other sources"

"Other sources" is only for units, that the compiler should not find, but only the IDE. See here:
http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Other_sources

If I understand your text correct you have this file layout:

H:\#Projects\Lazarus_FPC\GuioUtils\
xyz.lpk
GDatabase\
GDatabaseCheck.pas
GForms\
gdefaultform.pas

Then your "Other Unit Files" in the compiler options of your package should be:

GDatabase;GForms

Note: Order and trailing path delimiters do not matter.

Show quoted text 5 lines
I was already on the link: http://wiki.lazarus.freepascal.org/Unit_not_found_-_How_to_find_unitslooking for some solution but nothing worked. Any suggestions of what to do?

Mattias

Reply by email

Guionardo Furlan
to Mattias Gaertner
Mattias Gaertner wrote 57 lines
On Thu, 22 Jul 2010 09:01:07 -0300 Guionardo Furlan wrote: > Buenas staff (this message was send to Editor section of the forum, but > nobody answered yet, sou I hope you can help me) > > I am organizing my package of utilities, for ease of maintenance here. > But I have a very annoying problem in Laz 9.0.29-24657/FPC 2.4.0 > > The package compiles without problems, but the IDE is lost when using > CodeCompletion unit and shows no errors found, as follows: > > Code: > > H:\#Projects\Lazarus_FPC\GuioUtils\GForms\gdefaultform.pas (9.26) > Error: unit not found: GDatabaseCheck Is the # really there? > Notice that the folder of the package is GuioUtils and has subfolders like > GForms example. In this case, the subfolder within GDatabaseCheck is > GDatabase. All paths are defined in the "compiler options" package on the > lines "Other files of units" and "Other sources" "Other sources" is only for units, that the compiler should not find, but only the IDE. See here: http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Other_sources If I understand your text correct you have this file layout: H:\#Projects\Lazarus_FPC\GuioUtils\ xyz.lpk GDatabase\ GDatabaseCheck.pas GForms\ gdefaultform.pas Then your "Other Unit Files" in the compiler options of your package should be: GDatabase;GForms Note: Order and trailing path delimiters do not matter. > I was already on the link: > http://wiki.lazarus.freepascal.org/Unit_not_found_-_How_to_find_unitslooking > for some solution but nothing worked. > > Any suggestions of what to do? Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Thanks for the useful info, Mattias

I've done the settings and updated the lazarus with the last version today + fpc 2.4.3.

Everything is ok now, inclusive other issues on packages and units (of the used components) that needed to be open to use codetools.

That hug!

Att /Guionardo Furlan/ Timeo hominen unius libri http://guionardofurlan.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100723/042d0306/attachment.html>

Reply by email

Mattias Gaertner
to Guionardo Furlan
Show quoted text 8 lines
[...] Thanks for the useful info, Mattias I've done the settings and updated the lazarus with the last version today + fpc 2.4.3. Everything is ok now, inclusive other issues on packages and units (of the used components) that needed to be open to use codetools.

What did you wrong?

This information would help to improve the wiki and/or the IDE.

Mattias

Reply by email

Guionardo Furlan
to Mattias Gaertner
Mattias Gaertner wrote 22 lines
On Fri, 23 Jul 2010 14:30:20 -0300 Guionardo Furlan wrote: > [...] > Thanks for the useful info, Mattias > > I've done the settings and updated the lazarus with the last version > today + fpc 2.4.3. > > Everything is ok now, inclusive other issues on packages and units (of > the used components) that needed to be open to use codetools. What did you wrong? This information would help to improve the wiki and/or the IDE. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

I've got an "old" bug on Lazarus IDE that when any 3rd's component (zeos, etc) is dropped into a form, I can change properties, compile, all ok.
But, if I go coding, using the code completion or identifier completion the ide raises an error: xxxx unit not found, and the "hyperlink" of the identifier such TZDataset or other don't appear when the mouse's pointer is over the text. The only way was add the unit of the component to the project and let it opened in the editor. This way, the ide worked with codetools ok.
Now, with the last update, this error gone.

I've posted this bug in the forum and in this list some months ago, but nothing worked.

Att /Guionardo Furlan/ Timeo hominen unius libri http://guionardofurlan.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100723/b88be744/attachment.html>

Reply by email

Mattias Gaertner
to Guionardo Furlan
Show quoted text 11 lines
[...] I've got an "old" bug on Lazarus IDE that when any 3rd's component (zeos, etc) is dropped into a form, I can change properties, compile, all ok. But, if I go coding, using the code completion or identifier completion the ide raises an error: xxxx unit not found, and the "hyperlink" of the identifier such TZDataset or other don't appear when the mouse's pointer is over the text. The only way was add the unit of the component to the project and let it opened in the editor. This way, the ide worked with codetools ok. Now, with the last update, this error gone.

Have you created a bug report?

Mattias

Reply by email

Guionardo Furlan
to Mattias Gaertner
Mattias Gaertner wrote 23 lines
On Fri, 23 Jul 2010 17:08:36 -0300 Guionardo Furlan wrote: > [...] > I've got an "old" bug on Lazarus IDE that when any 3rd's component > (zeos, etc) is dropped into a form, I can change properties, compile, > all ok. > But, if I go coding, using the code completion or identifier completion > the ide raises an error: xxxx unit not found, and the "hyperlink" of the > identifier such TZDataset or other don't appear when the mouse's pointer > is over the text. The only way was add the unit of the component to the > project and let it opened in the editor. This way, the ide worked with > codetools ok. > Now, with the last update, this error gone. Have you created a bug report? Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

No, I didn't. :-[

Att /Guionardo Furlan/ Timeo hominen unius libri http://guionardofurlan.com.br -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100723/13eb4386/attachment.html>

Reply by email