Recent

Author Topic: Package installed status: "Partially"  (Read 342 times)

bsilver

  • Newbie
  • Posts: 4
Package installed status: "Partially"
« on: October 19, 2020, 09:19:16 pm »
Lazarus version 2.0.10, FPC 3.2.0, OSX 10.15.7

Trying to learn my way around the IDE; wanted to install some support for encryption.
Package-> Online Package Manager
Installed DCPcrypt
Recompiled the IDE
when it came back up, there were tabs for DCPcrypt and DCPhash.
When I restart the IDE again, the tabs are gone.

I go to the Online Package Manager, it shows DCPcrypt "Installed" column is "Partially".
Selecting DCPcrypt, it says dcpcrypt.lpk "Installed" column is 2.0.4.1, "Status" up to date and dcpcrypt_laz.lpk "installed" column is "-", status "extracted".

Package Links shows both dcpcrypt and dcpcrypt_laz at version 2.0.4.1 in a .lazarus folder in my home directory with a state of "valid".

Package install/uninstall shows dcpcrypt_laz 2.0.4.1 in the install column, current state selected for installation, not installed, DesignTime and the "save and rebuild IDE" button is greyed out.

Is there something I'm overlooking to activate that package/component for the IDE?

ASBzone

  • Sr. Member
  • ****
  • Posts: 479
  • Automation leads to relaxation...
    • Free Console Utilities for Windows from BrainWaveCC
Re: Package installed status: "Partially"
« Reply #1 on: October 19, 2020, 10:15:49 pm »
Not sure how to help you with that issue, but DCPcrypt is very old at this point.

I'd recommend that you use HashLib4Pascal instead.  More robust and better supported.
-ASB: https://www.BrainWaveCC.com

Lazarus v2.0.11 r64032 / FPC v3.2.1-r47152 (via FpcUpDeluxe) -- Windows 64-bit install w/32-bit cross-compile
Primary System: Windows 10 Pro x64, Version 2009 (Build 19042)
Other Systems: Windows 10 Pro x64, Version 2004 (Build 19041) or greater

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1053
  • Former Delphi 1-7, 10.2 User
Re: Package installed status: "Partially"
« Reply #2 on: October 20, 2020, 01:52:04 am »
Lazarus version 2.0.10, FPC 3.2.0, OSX 10.15.7

Trying to learn my way around the IDE; wanted to install some support for encryption.
Package-> Online Package Manager
Installed DCPcrypt
Recompiled the IDE
when it came back up, there were tabs for DCPcrypt and DCPhash.
When I restart the IDE again, the tabs are gone.

Lazarus in installed into a read-only directory on macOS so when you add a new package which requires Lazarus to recompile itself, it finds it cannot write to the direct in which it is installed, so it writes the new version of the executable to the /Users/<name>/.lazarus/bin directory instead. This is fine until you exit Lazarus and start it again. When you start it again, it runs the original executable without your recently installed package.

The current solution is to run the Lazarus executable that you will find in the .lazarus directory in your home directory.

Alternatively, install your own copy of Lazarus from source in your home directory so that recompilatiions of Lazarus can write to its directory - full details in the Wiki article Installing Lazarus on macOS.

I have reported this to the BugTracker here for resolution.

[Edit: corrected path]
« Last Edit: October 21, 2020, 12:05:55 am by trev »
o Lazarus v2.1.0 r63871, FPC v3.3.1 r47164, macOS 10.14.6, Xcode 11.3.1
o Lazarus v2.1.0 r64160, FPC v3.3.1 Nov 27 21:16:31, macOS 11.0.1 (aarch64), Xcode 12.2
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (PD VM)

bsilver

  • Newbie
  • Posts: 4
Re: Package installed status: "Partially"
« Reply #3 on: October 20, 2020, 03:49:27 pm »
Thank you for the hint! I found the new executables hiding in ./.lazarus/bin; one launches from a terminal and the other is the .app bundle that behaves as expected. What a sneaky operational bug...

 

TinyPortal © 2005-2018