Jump to content

Import RemObjects RODL fails


Recommended Posts

When importing this RODL file I get several issues:

 

Extra ';' is placed before the first function parameter:

 TADatoService_ResourcesWithCalendars_Result = procedure(
                        ; aResources: ResourceArray
                        ; aCalendars: CalendarArray
                        );

 

Syntax Error: Incompatible types: Cannot assign "Integer" to "TAccessRight" [line: 2919, column: 24, file: ADatoServiceServer_intf]

function AccessRight_Helper.GetEnumValue: TAccessRight;
begin
  Result := enumValues.IndexOf(Self.value);
end;

 

Any ideas?
 

ADatoServiceServer.zip

Link to post
Share on other sites
  • 1 month later...

Hm. That is odd.

It could be that our Remobjects codegen is due for an overhaul. There have probably been some changed to the RODL format that cause this.

The ";" in the parameter-list points to the codegen trying to read a parameter, but failing - leaving only a separator before it continued with the next.

 

Secondly, it seem odd that the codegen would perform an "indexof" something, and return the index rather than using the index to return the item in question. I would guess (without having looked at the RODL) that the code should look like something along these lines:

 

result := TAccessRight(enumvalues[enumvalues.indexof(self.value)]);

 

What version of Remobjects SDK are you using?

 

It may be prudent to create a test-server and slowly add features to establish what is actually broken?

From the looks of it, the error here seems to affect complex types -- so i would imagine that the format of complex types in the RODL file has changed between versions.

 

We will ofcourse take note of this and give it some attention, but if we could pinpoint what exactly fails that would make things easier.

For instance, does functions and procedures using only intrinsic datatypes work fine?

Does TAccessRight contain other datatypes other than intrinsic, or are there collections/arrays defined there?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...