Recent

Author Topic: Online Package Manager  (Read 838981 times)

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1035 on: November 17, 2017, 03:58:17 pm »
@pascal
Quote
No, that's not what i meant! OPM states that LazProfiler is installed but it's not installed. See Screenshots of my previous post.
I did understand the issue, I also saw the screenshots. The problem is I cannot reproduce it myself. After 10 package install/uninstall OPM still behaves correctly. Of course that doesn't mean you findings are not real. I will keep trying.

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Online Package Manager
« Reply #1036 on: November 17, 2017, 05:27:22 pm »
@pascal
Quote
No, that's not what i meant! OPM states that LazProfiler is installed but it's not installed. See Screenshots of my previous post.
I did understand the issue, I also saw the screenshots. The problem is I cannot reproduce it myself. After 10 package install/uninstall OPM still behaves correctly. Of course that doesn't mean you findings are not real. I will keep trying.
Okay, then i did not understand you  :)

Maybe you can try this:
During developement i created the package under components in the Lazarus directory and installed it manually.
Then, when testeing OPM, i uninstalled through package window and recompiled Lazarus.
After restart OPM still shows "installed". So the first install and uninstall was done manually.

Btw OPM is a verry, very good addon i like it very much!
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

GAN

  • Sr. Member
  • ****
  • Posts: 370
Re: Online Package Manager
« Reply #1037 on: November 18, 2017, 03:32:21 am »
Hi, I've translated OLPM to Spanish. Attached file.

Best regards.
Lazarus 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1038 on: November 18, 2017, 05:58:32 am »
@Pascal
Thanks. I did try your method with no success. The strange thing is I ask the IDE to check if a package is installed or not, so it must be some kind of refresh problem in OPM:
Code: Pascal  [Select][+][-]
  1. var
  2.   Package: TIDEPackage;
  3. begin
  4.    for I := 0 to PackageEditingInterface.GetPackageCount - 1 do
  5.    begin
  6.      Package := PackageEditingInterface.GetPackages(I);
  7.      if ExtractFileName(Package.FileName) = ALazarusPkg.Name then
  8.      begin
  9.        //package is installed
  10.      end;
  11.   end;
  12. end;

Once I can reproduce the issue, I will check why the code fails.

@GAN
Thank you! I added a request to the bugtracker. Your translation will be soon available in Lazarus trunk.

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Online Package Manager
« Reply #1039 on: November 18, 2017, 08:10:12 am »
@Pascal
Thanks. I did try your method with no success. The strange thing is I ask the IDE to check if a package is installed or not, so it must be some kind of refresh problem in OPM:
Code: Pascal  [Select][+][-]
  1. var
  2.   Package: TIDEPackage;
  3. begin
  4.    for I := 0 to PackageEditingInterface.GetPackageCount - 1 do
  5.    begin
  6.      Package := PackageEditingInterface.GetPackages(I);
  7.      if ExtractFileName(Package.FileName) = ALazarusPkg.Name then
  8.      begin
  9.        //package is installed
  10.      end;
  11.   end;
  12. end;

Once I can reproduce the issue, I will check why the code fails.

Okay, i'll also have a try.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: Online Package Manager
« Reply #1040 on: November 19, 2017, 12:20:00 am »
Hi GetMem, there's a possible fix for a component RxDBLookupCombo
https://forum.lazarus.freepascal.org/index.php/topic,38981.msg266283/topicseen.html#new

I don't know how to contact the developer or where is his main repository. The site linked in the wiki is dead. The CCR site I don't know also who is mantaining it so I'm asking you for this.

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Online Package Manager
« Reply #1041 on: November 19, 2017, 09:00:48 pm »
@GetMem
I think I spotted a very minor bug in the file opkman_downloader.pas at line 226.
It should be
Code: Pascal  [Select][+][-]
  1. if Assigned(FOnPackageDownloadProgress) then

But not worth sending a patch for such a simple typo.

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1042 on: November 19, 2017, 10:47:58 pm »
@lainz
Quote
I don't know how to contact the developer or where is his main repository. The site linked in the wiki is dead. The CCR site I don't know also who is mantaining it so I'm asking you for this.
I don't know who is the original maintainer. I will soon fix the bug in the main repository. Thank you.

@howardpc
Thank you! Fixed in r.56438.

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Online Package Manager
« Reply #1043 on: November 19, 2017, 11:29:50 pm »
Just noticed another typo. Not a bug, but an unnecessary double assignment.
In opkman_timer.pas line 63 is a duplicate of line 61.

wp

  • Hero Member
  • *****
  • Posts: 11910
Re: Online Package Manager
« Reply #1044 on: November 20, 2017, 12:02:27 am »
I don't know how to contact the developer or where is his main repository. The site linked in the wiki is dead. The CCR site I don't know also who is mantaining it so I'm asking you for this.

