Sign in Join

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

Mailing lists / lazarus / 2011-03

Error during Lazarus rebuilding 0.9.30

13 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Frank Church

I am trying out Lazarus 0.9.30 and on trying to install a component package I get this error during the installation phase after the package has been compiled.

 componenttreeview.pas(44,18) Fatal: Can't find unit ComponentTreeView used
by ObjectInspector

The aforementioned file is sitting blissfully in C:\lazarus930\ideintf.

Is it a known issue, or could it have something to do with the package i am trying to compile: KGridLaz from www.tkweb.eu?

Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110327/dc21fb9e/attachment.html>

Reply by email

Mattias Gaertner
to Frank Church
Show quoted text 11 lines
I am trying out Lazarus 0.9.30 and on trying to install a component package I get this error during the installation phase after the package has been compiled. componenttreeview.pas(44,18) Fatal: Can't find unit ComponentTreeView used by ObjectInspector The aforementioned file is sitting blissfully in C:\lazarus930\ideintf. Is it a known issue, or could it have something to do with the package i am trying to compile: KGridLaz from www.tkweb.eu?

Has the package the dependency IDEIntf?

Mattias

Reply by email

Frank Church
to Mattias Gaertner
Mattias Gaertner wrote 21 lines
On Sun, 27 Mar 2011 15:30:11 +0100 Frank Church wrote: > I am trying out Lazarus 0.9.30 and on trying to install a component package > I get this error during the installation phase after the package has been > compiled. > > componenttreeview.pas(44,18) Fatal: Can't find unit ComponentTreeView used > by ObjectInspector > > The aforementioned file is sitting blissfully in C:\lazarus930\ideintf. > > Is it a known issue, or could it have something to do with the package i am > trying to compile: KGridLaz from www.tkweb.eu? Has the package the dependency IDEIntf?

Its dependencies are DBFLaz, Printer4Lazarus, LCL(>-1.0)

Show quoted text 8 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110327/028d4722/attachment.html>

Reply by email

Mattias Gaertner
to Frank Church
Show quoted text 24 lines
On 27 March 2011 15:38, Mattias Gaertner wrote: > On Sun, 27 Mar 2011 15:30:11 +0100 > Frank Church wrote: > > > I am trying out Lazarus 0.9.30 and on trying to install a component > package > > I get this error during the installation phase after the package has been > > compiled. > > > > componenttreeview.pas(44,18) Fatal: Can't find unit ComponentTreeView > used > > by ObjectInspector > > > > The aforementioned file is sitting blissfully in C:\lazarus930\ideintf. > > > > Is it a known issue, or could it have something to do with the package i > am > > trying to compile: KGridLaz from www.tkweb.eu? > > Has the package the dependency IDEIntf? > > Its dependencies are DBFLaz, Printer4Lazarus, LCL(>-1.0)

What is the search path "Other source files" of the package?

Mattias

Reply by email

Frank Church
to Mattias Gaertner
Mattias Gaertner wrote 37 lines
On Sun, 27 Mar 2011 15:39:55 +0100 Frank Church wrote: > On 27 March 2011 15:38, Mattias Gaertner wrote: > > > On Sun, 27 Mar 2011 15:30:11 +0100 > > Frank Church wrote: > > > > > I am trying out Lazarus 0.9.30 and on trying to install a component > > package > > > I get this error during the installation phase after the package has been > > > compiled. > > > > > > componenttreeview.pas(44,18) Fatal: Can't find unit ComponentTreeView > > used > > > by ObjectInspector > > > > > > The aforementioned file is sitting blissfully in C:\lazarus930\ideintf. > > > > > > Is it a known issue, or could it have something to do with the package i > > am > > > trying to compile: KGridLaz from www.tkweb.eu? > > > > Has the package the dependency IDEIntf? > > > > > Its dependencies are DBFLaz, Printer4Lazarus, LCL(>-1.0) What is the search path "Other source files" of the package?

Other Sources is blank

Other Unit Files is ..\..\source

