#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 4 of 4)
  • doughnutty
    doughnutty
    2006-09-18

    Logged In: YES
    user_id=1600519

    Just to be really clear about the circumstances:

    1) It is possible to create a new *.pl file and edit it
    within this session.

    2) It is impossible to open an existing *.pl file no matter
    where it is located, inside the workspace or outside. This
    does NOT depend on how the file is opened as I tried double
    click, file open, import and every other option to open a
    file with the Perl editor and none worked.

    3) Eclipse -clean has been run a number of times with no
    real change.

    Regards Doug

    Regards Doug

     
  • doughnutty
    doughnutty
    2006-09-18

    Logged In: YES
    user_id=1600519

    The launch name "Perl Local" does not exist on my system.

    Regards Doug

     
  • doughnutty
    doughnutty
    2006-09-18

    Logged In: YES
    user_id=1600519

    Woooohoooooo!

    I have found at least part of the problem!

    Originally when I pointed the Eclipse updater at the EPIC
    site I used your suggested url ~/updates but this sat there
    for over an hour saying it was searching and so I canned the
    session and next time I linked to ~/updates-0.2.0 and this
    worked fine.

    It was a bit late (my excuse) and so I didn't read the
    pointer page very well and I thought that you guys had made
    a mistake in where you were pointing people and I thought I
    had the latest version of EPIC (obviously not).

    Somewhere along the way I found an error message that
    suggested that Eclipse needed the Apache Xerces module and
    so I downloaded that and things sort of worked.

    This brings us up to the point where I commented earlier.

    Having now revisted your site and re-read the download
    instructions I realised what the problem might be. I went
    back into Eclipse and did a Help/Update and re-pointed it to
    the ~/updates directory. This time it still took some time
    to search (about 10-15 minutes) but I was busy dealing with
    e-mail and so when I came back I found that this time it had
    worked using this link.

    Re-started Eclipse and the editor now works for Perl files.

    There are still a couple of things not right but I will go
    back to your documentation PDF and go back through the
    configuration sequence and see if that fixes everything else.

    More later ......

    Regards Doug

     
  • Logged In: YES
    user_id=621016

    Thanks for all your help folks. I am still keen to do move
    all my Perl development over to E-P-I-C in Eclipse, and
    eagerly anticipate any additional suggestions; my hope is
    to have a simple single-file download-and-install procedure
    that doesn't require me to kludge my configuration by
    jumping through a bunch of "temporary fix" hoops to get
    there (and I'm willing to wait for that).

    The things you've discovered so far give me a lot of hope
    for a solution revealing itself soon.

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