Skip to main content


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 08:18 Go to next message
Peter Gassner is currently offline Peter GassnerFriend
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 13:00 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
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


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Injection Error if grammer is inherited and referenced [message #1075364 is a reply to message #1074300] Mon, 29 July 2013 09:58 Go to previous message
Peter Gassner is currently offline Peter GassnerFriend
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: Tue Apr 23 08:23:48 GMT 2024

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

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

Back to the top