Hi,

I often get SVN updates for Lazarus (currently on rev.9554).  I also
use the lastest FPC 2.0.x from SVN.

I use Packages a lot, but for the last week or so, Lazarus can't seem
to find my source for the used units in my projects.  This results in
code completion not working, though I can compile my projects (so it
does find the compiled units of the package).  Is anybody else
experiencing this.  I am using Lazarus under Ubuntu Linux, compiled
with GTK1.

Here is a simple example I am busy with, that doesn't work.

Directory layout;

/project/
 /src
 /examples

Inside /src I have a single fpGui.pas file that contains a lot of {$I
...} lines.  I created a packages for it and saved the package in the
/src directory. I opened the Package, clicked Options and entered the
following in the Unit path.

$(PkgOutDir)/
/home/graemeg/programming/fpgui/src/

Clicked Save and then Compile and closed the Package dialog. Now  I
created a new project in /examples and saved the project.  Went into
Project Inspector and added the fpGUI package as a Requirement.  In
Compiler Options -> Inherited I can see both paths correctly (relative
to my project).

Now I start using the classes in my example project. When I Ctrl-Click
on a class I know is defined in the Package, Lazarus jumps to the uses
clause as says "Error: unit not found: fpGui".  As I mentioned
earlier, as long as I don't try to use Code Completion or Ctrl-Click,
everything works fine and I can compile my project.

I even tried to include the ../src/ path in the example projects
"Compiler Options" -> "Other Unit Files" and "Other Sources" and still
code completion doesn't work.

As I said, I have used the above process for months now and it always
worked. Now suddenly it doesn't... what has changed?

Regards,
 - Graeme -

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

Reply via email to