If the order of loading/resolving is as above everything works fine. But if the order is augment-sub0.yang, augment-super.yang, augment-sub1.yang a linking error is reported Couldn't resolve reference to SchemaNode 'interfaces'.
interfaces is a container inside the augment-sub0 file.
I suppose this is because:
When inside augment-sub0first the belongs-to: augment-super is resolving, inside augment-super we have two includes to augment-sub0 and augment-sub1. augment-sub1 belongs to augment-super and includes augment-sub0
That complex constellation seem to be a valid case (I suppose it is because inside a test) and should work independent of resolution/loading order
Following files are involved: https://github.com/theia-ide/yang-lsp/blob/master/yang-lsp/io.typefox.yang.ide/src/test/resources/good/augment-super.yang https://github.com/theia-ide/yang-lsp/blob/master/yang-lsp/io.typefox.yang.ide/src/test/resources/good/augment-sub1.yang https://github.com/theia-ide/yang-lsp/blob/master/yang-lsp/io.typefox.yang.ide/src/test/resources/good/augment-sub0.yang
If the order of loading/resolving is as above everything works fine. But if the order is augment-sub0.yang, augment-super.yang, augment-sub1.yang a linking error is reported
Couldn't resolve reference to SchemaNode 'interfaces'.
interfaces
is a container inside theaugment-sub0
file.I suppose this is because: When inside
augment-sub0
first thebelongs-to: augment-super
is resolving, insideaugment-super
we have two includes toaugment-sub0
andaugment-sub1
.augment-sub1
belongs toaugment-super
and includesaugment-sub0
That complex constellation seem to be a valid case (I suppose it is because inside a test) and should work independent of resolution/loading order