Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [XCore] .xcore header comments parsing problem(Problem while using header using /* */ format.)
[XCore] .xcore header comments parsing problem [message #1790172] Wed, 06 June 2018 12:38 Go to next message
Regent LArcheveque is currently offline Regent LArchevequeFriend
Messages: 79
Registered: May 2010
Member
Hi,

I try to upgrade our plugins (highly based on xcore) to Eclipse Oxygen. I notice a change of behaviour on the EMF code generation that causes problem. After few investigation, I realize the way XCore parse the meta-model (.xcore) has troubles with comments with /* */ format at the beginning of the .xcore file. Indeed if I have the following header:
/*
 * Few Comments
 */
@GenModel(prefix="Prefix", modelName="ModelName")
@GenModel(modelDirectory="/test/src-generated")
@GenModel(editDirectory="/test.edit/src-generated")

package test
class Test{
}


The .xcore is inconsistent and is unable to parse properly the @GenModel instructions.

If I remove the text in the header, everything is fine.
/*
 * 
 */
@GenModel(prefix="Prefix", modelName="ModelName")
@GenModel(modelDirectory="/test/src-generated")
@GenModel(editDirectory="/test.edit/src-generated")

package test
class Test{
}


Also, I checked if I use // comment symbol and it works:
//
// Few Comments 
//
@GenModel(prefix="Prefix", modelName="ModelName")
@GenModel(modelDirectory="/test/src-generated")
@GenModel(editDirectory="/test.edit/src-generated")

package test
class Test{
}


I use Oxygen latest version.

Are you aware of this issue? I can raise a bug as your convenience.

Regent ;-)
Re: [XCore] .xcore header comments parsing problem [message #1790187 is a reply to message #1790172] Wed, 06 June 2018 17:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29545
Registered: July 2009
Senior Member
This should be fixed in the Photon version. You can update from http://download.eclipse.org/modeling/emf/emf/builds/milestone/latest to confirm that.
Re: [XCore] .xcore header comments parsing problem [message #1790189 is a reply to message #1790187] Wed, 06 June 2018 18:13 Go to previous message
Regent LArcheveque is currently offline Regent LArchevequeFriend
Messages: 79
Registered: May 2010
Member
Great. Thanks. I'll make a try.
Previous Topic:[Xcore] Reference properties are always unique in Ecore derived from Xcore
Next Topic:Cycle in EMF SDK p2
Goto Forum:
  


Current Time: Sun Sep 23 00:12:33 GMT 2018

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

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

Back to the top