Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Injection Error if grammer is inherited and referenced(Xmi file not found of referenced grammar)
Injection Error if grammer is inherited and referenced [message #1074172] Fri, 26 July 2013 04:18 Go to next message
Peter Gassner is currently offline Peter Gassner
Messages: 4
Registered: July 2013
Junior Member
Hi All,

if I create a grammar, which inheritance a grammar and references the same to build rules like this

grammar com.MyDslB with com.MyDslA

import "http://www.eclipse.org/MyDslA as a

Rule:
  type = (Ref | New)
;

Ref: 'ref' ref=[a::RuleA];

New: new= RuleA


the generation works perfect and in the editor code completion etc. works, but I get following injections error, where an xmi file from grammar a is not found (See uploaded file)

Re: Injection Error if grammer is inherited and referenced [message #1074300 is a reply to message #1074172] Fri, 26 July 2013 09:00 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6213
Registered: July 2009
Senior Member
So is a on the class path of b and b.ui?

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Re: Injection Error if grammer is inherited and referenced [message #1075364 is a reply to message #1074300] Mon, 29 July 2013 05:58 Go to previous message
Peter Gassner is currently offline Peter Gassner
Messages: 4
Registered: July 2013
Junior Member
Yes it is. I found the error now. There was some strange behavior with project a. I deleted project a and a.ui and generated the projects again and everything is ok now.
Previous Topic:Xtext architecture
Next Topic:Illegal escape character in json grammar for character that is in the grammar
Goto Forum:
  


Current Time: Fri Aug 22 13:55:09 EDT 2014

Powered by FUDForum. Page generated in 0.02069 seconds