Recent

Author Topic: Online Package Manager  (Read 878677 times)

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #2265 on: January 18, 2023, 04:46:12 pm »
Hi GetMem, can you update bgrabitmap and bgracontrols to state that doesn't works anymore with FPC 3.0.4

For now the code remains the same. Until we fix trunk issues.
I updated the information. Thanks.

wp

  • Hero Member
  • *****
  • Posts: 12476
Re: Online Package Manager
« Reply #2266 on: January 18, 2023, 05:23:19 pm »
Thank you.

lainz

  • Hero Member
  • *****
  • Posts: 4621
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: Online Package Manager
« Reply #2267 on: January 18, 2023, 10:20:49 pm »
Thanks  :)

wp

  • Hero Member
  • *****
  • Posts: 12476
Re: Online Package Manager
« Reply #2268 on: January 22, 2023, 12:10:47 pm »
Based on the discussion in https://forum.lazarus.freepascal.org/index.php/topic,61933.msg467601.html I am submitting an updated version of LazBarcodes (v2.0.1) which provides better compatibility with the previous major version 1.0.4.

The zip file of the new version can be found at https://sourceforge.net/projects/lazarus-ccr/files/LazBarcodes/lazbarcodes-2.0.1.zip/download

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #2269 on: January 22, 2023, 12:27:55 pm »
Based on the discussion in https://forum.lazarus.freepascal.org/index.php/topic,61933.msg467601.html I am submitting an updated version of LazBarcodes (v2.0.1) which provides better compatibility with the previous major version 1.0.4.

The zip file of the new version can be found at https://sourceforge.net/projects/lazarus-ccr/files/LazBarcodes/lazbarcodes-2.0.1.zip/download
I updated the package.

wp

  • Hero Member
  • *****
  • Posts: 12476
Re: Online Package Manager
« Reply #2270 on: January 22, 2023, 12:35:29 pm »
Thank you.

lainz

  • Hero Member
  • *****
  • Posts: 4621
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: Online Package Manager
« Reply #2271 on: January 30, 2023, 06:04:34 pm »
Hi. About the LazProfiler package the author Pascal says that's open for pull requests. So if anyone is interested can fix the package.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #2272 on: January 30, 2023, 06:40:07 pm »
Hi. About the LazProfiler package the author Pascal says that's open for pull requests. So if anyone is interested can fix the package.
Thanks for the info. Let's hope somebody will fix it soon.

wp

  • Hero Member
  • *****
  • Posts: 12476
Re: Online Package Manager
« Reply #2273 on: February 01, 2023, 11:26:27 pm »
GetMem, could you please add another update of LazBarcodes? It is at version 2.0.2 now (https://sourceforge.net/projects/lazarus-ccr/files/LazBarcodes/lazbarcodes-2.0.2.zip/download) and hopefully fixes the installation issue.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #2274 on: February 01, 2023, 11:33:58 pm »
GetMem, could you please add another update of LazBarcodes? It is at version 2.0.2 now (https://sourceforge.net/projects/lazarus-ccr/files/LazBarcodes/lazbarcodes-2.0.2.zip/download) and hopefully fixes the installation issue.
Done! Thanks for the new version.

wp

  • Hero Member
  • *****
  • Posts: 12476
Re: Online Package Manager
« Reply #2275 on: February 02, 2023, 12:30:35 am »
Thank you. It did not solve the installation issue though.

But as I found out now, there are some unexpected files in the directory into which OPM unzipped the download. Without these files compilation runs correctly.

The reason for these "stray" files could be that I have a common "packages" folder into which OPM does all the installations. This means that older installations of LazBarcodes and the new installation went into the same folder and were mixed up.

Could it be that OPM does not delete the directories into which it unzips the downloads?

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #2276 on: February 02, 2023, 07:37:33 am »
Thank you. It did not solve the installation issue though.

But as I found out now, there are some unexpected files in the directory into which OPM unzipped the download. Without these files compilation runs correctly.

The reason for these "stray" files could be that I have a common "packages" folder into which OPM does all the installations. This means that older installations of LazBarcodes and the new installation went into the same folder and were mixed up.

Could it be that OPM does not delete the directories into which it unzips the downloads?
It does delete the directories, IIRC you were the one who suggested that OPM should clear the old directory just before installing a package. So I did a quick debug, see attached screenshots, just before and after the delete. It works fine at my side, but maybe those files are in use for some reason?

wp

  • Hero Member
  • *****
  • Posts: 12476
Re: Online Package Manager
« Reply #2277 on: February 02, 2023, 12:01:46 pm »
Now I added a file to the folder src in the installation folder used by OPM for LazBarcodes and repeated the installation - the file is still there afterwards! No file of the destination folder was open, the folder itself was not opened in the Explorer either.

On the other hand, when I simulate your code in a simple test application everything works fine. (see attachment)

Strange...

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #2278 on: February 02, 2023, 12:36:16 pm »
Now I added a file to the folder src in the installation folder used by OPM for LazBarcodes and repeated the installation - the file is still there afterwards! No file of the destination folder was open, the folder itself was not opened in the Explorer either.

On the other hand, when I simulate your code in a simple test application everything works fine. (see attachment)

Strange...
I did the same at my side an it's working fine. Can you please add the following code(opkman_zipper, line: 161):
Code: Pascal  [Select][+][-]
  1.    DelDir := FDstDir + MPkg.PackageBaseDir;
  2.    if DirectoryExists(DelDir) then
  3.        if not CleanDirectory(DelDir) then
  4.           ShowMessage(SysErrorMessage(GetLastOSError));      
Maybe we get an idea why the delete fails.

wp

  • Hero Member
  • *****
  • Posts: 12476
Re: Online Package Manager
« Reply #2279 on: February 02, 2023, 12:54:25 pm »
I found it: The new code is not yet in the release (I did my previous tests with Laz 2.2.4):

Code: Pascal  [Select][+][-]
  1. // opkman_zipper, TPackageUnzipper.Execute
  2. //Laz main:
  3.       if DirectoryExists(DelDir) then
  4.         CleanDirectory(DelDir);
  5.  
  6. //Laz 2.2.4:
  7.         if DirectoryExists(DelDir) then
  8.           DeleteDirectory(DelDir, False);

Sorry for the noise...
« Last Edit: February 02, 2023, 12:56:15 pm by wp »

 

TinyPortal © 2005-2018