Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Content assist does not work
Content assist does not work [message #780242] Tue, 17 January 2012 07:46 Go to next message
Eclipse UserFriend
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 07:47] by Moderator

Re: Content assist does not work [message #780325 is a reply to message #780242] Tue, 17 January 2012 10:59 Go to previous messageGo to next message
Eclipse UserFriend
No Message Body
Re: Content assist does not work [message #780327 is a reply to message #780325] Tue, 17 January 2012 11:01 Go to previous messageGo to next message
Eclipse UserFriend
Not really, but looks like Bug#356002. This is marked fixed for Eclipse 3.7.1. Are you using 3.7.0?

~Karsten
Re: Content assist does not work [message #780398 is a reply to message #780327] Tue, 17 January 2012 13:11 Go to previous messageGo to next message
Eclipse UserFriend
Karsten Thoms wrote on Tue, 17 January 2012 11:01
Not really, but looks like Bug#356002. This is marked fixed for Eclipse 3.7.1. Are you using 3.7.0?

~Karsten


I'm using 3.7.1, but it may be something related?
Re: Content assist does not work [message #780447 is a reply to message #780398] Tue, 17 January 2012 18:32 Go to previous messageGo to next message
Eclipse UserFriend
Yes, that looks like a compiler bug to me. Please file a ticket against
JDT with the generated parser attached.

Thanks,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 17.01.12 19:11, schrieb Peter Johnsen:
> Karsten Thoms wrote on Tue, 17 January 2012 11:01
>> Not really, but looks like Bug#356002. This is marked fixed for
>> Eclipse 3.7.1. Are you using 3.7.0?
>>
>> ~Karsten
>
>
> I'm using 3.7.1, but it may be something related?
Re: Content assist does not work [message #794853 is a reply to message #780447] Thu, 09 February 2012 14:39 Go to previous messageGo to next message
Eclipse UserFriend
We have seen exactly this error also. Have tried many different permutations of installation options.
Re: Content assist does not work [message #795457 is a reply to message #794853] Fri, 10 February 2012 08:43 Go to previous messageGo to next message
Eclipse UserFriend
Am 09.02.12 20:39, schrieb Damian Mising name:
> We have seen exactly this error also. Have tried many different
> permutations of installation options.

Suggestion's still true: Please file a ticket against JDT with the
generated parser attached.

Thanks,
Sebastian
Re: Content assist does not work [message #875304 is a reply to message #780242] Tue, 22 May 2012 09:47 Go to previous messageGo to next message
Eclipse UserFriend
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 11:06] by Moderator

Re: Content assist does not work [message #875919 is a reply to message #780242] Wed, 23 May 2012 10:57 Go to previous message
Eclipse UserFriend
I have logged the following bug for this.
bugs.eclipse.org/bugs/show_bug.cgi?id=380313
Previous Topic:buckminster build project
Next Topic:Xtend task tags
Goto Forum:
  


Current Time: Sat Jul 05 12:31:48 EDT 2025

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

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

Back to the top