Editor could not be initialized

kitzykitt wrote on Thu Dec 29 23:15:21 CET 2005:
!SESSION 2005-12-29 14:49:29.763 -----------------------------------------------
eclipse.buildId=I20050627-1435
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86 -data /home/randerson/.eclipse

!ENTRY org.eclipse.ui 1 0 2005-12-29 14:49:32.857
!MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands'
and 'org.eclipse.ui.actionDefinitions' extension points.
!SUBENTRY 1 org.eclipse.ui 1 0 2005-12-29 14:49:32.857
!MESSAGE Commands should really have a category, not categoryId='': plug-in='org.epic.perleditor',
commandId='org.epic.perleditor.togglecomment'.
!SUBENTRY 1 org.eclipse.ui 1 0 2005-12-29 14:49:32.858
!MESSAGE Commands should really have a category, not categoryId='': plug-in='org.epic.perleditor',
commandId='org.epic.perleditor.contentassist'.
!SUBENTRY 1 org.eclipse.ui 1 0 2005-12-29 14:49:32.858
!MESSAGE Commands should really have a category, not categoryId='': plug-in='org.epic.perleditor',
commandId='org.epic.perleditor.htmlexport'.
!SUBENTRY 1 org.eclipse.ui 1 0 2005-12-29 14:49:32.858
!MESSAGE Commands should really have a category, not categoryId='': plug-in='org.epic.perleditor',
commandId='org.epic.perleditor.validatesyntax'.
!SUBENTRY 1 org.eclipse.ui 1 0 2005-12-29 14:49:32.858
!MESSAGE Commands should really have a category, not categoryId='': plug-in='org.epic.perleditor',
commandId='org.epic.perleditor.formatsource'.
!SUBENTRY 1 org.eclipse.ui 1 0 2005-12-29 14:49:32.858
!MESSAGE Commands should really have a category, not categoryId='': plug-in='org.epic.perleditor',
commandId='org.epic.perleditor.openDeclaration'.
!SUBENTRY 1 org.eclipse.ui 1 0 2005-12-29 14:49:32.859
!MESSAGE Commands should really have a category, not categoryId='': plug-in='org.epic.perleditor',
commandId='org.epic.perleditor.searchPerlDoc'.
!SUBENTRY 1 org.eclipse.ui 1 0 2005-12-29 14:49:32.859
!MESSAGE Commands should really have a category, not categoryId='': plug-in='org.epic.perleditor',
commandId='org.epic.perleditor.jump2Bracket'.

!ENTRY org.eclipse.ui 2 0 2005-12-29 14:49:32.997
!MESSAGE Warnings while parsing the key bindings from the 'org.eclipse.ui.commands'
extension point
!SUBENTRY 1 org.eclipse.ui 2 0 2005-12-29 14:49:32.998
!MESSAGE Cannot bind to an undefined command: plug-in='org.epic.perleditor',
commandId='org.epic.eclipse.perleditor.togglecomment'.

