[lazarus] Package requirements - cant find file

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Nov 17 18:19:22 EST 2003


On Sun, 16 Nov 2003 12:45:35 -0600
Tony Maro <tony at maro.net> wrote:

> Tony Maro wrote:
> 
> >>-----Original Message-----
> >>From: Mattias Gaertner [mailto:nc-gaertnma at netcologne.de] 
> >>
> >>You spotted three different bugs (or better: ToDos):
> >>- the outputfilter expanded an include file wrong (here I 
> >>need your help)
> >>- the IDE didn't check for ambigious units when compiling itself
> >>(implemented)
> >>- the IDE does not check for ambigious package files, when 
> >>combining packages (ToDo)
> >>
> >>    
> >>
> >
> >I've turned abiguous checking to overwrite without prompting.  This
> >might be why #2.
> >
> >I'll see what debug output I can get on #1.
> >
> >Thanks,
> >Tony
> >  
> >
> Well as usual, I can't exactly reproduce this.  I put the offending file 
> back into the package and tried to force the crash but it wouldn't.  So 
> I thought I'd go back to the CBT1 package that it originally happened 
> with and discovered something different.
> 
> I have a package called "cbtpack" with a version set to 1.0 in 
> /Projects/cbtracker/cbtpack/
> 
> I have another called "cbtpack" with a version set to 2.0 in 
> /Projects/cbt2/cbtpack/
> 
> I uninstalled the 2.0 package, rebuilt lazarus, closed and restarted.  I 
> then compiled clean and installed the 1.0 package, rebuilt and 
> restarted.  No problems.
> 
> So, now I want to go back to the 2.0 package so I uninstall 1.0, rebuilt 
> lazarus and restarted.  I open the 2.0 package, compile clean and 
> install, rebuild Lazarus no problem.
> 
> Restart Lazarus and I get a messagebox "Package cbtpack 1.0" unit name 
> "cbtobjects" unit not found "cbtobjects".

This means, the unit is registering, but does not exist in the lpk file.

 
> cbtpack 1.0 doesn't contain cbtobjects, that was new in 2.0.  The 
> console output from Lazarus is useless and doesn't reference the error.

This means the IDE opened the 1.0 lpk file, instead of the 2.0 lpk file on
start. Sounds, as if the package links failed to save. 

 
> The package graph tree after the error shows that cbtpack 1.0 is 
> installed, and all of the 1.0 package components are in the palette.

Hmm, maybe RegisterPackage needs to extended with a version number.


Mattias






More information about the Lazarus mailing list