Can't install WST (Web Service Toolkit) lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- JD · 2012-10-01 10:47 Hi there everyone, I just downloaded the SVN version of the WST by Inoussa Ouedraogo from https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus- ccr/wst/trunk/. However I cannot install the package because of an error in pascal_parser_intf.pas. The error says C:\Lazarus\components_extra\Web ServiceToolkit\ws_helper\pascal_parser_intf.pas(556,18) Error: Incompatible types: got "TFPList" expected "TList" Code: [Select]function GetParameterIndex(         AProcType  : TPasProcedureType;   const AParamName : string;   const AStartPos  : Integer ) : Integer; var   pl : TList2;   i : Integer; begin   pl := AProcType.Args;                                    <====== ERROR OCCURS HERE   if ( AStartPos >= 0 ) then     i := AStartPos   else     i := 0;   for i := i to Pred(pl.Count) do begin     if AnsiSameText(AParamName,TPasArgument(pl[i]).Name) then begin       Result := i;       Exit;     end;   end;   Result := -1; end; Has anyone successfully installed the WST recently? JD Lazarus 1.1/FPC 2.6.1 svn 38818 on Win32 ---------------------------------------------------------------------- JD · 2012-10-02 16:35 Anyone. Anywhere? ---------------------------------------------------------------------- Phil · 2012-10-02 19:50 Quote from: JD on October 02, 2012, 06:35:44 pmAnyone. Anywhere?  Are you indeed using FPC 2.6.1? I would guess that you're stuck between versions. The conditional code in pascal_parser_intf.pas is defining wst_use_fplist if this is true: (FPC_VERSION = 2) and (FPC_RELEASE > 6) With 2.6.1, release should still be 6. Maybe the change of args from TList to TFPList in pasparser.pp (fcl_passrc) has been backported to 2.6.1 or something, thus breaking this code. Add something like this (not tested): (FPC_VERSION = 2) and (FPC_RELEASE = 6) and (FPC_PATCH > 0) And report this to WST forum so Innousa can fix it. Or use FPC 2.6.0 or trunk instead of 2.6.1. Thanks. -Phil ---------------------------------------------------------------------- BigChimp · 2012-10-03 02:08 Depending on the code (haven't looked at it), this may be a better fit to match 2.6.1, 2.6.2, 2.7.1, 2.8, 3.0 etc: Code: [Select]{$IF FPC_FULLVERSION>=20601} //FPC 2.6.1 or higher ---------------------------------------------------------------------- JD · 2012-10-03 15:38 I am indeed using FPC 2.6.1 because of issues I had with the fpspreadsheet package which threw up compiler errors on FPC 2.6.0 So I can't go back to FPC 2.6.0 ---------------------------------------------------------------------- Stephano · 2012-10-08 18:20 Check out these related bug reports: http://bugs.freepascal.org/view.php?id=22726 http://bugs.freepascal.org/view.php?id=22944 http://bugs.freepascal.org/view.php?id=22945 ---------------------------------------------------------------------- JD · 2012-10-09 16:04 Thanks for the links Stefano. Looks like I'll have to wait a while for the bugs to be sorted out. ---------------------------------------------------------------------- Phil · 2012-10-22 14:21 Quote from: JD on October 09, 2012, 06:04:11 pmThanks for the links Stefano. Looks like I'll have to wait a while for the bugs to be sorted out. I see from today's WST commits that the problem with TFPList should be fixed. Thanks. -Phil