From 74eec3c4b17c589ffc8b2a5455280ea305f34068 Mon Sep 17 00:00:00 2001 From: Frederick Roy Date: Wed, 9 Sep 2026 15:21:16 +0900 Subject: [PATCH 1/2] add precision on message in requiredplugin --- .../Simulation/Core/src/sofa/simulation/RequiredPlugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sofa/framework/Simulation/Core/src/sofa/simulation/RequiredPlugin.cpp b/Sofa/framework/Simulation/Core/src/sofa/simulation/RequiredPlugin.cpp index a804cd092a0..96f7c88258d 100644 --- a/Sofa/framework/Simulation/Core/src/sofa/simulation/RequiredPlugin.cpp +++ b/Sofa/framework/Simulation/Core/src/sofa/simulation/RequiredPlugin.cpp @@ -152,9 +152,10 @@ bool RequiredPlugin::loadPlugin() if (entries.empty()) { - msg_warning() << "No component has been registered from " << name << ".\n" + msg_warning() << "No component has been registered from " << pluginFilePath << ".\n" << "It could be because: \n" << " - the entrypoint registerObjects() has not been implemented;\n" + << " - SOFA_TARGET has not been defined in the plugin;\n" << " - (deprecated since v24.12) no sofa::core::RegisterObject() has been called;\n" << " - your plugin does not add any component (i.e BaseObject) into the factory. In that case, RequiredPlugin is not useful for this kind of plugin."; } From d1be2893bfa529f2bf04b7d3b7f5af177fcbe176 Mon Sep 17 00:00:00 2001 From: Frederick Roy Date: Wed, 9 Sep 2026 15:32:45 +0900 Subject: [PATCH 2/2] rename BaseObject to BaseComponent --- .../Simulation/Core/src/sofa/simulation/RequiredPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sofa/framework/Simulation/Core/src/sofa/simulation/RequiredPlugin.cpp b/Sofa/framework/Simulation/Core/src/sofa/simulation/RequiredPlugin.cpp index 96f7c88258d..1d9eb4ba80f 100644 --- a/Sofa/framework/Simulation/Core/src/sofa/simulation/RequiredPlugin.cpp +++ b/Sofa/framework/Simulation/Core/src/sofa/simulation/RequiredPlugin.cpp @@ -157,7 +157,7 @@ bool RequiredPlugin::loadPlugin() << " - the entrypoint registerObjects() has not been implemented;\n" << " - SOFA_TARGET has not been defined in the plugin;\n" << " - (deprecated since v24.12) no sofa::core::RegisterObject() has been called;\n" - << " - your plugin does not add any component (i.e BaseObject) into the factory. In that case, RequiredPlugin is not useful for this kind of plugin."; + << " - your plugin does not add any component (i.e BaseComponent) into the factory. In that case, RequiredPlugin is not useful for this kind of plugin."; } if (d_stopAfterFirstSuffixFound.getValue()) break;