You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* enable deprecation warnings for RegisterObject
* enable runtime deprecation warnings
* re enable disabled tests
* fix typo
* fix units tests
* expect a warning when loading pluginA
* load plugins once (avoiding registering several times)
* add more info when warning the user of a deprecated registration
* set warnings only if dev mode is enabled (SOFA_WITH_DEVTOOLS enabled)
* apply new mechanism registration to AugmentedLagrangianConstraint
Copy file name to clipboardExpand all lines: Sofa/Component/Constraint/Lagrangian/Model/src/sofa/component/constraint/lagrangian/model/AugmentedLagrangianConstraint.cpp
// msg_warning() << "No component has been registered from " << name << ".\n"
146
-
// << "It could be because: \n"
147
-
// << " - the entrypoint registerObjects() has not been implemented;\n"
148
-
// << " - (deprecated) no sofa::core::RegisterObject() has been called;\n"
149
-
// << " - 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.";
144
+
msg_warning() << "No component has been registered from " << name << ".\n"
145
+
<< "It could be because: \n"
146
+
<< " - the entrypoint registerObjects() has not been implemented;\n"
147
+
<< " - (deprecated since v24.12) no sofa::core::RegisterObject() has been called;\n"
148
+
<< " - 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.";
150
149
}
151
150
152
151
if (d_stopAfterFirstSuffixFound.getValue()) break;
TEST_F(RequiredPlugin_test, DISABLED_testLoadPluginA) { testLoadPluginA(); }// disabled because testLoadPluginA() should throw a warning (but this warning is commented for the moment)
122
-
TEST_F(RequiredPlugin_test, DISABLED_testLoadPluginB) { testLoadPluginB(); }// disabled because testLoadPluginB() should throw a warning (but this warning is commented for the moment)
@@ -104,21 +127,6 @@ class ParallelScenesTest : public virtual sofa::testing::BaseTest
104
127
const std::string sceneStr = R"(
105
128
<?xml version="1.0" ?>
106
129
<Node name="lroot" gravity="0 -9.81 0" dt="0.02">
107
-
<RequiredPlugin name="Sofa.Component.Collision.Detection.Algorithm"/> <!-- Needed to use components [BVHNarrowPhase BruteForceBroadPhase CollisionPipeline] -->
108
-
<RequiredPlugin name="Sofa.Component.Collision.Detection.Intersection"/> <!-- Needed to use components [DiscreteIntersection] -->
109
-
<RequiredPlugin name="Sofa.Component.Collision.Geometry"/> <!-- Needed to use components [SphereCollisionModel] -->
110
-
<RequiredPlugin name="Sofa.Component.Collision.Response.Contact"/> <!-- Needed to use components [CollisionResponse] -->
111
-
<RequiredPlugin name="Sofa.Component.Constraint.Projective"/> <!-- Needed to use components [FixedProjectiveConstraint] -->
112
-
<RequiredPlugin name="Sofa.Component.IO.Mesh"/> <!-- Needed to use components [MeshGmshLoader MeshOBJLoader SphereLoader] -->
113
-
<RequiredPlugin name="Sofa.Component.LinearSolver.Iterative"/> <!-- Needed to use components [CGLinearSolver] -->
114
-
<RequiredPlugin name="Sofa.Component.Mapping.Linear"/> <!-- Needed to use components [BarycentricMapping] -->
115
-
<RequiredPlugin name="Sofa.Component.Mass"/> <!-- Needed to use components [DiagonalMass] -->
116
-
<RequiredPlugin name="Sofa.Component.ODESolver.Backward"/> <!-- Needed to use components [EulerImplicitSolver] -->
117
-
<RequiredPlugin name="Sofa.Component.SolidMechanics.FEM.Elastic"/> <!-- Needed to use components [TetrahedralCorotationalFEMForceField] -->
118
-
<RequiredPlugin name="Sofa.Component.StateContainer"/> <!-- Needed to use components [MechanicalObject] -->
119
-
<RequiredPlugin name="Sofa.Component.Topology.Container.Dynamic"/> <!-- Needed to use components [TetrahedronSetGeometryAlgorithms TetrahedronSetTopologyContainer] -->
120
-
<RequiredPlugin name="Sofa.GL.Component.Rendering3D"/> <!-- Needed to use components [OglModel] -->
0 commit comments