I've generated the Java Main for parsing and generating code of my DSL. When I try to use it I have an error that seems it cannot load resources. I try yet with absolute path but it doesn't run. I don't make any changes in Xtext configuration file, so why have I this problem?
All exceptions are as follows:
Exception in thread "main" java.lang.RuntimeException: Cannot create a resource for 'Input\mydslfile.dsl'; a registered resource factory is needed
I try the fowlerdsl example and firstly doesn't run.
I use path made by finder, which use this slash "\" instead of "/" and this cause exception, changing it all run.
Maybe exception can be managed better or can be changed deprecated method "createURIWithCache" use in org.eclipse.emf.common.util.URI.
Thus, we can really understand error and don't be aimlessy.