Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Google Guice Exception starting my modelproject with XText2.0
Google Guice Exception starting my modelproject with XText2.0 [message #704308] Thu, 28 July 2011 13:38 Go to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 301
Registered: July 2009
Location: Germany
Senior Member
Hi,

I get the following Exception, when I start my xtext-plugins with XText 2.0.0...

1) No implementation for org.eclipse.xtext.parser.antlr.ITokenDefProvider annotated with @com.google.inject.name.Named(value=org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING) was bound.
while locating org.eclipse.xtext.parser.antlr.ITokenDefProvider annotated with @com.google.inject.name.Named(value=org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING)
for parameter 0 at org.eclipse.xtext.ui.editor.model.TokenTypeToStringMapper.setTokenDefProvider(TokenTypeToStringMapper.java:30)
at org.eclipse.xtext.ui.editor.model.TokenTypeToStringMapper.setTokenDefProvider(TokenTypeToStringMapper.java:30)
while locating org.eclipse.xtext.ui.editor.model.ITokenTypeToPartitionTypeMapper
for parameter 1 at org.eclipse.xtext.ui.editor.model.DocumentPartitioner.<init>(DocumentPartitioner.java:22)
at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:55)

2) No implementation for org.eclipse.xtext.parser.antlr.ITokenDefProvider annotated with @com.google.inject.name.Named(value=org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING) was bound.
while locating org.eclipse.xtext.parser.antlr.ITokenDefProvider annotated with @com.google.inject.name.Named(value=org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING)
for parameter 0 at org.eclipse.xtext.ui.editor.model.TokenTypeToStringMapper.setTokenDefProvider(TokenTypeToStringMapper.java:30)
at org.eclipse.xtext.ui.editor.model.TokenTypeToStringMapper.setTokenDefProvider(TokenTypeToStringMapper.java:30)
while locating org.eclipse.xtext.ui.editor.model.ITokenTypeToPartitionTypeMapper
for field at org.eclipse.xtext.ui.editor.model.PartitionTokenScanner.mapper(PartitionTokenScanner.java:34)
at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:55)

3) No implementation for org.eclipse.xtext.parser.antlr.ITokenDefProvider annotated with @com.google.inject.name.Named(value=org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING) was bound.
while locating org.eclipse.xtext.parser.antlr.ITokenDefProvider annotated with @com.google.inject.name.Named(value=org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.HIGHLIGHTING)
for parameter 0 at org.eclipse.xtext.ui.editor.model.TokenTypeToStringMapper.setTokenDefProvider(TokenTypeToStringMapper.java:30)
at org.eclipse.xtext.ui.editor.model.TokenTypeToStringMapper.setTokenDefProvider(TokenTypeToStringMapper.java:30)
while locating org.eclipse.xtext.ui.editor.syntaxcoloring.AbstractAntlrTokenToAttributeIdMapper
for field at org.eclipse.xtext.ui.editor.syntaxcoloring.TokenScanner.tokenIdMapper(TokenScanner.java:125)
at org.eclipse.xtext.service.MethodBasedModule.configure(MethodBasedModule.java:55)

3 errors
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:354)
at com.google.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:152)
at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:105)
at com.google.inject.Guice.createInjector(Guice.java:92)
at com.google.inject.Guice.createInjector(Guice.java:69)
at com.google.inject.Guice.createInjector(Guice.java:59)
at vsa.marvin.mod.common.ui.internal.MarvinCommonActivator.registerInjectorFor(MarvinCommonActivator.java:47)
at vsa.marvin.mod.common.ui.internal.MarvinCommonActivator.start(MarvinCommonActivator.java:38)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
... 149 more


Do you know if this due to a change in XText or Guice and how to solve this problem

Thank you

Best regards
Markus

[Updated on: Thu, 28 July 2011 13:39]

Report message to a moderator

Re: Google Guice Exception starting my modelproject with XText2.0 [message #704559 is a reply to message #704308] Thu, 28 July 2011 19:41 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13882
Registered: July 2009
Senior Member
Hi,

how does your wf look like?

from the generated runtime module of a newly created mydsl project
	// contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
	public Class<? extends org.eclipse.xtext.parser.antlr.ITokenDefProvider> bindITokenDefProvider() {
		return org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class;
	}


~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Invalid XML character (Unicode: 0x0) exception with xmlVersion 1.1 in Xtext2
Next Topic:Not resolving proxies after reloading model
Goto Forum:
  


Current Time: Wed Apr 14 09:27:57 GMT 2021

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

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

Back to the top