Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Strange he path 'ControlFlow.irl' is unmapped
Strange he path 'ControlFlow.irl' is unmapped [message #1404203] Wed, 30 July 2014 12:06
Reiner Jung is currently offline Reiner JungFriend
Messages: 9
Registered: June 2010
Location: Uni Kiel
Junior Member
I've constructed an compiler with Xtext and Xtend which can be started from command line. While it worked perfectly in my test project, it failed with an IOException
The path '/Kieker/src/common/kieker/common/record/controlflow/ControlFlow.irl' is unmapped


After some debugging I was able to determine that this problem only occurs in projects where the main Eclipse project contains a sub-project. More precisely where there is a second .project file in any other folder of the main project.

Example directory layout:
kieker                        # main project folder
kieker/.project               # main project file
kieker/src/common             # source folder
kieker/src-gen/common         # source folder for generated code
kieker/examples/demo          # example application
kieker/examples/demo/.project # demo project file


The code used to parse and generate language artifacts is derived form http://davehofmann.de/blog/?tag=standalone as follows (simplified):

import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;

public class IRLParser {
	/** resource set for the compilation. */
	@Inject
	private XtextResourceSet resourceSet;

	public IRLParser(final String platformUri) {
		new org.eclipse.emf.mwe.utils.StandaloneSetup().setPlatformUri(platformUri);
		final Injector injector = Guice.createInjector(new RecordLangRuntimeModule());
		injector.injectMembers(this);
		this.resourceSet.addLoadOption(XtextResource.OPTION_RESOLVE_ALL, Boolean.TRUE);
	}

	public Resource getResource(final String projectName, final String pathName) {
		return this.resourceSet.getResource(URI.createURI("platform:/resource/" + projectName + "/" + pathName), true);
	}
}


My question is now: What could be the cause of this problem?

Thanks for any comments
Reiner
Previous Topic:Creating a wildcard reference
Next Topic:Inheriting grammar vs. reusing project
Goto Forum:
  


Current Time: Sat Dec 07 22:37:22 GMT 2019

Powered by FUDForum. Page generated in 0.01462 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top