Menu

EPIC problems in Eclipse 3.1.1 and 3.2M4

Help
2006-01-12
2013-05-20
  • Szymon Madej

    Szymon Madej - 2006-01-12

    Hello!

    Eclipse 3.1.1 (Official)
    Problem: Perl Editor crashing when trying to open *.pl files from disk (attached to epic_links on Package Explorer). Works good, when creating Perl Project, add empty file and copy-paste to Eclipse content from file opened in for example vim. Opening file attached to Perl Project
    Error message from Eclipse:
    Unable to create this part due to an internal error. Reason for the failure: Editor could not be initialized.

    java.lang.IllegalArgumentException
        at org.eclipse.ui.part.FileEditorInput.<init>(FileEditorInput.java:43)
        at org.epic.core.util.FileUtilities.getFileEditorInput(FileUtilities.java:77)
        at org.epic.perleditor.editors.PerlEditor.doSetInput(PerlEditor.java:342)
        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:778)
        at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
        at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
        at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
        at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:223)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2362)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2295)
        at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2287)
        at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2273)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2268)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2241)
        at org.eclipse.ui.internal.editors.text.OpenExternalFileAction.run(OpenExternalFileAction.java:129)
        at org.eclipse.ui.internal.editors.text.OpenExternalFileAction.run(OpenExternalFileAction.java:98)
        at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
        at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:223)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
        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:585)
        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)

    Version earlier to 0.3.12 doesn't work at all.
    ---

    Eclipse: 3.2M4 (Milestone build)
    All version of EPIC doesn't work. I've tried old stable 0.3.0 release but also tried 0.3.11 and 0.3.12, and in the end I was forced to downgrade to last official release of Eclipse 3.1.1

    Any help would be great (I'm now using Eclipse 3.1.1)
    Szymon

     
    • Jan Ploski

      Jan Ploski - 2006-01-13

      Report the 3.1.1 one as bug. Due to sloppy exception handling in org.epic.core.util.
      FileUtilities it's hard to identify the fault.

      It is not clear from your description (the "Opening file attached to Perl Project" part) whether the error occurs only when trying to open a linked external file or any Perl file, including ones in Perl projects located in the workspace.

       
    • Szymon Madej

      Szymon Madej - 2006-01-16

      Hello!
      Thanks for answer :-)

      Such error occurs only when opening external Perl file (via File->Open File...).

      Such procedure works without error:
      1. Create a new empty Perl project
      2. Add an empty Perl file to it
      3. Write it's content (or copy-paste it from external file). Save
      4. Close and reopen Eclipse (not needed)
      5. Open file via double-click on file, in Perl project located in workspace (shown in Package Explorer)

      Szymon

       
    • Paul Osmialowski

      I have this error too after I've updated to 3.2M4 (I needed that to have recent XUL plugin). Error occurs on opening perl files that are parts of my existing perl projects (files with .pl extension). That's annoying.

       
    • tinti

      tinti - 2006-03-18
       

Log in to post a comment.

MongoDB Logo MongoDB