Recent

Author Topic: Online Package Manager  (Read 441975 times)

lainz

  • Hero Member
  • *****
  • Posts: 3303
    • Lainz
Re: Online Package Manager
« Reply #1695 on: November 06, 2019, 02:47:59 pm »
Hi, I'm not sure if fixed in trunk, but when I search for a package like bgrabitmap in 2.0.6, then search for bgracontrols and click on install, it tries to install bgracontrols but not bgrabitmap first.. seems that when the search is filled with something it only takes into account the displayed packages and not all the checked ones.

zeljko

  • Hero Member
  • *****
  • Posts: 1087
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Online Package Manager
« Reply #1696 on: November 06, 2019, 04:58:03 pm »
Seem that lclextensions package is not in sync with lazarus/components/lclextensions package for some reason.
include/qt5 is missin at all in opkman (installed fixes_3_2 and lazarus trunk via fpcupdeluxe on ubuntu 19.10, qt5 won't build because of missing include/qt5 dir which exists in lazarus/components/lclextensions/include

GetMem

  • Hero Member
  • *****
  • Posts: 3515
Re: Online Package Manager
« Reply #1697 on: November 06, 2019, 07:29:53 pm »
@lainz
Quote
Hi, I'm not sure if fixed in trunk, but when I search for a package like bgrabitmap in 2.0.6, then search for bgracontrols and click on install, it tries to install bgracontrols but not bgrabitmap first.. seems that when the search is filled with something it only takes into account the displayed packages and not all the checked ones.
Most likely you have an old BGRABitmap folder in the local repository. Since BGRABitmap  is a runtime package and is present in the local repository, the IDE thinks that all BGRAControls dependencies are met, so OPM won't try to download/install BGRABitmap. When you wish to install a new version of BGRABitmap/BGRAControls, please uninstall the packages first, then press the "Cleanup" button, which will remove any old version from the local repository.

I did run a few tests(initially BGRABitmap and BGRAControls are not installed). I only checked BGRAControls, OPM works as it should(see screenshot).
If it's time to update the packages, please let me know. Thanks for the feedback.


« Last Edit: November 06, 2019, 07:40:26 pm by GetMem »

GetMem

  • Hero Member
  • *****
  • Posts: 3515
Re: Online Package Manager
« Reply #1698 on: November 06, 2019, 07:36:24 pm »
@zeljko
Quote
Seem that lclextensions package is not in sync with lazarus/components/lclextensions package for some reason.
include/qt5 is missin at all in opkman (installed fixes_3_2 and lazarus trunk via fpcupdeluxe on ubuntu 19.10, qt5 won't build because of missing include/qt5 dir which exists in lazarus/components/lclextensions/include
The only reason why lclextension is still in OPM, is because VirtualTreeView_5x(also in OPM) depends on it. However I don't see any reason why lclextension from OPM cannot be synchronized with lclextension from trunk. So I just did it. Thanks for the feedback.

lainz

  • Hero Member
  • *****
  • Posts: 3303
    • Lainz
Re: Online Package Manager
« Reply #1699 on: November 06, 2019, 08:30:21 pm »
Most likely you have an old BGRABitmap folder in the local repository. Since BGRABitmap  is a runtime package and is present in the local repository, the IDE thinks that all BGRAControls dependencies are met, so OPM won't try to download/install BGRABitmap. When you wish to install a new version of BGRABitmap/BGRAControls, please uninstall the packages first, then press the "Cleanup" button, which will remove any old version from the local repository.

I did run a few tests(initially BGRABitmap and BGRAControls are not installed). I only checked BGRAControls, OPM works as it should(see screenshot).
If it's time to update the packages, please let me know. Thanks for the feedback.

Hi, it was in a VM with a fresh install of lazarus, running opm for the first time, the exact steps was:
- Searching bgrabitmap, check package for install, clean search
- Searching bgracontrols, check package for install, --> not clean search -<<, then install from repository, it was installing bgracontrols first

What I did next the error: I just cleared the search box and clicked on install again, and it started downloading bgrabitmap first.

I think if you cant reproduce is a bug on my system, people is reporting a lot of issues with any program and ubuntu 19.10, so it can be a specific problem there.

You can update if you want, circular did a tool that updates the json file automatically, so every time I release a new bgracontrols it updates the json for opm too, so I never forget it =)

sierdolg

  • New Member
  • *
  • Posts: 22
Re: Online Package Manager
« Reply #1700 on: November 19, 2019, 01:36:58 pm »
I noticed today that RichMemo installed via OPM did not work (on Lazarus 2.0.7 r62238M FPC 3.0.4 x86_64-linux-gtk2).

All you have to test is:
  • create an empty new project
  • put a RichMemo on the form
  • compile it without wrtiting further code.
The application will start, but will throw an exception class 'RunError(219)' in file 'gtk2/gtkwscusommemo.inc' at line 392 as soon as you close the form.

And here for the good news: if you install the package from https://havefunsoft.com/share/richmemo.zip instead, it will work.

Maybe this clue is useful to some people; I unfortunately don't know better where to report the error (which seems to be just a missing update).

GetMem

  • Hero Member
  • *****
  • Posts: 3515
Re: Online Package Manager
« Reply #1701 on: November 19, 2019, 02:08:10 pm »
@sierdolg
Quote
I noticed today that RichMemo installed via OPM did not work (on Lazarus 2.0.7 r62238M FPC 3.0.4 x86_64-linux-gtk2).

All you have to test is:
create an empty new project
put a RichMemo on the form
compile it without wrtiting further code.
The application will start, but will throw an exception class 'RunError(219)' in file 'gtk2/gtkwscusommemo.inc' at line 392 as soon as you close the form.

And here for the good news: if you install the package from https://havefunsoft.com/share/richmemo.zip instead, it will work.

Maybe this clue is useful to some people; I unfortunately don't know better where to report the error (which seems to be just a missing update).

Thanks. I updated the package in OPM.

lainz

  • Hero Member
  • *****
  • Posts: 3303
    • Lainz
Re: Online Package Manager
« Reply #1702 on: November 26, 2019, 01:53:51 pm »

lainz

  • Hero Member
  • *****
  • Posts: 3303
    • Lainz
Re: Online Package Manager
« Reply #1703 on: December 01, 2019, 04:30:09 pm »
Hi GetMem, can you remove two packages
- BGRAControlsFX
- MaterialDesign

The first one is not maintained anymore, and I received feedback that it doesn't works as expected.
The second is merged with BGRAControls, is just a single control so there's no reason to keep it alone.

Users should migrate to bgracontrols in both cases.

GetMem

  • Hero Member
  • *****
  • Posts: 3515
Re: Online Package Manager
« Reply #1704 on: December 01, 2019, 09:15:45 pm »
@lainz

Sorry for the late response. Somehow I did not noticed your post. I added the exception logger and removed BGRAControlsFX, MaterialDesign. Thanks for the feedback.

Renat.Su

  • Full Member
  • ***
  • Posts: 149
    • Renat.Su
Re: Online Package Manager
« Reply #1705 on: December 04, 2019, 08:47:04 pm »
Perhaps I do not quite understand how onlinepackagemanager works, but, for example, the pascaltz package is outdated. There is a new version and in the OPM package https://raw.githubusercontent.com/dezlov/PascalTZ/master/opm/update.json
(it is not my package)

GetMem

  • Hero Member
  • *****
  • Posts: 3515
Re: Online Package Manager
« Reply #1706 on: December 04, 2019, 09:37:54 pm »
Perhaps I do not quite understand how onlinepackagemanager works, but, for example, the pascaltz package is outdated. There is a new version and in the OPM package https://raw.githubusercontent.com/dezlov/PascalTZ/master/opm/update.json
(it is not my package)
If you have PascalTZ 2.1.1.0 installed, you can directly update to 2.1.3.0 from the package maintainer's webpage. See screenshot for more details.



« Last Edit: December 04, 2019, 09:40:08 pm by GetMem »

Renat.Su

  • Full Member
  • ***
  • Posts: 149
    • Renat.Su
Re: Online Package Manager
« Reply #1707 on: December 05, 2019, 04:31:12 am »
Perhaps I do not quite understand how onlinepackagemanager works, but, for example, the pascaltz package is outdated. There is a new version and in the OPM package https://raw.githubusercontent.com/dezlov/PascalTZ/master/opm/update.json
(it is not my package)
If you have PascalTZ 2.1.1.0 installed, you can directly update to 2.1.3.0 from the package maintainer's webpage. See screenshot for more details.
Thanks!