|Inconsistent stackmap frames error leading to broken code generation [message #893017]
||Mon, 02 July 2012 10:18
| Marcus Mathioudakis
Registered: June 2012
I encountered what appeared to be an instance of Bug 380313 which is marked as fixed. My grammar is the following:|
grammar org.xtext.example.hyrule.HyRule with org.eclipse.xtext.common.Terminals
// with org.eclipse.xtext.xbase.Xbase
generate hyRule "..."//You cannot use links until you have posted more than 25 messages
'FOR' 'PAYLOAD' PAYLOAD 'ELEMENTS' elements+=ID+ 'CONSTRAINED''BY'name=ID '!';
Which works fine, and with which code generation editor etc. all work. However as soon as I change
And fire up the generated IDE I get the Inconsistent stackmap frames at branch target error exactly as detaied in Bug 380313, as a result of which code generation and auto completion no longer work.
If I change the complier compliance level to 1.6, the afformentioned error goes away, and auto completion works, but the code generation still doens't work (no code is generated in src-gen).
I am using Xtext 2.3 installed from scratch, and java 7.
The build path for the xtext project is unmodified, and I've added the org.eclipse.xtext.xbase.lib_2.3.0.v201206120633.jar to the build path of the DSL project
(i.e. the one in the eclipse instance launched at runtime).
Any help would be much appreciated, I have been racking my brains trying to find the problem.
UPDATE: In the example above I was using the generator.xtend to generate code. If instead I use the JvmModelInferrer, then with compliance set to 1.7 I still get the error mentioned above, and autocompletion is completely broken, but code generation actually works. And of course in this case too, setting compliance level to 1.6 everything works fine. But surely I should be able to use the generator instead of the JvmModelInferrer, and not have to set the compiler compliance level t 1.6?
[Updated on: Mon, 02 July 2012 13:47]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.08140 seconds