[SOLVED] Rest DW not matching elements in DefaultFieldClasses lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- minko · 2021-04-17 17:53 Hello. Any suggestion how to fix this error? QuoteMessages, 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/RestDH27 73/Source/uRESTDWBase.pas Verbose: Compiling /home/milan/fpcupdeluxe/lazarus/components/RestDH27 73/Source/libs/uDWConstsData.pas Verbose: Compiling /home/milan/fpcupdeluxe/lazarus/components/RestDH27 73/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 ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2021-04-17 19:14 Hey Minko, Quote from: minko on April 17, 2021, 07:53:01 pmAny 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 ---------------------------------------------------------------------- minko · 2021-04-17 20:16 OK. I will do it so too . Thank You Gus. ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2021-04-18 04:46 Hey Minko, Quote from: minko on April 17, 2021, 10:16:56 pmOK. I will do it so too . Thank You Gus. Quite Welcome. Cheers, Gus