GEOS icon indicating copy to clipboard operation
GEOS copied to clipboard

Schemas validity error : Element 'SymbolicFunction': This element is not expected

Open tao28005 opened this issue 2 years ago • 5 comments

Hello,

Compilation in release mode stopped with the following error messages:

codes/GEOS/examples/functions/function_examples/function_examples.xml:11: element SymbolicFunction: Schemas validity error : Element 'SymbolicFunction': This element is not expected. Expected is one of ( MultivariableTableFunction, TableFunction ).

Thanks

tao28005 avatar Oct 21 '24 10:10 tao28005

Same problem here... geos-error

rnelias avatar Nov 08 '24 09:11 rnelias

Also facing exact the same problem...

guydriesen avatar Nov 11 '24 22:11 guydriesen

@tao28005 @rnelias @guydriesen

This is a validation step, and the code should have already been built. Can you confirm this?

To work around this, I think you can install mathpresso in your TPL's if it already isn't there, and then turn it on inside your hostconfig. I believe the option is:

set( ENABLE_MATHPRESSO ON CACHE BOOL "" FORCE )

@CusiniM We either need to modify the quick-start-template.cmake file to turn this on, or remove the use from the xml file.

rrsettgast avatar Nov 12 '24 00:11 rrsettgast

@rrsettgast Thanks a lot! Yes, I started from the quick-start-template.cmake file and after enabling the mathpresso tpl compilation was successful. Removing the offending lines from the xml file also caused the src/coreComponents/schema/schema.xsd and src/coreComponents/schema/schema.xsd.other files to change during the compile process, so I was not sure if this was ok.

guydriesen avatar Nov 12 '24 12:11 guydriesen

@tao28005 @rnelias @guydriesen

This is a validation step, and the code should have already been built. Can you confirm this?

To work around this, I think you can install mathpresso in your TPL's if it already isn't there, and then turn it on inside your hostconfig. I believe the option is:

set( ENABLE_MATHPRESSO ON CACHE BOOL "" FORCE )

@CusiniM We either need to modify the quick-start-template.cmake file to turn this on, or remove the use from the xml file.

Mathpresso used not to work on MacOs which is why I had it off but we could turn it on now. Alternatively we could:

  • have an exclusions list when validating xmls with mathpresso off.
  • reorganize the cmake targets and avoid validating xml as part of the build but have it as a separate independent targe.
  • modify the error messages of that xml validation step. For the version of geos that was built (without mathpresso) that's indeed an invalid xml. The error could clarify why instead of resulting in an error that looks like a build failure.

CusiniM avatar Nov 12 '24 23:11 CusiniM