On Sun, 3 Sep 2006 11:40:49 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Why does Lazarus loose the ability to find the *.pas files
> (Ctrl-Click) when I restart my computer.  I think it happens when I
> close and reopen Lazarus as well. Will test this last one a bit more
> to make sure.
> 
> Steps I followed:
> * I created a package and included files from every directory.
> Compiled and all is fine
> * Created a second package that depends on the firs package. Compiled
> and all is fine.  Ctrl+Click works on all units.
> * Take one of my projects and select the second package as a
> dependency.  Compile my project and all is fine.  I can Ctrl-Click on
> any uses clause line and the IDE finds the correct *.pas file - from
> package one or package two.  Life is great! (this was yesterday).
> * Today I boot my computer, start Lazarus and continue work on my
> project, but now Lazarus can't find (Ctrl+Click) any *.pas files from
> package one or package two.
> 
> This happens on both Linux and Windows!
> Attached is a screenshot showning the Inherited packages in my
> project.  I can compile the project, so FPC finds the compiled units
> (*.ppu), but Lazarus lost the ability to find the *.pas files with a
> Ctrl+Click or a Tooltip (cursor hover over unit in uses clause).
> 
> I am using Lazarus (SVN version of 9781) and FPC 2.0.2 (under Windows)
> and FPC 2.0.5 (latest SVN version under Linux).
> 
> I am now unable to get Lazarus to find any of those units. I can
> remove the package dependency and re-add it, and it makes no
> difference.  I tried to open and recompile each package in order and
> it makes no difference.  The only thing that works, is to recreate the
> packages with a slightly different name and build the dependencies
> again.
> 
> Any ideas?  I can send more screenshots of the packages if needed.

Did I read this screenshot correct: the paths in the
compiler options are correct and complete?

Open the Source Editor -> Popup Menu -> 'Unit Info' -> Source paths.
These are the paths for the current unit. Are they complete?
If not:
Click on 'Show Codetools values'
Open the node 'Define Templates' -> Projects -> Project.
Check that 'Source directories' contains all project directories.

Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to