COVESA / capicxx-someip-tools

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

SOMEIP validation #46

Closed nis77777 closed 7 months ago

nis77777 commented 7 months ago

i am following https://github.com/COVESA/capicxx-someip-tools/wiki/CommonAPI-C---SomeIP-in-10-minutes and while running below command ./cgen/commonapi_someip_generator/commonapi-someip-generator-linux-x86_64 -d src-gen/someip ./fidl/HelloWorld.fdepl

Getting below error Default output directory: src-gen/someip Using Franca Version 0.13.1.201807231814 log4j:WARN No appenders could be found for logger (org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Error: SomeIP validation: Couldn't resolve reference to FInterface 'commonapi.examples.HelloHelloWorld'. (file:/mnt/d/Nis-2023/IPC/project/./fidl/HelloWorld.fdepl line : 4 column : 61) Error: SomeIP validation: Couldn't resolve reference to FMethod 'sayHello'. (file:/mnt/d/Nis-2023/IPC/project/./fidl/HelloWorld.fdepl line : 7 column : 12) Error: SomeIP validation: Couldn't resolve reference to FArgument 'name'. (file:/mnt/d/Nis-2023/IPC/project/./fidl/HelloWorld.fdepl line : 12 column : 13) Error: SomeIP validation: Couldn't resolve reference to EObject 'utf16le'. (file:/mnt/d/Nis-2023/IPC/project/./fidl/HelloWorld.fdepl line : 13 column : 40) Error: SomeIP validation: Couldn't resolve reference to EObject 'commonapi.examples.HelloHelloWorld'. (file:/mnt/d/Nis-2023/IPC/project/./fidl/HelloWorld.fdepl line : 20 column : 14) Error: SomeIP validation: Invalid input argument '' (file:/mnt/d/Nis-2023/IPC/project/./fidl/HelloWorld.fdepl line : 12 column : 13) /mnt/d/Nis-2023/IPC/project/./fidl/HelloWorld.fdepl contains validation errors !

nis77777 commented 7 months ago

Please help

nis77777 commented 7 months ago

I think issue is with typo in file HelloWorld.fdepl interface commonapi.examples.HelloHelloWorld should be interface commonapi.examples.HelloWorld

and instance commonapi.examples.HelloHelloWorld should be instance commonapi.examples.HelloWorld

Can anyone confirm?

dibpinto commented 7 months ago

The Interface name was corrected to "HelloWorld". Please verify if it is working as expected now.

@goncaloalmeida @Gustavo1515

nis77777 commented 7 months ago

Typo is corrected and it now it is working as expected