[Lazarus] Changing package versions

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Feb 7 00:30:55 CET 2015

On Fri, 06 Feb 2015 23:44:42 +0100
Werner Pamler <werner.pamler at freenet.de> wrote:

> My development system for fpspreadsheet is Lazarus 1.2.6 and, of course, 
> the trunk version of fpspreadsheet (version 1.5). Sometimes, however, I 
> have to switch to the released versions, e.g. 1.4.1, and this appears to 
> be very confusing to me.
> Here is what I am doing
> - Initially, fpspreadsheet v1.5 is installed.
> - "Packages" / "Install/Uninstall packages" --> select 
> "laz_fpspreadsheet_visual" and "laz_fpspreadsheetexport_visual", 
> "Uninstall selection", "Save and rebuild IDE"
> - "Packages" / "Open package file": navigate to folder with 
> fpspreadsheet v1.4.1. Open each package file and install. At the end, 
> recompile IDE.
> - When Lazarus comes back after building and I open the 
> "Install/Uninstall packages" again, I'd expect to see versions 1.4.1, 
> but I see version 1.5 again.
> - I tried several "recompile clean" etc. No effect, still version 1.5.

Sounds like a bug.
This should work:
- Initially, fpspreadsheet v1.5 is installed.
- Open packages (.lpk) of fpspreadsheets 1.4.
- Rebuild the IDE. This should compile with fpspreadsheets 1.4.
- Restart IDE. It should load fpspreadsheets 1.4.
- If you open a project with a dependency for 1.5, 1.5 will be

> Looking at the packagefiles.xml in my user profile I see that both 
> versions are listed. After deleting the entries of version 1.5 and 
> rebuilding, I finally see version 1.4.1 in the "Install/Uninstall 
> packages" list.

You can clean up the package list via Package / Package Links.


More information about the Lazarus mailing list