Sign in Join

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

Mailing lists / lazarus / 2008-03

How to uninstall a package?

9 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

How to I uninstall a Lazarus Package (*.lpk) so that it doesn't even appear in the 'Available Packages' list. I have uninstalled it from the 'Packages | Configure installed packages' screen, but it's still listed in the 'Available Packages' screen.

The problem is that I have two packages that have the same unit name, and every time I recompile Lazarus, it complains and I have to click 'Ignore All'. See attached screenshot of the error.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Ambiguous_unit_found.png
Type: image/png
Size: 15796 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080306/a7d612be/attachment-0001.png

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 6 lines
Hi, How to I uninstall a Lazarus Package (*.lpk) so that it doesn't even appear in the 'Available Packages' list. I have uninstalled it from the 'Packages | Configure installed packages' screen, but it's still listed in the 'Available Packages' screen.

Of course - because you can install it.

The problem is that I have two packages that have the same unit name, and every time I recompile Lazarus, it complains and I have to click 'Ignore All'. See attached screenshot of the error.

This message has nothing to do with 'Available Packages'.

The unit tiCompositeMediators exists both in fpGUI and tiOPF? For some reason both are installed in the IDE.

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gaertner
Mattias Gaertner wrote 5 lines
This message has nothing to do with 'Available Packages'. The unit tiCompositeMediators exists both in fpGUI and tiOPF? For some reason both are installed in the IDE.

Yes they are available in both packages, and that is exactly why I am trying to uninstall the 'tiOPFGUI' package. I used to use 'tiOPFGUI' (which uses LCL), but now I use 'tiOPFfpGUI' (which uses fpGUI) exclusively. A assume that once the 'tiOPFGUI' is truly removed (missing from Available Packages list), Lazarus will not know about that copy of the unit which has the same name.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Mattias Gaertner: On Thu, 6 Mar 2008 08:50:01 +0200 Of course - because you can install it. This message…
Mattias Gaertner wrote 6 lines
> The problem is that I have two packages that have the same unit name, > and every time I recompile Lazarus, it complains and I have to click > 'Ignore All'. See attached screenshot of the error. This message has nothing to do with 'Available Packages'.

OK, I found the packagefiles.xml file which contains an extensive list of available packages. I deleted it from there, including some old versions of existing packages which don't exist anymore.

I rebuilt Lazarus and still got the error. :-) The duplicate .ppu file will still lying around. I now see what you meant. So deleted all tiOPF's *.ppu and *.o and rebuilt Lazarus again. This time everything went through fine - no errors popped up.

I still think it would be handy to unregister a package with Lazarus. eg: A popup menu on the Available Packages list that says 'unregister' and it removes it from the packagfiles.xml file. Maybe even a 'cleanup' option which will look if the package still exists on the hard drive and if not, remove it from the packagefiles.xml file.

I deleted some old and non-existing packages from my .xml file and the size went from 17k down to 7k. A lot of junk entries are now removed.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Mattias Gaertner
to Graeme Geldenhuys: Yes they are available in both packages, and that is exactly why I am trying to uninstall…
Show quoted text 9 lines
On 06/03/2008, Mattias Gaertner wrote: > > This message has nothing to do with 'Available Packages'. > > The unit tiCompositeMediators exists both in fpGUI and tiOPF? > For some reason both are installed in the IDE. Yes they are available in both packages, and that is exactly why I am trying to uninstall the 'tiOPFGUI' package.

Does this mean, you can not uninstall a package?
What is the error message?

Show quoted text 5 lines
I used to use 'tiOPFGUI' (which uses LCL), but now I use 'tiOPFfpGUI' (which uses fpGUI) exclusively. A assume that once the 'tiOPFGUI' is truly removed (missing from Available Packages list), Lazarus will not know about that copy of the unit which has the same name.

The unit path is created from the list under 'Packages to install in the IDE', not the 'Available Packages'.

Mattias

Reply by email

Mattias Gaertner
to Graeme Geldenhuys: OK, I found the packagefiles.xml file which contains an extensive list of available…
Show quoted text 17 lines
On 06/03/2008, Mattias Gaertner wrote: > > > The problem is that I have two packages that have the same unit > > name, and every time I recompile Lazarus, it complains and I > > have to click 'Ignore All'. See attached screenshot of the > > error. > > This message has nothing to do with 'Available Packages'. OK, I found the packagefiles.xml file which contains an extensive list of available packages. I deleted it from there, including some old versions of existing packages which don't exist anymore. I rebuilt Lazarus and still got the error. :-) The duplicate .ppu file will still lying around. I now see what you meant. So deleted all tiOPF's *.ppu and *.o and rebuilt Lazarus again. This time everything went through fine - no errors popped up.

How can the message be improved?
It showed you the full filenames of the offending ppu's. Instead of checking if these ppu's are supposed to be there, you still thought that the error was a package that was already uninstalled.

Show quoted text 5 lines
I still think it would be handy to unregister a package with Lazarus. eg: A popup menu on the Available Packages list that says 'unregister' and it removes it from the packagfiles.xml file. Maybe even a 'cleanup' option which will look if the package still exists on the hard drive and if not, remove it from the packagefiles.xml file.

Good idea.
Please make a feature request.

I deleted some old and non-existing packages from my .xml file and the size went from 17k down to 7k. A lot of junk entries are now removed.

Mattias

Reply by email

Graeme Geldenhuys
to Mattias Gaertner: On Thu, 6 Mar 2008 13:01:19 +0200 Does this mean, you can not uninstall a package? What…
Mattias Gaertner wrote
The unit path is created from the list under 'Packages to install in the IDE', not the 'Available Packages'.

I think I figured it out.... it's me being stupid again. :-) tiOPFGUI depends on a package called tiOPF (non-gui only). Both packages output unit path is the same. tiOPFfpGUI also depends on tiOPF.

So because tiOPF is a loaded package in the IDE, it's unit path gets pulled in. tiOPFfpGUI uses a different path, but has a unit with the same name. And that's what Lazarus detected, so the error message was 100% correct in Lazarus. By clearing the unit path of the tiOPF package, I removed the redundant packages used by tiOPFGUI, which fixed the issue.

It all sounds confusing, but Lazarus was correct in the end. Excellent work. :-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Mattias Gaertner: On Thu, 6 Mar 2008 13:16:35 +0200 How can the message be improved? It showed you the full…
Mattias Gaertner wrote 5 lines
How can the message be improved? It showed you the full filenames of the offending ppu's. Instead of checking if these ppu's are supposed to be there, you still thought that the error was a package that was already uninstalled.

My fault. The error message is 100% correct! I uninstalled the right package (tiOPFGUI.lpk), but never cleared out the unit output directory which was shared by another required package (tiOPF.lpk). Lazarus found the redundant *.ppu units, which it rightly complained about.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email