COVESA / capicxx-someip-tools

Common API C++ SOMEIP tooling
Mozilla Public License 2.0
76 stars 55 forks source link

Cannot generate the stub and proxy code using the latest commonapi-someip-generator v3.2.0.1 in Windows and Linux #16

Closed rlokanathan closed 3 years ago

rlokanathan commented 3 years ago

Hi,

I saw it that yesterday, the latest generator were updated by the GENIVI team. I took both the commonapi-core-generator and also commonapi-someip-generator. Right now, I was able to use the commonapi-core-generator to generate my codes. However, when I try to use the commonapi-someip-generator, it shows validation error. The same .fdepl if I use it with the previos version of commonapi-someip-generator it works fine.

This is the exact message I am getting at the moment,


(commonapi-someip-generator-linux-x86_64:2147): dbind-WARNING **: 04:03:40.200: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Executing CommonAPI SomeIP Code Generation...

Using Franca Version 0.13.1.201807231814
Error: SomeIP validation: Couldn't resolve reference to EObject 'IncService'. (file:/home/user/work/INC/project-inc/./fidl/Inc.fdepl line : 24 column : 60)
Error: SomeIP validation: Root 'provider' must have a name (file:/home/user/work/INC/project-inc/./fidl/Inc.fdepl line : 24 column : 51)
/home/user/work/INC/project-inc/./fidl/Inc.fdepl contains validation errors !

Additionally, I just notice that the commonapi-someip-generator is not working in Windows as well.

rlokanathan commented 3 years ago

@lutzbichler could you please check on this issue, as I saw you updated the generators yesterday.

rlokanathan commented 3 years ago

I think I have resolve the issue. The issue is with the .fdepl. In the previous version generator the service is declared as

"... provider Service {" but in this latest release it has to be declared as " ... provider as Service"