I also tried to install Indy and the same error comes up.

componenttreeview.ppu is present in the units\i386 directory

Show quoted text 8 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110327/067c6d29/attachment.html>

Reply by email

Mattias Gaertner
to Frank Church
Show quoted text 42 lines
On 27 March 2011 15:53, Mattias Gaertner wrote: > On Sun, 27 Mar 2011 15:39:55 +0100 > Frank Church wrote: > > > On 27 March 2011 15:38, Mattias Gaertner > wrote: > > > > > On Sun, 27 Mar 2011 15:30:11 +0100 > > > Frank Church wrote: > > > > > > > I am trying out Lazarus 0.9.30 and on trying to install a component > > > package > > > > I get this error during the installation phase after the package has > been > > > > compiled. > > > > > > > > componenttreeview.pas(44,18) Fatal: Can't find unit > ComponentTreeView > > > used > > > > by ObjectInspector > > > > > > > > The aforementioned file is sitting blissfully in > C:\lazarus930\ideintf. > > > > > > > > Is it a known issue, or could it have something to do with the > package i > > > am > > > > trying to compile: KGridLaz from www.tkweb.eu? > > > > > > Has the package the dependency IDEIntf? > > > > > > > > Its dependencies are DBFLaz, Printer4Lazarus, LCL(>-1.0) > > What is the search path "Other source files" of the package? > > > Other Sources is blank Other Unit Files is ..\..\source

Good.

I also tried to install Indy and the same error comes up. componenttreeview.ppu is present in the units\i386 directory

Do you mean <lazaruspath>\ideintf\units\i386 ?

Mattias

Reply by email

Frank Church
to Mattias Gaertner
Mattias Gaertner wrote 60 lines
On Sun, 27 Mar 2011 16:37:06 +0100 Frank Church wrote: > On 27 March 2011 15:53, Mattias Gaertner wrote: > > > On Sun, 27 Mar 2011 15:39:55 +0100 > > Frank Church wrote: > > > > > On 27 March 2011 15:38, Mattias Gaertner > > wrote: > > > > > > > On Sun, 27 Mar 2011 15:30:11 +0100 > > > > Frank Church wrote: > > > > > > > > > I am trying out Lazarus 0.9.30 and on trying to install a component > > > > package > > > > > I get this error during the installation phase after the package has > > been > > > > > compiled. > > > > > > > > > > componenttreeview.pas(44,18) Fatal: Can't find unit > > ComponentTreeView > > > > used > > > > > by ObjectInspector > > > > > > > > > > The aforementioned file is sitting blissfully in > > C:\lazarus930\ideintf. > > > > > > > > > > Is it a known issue, or could it have something to do with the > > package i > > > > am > > > > > trying to compile: KGridLaz from www.tkweb.eu? > > > > > > > > Has the package the dependency IDEIntf? > > > > > > > > > > > Its dependencies are DBFLaz, Printer4Lazarus, LCL(>-1.0) > > > > What is the search path "Other source files" of the package? > > > > > > > Other Sources is blank > > Other Unit Files is ..\..\source Good. > I also tried to install Indy and the same error comes up. > > componenttreeview.ppu is present in the units\i386 directory Do you mean <lazaruspath>\ideintf\units\i386 ? Yes
Show quoted text 8 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110327/24a4cc2c/attachment-0001.html>

Reply by email

Mattias Gaertner
to Frank Church
[...] > > I also tried to install Indy and the same error comes up.

Do you know about the include file clashes of Indy? This creates such errors.

> > componenttreeview.ppu is present in the units\i386 directory

Compile with -vut to find out which include file conflicts and rename it.

Mattias

Reply by email

Frank Church
to Mattias Gaertner
Mattias Gaertner wrote 10 lines
On Sun, 27 Mar 2011 18:18:43 +0100 Frank Church wrote: >[...] > > > I also tried to install Indy and the same error comes up. Do you know about the include file clashes of Indy? This creates such errors.

