[antlr-interest] Q: Eclipse AntlrDT plugin - cannot open file
Austin Hastings
Austin_Hastings at Yahoo.com
Sat Aug 2 13:29:29 PDT 2008
I'm trying to get the certiv AntlrDT pluging up and running inside
Eclipse Ganymede. Presently when I try to open a .g3 file, I'm getting
an exception:
Could not open the editor: org.antlr.runtime.tree.CommonErrorNode cannot
be cast to net.certiv.antlrdt.core.parser.AstNode
I'm assuming that I've got some kind of configuration problem--maybe
something in the classpath that shouldn't be, or missing from the
classpath that should be there. If anyone has any insight, I'm needing it.
The trace looks like:
at
net.certiv.antlrdt.core.ast.AntlrModuleDeclaration.acceptAst(Unknown Source)
at net.certiv.antlrdt.core.parser.AntlrSourceParser.parse(Unknown
Source)
at
org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider.getCodeBlocks(AbstractASTFoldingStructureProvider.java:1133)
at
org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider.getCodeBlocks(AbstractASTFoldingStructureProvider.java:1128)
at
org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider.computeFoldingStructure(AbstractASTFoldingStructureProvider.java:764)
at
org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider.computeFoldingStructure(AbstractASTFoldingStructureProvider.java:756)
at
org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider.update(AbstractASTFoldingStructureProvider.java:688)
at
org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider.initialize(AbstractASTFoldingStructureProvider.java:652)
at
org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider.handleProjectionEnabled(AbstractASTFoldingStructureProvider.java:622)
at
org.eclipse.dltk.ui.text.folding.AbstractASTFoldingStructureProvider$ProjectionListener.projectionEnabled(AbstractASTFoldingStructureProvider.java:485)
at
org.eclipse.jface.text.source.projection.ProjectionViewer.fireProjectionEnabled(ProjectionViewer.java:480)
at
org.eclipse.jface.text.source.projection.ProjectionViewer.enableProjection(ProjectionViewer.java:528)
at
org.eclipse.dltk.internal.ui.editor.ScriptSourceViewer.setVisibleDocument(ScriptSourceViewer.java:564)
at org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2758)
at
org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:541)
at
org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:369)
at
org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:496)
at
org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:3807)
at
org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3363)
at
org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
at
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:394)
at
org.eclipse.dltk.internal.ui.editor.ScriptEditor.createPartControl(ScriptEditor.java:1876)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
Thanks,
=Austin
More information about the antlr-interest
mailing list