Recent

Author Topic: Package installed status: "Partially"  (Read 1777 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

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) 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.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • 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 »

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