(core): false positive in check_xml_dependencies
Summary
After sight 21.0 update, sheldon report false positive about missing requirements in an AppConfig in those two cases:
- use of a data/service defined in the same module
- can not determine the target name when a service is defined in an app module
Steps to reproduce
- Add a space in Tuto04MeshGenerator AppConfig
- Stage the plugin.xml
- Run sheldon
Relevant logs and/or screenshots
Before fixing anything:
*** [ERROR] Dependency missing in tutorials/cpp/Tuto04MeshGeneratorCpp/rc/plugin.xml :
Could not determine service target
***
After fixing 1) we face problem 2)
*** [ERROR] Dependency missing in tutorials/cpp/Tuto04MeshGeneratorCpp/rc/plugin.xml :
- an object or service from 'sight::data' is used but the module is missing from the 'CMakeLists.txt' requirements.
- an object or service from 'Tuto04MeshGeneratorCpp' is used but the module is missing from the 'CMakeLis
ts.txt' requirements.
***
After fixing 2), only this remains:
*** [ERROR] Dependency missing in tutorials/cpp/Tuto04MeshGeneratorCpp/rc/plugin.xml :
- an object or service from 'sight::data' is used but the module is missing from the 'CMakeLists.txt' requirements.
***
Which is a real error and is going to be fixed elsewhere
Edited by Flavien BRIDAULT