Recent

Author Topic: Can't install WST (Web Service Toolkit)  (Read 8537 times)

JD

  • Hero Member
  • *****
  • Posts: 1913
Can't install WST (Web Service Toolkit)
« on: October 01, 2012, 12:47:41 pm »
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\WebServiceToolkit\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
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Can't install WST (Web Service Toolkit)
« Reply #1 on: October 02, 2012, 06:35:44 pm »
Anyone. Anywhere?  :(
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Can't install WST (Web Service Toolkit)
« Reply #2 on: October 02, 2012, 09:50:32 pm »
Anyone. 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

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Can't install WST (Web Service Toolkit)
« Reply #3 on: October 03, 2012, 04:08:38 am »
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
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Can't install WST (Web Service Toolkit)
« Reply #4 on: October 03, 2012, 05:38:21 pm »
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  ;)
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.


JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Can't install WST (Web Service Toolkit)
« Reply #6 on: October 09, 2012, 06:04:11 pm »
Thanks for the links Stefano. Looks like I'll have to wait a while for the bugs to be sorted out.
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Can't install WST (Web Service Toolkit)
« Reply #7 on: October 22, 2012, 04:21:02 pm »
Thanks 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

 

TinyPortal © 2005-2018