dslmeinte/LessCss — Issue #1: Unhandled selector definition
Author: depsypher
Created: 2012-01-27 21:49:55+00:00
State: open

The following (sucky) selector definition causes an uncaught exception that makes the editor fail to render at all:

.wrapper header form {
height: 1.7em;
}

eclipse.buildId=M20110909-1335
java.version=1.6.0_29
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/rvanderborght/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/rvanderborght/.eclipse_keyring -showlocation

Error
Fri Jan 27 13:42:26 PST 2012
An internal error occurred during: "XtextReconcilerJob".

org.eclipse.xtext.parser.ParseException: org.eclipse.xtext.conversion.ValueConverterException: nl.dslmeinte.xtext.css.css.impl.DescendantCombinatorImpl cannot be cast to nl.dslmeinte.xtext.css.css.SimpleSelectorSequence
at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(AbstractAntlrParser.java:105)
at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.parse(AbstractAntlrParser.java:84)
at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(AbstractAntlrParser.java:62)
at org.eclipse.xtext.parser.AbstractParser.parse(AbstractParser.java:27)
at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResource.java:156)
at org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLoad(LazyLinkingResource.java:70)
at org.eclipse.xtext.resource.XtextResource.reparse(XtextResource.java:180)
at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.modify(XtextDocument.java:186)
at org.eclipse.xtext.ui.editor.model.XtextDocument.internalModify(XtextDocument.java:90)
at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.reconcile(XtextDocumentReconcileStrategy.java:33)
at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.run(XtextReconciler.java:239)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.emf.common.util.WrappedException: org.eclipse.xtext.conversion.ValueConverterException: nl.dslmeinte.xtext.css.css.impl.DescendantCombinatorImpl cannot be cast to nl.dslmeinte.xtext.css.css.SimpleSelectorSequence
at org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.parse(AbstractInternalAntlrParser.java:551)
at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(AbstractAntlrParser.java:102)
... 11 more
Caused by: org.eclipse.xtext.conversion.ValueConverterException: nl.dslmeinte.xtext.css.css.impl.DescendantCombinatorImpl cannot be cast to nl.dslmeinte.xtext.css.css.SimpleSelectorSequence
at org.eclipse.xtext.parser.DefaultEcoreElementFactory.set(DefaultEcoreElementFactory.java:80)
at org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.forceCreateModelElementAndSet(AbstractInternalAntlrParser.java:637)
at nl.dslmeinte.xtext.less.parser.antlr.internal.InternalLessParser.ruleCombinatorExpression(InternalLessParser.java:5657)
at nl.dslmeinte.xtext.less.parser.antlr.internal.InternalLessParser.ruleSelector(InternalLessParser.java:5468)
at nl.dslmeinte.xtext.less.parser.antlr.internal.InternalLessParser.ruleExtendedRuleSet(InternalLessParser.java:995)
at nl.dslmeinte.xtext.less.parser.antlr.internal.InternalLessParser.ruleStatement(InternalLessParser.java:422)
at nl.dslmeinte.xtext.less.parser.antlr.internal.InternalLessParser.ruleLessFile(InternalLessParser.java:243)
at nl.dslmeinte.xtext.less.parser.antlr.internal.InternalLessParser.entryRuleLessFile(InternalLessParser.java:185)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.parse(AbstractInternalAntlrParser.java:528)
... 12 more
Caused by: java.lang.ClassCastException: nl.dslmeinte.xtext.css.css.impl.DescendantCombinatorImpl cannot be cast to nl.dslmeinte.xtext.css.css.SimpleSelectorSequence
at nl.dslmeinte.xtext.css.css.impl.DescendantCombinatorImpl.eSet(DescendantCombinatorImpl.java:266)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1081)
at org.eclipse.xtext.parser.DefaultEcoreElementFactory.set(DefaultEcoreElementFactory.java:69)
... 23 more