The problem appeared before I added Indy to the system.

Show quoted text 6 lines
> > > componenttreeview.ppu is present in the units\i386 directory Compile with -vut to find out which include file conflicts and rename it.

I guess that would be ticking -vu and -vt in the Verbosity options Can the -vut be set for Environment itself?
The problem appears to lie in the package itself, it appears to be in the environment.

In my last problem involving Indy,
http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-March/061679.html, I had to check the files in the -pcp directory and remove all references to directories outside the Lazarus installation. I had quite a few and the directories had gotten mixed up. It appears that when I copied projects from the old installations to the new ones, the directories linked with projects got copied to the -pcp folders in the new installation and caused the problems with Indy and some other packages. This appears to happen even if you just open project related to the old installations.

I suspect that if you are not careful about how you set the search options in packages or projects, some of their directories will get copied to your main installations settings, even though the come from a different component tree.

I have searched the -pcp folder for directories related to the pre-existing installations but haven't found any.

I will try your suggestion to see.

Show quoted text 8 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110328/35ef712b/attachment-0001.html>

Reply by email

Mattias Gaertner
to Frank Church
Show quoted text 22 lines
On 27 March 2011 18:37, Mattias Gaertner wrote: > On Sun, 27 Mar 2011 18:18:43 +0100 > Frank Church wrote: > > >[...] > > > > I also tried to install Indy and the same error comes up. > > Do you know about the include file clashes of Indy? > This creates such errors. > > The problem appeared before I added Indy to the system. > > > > componenttreeview.ppu is present in the units\i386 directory > > Compile with -vut to find out which include file conflicts and rename > it. > > I guess that would be ticking -vu and -vt in the Verbosity options Can the -vut be set for Environment itself?

Yes, in your fpc.cfg, but then you get a lot of output, so only activate this when you have such a problem.

Show quoted text 12 lines
The problem appears to lie in the package itself, it appears to be in the environment. In my last problem involving Indy, http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-March/061679.html, I had to check the files in the -pcp directory and remove all references to directories outside the Lazarus installation. I had quite a few and the directories had gotten mixed up. It appears that when I copied projects from the old installations to the new ones, the directories linked with projects got copied to the -pcp folders in the new installation and caused the problems with Indy and some other packages. This appears to happen even if you just open project related to the old installations.

I can't follow you here. What do you mean with directories got copied? The IDE does not copy directories. But when you set wrong paths the compiler will create duplicate ppu files.

I suspect that if you are not careful about how you set the search options in packages or projects, some of their directories will get copied to your main installations settings, even though the come from a different component tree.

Well, yes, you can do havoc with search paths.
The wiki lists more than 20 ways how to mess up your system leading to the "unit not found" error.
I already added some tools for some cases and I plan an expert system to find misconfigurations in search paths.

I have searched the -pcp folder for directories related to the pre-existing installations but haven't found any. I will try your suggestion to see.

Mattias

Reply by email

Frank Church
to Mattias Gaertner: On Sun, 27 Mar 2011 18:18:43 +0100 Do you know about the include file clashes of Indy?…
Mattias Gaertner wrote 17 lines
On Sun, 27 Mar 2011 18:18:43 +0100 Frank Church wrote: >[...] > > > I also tried to install Indy and the same error comes up. Do you know about the include file clashes of Indy? This creates such errors. > > > componenttreeview.ppu is present in the units\i386 directory Compile with -vut to find out which include file conflicts and rename it. Mattias

After following your suggestion it appears that the packages are added twice to staticpackages.inc.

kgrid uses printer4lazarus and dbflaz, and they appear twice in the staticpackages.inc. I opened the file and realized that they are duplicated.

I went into the IDE and removed them ie uninstalled them, yet when it comes to building the IDE again they are duplicated yet again in staticpackages.inc.

The IDE appears to be generating the error that staticpackages.inc cannot be found, when it appears that the error is a duplicate file name error.

Another thing I want to ask - is the -pcp directory the normal location for staticpackages.inc? I thought it would be in the installation directory.

