Recent

Author Topic: [SOLVED] Rest DW not matching elements in DefaultFieldClasses  (Read 291 times)

minko

  • New member
  • *
  • Posts: 6
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
« Last Edit: April 17, 2021, 10:18:54 pm by minko »

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 510
  • Professional amateur ;-P
Re: Rest DW not matching elements in DefaultFieldClasses
« Reply #1 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
Lazarus 2.1.0(trunk) FPC 3.3.1(trunk) Ubuntu 20.10 64b Dark Theme
Lazarus 2.0.12(stable) FPC 3.2.0(stable) Ubuntu 20.10 64b Dark Theme
http://github.com/gcarreno

minko

  • New member
  • *
  • Posts: 6
[Solved] Re: Rest DW not matching elements in DefaultFieldClasses
« Reply #2 on: April 17, 2021, 10:16:56 pm »
OK. I will do it so too %). Thank You Gus.

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 510
  • Professional amateur ;-P
Re: [Solved] Re: Rest DW not matching elements in DefaultFieldClasses
« Reply #3 on: April 18, 2021, 06:46:47 am »
Hey Minko,

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

Quite Welcome.

Cheers,
Gus
Lazarus 2.1.0(trunk) FPC 3.3.1(trunk) Ubuntu 20.10 64b Dark Theme
Lazarus 2.0.12(stable) FPC 3.2.0(stable) Ubuntu 20.10 64b Dark Theme
http://github.com/gcarreno

 

TinyPortal © 2005-2018