Content assist does not work [message #780242] |
Tue, 17 January 2012 12:46 |
Peter Johnsen Messages: 60 Registered: January 2012 |
Member |
|
|
Hi,
After an intensive Xtext week things are getting up and running. So far Xtext has worked nicely!
The only thing that remains is content assist, which does not work. My project has no errors and everything works as it should. However, when I press Ctrl + space in an attempt to bring up code suggestions, an exception is thrown (each time).
Does anyone have any idea why this happens?
java.lang.VerifyError: Inconsistent stackmap frames at branch target 173 in method com.model.generator.ui.contentassist.antlr.internal.InternalGeneratorParser.rule__NumericValue__Alternatives()V at offset 330
at com.model.generator.ui.contentassist.antlr.GeneratorParser.createParser(GeneratorParser.java:29)
at com.model.generator.ui.contentassist.antlr.GeneratorParser.createParser(GeneratorParser.java:1)
at org.eclipse.xtext.ui.editor.contentassist.antlr.AbstractContentAssistParser.getFollowElements(AbstractContentAssistParser.java:283)
at org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory$StatefulFactory.handleLastCompleteNodeIsAtEndOfDatatypeNode(ParserBasedContentAssistContextFactory.java:205)
at org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory$StatefulFactory.doCreateContexts(ParserBasedContentAssistContextFactory.java:156)
at org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory$StatefulFactory.create(ParserBasedContentAssistContextFactory.java:143)
at org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.create(ParserBasedContentAssistContextFactory.java:533)
at org.eclipse.xtext.ui.editor.contentassist.CompletionProposalComputer.exec(CompletionProposalComputer.java:48)
at org.eclipse.xtext.ui.editor.contentassist.CompletionProposalComputer.exec(CompletionProposalComputer.java:1)
[Updated on: Tue, 17 January 2012 12:47] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Content assist does not work [message #875304 is a reply to message #780242] |
Tue, 22 May 2012 13:47 |
Damian Gonzalez Messages: 4 Registered: July 2011 |
Junior Member |
|
|
FYI. This came up again recently. There are two primary ways to solve this:
1) If you have Java 1.7 installed, you need to use 1.6 in the "Compiler compliance level" via the following sequence in Eclipse
Window -> Preferences -> Java -> Compiler
2) Alternatively, you can just uninstall Java 1.7 and install 1.6 instead
www.oracle.com/technetwork/java/javase/downloads/jdk-6u32-downloads-1594644.html
[Updated on: Tue, 22 May 2012 15:06] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.05250 seconds