staticpackages.inc(4,16) Error: Duplicate identifier "PRINTER4LAZARUS"
staticpackages.inc(4,16) Error: Duplicate identifier "printer4lazarus"
staticpackages.inc(8,7) Error: Duplicate identifier "DBFLAZ"
staticpackages.inc(8,7) Error: Duplicate identifier "dbflaz"
componenttreeview.pas(44,18) Fatal: Can't find unit ComponentTreeView used
by ObjectInspector
> _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110328/fd6956f5/attachment.html>

Reply by email

Mattias Gaertner
to Frank Church
Show quoted text 6 lines
[...] After following your suggestion it appears that the packages are added twice to staticpackages.inc. kgrid uses printer4lazarus and dbflaz, and they appear twice in the staticpackages.inc. I opened the file and realized that they are duplicated.

Darn.
What Lazarus version do you use exactly?

Show quoted text 9 lines
I went into the IDE and removed them ie uninstalled them, yet when it comes to building the IDE again they are duplicated yet again in staticpackages.inc. The IDE appears to be generating the error that staticpackages.inc cannot be found, when it appears that the error is a duplicate file name error. Another thing I want to ask - is the -pcp directory the normal location for staticpackages.inc? I thought it would be in the installation directory.

No, the user can compile a new IDE with his own set of installed packages.

staticpackages.inc(4,16) Error: Duplicate identifier "PRINTER4LAZARUS" staticpackages.inc(4,16) Error: Duplicate identifier "printer4lazarus" staticpackages.inc(8,7) Error: Duplicate identifier "DBFLAZ" staticpackages.inc(8,7) Error: Duplicate identifier "dbflaz"

Hmm, seems like somewhere a package name is not compared case insensitive.

componenttreeview.pas(44,18) Fatal: Can't find unit ComponentTreeView used by ObjectInspector

Mattias

Reply by email

Frank Church
to Mattias Gaertner
Mattias Gaertner wrote 17 lines
On Mon, 28 Mar 2011 12:48:09 +0100 Frank Church wrote: >[...] > After following your suggestion it appears that the packages are added twice > to staticpackages.inc. > > kgrid uses printer4lazarus and dbflaz, and they appear twice in the > staticpackages.inc. I opened the file and realized that they are duplicated. Darn. What Lazarus version do you use exactly?

It is the new 0.9.30 available at sourceforge

Version #: 0.9.30
Date: 2011-03-08
FPC Version: 2.4.2
SVN Revision: 29749
i386-win32-2in32/win64

Show quoted text 26 lines
> I went into the IDE and removed them ie uninstalled them, yet when it comes > to building the IDE again they are duplicated yet again in > staticpackages.inc. > > The IDE appears to be generating the error that staticpackages.inc cannot be > found, when it appears that the error is a duplicate file name error. > > Another thing I want to ask - is the -pcp directory the normal location for > staticpackages.inc? I thought it would be in the installation directory. No, the user can compile a new IDE with his own set of installed packages. > staticpackages.inc(4,16) Error: Duplicate identifier "PRINTER4LAZARUS" > staticpackages.inc(4,16) Error: Duplicate identifier "printer4lazarus" > staticpackages.inc(8,7) Error: Duplicate identifier "DBFLAZ" > staticpackages.inc(8,7) Error: Duplicate identifier "dbflaz" Hmm, seems like somewhere a package name is not compared case insensitive.

I have succeeded by following these steps.

I removed printer4lazarus and dbflaz from the package list and saved it. Then I closed the IDE and reopened it. Doing a build all from that state worked with Kgrid installing successfully.
I have also been able to install the Indy package after that without any problems.

Thanks for the help. I think the tool you are developing will come in very useful. It can't arrive too soon.

Show quoted text 13 lines
> componenttreeview.pas(44,18) Fatal: Can't find unit ComponentTreeView used > by ObjectInspector Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110328/d3845a98/attachment.html>

Reply by email