#255 Unable to open .pl files after installing plug-in

open
nobody
Editor (234)
8
2006-07-24
2006-04-12
No

I'm new to EPIC. After installing today in Eclipse v3.
1 via the URI for downloading/updating, I get the
following error message when I attempt to open a simple
Perl script (a typical /print "Hello world!\n";/
script).

How can I get EPIC working? Am I missing some third-
party plug-in(s)? I saw no indication of this in the
FAQ. Thanks in advance.

Here's the error I received:

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:281)
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.PartPane.
setVisible(PartPane.java:283)
at org.eclipse.ui.internal.presentations.
PresentablePart.setVisible(PresentablePart.java:126)
at org.eclipse.ui.internal.presentations.util.
PresentablePartFolder.select(PresentablePartFolder.
java:268)
at org.eclipse.ui.internal.presentations.util.
LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.
TabbedStackPresentation.
selectPart(TabbedStackPresentation.java:391)
at org.eclipse.ui.internal.PartStack.
refreshPresentationSelection(PartStack.java:1102)
at org.eclipse.ui.internal.PartStack.
setSelection(PartStack.java:1051)
at org.eclipse.ui.internal.PartStack.
showPart(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.
add(PartStack.java:442)
at org.eclipse.ui.internal.EditorStack.
add(EditorStack.java:109)
at org.eclipse.ui.internal.EditorSashContainer.
addEditor(EditorSashContainer.java:60)
at org.eclipse.ui.internal.EditorAreaHelper.
addToLayout(EditorAreaHelper.java:212)
at org.eclipse.ui.internal.EditorAreaHelper.
addEditor(EditorAreaHelper.java:202)
at org.eclipse.ui.internal.EditorManager.
createEditorTab(EditorManager.java:758)
at org.eclipse.ui.internal.EditorManager.
openEditorFromDescriptor(EditorManager.java:665)
at org.eclipse.ui.internal.EditorManager.
openEditor(EditorManager.java:628)
at org.eclipse.ui.internal.WorkbenchPage.
busyOpenEditorBatched(WorkbenchPage.java:2360)
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:843)
at org.eclipse.swt.widgets.Display.
runDeferredEvents(Display.java:3080)
at org.eclipse.swt.widgets.Display.
readAndDispatch(Display.java:2713)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.
invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown
Source)
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)

Discussion

1 2 3 4 > >> (Page 1 of 4)
    • labels: --> 510337
    • priority: 5 --> 7
     
  • Jan Ploski
    Jan Ploski
    2006-04-13

    Logged In: YES
    user_id=86907

    You should mention which version of EPIC and your platform.
    These days, you should be using 0.3.12 or even the
    unofficial epic-devel version.

     
  • Logged In: YES
    user_id=621016

    Well, that would be version 0.3.12, which I just downloaded
    from the web site.

    I asked around in IRC and it seems a lot of people have
    given up completely on EPIC because they have the same
    problems getting it working as well.

    Any suggestions for getting EPIC working would be greatly
    appreciated as I'd like to use Eclipse for my coding work so
    that I won't be stuck using Windows; EPIC seems to provide
    the same functionality that I get from my current editor
    (which only runs on Windows and OS/2).

    Thanks in advance.

     
  • Jan Ploski
    Jan Ploski
    2006-04-13

    Logged In: YES
    user_id=86907

    Some suggestions:

    1. Try replacing your EPIC installation with the plugins
    packaged in

    http://e-p-i-c.sf.net/downloads/epic-devel.zip

    and see if it works.

    2. Post the content of your workspace/.metadata/.log and
    steps to reproduce this bug (for example, whether you are
    opening a file within a Perl project or a file external to
    the workspace). The above mentioned version has an improved
    error reporting in the relevant class (FileUtilities).

     
  • Stefan Scheid
    Stefan Scheid
    2006-04-27

    Logged In: YES
    user_id=1319989

    I'm using Eclipse 3.1.2 with WST package and Spring IDE.

    EPIC 0.3.0 crashes, and the recommended devel-zip isnt even
    recognized after installation ... so cant use epic any more

     
  • Jan Ploski
    Jan Ploski
    2006-04-27

    Logged In: YES
    user_id=86907

    Are you sure you followed the installation instructions in
    README.txt of epic-devel.zip? As usual, workspace/.metadata
    /.log may contain clues about why it is not "recognized".
    Maybe starting Eclipse with the command line parameter "-
    clean" will help.

     
  • Logged In: NO

    I get exactly the same error.

     
  • DoodmanEMU
    DoodmanEMU
    2006-05-24

    Logged In: YES
    user_id=1113174

    I get this error as well, but I just tried something now.

    If you open a .pl file within a project, it works fine.
    Opening a file that is not inside of a project errors out
    and won't open it.

    I'm on:
    Eclipse SDK
    Version: 3.1.2
    Build id: Gentoo Linux eclipse-sdk-3.1.2-r2

    I installed EPIC 0.3.12 and then (in trying to get it to
    work) overlayed it with the contents of from epic-devel.

    Hope this helps.

     
  • Jan Ploski
    Jan Ploski
    2006-05-24

    Logged In: YES
    user_id=86907

    doodmanemu, can you
    1. Create a file /tmp/x.pl
    2. Remove org.epic.* from Eclipse's plugins directory
    3. Unzip epic-devel there (not overlay)
    4. Start Eclipse with the command-line option "-clean"
    5. Open the file using "File/Open File..."
    and still reproduce this error?

     
  • DoodmanEMU
    DoodmanEMU
    2006-05-24

    Logged In: YES
    user_id=1113174

    I also notice this.

    If you switch the the perl perspective by hand first, you
    can open files outside of your project just fine.

    Window->Open Perspective->Other... And choose perl

     
1 2 3 4 > >> (Page 1 of 4)