Lazarus

Programming => Networking and Web Programming => Topic started by: minko on April 17, 2021, 07:53:01 pm

Title: [SOLVED] Rest DW not matching elements in DefaultFieldClasses
Post by: minko on April 17, 2021, 07:53:01 pm
Hello.
Any suggestion how to fix this error?

Quote
Messages, Warnings: 1
Warning: output directory of resteasyobjectscore 1.9.6.9 contains Pascal unit source "CSP.pas"
Compile package resteasyobjectscore 1.9.6.9: Exit code 1, Errors: 1, Hints: 4
Hint: Start of reading config file /home/milan/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Hint: End of reading config file /home/milan/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.cfg
Verbose: Free Pascal Compiler version 3.3.1-r48887 [2021/03/06] for x86_64
Verbose: Copyright (c) 1993-2021 by Florian Klaempfl and others
Verbose: Target OS: Linux for x86-64
Verbose: Compiling resteasyobjectscore.pas
Verbose: Compiling /home/milan/fpcupdeluxe/lazarus/components/RestDH2773/Source/uRESTDWBase.pas
Verbose: Compiling /home/milan/fpcupdeluxe/lazarus/components/RestDH2773/Source/libs/uDWConstsData.pas
Verbose: Compiling /home/milan/fpcupdeluxe/lazarus/components/RestDH2773/Source/Memdataset/uDWDataset.pas
uDWDataset.pas(880,14) Note: Virtual method "SetFieldData(TField;Pointer);" has a lower visibility (protected) than parent class TDataSet (public)
uDWDataset.pas(1042,14) Note: Virtual method "Loaded;" has a lower visibility (protected) than parent class TDWCustomDataSet (public)
uDWDataset.pas(1148,68) Error: Expected another 6 array elements
uDWDataset.pas(1216,1) Verbose: There were 1 errors compiling module, stopping
Verbose: Compilation aborted
Verbose: /home/milan/fpcupdeluxe/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode

THX

RestDW trunk-2773
OS: Fedora
Lazarus v2.1
fpc v3.3.1
Title: Re: Rest DW not matching elements in DefaultFieldClasses
Post by: Gustavo 'Gus' Carreno on April 17, 2021, 09:14:48 pm
Hey Minko,

Any suggestion how to fix this error?
[snip]
uDWDataset.pas(1148,68) Error: Expected another 6 array elements

I had to report this same exact error to ZEOS.

Somewhere in the near past, either FPC or Lazarus trunk(Sorry don't remember which) as added 6 more field types under a unit that lists all the different types of fields.

So any package that deals with Database fields and has not updated to accommodate this recent change, needs to do so.

I suggest you report this on the project's issue tracker and then wait.

If you're too impatient, just do like me while I was waiting for ZEOS to update:
The unit that is mentioned in the error(uDWDataset.pas on or around line 1148) is missing 6 items, so add 6 more items of ftUnknown(I think that's it, not sure now, very bad memory).

At least it will compile until the author catches up.
Then, when it catches up, just update and it should compile no biggy!!

Cheers,
Gus
Title: [Solved] Re: Rest DW not matching elements in DefaultFieldClasses
Post by: minko on April 17, 2021, 10:16:56 pm
OK. I will do it so too %). Thank You Gus.
Title: Re: [Solved] Re: Rest DW not matching elements in DefaultFieldClasses
Post by: Gustavo 'Gus' Carreno on April 18, 2021, 06:46:47 am
Hey Minko,

OK. I will do it so too %). Thank You Gus.

Quite Welcome.

Cheers,
Gus
TinyPortal © 2005-2018