"componenttreeview.pas" error - Oops! Lazarus has done it again! lazarus / 9-Editor ---------------------------------------------------------------------- JD · 2010-11-02 06:02 I need to install several new packages to my IDE & I keep getting the following error: Unable to find file "componenttreeview.pas"! See attached screenshot.   This sort of thing happens time & again and I wonder why Lazarus has such a recurring problem with file paths and locating files. I always get round it by updating my Lazarus installation & then rebuilding everything but that is no longer an option since the most recent SVN versions can hardly compile the Zeos components & completely fail to compile VirtualTreeView. So I adopted the "if it ain't broke, don't fix it" principle for a fully working installation. Does anyone know how I can help Lazarus "find" this file that is certainly not missing?   Thanks. Lazarus versions: Lazarus 0.9.29/fpc 2.4.0 svn 26632 (of 14/07/2010) on Windows Vista Lazarus 0.9.29/fpc 2.4.3 svn 27672 (of 13/10/2010) on Windows XP ---------------------------------------------------------------------- ivan17 · 2010-11-02 06:32 Quote from: JD on November 02, 2010, 07:02:56 amDoes anyone know how I can help Lazarus "find" this file that is certainly not missing?  our car keys and remote controls are "certainly not missing", we just sometimes don't know where to look for them... go to environment>options>files,  look at dirs with versions (for example: c:\lazarus\fpc\2.4.0\source\),  correct 2.4.0 to the version you got, write C: instead of c: (that one may be fixed already), check the rest.  also try environment>rescan. what lazarus needs is a tool to purge the system of previous installations. ---------------------------------------------------------------------- JD · 2010-11-02 06:59 Quote from: ivan17 on November 02, 2010, 07:32:24 amour car keys and remote controls are "certainly not missing", we just sometimes don't know where to look for them...What is the correlation between your analogy & what I was describing? A bit condescending, are we??? Quote from: ivan17 on November 02, 2010, 07:32:24 amgo to environment>options>files,  look at dirs with versions (for example: c:\lazarus\fpc\2.4.0\source\),  correct 2.4.0 to the version you got, write C: instead of c: (that one may be fixed already), check the rest.  also try environment>rescan. what lazarus needs is a tool to purge the system of previous installations. I've already done environment>rescan. In addition, there are NO previous installations & I only have ONE installation per system - might I add that the "plain vanilla" Lazarus 0.9.28 I installed on Ubuntu 10.10 works OK. The environmentoptions.xml files on both of my Windows installations don't have any spurious entries - they look OK. It must be something else ---------------------------------------------------------------------- JD · 2010-11-02 07:22 PROBLEM SOLVED Using brute force methods - compile, recompile, reinstall, rebuild. It finally worked!  One of the enduring mysteries of Lazarus package installation. Perhaps, it is also because I have a HUGE collection of packages installed. I wonder..... ---------------------------------------------------------------------- eny · 2010-11-02 08:32 What I do nowadays is install a new version in parallel with a working version. And then with the '--pcp=...' startup parameter start with a fresh config folder. The downside is that I have to recompile the used (3rd party) packages but the number is low. 3rd party packages only get upgraded if they don't compile anymore (i.e. I copy them from the previous working Lazarus config). The hint from ivan17 about rescanning the FPC source folder fixed one of my problems. Apparently a problem is created during Lazarus' installation that is fixed by this rescan. ---------------------------------------------------------------------- JD · 2010-11-02 09:28 With all these issues, my earnest wish is to see a truly portable version of Lazarus. I had one a while ago but it is now broken. It has become practically impossible to update the old version of FreePascal while retaining the portability option. This has been done successfully with Turbo Delphi. I have a portable version running located on an external HDD. It works flawlessly. I move it around as often as I want & I have no problems. That's why I also love using the Eclipse IDE for Java. I would love to see the same thing done with Lazarus. I was a beta tester for one such project but unfortunately, it has been abandoned. ---------------------------------------------------------------------- greymfm · 2011-03-30 18:27 I also got the message "componenttreeview.pas not found" trying to install a new package. My solution: Enter command line. A simple "make" in the lazarus path, some time for recompilation and all error messages went away! Regards, Christian ---------------------------------------------------------------------- TurboRascal · 2011-04-12 01:13 I had the same problem. Solved it by a "Clean up + Build All". NO reinstallations are necessary! ---------------------------------------------------------------------- JD · 2011-04-14 19:06 I'm glad I no longer have that problem. I've upgraded twice since then without problems. Hope my good luck streak continues.