Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Update Error for Xtext 4.2.3
Update Error for Xtext 4.2.3 [message #1104998] Mon, 09 September 2013 07:53 Go to next message
junior developer is currently offline junior developerFriend
Messages: 335
Registered: January 2013
Senior Member
Hi all ,

I update my Xtext SDK 2.4.3

But I do not generate my grammar .I receive antrl error :can not find İnternalParser
Error is below :

Please use the ANTLR parser generator in version 2.1 or better
java.lang.IllegalStateException: Explicit encoding was set but is not supported by the available version of the AntlrToolRunner.
Please use the ANTLR parser generator in version 2.1 or better
at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:178)
at org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment.generate(XtextAntlrGeneratorFragment.java:47)
at org.eclipse.xtext.generator.CompositeGeneratorFragment.generate(CompositeGeneratorFragment.java:92)
at org.eclipse.xtext.generator.LanguageConfig.generate(LanguageConfig.java:113)
at org.eclipse.xtext.generator.Generator.generate(Generator.java:366)
at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:132)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
13677 [main] ERROR enerator.CompositeGeneratorFragment - Explicit encoding was set but is not supported by the available version of the AntlrToolRunner.
Please use the ANTLR parser generator in version 2.1 or better


Re: Update Error for Xtext 4.2.3 [message #1105779 is a reply to message #1104998] Tue, 10 September 2013 09:04 Go to previous messageGo to next message
Günther Fiedler is currently offline Günther FiedlerFriend
Messages: 21
Registered: February 2013
Junior Member
Hey,

i had the same problem. just delete the org.antlr.runtime in your workspace and reload it while generating the xtext artifacts.

kind regards.
Re: Update Error for Xtext 4.2.3 [message #1105870 is a reply to message #1105779] Tue, 10 September 2013 11:33 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 335
Registered: January 2013
Senior Member
Hi Günther,

I solved this problem with create a new project all over now I do not have an problem but there is epsilon error but not effect me now .thanks for reply

org.eclipse.emf.common.util.WrappedException: java.lang.ClassNotFoundException: org.eclipse.epsilon.emc.emf.virtual.VirtualPackage cannot be found by org.eclipse.epsilon.emc.emf.virtual_1.1.0.201308291543
	at org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor.getEPackage(RegistryReader.java:278)
	at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage(EPackageRegistryImpl.java:127)
	at org.eclipse.epsilon.concordance.reporter.metamodel.EPackageRegistryCache.getEPackage(EPackageRegistryCache.java:121)
	at org.eclipse.epsilon.concordance.reporter.metamodel.EPackageRegistryCache.refreshCurrentRegistry(EPackageRegistryCache.java:114)
	at org.eclipse.epsilon.concordance.reporter.metamodel.EPackageRegistryCache.<init>(EPackageRegistryCache.java:37)
	at org.eclipse.epsilon.concordance.reporter.metamodel.MetamodelChangeReporter.<init>(MetamodelChangeReporter.java:25)
	at org.eclipse.epsilon.concordance.dt.ConcordancePlugin.<init>(ConcordancePlugin.java:28)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)




Günther Fiedler wrote on Tue, 10 September 2013 12:04
Hey,

i had the same problem. just delete the org.antlr.runtime in your workspace and reload it while generating the xtext artifacts.

kind regards.
Re: Update Error for Xtext 4.2.3 [message #1121368 is a reply to message #1104998] Mon, 30 September 2013 14:53 Go to previous messageGo to next message
Peter Gassner is currently offline Peter GassnerFriend
Messages: 4
Registered: July 2013
Junior Member
Since Kepler SR1 is available I've the same problem with Tycho. Can anybody please help me?


[ERROR] 2391 [main] ERROR enerator.CompositeGeneratorFragment  - Explicit encoding was set but is not supported by the available version of the AntlrToolRunner.
[INFO] Please use the ANTLR parser generator in version 2.1 or better
[INFO] java.lang.IllegalStateException: Explicit encoding was set but is not supported by the available version of the AntlrToolRunner.
[INFO] Please use the ANTLR parser generator in version 2.1 or better
[ERROR] 	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:178)
[ERROR] 	at org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment.generate(XtextAntlrGeneratorFragment.java:47)
[ERROR] 	at org.eclipse.xtext.generator.CompositeGeneratorFragment.generate(CompositeGeneratorFragment.java:92)
[ERROR] 	at org.eclipse.xtext.generator.LanguageConfig.generate(LanguageConfig.java:113)
[ERROR] 	at org.eclipse.xtext.generator.Generator.generate(Generator.java:366)
[ERROR] 	at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:132)
[ERROR] 	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
[ERROR] 	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
[ERROR] 	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
[ERROR] 	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
[ERROR] 	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
[ERROR] 	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
[ERROR] 	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
[ERROR] 	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
[ERROR] 	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
[ERROR] 	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
[ERROR] 2486 [main] ERROR enerator.CompositeGeneratorFragment  - Explicit encoding was set but is not supported by the available version of the AntlrToolRunner.
[INFO] Please use the ANTLR parser generator in version 2.1 or better
[INFO] java.lang.IllegalStateException: Explicit encoding was set but is not supported by the available version of the AntlrToolRunner.
[INFO] Please use the ANTLR parser generator in version 2.1 or better
[ERROR] 	at org.eclipse.xtext.generator.parser.antlr.AntlrToolFacade.runWithEncodingAndParams(AntlrToolFacade.java:178)
[ERROR] 	at org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment.generate(XtextAntlrUiGeneratorFragment.java:85)
[ERROR] 	at org.eclipse.xtext.generator.CompositeGeneratorFragment.generate(CompositeGeneratorFragment.java:92)
[ERROR] 	at org.eclipse.xtext.generator.LanguageConfig.generate(LanguageConfig.java:113)
[ERROR] 	at org.eclipse.xtext.generator.Generator.generate(Generator.java:366)
[ERROR] 	at org.eclipse.xtext.generator.Generator.invokeInternal(Generator.java:132)
[ERROR] 	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
[ERROR] 	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
[ERROR] 	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
[ERROR] 	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
[ERROR] 	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
[ERROR] 	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
[ERROR] 	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
[ERROR] 	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
[ERROR] 	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
[ERROR] 	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
[INFO] 2486 [main] INFO  text.generator.junit.Junit4Fragment  - generating Junit4 Test support classes
[INFO] 2501 [main] INFO  text.generator.junit.Junit4Fragment  - generating Compare Framework infrastructure
[INFO] 2595 [main] INFO  .emf.mwe2.runtime.workflow.Workflow  - Done.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
Re: Update Error for Xtext 4.2.3 [message #1121372 is a reply to message #1121368] Mon, 30 September 2013 14:59 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
hi,

did you try to use the newer version of antlr?
Re: Update Error for Xtext 4.2.3 [message #1121978 is a reply to message #1121372] Tue, 01 October 2013 05:44 Go to previous messageGo to next message
Peter Gassner is currently offline Peter GassnerFriend
Messages: 4
Registered: July 2013
Junior Member
Hi Christian,

I use antlr 3.2.0 as prefered by itemis. Can you recommend a newer version?
Re: Update Error for Xtext 4.2.3 [message #1122103 is a reply to message #1121978] Tue, 01 October 2013 08:26 Go to previous messageGo to next message
Uli Merkel is currently offline Uli MerkelFriend
Messages: 135
Registered: June 2013
Senior Member
for me it looks like during the update process,
in the existing projects something is setting back the "would you like to download ANTLR .." decision.

IMHO, we would need some way to reset this decision
so the next time we run the MWE2 for the *.XTEXT,
we will be prompted again to download ANTLR

Because I had only 5 simple experiments on XTEXT,
I solved it with a new workspace, new projects, ...
Re: Update Error for Xtext 4.2.3 [message #1122129 is a reply to message #1122103] Tue, 01 October 2013 08:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
Hi

The downloaded file can be found in the project (if you did. Download it Once)
Re: Update Error for Xtext 4.2.3 [message #1122158 is a reply to message #1122129] Tue, 01 October 2013 09:27 Go to previous messageGo to next message
Uli Merkel is currently offline Uli MerkelFriend
Messages: 135
Registered: June 2013
Senior Member
Hi Christian,

but after I applied the update, I got for my existing projects (which had a downloaded ANTLR3)
the above error and the recommendation
[INFO] Please use the ANTLR parser generator in version 2.1 or better

so something in the update process messed up my once-it-worked projects
Re: Update Error for Xtext 4.2.3 [message #1122170 is a reply to message #1122158] Tue, 01 October 2013 09:38 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
Hi,

as i said: i think the expectation is to delete the downloaded file and redownload it. it searches for a file with name .antlr-generator-3.2.0.jar in the project.
alternatively you can install the antlr from http://download.itemis.de/updates/ and add it to your target platform.
Re: Update Error for Xtext 4.2.3 [message #1122226 is a reply to message #1122170] Tue, 01 October 2013 10:48 Go to previous message
Uli Merkel is currently offline Uli MerkelFriend
Messages: 135
Registered: June 2013
Senior Member
Hi Christian,

this is the solution I was looking for.

The jar is located directly in the project directory.
I was prompted for the download after re-running the MWE2.

Thanks for your help
Previous Topic:Customize the xtext editor itself
Next Topic:DSL file encoding
Goto Forum:
  


Current Time: Sun Dec 21 07:05:57 GMT 2014

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

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