ROServiceImporter bug

the new version of “RO Service importer” on Mac when generate Xcode swift…

the code came out like below all Async function was missing the function name, that many redecoration error on Xcode, and I used the old version seems all right, please fix the bugs…

public func begin(_ module: Int32, _ iconNames: String!) → ROAsyncRequest! {

let ___localMessage: ROMessage! = (self.___message.copy() as! ROMessage)

___localMessage.initialize(asRequest: self.___clientChannel, libraryName: “NewLibrary”, interfaceName: self.__getActiveInterfaceName(), messageName: “getIconsInfo”)

___localMessage.writeInt32(module, withName: “module”)

___localMessage.writeWideString(iconNames, withName: “iconNames”)

___localMessage.finalizeMessage()

return self.___clientChannel.asyncDispatch(___localMessage, with: self, start: true)

}

@discardableResult

public func begin(_ module: Int32, _ iconNames: String!, start ___start: Bool) → ROAsyncRequest! {

let ___localMessage: ROMessage! = (self.___message.copy() as! ROMessage)

___localMessage.initialize(asRequest: self.___clientChannel, libraryName: “NewLibrary”, interfaceName: self.__getActiveInterfaceName(), messageName: “getIconsInfo”)

___localMessage.writeInt32(module, withName: “module”)

___localMessage.writeWideString(iconNames, withName: “iconNames”)

___localMessage.finalizeMessage()

return self.___clientChannel.asyncDispatch(___localMessage, with: self, start: ___start)

}

Jason,

I apologize for this; this codegen hasn’t really changed in a long time. may I ask what version you were using before, and what version you are using now? And could I possibly see the .RODL file you are using?

I’m afraid I cannot reproduce this with the .RODL files I tried I get all proper names, eg:

@interface HYAutoUpdateService_AsyncProxy : ROAsyncProxy

- (NSString *)__getInterfaceName;

- (ROAsyncRequest *)beginVerifyUpdateStatus:(NSString *)LastUpdateID;

- (ROAsyncRequest *)beginVerifyUpdateStatus:(NSString *)LastUpdateID start:(BOOL)___start;

- (ROAsyncRequest *)beginVerifyUpdateStatus:(NSString *)LastUpdateID startWithBlock:(void(^)(ROAsyncRequest *))___block;

- (THYUpdateStatus)endVerifyUpdateStatus:(ROAsyncRequest *)___asyncRequest :(NSString **)CurrentUpdateID :(NSString **)UserData;

- (ROAsyncRequest *)beginGetUpdatesInfo:(NSString *)UpdateID :(THYFileUpdateInfoArray *)ClientFiles;

- (ROAsyncRequest *)beginGetUpdatesInfo:(NSString *)UpdateID :(THYFileUpdateInfoArray *)ClientFiles start:(BOOL)___start;

- (ROAsyncRequest *)beginGetUpdatesInfo:(NSString *)UpdateID :(THYFileUpdateInfoArray *)ClientFiles startWithBlock:(void(^)(ROAsyncRequest *))___block;

- (THYFileUpdateInfoArray *)endGetUpdatesInfo:(ROAsyncRequest *)___asyncRequest;

- (ROAsyncRequest *)beginGetFileData:(THYFileUpdateInfo *)UpdateInfo :(int32)Offset :(int32)Count;

- (ROAsyncRequest *)beginGetFileData:(THYFileUpdateInfo *)UpdateInfo :(int32)Offset :(int32)Count start:(BOOL)___start;

- (ROAsyncRequest *)beginGetFileData:(THYFileUpdateInfo *)UpdateInfo :(int32)Offset :(int32)Count startWithBlock:(void(^)(ROAsyncRequest *))___block;

- (int32)endGetFileData:(ROAsyncRequest *)___asyncRequest :(NSData **)Data;

@end

paserver.rodl (5.3 KB)
Hi marc,
please check the file

I get

@interface svFiles_AsyncProxy : DataAbstractService_AsyncProxy

- (NSString *)__getInterfaceName;

- (ROAsyncRequest *)beginDeleteRemoteFile:(TFileInfo *)aFileInfo;

- (ROAsyncRequest *)beginDeleteRemoteFile:(TFileInfo *)aFileInfo start:(BOOL)___start;

- (ROAsyncRequest *)beginDeleteRemoteFile:(TFileInfo *)aFileInfo startWithBlock:(void(^)(ROAsyncRequest *))___block;

- (BOOL)endDeleteRemoteFile:(ROAsyncRequest *)___asyncRequest;

- (ROAsyncRequest *)beginGetIconsInfo:(int32)module :(NSString *)iconNames;

- (ROAsyncRequest *)beginGetIconsInfo:(int32)module :(NSString *)iconNames start:(BOOL)___start;

- (ROAsyncRequest *)beginGetIconsInfo:(int32)module :(NSString *)iconNames startWithBlock:(void(^)(ROAsyncRequest *))___block;

- (void)endGetIconsInfo:(ROAsyncRequest *)___asyncRequest :(TFileInfo **)fileInfo;

- (ROAsyncRequest *)beginDownloadFileBinary:(NSString *)RemoteFilePath :(int32)PartNo :(int32)PartSize;