Which wiki site are you talking of? The one that I bookmarked (http://wiki.lazarus.freepascal.org/RXfpc) links to the correct CCR repository. It is actively maintained by alexs75, last commit on Nov 14 (this year, of course...).

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: Online Package Manager
« Reply #1045 on: November 20, 2017, 12:41:57 am »
I don't know how to contact the developer or where is his main repository. The site linked in the wiki is dead. The CCR site I don't know also who is mantaining it so I'm asking you for this.

Which wiki site are you talking of? The one that I bookmarked (http://wiki.lazarus.freepascal.org/RXfpc) links to the correct CCR repository. It is actively maintained by alexs75, last commit on Nov 14 (this year, of course...).

This link that is in the wiki
http://alexs75.narod.ru/fpc/rxfpc/

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #1046 on: November 20, 2017, 07:22:28 am »
@howardpc
Thank you. Fixed in r. 56440.

@lainz
If the package is actively maintained(as @wp mentioned) then please contact the author to fix the bug. I will refresh the package in the main repository, once a fix is available.
« Last Edit: November 20, 2017, 08:37:47 am by GetMem »

lainz

  • Hero Member
  • *****
  • Posts: 4468
    • https://lainz.github.io/
Re: Online Package Manager
« Reply #1047 on: November 20, 2017, 03:00:53 pm »
@lainz
If the package is actively maintained(as @wp mentioned) then please contact the author to fix the bug. I will refresh the package in the main repository, once a fix is available.

Ok. Done.

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Online Package Manager
« Reply #1048 on: November 21, 2017, 12:38:47 pm »
I get an AV when opening OPM (r56451):
Code: Text  [Select][+][-]
  1. TApplication.HandleException Access violation
  2.   Stack trace:
  3.   $0062EC59  TXMLCONFIG__INTERNALFINDNODE,  line 553 of laz2_xmlcfg.pas
  4.   $0062E147  TXMLCONFIG__SETVALUE,  line 307 of laz2_xmlcfg.pas
  5.   $0062E21A  TXMLCONFIG__SETDELETEVALUE,  line 324 of laz2_xmlcfg.pas
  6.   $00CA0ABF  TUPDATES__SAVE,  line 329 of opkman_updates.pas
  7.   $00CA18E6  TUPDATES__PAUSEUPDATE,  line 567 of opkman_updates.pas
  8.   $00C82A9D  TMAINFRM__STARTUPDATES,  line 201 of opkman_mainfrm.pas
  9.   $00C82982  TMAINFRM__FORMCREATE,  line 186 of opkman_mainfrm.pas
  10.   $00430B5D  TCUSTOMFORM__DOCREATE,  line 939 of ./include/customform.inc
  11.   $0042EFAA  TCUSTOMFORM__AFTERCONSTRUCTION,  line 149 of ./include/customform.inc
  12.   $0043560E  TFORM__CREATE,  line 3151 of ./include/customform.inc
  13.   $00C82792  IDEMENUSECTIONCLICKED,  line 43 of onlinepackagemanagerintf.pas
  14.   $0072E0F9  TIDEMENUITEM__MENUITEMCLICK,  line 547 of menuintf.pas
  15.   $00730BC5  TIDEMENUCOMMAND__MENUITEMCLICK,  line 1705 of menuintf.pas
  16.   $0058C640  TMENUITEM__CLICK,  line 83 of ./include/menuitem.inc
  17.   $0058CCAF  TMENUITEM__DOCLICKED,  line 280 of ./include/menuitem.inc
  18.   $0040F251  TOBJECT__DISPATCH,  line 674 of c:/freepascal/fpc/trunk/rtl/inc/objpas.inc
  19.   $00542B7B  WINDOWPROC,  line 2676 of ./win32/win32callback.inc
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Online Package Manager
« Reply #1049 on: November 21, 2017, 02:26:24 pm »
In r56458 i get:
Code: Text  [Select][+][-]
  1. TApplication.HandleException Access violation
  2.   Stack trace:
  3.   $2234BF04
  4.   $00CA02B4  TUPDATES__CREATE,  line 247 of opkman_updates.pas
  5.   $00C82A79  TMAINFRM__STARTUPDATES,  line 199 of opkman_mainfrm.pas
  6.   $00C82972  TMAINFRM__FORMCREATE,  line 186 of opkman_mainfrm.pas
  7.   $00430B5D  TCUSTOMFORM__DOCREATE,  line 939 of ./include/customform.inc
  8.   $0042EFAA  TCUSTOMFORM__AFTERCONSTRUCTION,  line 149 of ./include/customform.inc
  9.   $0043560E  TFORM__CREATE,  line 3151 of ./include/customform.inc
  10.   $00C82782  IDEMENUSECTIONCLICKED,  line 43 of onlinepackagemanagerintf.pas
  11.   $0072E1A9  TIDEMENUITEM__MENUITEMCLICK,  line 547 of menuintf.pas
  12.   $00730C75  TIDEMENUCOMMAND__MENUITEMCLICK,  line 1705 of menuintf.pas
  13.   $0058C640  TMENUITEM__CLICK,  line 83 of ./include/menuitem.inc
  14.   $0058CCAF  TMENUITEM__DOCLICKED,  line 280 of ./include/menuitem.inc
  15.   $0040F251  TOBJECT__DISPATCH,  line 674 of c:/freepascal/fpc/trunk/rtl/inc/objpas.inc
  16.   $00542B7B  WINDOWPROC,  line 2676 of ./win32/win32callback.inc
  17.   $0064AFDD  CUSTOMFORMWNDPROC,  line 386 of ./win32/win32wsforms.pp
  18.   $7575E0BB
  19.   $75768849

I just start Lazarus and select menu "Package > Online Package Manger".
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

 

TinyPortal © 2005-2018