Community
Participate
Working Groups
MyEPackage not yet available when injector is created. This is a problem because in AbstractMyJavaValidator.getEPackages() tries to fetch it from the registry. However, in MyStandaloneSetupGenerated the injector is clearly created before the EPackage is registered. AbstractMyJavaValidator.getEPackages() is executed while the injector is created because validators are bound eagerly.
see also https://github.com/merks/Xcore/commit/8f1ae627bd569afa70a2123e4d0f13d615b36663
We should keep this in mind for the redesigned validation infrastructure.
We won't (as I don't see how) fix it for the current validation infrastructure. And if we come up with something new, it should be defined for the language (as every other service) not for the EPackage. So it won't be an issue at all.