!ENTRY org.eclipse.ui 4 0 2005-12-29 14:49:37.753
!MESSAGE Unable to create editor ID org.epic.perleditor.editors.PerlEditor:
Editor could not be initialized.
!STACK 0
java.lang.NullPointerException
	at cbg.editor.jedit.CatalogReader.read(CatalogReader.java:31)
	at cbg.editor.Modes.loadCatalog(Modes.java:63)
	at cbg.editor.Modes.getModeList(Modes.java:56)
	at cbg.editor.Modes.filenameToModeName(Modes.java:41)
	at cbg.editor.Modes.getModeForFilename(Modes.java:35)
	at cbg.editor.Modes.getModeFor(Modes.java:29)
	at cbg.editor.ColoringPartitionScanner.(ColoringPartitionScanner.java:57)
	at cbg.editor.ColoringDocumentProvider.createPartitioner(ColoringDocumentProvider.java:34)
	at cbg.editor.ColoringDocumentProvider.initializeDocument(ColoringDocumentProvider.java:27)
	at cbg.editor.ColoringDocumentProvider.createDocument(ColoringDocumentProvider.java:21)
	at org.epic.perleditor.editors.PerlDocumentProvider.createDocument(PerlDocumentProvider.java:38)
	at org.eclipse.ui.editors.text.FileDocumentProvider.createElementInfo(FileDocumentProvider.java:679)
	at org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(AbstractDocumentProvider.java:398)
	at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:3008)
	at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:173)
	at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1303)
	at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:262)
	at org.epic.perleditor.editors.PerlEditor.doSetInput(PerlEditor.java:346)
	at org.eclipse.ui.texteditor.AbstractTextEditor$16.run(AbstractTextEditor.java:2360)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
	at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:624)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
	at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:621)
	at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2134)
	at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:2378)
	at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:2405)
	at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:773)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:572)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:365)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
	at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:258)
	at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1216)
	at org.eclipse.ui.internal.EditorManager$5.run(EditorManager.java:944)
	at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
	at org.eclipse.core.runtime.Platform.run(Platform.java:783)
	at org.eclipse.ui.internal.EditorManager.restoreState(EditorManager.java:939)
	at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2535)
	at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1819)
	at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:2566)
	at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2515)
	at org.eclipse.ui.internal.Workbench$19.run(Workbench.java:1514)
	at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:1263)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
	at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
	at org.eclipse.ui.internal.Workbench.runStartupWithProgress(Workbench.java:1258)
	at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1512)
	at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1491)
	at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1374)
	at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
	at org.eclipse.core.runtime.Platform.run(Platform.java:783)
	at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1318)
	at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:183)
	at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:700)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
	at org.eclipse.core.launcher.Main.run(Main.java:973)
	at org.eclipse.core.launcher.Main.main(Main.java:948)
jploski wrote on Fri Dec 30 00:49:20 CET 2005:
Looks like it can't read $ECLIPSE_HOME/plugins/org.epic.ext.cbg.editor_0.3.3/modes/catalog
for some reason (and does not report the problem properly). Find out why,
try EPIC 0.3.12 (testing) if you haven't already, or try the CVS version
(it does not have this problem).
kitzykitt wrote on Sat Dec 31 01:19:55 CET 2005:
I downloaded the projects from CVS and started building the plugins (following
directions from http://sourceforge.net/forum/message.php?msg_id=3398393
)

However, one project will not build :( org.epic.perleditor

The main error is:
The import org.epic.core.parser.PerlTokenTypes cannot be resolved	TasksReconciler.java
org.epic.perleditor/src/org/epic/perleditor/editors	line 13

Thanks for all your help!
jploski wrote on Sat Dec 31 01:50:53 CET 2005:
These directions are slightly outdated. You also need to install the ANTLR
plug-in for Eclipse:

http://antlreclipse.sourceforge.net

Then do Project/Clean... on the org.epic.perleditor project and rebuild.
The missing *.java files will be generated from the *.g files by the ANTLR
plug-in (and automatically compiled next).
kitzykitt wrote on Tue Jan  3 21:45:35 CET 2006:
This helped solve some of the issues, so I am posting it in case other people
run into the same problems.  Thanks :)

> if you look at line 60, it says I'm missing import 
> org.epic.core.parser.PerlTokenTypes .

This is caused by the missing ANTLR plug-in, see my SF reply.

> I can see how many of the error relate to this problem,
> however there are some other errors which don't make any
> sence on the list.  IE. and of the 
> text operators (== >= != etc.)

You may need to enable Java 1.4 so that the "assert" keyword
does not cause syntax errors. Either in project properties
("Java Compiler", JDK Compliance) or in general preferences
("Java/Compiler"). 

Regards,
JPL

Note: The above is an archived snapshot of a forum thread. Use the original thread at sf.net to post comments.