Recent

Author Topic: Online Package Manager  (Read 511961 times)

lainz

  • Hero Member
  • *****
  • Posts: 3711
  • Leandro Diaz
Re: Online Package Manager
« Reply #1875 on: July 21, 2020, 05:55:01 pm »
Sorry for the late reply, somehow I did not noticed your post.
It's alright.

Quote
Updating from the package maintainers webpage might fail because:
Hmm I was not thinking about OPM plugin connecting to Github but about the repository (packages.lazarus-ide.org). I suppose that's where the list comes from.

The list is updated manually so maybe that's the delay, not like we update at github and is automatically mirrored at the packages website  :(

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Online Package Manager
« Reply #1876 on: July 21, 2020, 09:41:24 pm »
@circular
Please take a look at the attached screenshot.
The red one is me(https://packages.lazarus-ide.org/), I'm always sluggish, because I have to update more then 50+ packages. You are the green one, every time you update the github json, the version is automatically updated in OPM. So when a user wish to update from the official repository, he/she need to click "From official repository"(see attached screenshot 2), but the package can be also updated directly from github "From third party repository".


PS: If the conditions from my previous post are met(https://forum.lazarus.freepascal.org/index.php/topic,34297.msg370371.html#msg370371), the version with green, should be visible soon after you updated the github page.
« Last Edit: July 22, 2020, 10:30:57 am by GetMem »

circular

  • Hero Member
  • *****
  • Posts: 3451
    • Personal webpage
Re: Online Package Manager
« Reply #1877 on: July 22, 2020, 11:55:16 am »
@GetMem

Hmm ok. As I understand you update the packages manually. I was wondering as you have a server for the website, why not have a scheduled task to update the central repository?

On MacOS, when choosing to check for updates, the OPM plugin crashes (and Lazarus with it). Luckily it takes a few seconds before it does, so it is possible to quickly reopen the plugin and go to the Options to disable the updates. Is it related to the SSL problem you mentioned?
Conscience is the debugger of the mind

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Online Package Manager
« Reply #1878 on: July 22, 2020, 12:39:12 pm »
@circular
Quote
I was wondering as you have a server for the website, why not have a scheduled task to update the central repository?
Good idea and it is on my to do list for a long time. Unfortunately my time is so limited... :(

Quote
On MacOS, when choosing to check for updates, the OPM plugin crashes (and Lazarus with it). Luckily it takes a few seconds before it does, so it is possible to quickly reopen the plugin and go to the Options to disable the updates. Is it related to the SSL problem you mentioned?
Yes, most likely. Unfortunately I'm not a mac user, but I will run a few test when a mac is available. If you could test with Lazarus trunk/FPC 3.2.0, I would be grateful. With Trunk the crash should not happen.

circular

  • Hero Member
  • *****
  • Posts: 3451
    • Personal webpage
Re: Online Package Manager
« Reply #1879 on: July 22, 2020, 12:45:25 pm »
Good idea and it is on my to do list for a long time. Unfortunately my time is so limited... :(
I understand.

Quote
Yes, most likely. Unfortunately I'm not a mac user, but I will run a few test when a mac is available. If you could test with Lazarus trunk/FPC 3.2.0, I would be grateful. With Trunk the crash should not happen.
Ok so just tested with Lazarus 2.0.10 (not really trunk though) and the crash does not happen. It just doesn't seem to be able to get the version from third party repository.
Conscience is the debugger of the mind

El Salvador

  • New Member
  • *
  • Posts: 13
Re: Online Package Manager
« Reply #1880 on: July 22, 2020, 02:25:04 pm »
Hi guys, only to say I make a new pull request for VTV (https://github.com/blikblum/VirtualTreeView-Lazarus/pull/19), already merged in dev branch, and I just send the patch in LazBugTracker (https://bugs.freepascal.org/view.php?id=37404). Thank you!

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Online Package Manager
« Reply #1881 on: July 22, 2020, 03:37:37 pm »
@circular
Quote
Ok so just tested with Lazarus 2.0.10 (not really trunk though) and the crash does not happen. It just doesn't seem to be able to get the version from third party repository.
I fired up an old Mojave VM an it works well with Lazarus Trunk/FPC3.2.0(attached screenshot). It also works on Windows and Linux. Unfortunately is too late for Lazarus 2.0.10, FPC 3.2.0 introduced a new bug in OPM and I didn't noticed in time. Luckily the next major version is not so far away.

@El Salvador
Quote
Hi guys, only to say I make a new pull request for VTV (https://github.com/blikblum/VirtualTreeView-Lazarus/pull/19), already merged in dev branch, and I just send the patch in LazBugTracker (https://bugs.freepascal.org/view.php?id=37404). Thank you!
Thank you!

circular

  • Hero Member
  • *****
  • Posts: 3451
    • Personal webpage
Re: Online Package Manager
« Reply #1882 on: July 22, 2020, 05:59:47 pm »
I fired up an old Mojave VM an it works well with Lazarus Trunk/FPC3.2.0(attached screenshot). It also works on Windows and Linux. Unfortunately is too late for Lazarus 2.0.10, FPC 3.2.0 introduced a new bug in OPM and I didn't noticed in time. Luckily the next major version is not so far away.
Ok. No pressure as there are not many MacOS users.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3711
  • Leandro Diaz
Re: Online Package Manager
« Reply #1883 on: July 22, 2020, 06:19:13 pm »
Hi GetMem, check the BGRAControls thread, we managed to install both packages BGLControls and BGRAControls.

The problem is that the solution requires to change build mode of Lazarus, and installing a package first, rebuild, then installing the other package  %)

So I think is not possible for OPM to do such thing.

Edit: and if possible, not very elegant solution  :)

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Online Package Manager
« Reply #1884 on: July 22, 2020, 07:39:57 pm »
@lainz
Quote
Check the BGRAControls thread, we managed to install both packages BGLControls and BGRAControls.
Great! I must congratulate you and circular, because I wasn't able to install the two packages at the same time.

Quote
he problem is that the solution requires to change build mode of Lazarus, and installing a package first, rebuild, then installing the other package  %)
So I think is not possible for OPM to do such thing.
Unfortunately this is not possible at the moment. 

Quote
Edit: and if possible, not very elegant solution  :)
Yes, I agree. As a side note BGRABitmap/ BGRAControls was the most popular example. There are many interdependent packages in OPM, with the same issues(FPC 3.2.0). See my thread here:  https://forum.lazarus.freepascal.org/index.php/topic,50620.0.html



@El Salvador
I updated VTV 5.3 in OPM, so now it has your latest changes.
« Last Edit: July 22, 2020, 07:45:43 pm by GetMem »

valdir.marcos

  • Hero Member
  • *****
  • Posts: 999
Re: Online Package Manager
« Reply #1885 on: July 23, 2020, 11:08:04 am »
Could OPM indicate orphan components so interested people could easily find a way to be useful:

Orphaned Packages not set to QA Group -- Debian Quality Assurance
https://qa.debian.org/orphaned.html

Debian -- Orphaned Packages
https://www.debian.org/devel/wnpp/orphaned

Wiki - Lazarus Application Gallery / Projects using Lazarus
https://forum.lazarus.freepascal.org/index.php/topic,50616.msg370773.html#msg370773

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Online Package Manager
« Reply #1886 on: July 23, 2020, 11:25:39 am »
Hi valdir.marcos,

Quote
Could OPM indicate orphan components so interested people could easily find a way to be useful:
Good idea! I can use different color, icon, etc..in the package tree. This can be easily implemented, the hard part is to find out which package out of 180 is orphan? If somebody can give me a package list, even if it's not complete,  I will do it.

valdir.marcos

  • Hero Member
  • *****
  • Posts: 999
Re: Online Package Manager
« Reply #1887 on: July 23, 2020, 11:48:11 am »
Hi valdir.marcos,

Quote
Could OPM indicate orphan components so interested people could easily find a way to be useful:
Good idea! I can use different color, icon, etc..in the package tree. This can be easily implemented, the hard part is to find out which package out of 180 is orphan? If somebody can give me a package list, even if it's not complete,  I will do it.
If possible, I think that icon and hint together are better than color indication for this case.
I will take a look on them trying to find out which of them are clearly not maintained or there might be a doubt if they are being maintained or not.
Thanks for your help and great work.

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Online Package Manager
« Reply #1888 on: July 23, 2020, 04:18:32 pm »
@valdir.marcos

It's implemented in r.63634. I added a new sub node called "Orphaned package"(attached image1), in order for the orphan status to be clearly visible, I need an orphan icon in three resolution(16x16, 24x24, 32x32), the icon will be visible both in the root node and sub node(red squares in images).
Also the orphan status of the package is available on the hint window too(attached image2).

PS: I choose Abbrevia for demo purposes, AFAIK is a well maintained package.

wp

  • Hero Member
  • *****
  • Posts: 7552
Re: Online Package Manager
« Reply #1889 on: July 23, 2020, 04:44:44 pm »
I have a problem here...  What is an "orphaned" package? When does it become like this? Who decides this?

I worry about old packages, well written in a way which is not affected by recent changes in FPC or Lazarus.

Look at DCPCrypt, used by many programs. On the site referred to by OPM, I can read: "DCPcrypt has finally been retired (except for the versions above). I’ve been developing it since 1999 and from 2007 (or so) it has been developing code rot as I’ve not had time to update it." As fas as I know, there is no maintainer for Lazarus. So, is it orphaned? I would say so. But "orphaned" means to many users: "Keep your hands off of this!" But I would say: no, absolutely no - it is an excellent package.

Instead of "orphaned" I'd prefer a line "Date of last update" in the package description, in additon to "Available since...". I agree that DCPCrypt will have a poor standing here too, but now there is an objective criterion for the maintainance level which can even be automated.

We have an online version of OPM at https://packages.lazarus-ide.org/. Would it be possible to add a user comment field to each package? This way a new user could read the comments and could decide on his own whether this package would be worth trying out.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

 

TinyPortal © 2005-2018