- (ROAsyncRequest *)beginDownloadFileBinary:(NSString *)RemoteFilePath :(int32)PartNo :(int32)PartSize start:(BOOL)___start;

- (ROAsyncRequest *)beginDownloadFileBinary:(NSString *)RemoteFilePath :(int32)PartNo :(int32)PartSize startWithBlock:(void(^)(ROAsyncRequest *))___block;

- (void)endDownloadFileBinary:(ROAsyncRequest *)___asyncRequest :(NSData **)data;

- (ROAsyncRequest *)beginGetModuleIcons:(int32)module :(NSString *)number;

- (ROAsyncRequest *)beginGetModuleIcons:(int32)module :(NSString *)number start:(BOOL)___start;

- (ROAsyncRequest *)beginGetModuleIcons:(int32)module :(NSString *)number startWithBlock:(void(^)(ROAsyncRequest *))___block;

- (NSData *)endGetModuleIcons:(ROAsyncRequest *)___asyncRequest :(NSString **)fileInfo;

- (ROAsyncRequest *)beginDeleteImage:(int32)module :(NSString *)number :(NSString *)fieldName;

- (ROAsyncRequest *)beginDeleteImage:(int32)module :(NSString *)number :(NSString *)fieldName start:(BOOL)___start;

- (ROAsyncRequest *)beginDeleteImage:(int32)module :(NSString *)number :(NSString *)fieldName startWithBlock:(void(^)(ROAsyncRequest *))___block;

- (BOOL)endDeleteImage:(ROAsyncRequest *)___asyncRequest;

- (ROAsyncRequest *)beginDownloadImage:(int32)module :(NSString *)number :(NSString *)fieldName;

- (ROAsyncRequest *)beginDownloadImage:(int32)module :(NSString *)number :(NSString *)fieldName start:(BOOL)___start;

- (ROAsyncRequest *)beginDownloadImage:(int32)module :(NSString *)number :(NSString *)fieldName startWithBlock:(void(^)(ROAsyncRequest *))___block;

- (NSData *)endDownloadImage:(ROAsyncRequest *)___asyncRequest;

- (ROAsyncRequest *)beginGetUploadInfo:(TFileInfo *)aFileInfo :(NSString *)moduleName :(NSString *)number;

- (ROAsyncRequest *)beginGetUploadInfo:(TFileInfo *)aFileInfo :(NSString *)moduleName :(NSString *)number start:(BOOL)___start;

- (ROAsyncRequest *)beginGetUploadInfo:(TFileInfo *)aFileInfo :(NSString *)moduleName :(NSString *)number startWithBlock:(void(^)(ROAsyncRequest *))___block;

- (TFileInfo *)endGetUploadInfo:(ROAsyncRequest *)___asyncRequest;

- (ROAsyncRequest *)beginUploadFilePart:(TFileInfo *)aFileInfo :(int32)partNo :(int32)PartSize :(NSData *)data;

- (ROAsyncRequest *)beginUploadFilePart:(TFileInfo *)aFileInfo :(int32)partNo :(int32)PartSize :(NSData *)data start:(BOOL)___start;

- (ROAsyncRequest *)beginUploadFilePart:(TFileInfo *)aFileInfo :(int32)partNo :(int32)PartSize :(NSData *)data startWithBlock:(void(^)(ROAsyncRequest *))___block;

- (void)endUploadFilePart:(ROAsyncRequest *)___asyncRequest;

- (ROAsyncRequest *)beginUploadMessageFilePart:(TFileInfo *)aFileInfo :(int32)partNo :(int32)PartSize :(NSData *)data;

- (ROAsyncRequest *)beginUploadMessageFilePart:(TFileInfo *)aFileInfo :(int32)partNo :(int32)PartSize :(NSData *)data start:(BOOL)___start;

- (ROAsyncRequest *)beginUploadMessageFilePart:(TFileInfo *)aFileInfo :(int32)partNo :(int32)PartSize :(NSData *)data startWithBlock:(void(^)(ROAsyncRequest *))___block;

- (void)endUploadMessageFilePart:(ROAsyncRequest *)___asyncRequest;

- (ROAsyncRequest *)beginDownloadMessageFilePart:(NSString *)guid :(int32)PartNo :(int32)PartSize;

- (ROAsyncRequest *)beginDownloadMessageFilePart:(NSString *)guid :(int32)PartNo :(int32)PartSize start:(BOOL)___start;

- (ROAsyncRequest *)beginDownloadMessageFilePart:(NSString *)guid :(int32)PartNo :(int32)PartSize startWithBlock:(void(^)(ROAsyncRequest *))___block;

- (NSData *)endDownloadMessageFilePart:(ROAsyncRequest *)___asyncRequest;

@end

with that.

What version of the SDK are you using, and what tool/steps for the import? ROServiceImporter or rodl2code?

Here’s my generated files: Archive.zip (4.2 KB)

Hi mh,
I used the tools inside the Delphi tools . server builder. with the version 10.0.1495 .with same file I used the old version of the Mac client that work good but not the new version

Could you describe step-by-step what exactly you did?
This would greatly help us to reproduce and fix the issue

1 Like