Describe the bug
A file where a segment group includes segment groups before they are defined in the file is valid NeuroML, but the validator reports that they're not defined, probably because it doesn't do a full pass of the doc before running tests.
To Reproduce
On the attached NML file, run jnml -validate.
Expected behavior
it should validate correctly
Observed behavior
Does not validate correctly
System information:
OS: [e.g. iOS]: Fedora Linux
Java version (java -version): java version "11.0.4" 2019-07-16 LTS
Version of tools in use (from jnml -h): jNeuroML v0.10.3
$ jnml -validate ./olm.cell.nml
jNeuroML v0.10.3
Validating: /home/asinha/./olm.cell.nml
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/usr/share/java/jNeuroML-0.10.3.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Valid against schema
Test: 10005 (Segment Group used in the include element of segmentGroup should exist) failed! ... SegmentGroup: soma_group, includes: soma_0
Test: 10005 (Segment Group used in the include element of segmentGroup should exist) failed! ... SegmentGroup: axon_group, includes: axon_0
Test: 10005 (Segment Group used in the include element of segmentGroup should exist) failed! ... SegmentGroup: dendrite_group, includes: dend_0
Test: 10005 (Segment Group used in the include element of segmentGroup should exist) failed! ... SegmentGroup: dendrite_group, includes: dend_1
Describe the bug A file where a segment group includes segment groups before they are defined in the file is valid NeuroML, but the validator reports that they're not defined, probably because it doesn't do a full pass of the doc before running tests.
To Reproduce On the attached NML file, run
jnml -validate
.Expected behavior it should validate correctly
Observed behavior Does not validate correctly
System information:
java -version
):java version "11.0.4" 2019-07-16 LTS
jnml -h
):jNeuroML v0.10.3
Additional context
gives:
(and other errors about missing include files.