Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Content assist does not work
Content assist does not work [message #780242] Tue, 17 January 2012 12:46 Go to next message
Peter Johnsen is currently offline Peter JohnsenFriend
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 #780325 is a reply to message #780242] Tue, 17 January 2012 15:59 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 735
Registered: July 2009
Location: Dortmund, Germany
Senior Member

No Message Body

Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: Content assist does not work [message #780327 is a reply to message #780325] Tue, 17 January 2012 16:01 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 735
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Not really, but looks like Bug#356002. This is marked fixed for Eclipse 3.7.1. Are you using 3.7.0?

~Karsten


Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: Content assist does not work [message #780398 is a reply to message #780327] Tue, 17 January 2012 18:11 Go to previous messageGo to next message
Peter Johnsen is currently offline Peter JohnsenFriend
Messages: 60
Registered: January 2012
Member
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 23:32 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3108
Registered: July 2009
Senior Member
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 19:39 Go to previous messageGo to next message
Damian Gonzalez is currently offline Damian GonzalezFriend
Messages: 4
Registered: July 2011
Junior Member
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 13:43 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3108
Registered: July 2009
Senior Member
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 13:47 Go to previous messageGo to next message
Damian Gonzalez is currently offline Damian GonzalezFriend
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

Re: Content assist does not work [message #875919 is a reply to message #780242] Wed, 23 May 2012 14:57 Go to previous message
Damian Gonzalez is currently offline Damian GonzalezFriend
Messages: 4
Registered: July 2011
Junior Member
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: Wed Jul 15 09:56:44 GMT 2020

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

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

Back to the top