Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Invalid character constant after succesful workflow-run
Invalid character constant after succesful workflow-run [message #1131337] Thu, 10 October 2013 12:31 Go to next message
Alexander R is currently offline Alexander RFriend
Messages: 211
Registered: July 2013
Senior Member
Hello everyone!
I'm new in the xtext section and have the following problems.
I'm writting a DSL for UML-Classdiagrams, so the users can create valid isntances of a UML-Classdiagram while using my generated DSL. To realize this I wrote a grammer which imports three other metamodels:



I register all the neccesary EPackages of the metamodels in the workflow file and add the required plugins in the MANIFEST.MF of my XText-Project, like it is mentioned in the Xtext-Documentation. But after a succesful worklflow-run I get the following strange error in the MydslSyntacticSequencer-Class:
"Invalid character constrait".
Maybe some of you may help me with this strange problem.

Here is a part of my worklflow-file with all my EPackageRegistrations and a screenshot of the error:

Workflow {
	bean = StandaloneSetup {
		scanClassPath = true
		platformUri = "${runtimeProject}/.."// The following two lines can be removed, if Xbase is not used.
		registerGeneratedEPackage = "org.eclipse.xtext.xbase.XbasePackage"
		registerGenModelFile = "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel"
		
		//register the EPackages for all used metamodels
		registerGeneratedEPackage = "org.eclipse.emf.ecore.EcorePackage"
		registerGeneratedEPackage = "org.eclipse.uml2.uml.UMLPackage"
		//uml types
		registerGeneratedEPackage = "org.eclipse.uml2.types.TypesPackage"
		
		
		registerGeneratedEPackage = "org.eclipse.emf.codegen.ecore.genmodel.GenModelPackage"
		registerGeneratedEPackage = "org.eclipse.uml2.codegen.ecore.genmodel.GenModelPackage"
		registerGenModelFile = "platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel"
		registerGenModelFile = "platform:/resource/org.eclipse.emf.codegen.ecore/model/GenModel.genmodel"
		registerGenModelFile = "platform:/resource/org.eclipse.uml2.uml/model/UML.genmodel"
		
		registerGenModelFile = "platform:/resource/org.eclipse.uml2.types/model/Types.genmodel"
		registerGenModelFile = "platform:/resource/org.eclipse.uml2.codegen.ecore/model/GenModel.genmodel"
		
		/*register the all neccesary URI mappings from platform-plugin
			to platform-resource for all used gemodels */
		uriMap = {
			from = "platform:/plugin/org.eclipse.emf.codegen.ecore/model/GenModel.genmodel"
			to = "platform:/resource/org.eclipse.emf.codegen.ecore/model/GenModel.genmodel"
		}
		uriMap = {
			from = "platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel"
			to = "platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel"
		}
		uriMap = {
			from = "platform:/plugin/org.eclipse.uml2.codegen.ecore/model/GenModel.genmodel"
			to = "platform:/resource/org.eclipse.uml2.codegen.ecore/model/GenModel.genmodel"
		}
		uriMap = {
			from = "platform:/plugin/org.eclipse.uml2.uml/model/UML.genmodel"
			to = "platform:/resource/org.eclipse.uml2.uml/model/UML.genmodel"
		}
		
		uriMap = {
			from = "platform:/plugin/org.eclipse.uml2.types.source/model/Types.genmodel"
			to = "platform:/resource/org.eclipse.uml2.types.source/model/Types.genmodel"
		}
		uriMap = {
			from = "platform:/plugin/org.eclipse.emf.codegen.ecore/model/GenModel.ecore"
			to = "platform:/resource/org.eclipse.emf.codegen.ecore/model/GenModel.ecore"
		}
		uriMap = {
			from = "platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore"
			to = "platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore"
		}
		uriMap = {
			from = "platform:/plugin/org.eclipse.uml2.codegen.ecore/model/GenModel.ecore"
			to = "platform:/resource/org.eclipse.uml2.codegen.ecore/model/GenModel.ecore"
		}
		uriMap = {
			from = "platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore"
			to = "platform:/resource/org.eclipse.uml2.uml/model/UML.ecore"
		}


	}
...


Screenshot of the error in MydslSyntacticSequencer-Class:
It is not possible to link to not eclipse.org sites! sorry!


Thanks a lot for your support,

Alex


Re: Invalid character constant after succesful workflow-run [message #1131425 is a reply to message #1131337] Thu, 10 October 2013 14:00 Go to previous message
Alexander R is currently offline Alexander RFriend
Messages: 211
Registered: July 2013
Senior Member
Problem Solved!

I had to remove following parts of my grammer:

('/*your documentation comment for a NamespaceClass*/')? 
..
('/*your documentation comment for a stubClass*/')?
...


These expressions should be comment-blocks in the generated DSL.

Best regards,

Alex

[Updated on: Thu, 10 October 2013 14:01]

Report message to a moderator

Previous Topic:Parsing double quotes
Next Topic:Assistance requested with very basic project
Goto Forum:
  


Current Time: Mon Jul 06 13:17:14 GMT 2020

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

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

Back to the top