#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 2 of 4)
  • Jan Ploski
    Jan Ploski
    2006-05-24

    Logged In: YES
    user_id=86907

    doodmanemu, if you can reproduce it using epic-devel, I
    would also be interested in a stack trace from that version.
    The one quoted in the beginning of the bug report does not
    match the current source code.

    I can open an external file from the Java and Resource
    perspective without any problems.

     
  • Logged In: NO

    I am having the same problem. I am running WinXP. I had
    installed the 0.3.0 version of the perl editor on Eclipse
    3.2RC5. I got the same type of error as the original poster.

    After reading this thread, I installed the epic-devel
    version as directed. I could not open any perl file, whether
    in a project or not. It looked like a command window popped
    up with some error message and then disappear. And it didn't
    write anything in the workspace\.metadata\.log file.

    So, I did a clean install of Eclipse 3.2RC5. I installed
    epic-devel, ie, I directly copied org.epic.debug_0.3.2,
    org.epic.perleditor_0.2.4 and org.epic.regexp_0.1.3 into the
    plugins directory. I deleted the workspace directory. And I
    experienced the same problem. No editor, a disappearing
    command window, and nothing in the .log file.

    Also, nothing Perl exists anywhere within Eclipse. Like in
    New Project or Show View. Or when you try to associate a
    file, ie, *.pl or *.pm with an editor, there is no perl editor.

    So, it appears that the any version of the perl editor does
    not work with 3.2RC5. At least, on WinXP. I will check this
    out tomorrow at work where I have an Intel Mac, so I have to
    run 3.2RC5.

    David Laulusa
    dlaulusa <at> bridlewoodacres <dot> com

     
  • DoodmanEMU
    DoodmanEMU
    2006-05-26

    Logged In: YES
    user_id=1113174

    jploski, I do not get the error.

    But, now it doesn't open it as a perl file, I see no Perl
    perspectice option, and when I go to Help->About Eclipse I
    no longer see the Camel button.

    I guess you mean unzip the contained .zip files under there.
    I did that are started up using -clean and now it's
    registered and it seems to open okay.

    Weird.

    I'll keep trying to break it. If I can I'll document
    exactly what does break it.

    BTW, very nice plugin. I like it.

     
  • Jan Ploski
    Jan Ploski
    2006-05-26

    Logged In: YES
    user_id=86907

    Yes, you are supposed to unzip the archives into the plugins
    directory to get them installed. The README.txt contained in
    epic-devel.zip says it, nothing weird about that. Keep
    trying to break it. I am confident that you will succeed one
    way or another :-)

     
  • Logged In: YES
    user_id=621016

    Now using Eclipse v3.2 with epic-devel.zip (downloaded
    today; 2006-Jul-23/00:38), and still getting the same
    errors when I attempt to open a .pl file.

    I followed the instructions in the README.txt file included
    in epic-devel.zip after starting with a new installation of
    eclipse v3.2 (downloaded today as well).

    Here are the errors that appear in the window (without the
    E-P-I-C plug-in, I can load my .pl file but it is treated
    as a plain/text file, which is not what I wanted)...

    Heading:
    Unable to create this part due to an internal error.
    Reason for failure: An unexpected exception was thrown.

    Details:
    java.lang.NullPointerException
    at
    org.eclipse.ui.texteditor.AddMarkerAction.getResource(AddMarkerAction.java:323)
    at
    org.eclipse.ui.texteditor.AddMarkerAction.update(AddMarkerAction.java:146)
    at
    org.eclipse.ui.texteditor.TextEditorAction.<init>(TextEditorAction.java:49)
    at
    org.eclipse.ui.texteditor.AddMarkerAction.<init>(AddMarkerAction.java:88)
    at
    org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createActions(AbstractDecoratedTextEditor.java:1343)
    at
    org.eclipse.ui.editors.text.TextEditor.createActions(TextEditor.java:131)
    at
    org.epic.perleditor.editors.PerlEditor.createActions(PerlEditor.java:431)
    at
    org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:2682)
    at
    org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53)
    at
    org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:367)
    at
    org.epic.perleditor.editors.PerlEditor.createPartControl(PerlEditor.java:83)
    at
    org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
    at
    org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
    at
    org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
    at
    org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:290)
    at
    org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:140)
    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:394)
    at
    org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1144)
    at
    org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1097)
    at
    org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1311)
    at
    org.eclipse.ui.internal.PartStack.add(PartStack.java:455)
    at
    org.eclipse.ui.internal.EditorStack.add(EditorStack.java:102)
    at
    org.eclipse.ui.internal.PartStack.add(PartStack.java:441)
    at
    org.eclipse.ui.internal.EditorStack.add(EditorStack.java:111)
    at
    org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
    at
    org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
    at
    org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
    at
    org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:819)
    at
    org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:718)
    at
    org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:679)
    at
    org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2586)
    at
    org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2521)
    at
    org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2513)
    at
    org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2498)
    at
    org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at
    org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2493)
    at
    org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2470)
    at
    org.eclipse.ui.internal.editors.text.OpenExternalFileAction.run(OpenExternalFileAction.java:132)
    at
    org.eclipse.ui.internal.editors.text.OpenExternalFileAction.run(OpenExternalFileAction.java:100)
    at
    org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:254)
    at
    org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
    at
    org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
    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:928)
    at
    org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
    at
    org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
    at
    org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    at
    org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    at
    org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    at
    org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at
    org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    at
    org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    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:336)
    at
    org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

     
    • labels: 510337 --> Editor
     
  • Jan Ploski
    Jan Ploski
    2006-07-23

    Logged In: YES
    user_id=86907

    Is the file you are trying to open outside of Eclipse's
    workspace? If so, do you get the same problem for files
    within the workspace?

     
    • priority: 7 --> 8
     
  • Logged In: YES
    user_id=621016

    Thanks for your fast reply!

    Hmm, I wasn't aware of the "workspace" until now (I prefer
    to work on specific files, without setting up a workspace
    or a project for it all). According to "File -> Switch
    workspace" my current workspace path was in here (I'm
    currently running in Windows XP Home, with Sun's Java
    v1.5.0_06):

    C:\Documents and Settings\Randolf\workspace

    So, I copied a .pl file there (which Perl can interpret
    without any problems; it uses strict) and tried to open it,
    but experienced the same problem.

    I also just tried opening a .java file from both outside
    and inside the workspace, and syntax is highlighted (plus
    other nice features are working), so I know Eclipse is
    functioning as expected. This problem currently only
    occurs for .pl files (and always has).

    I look forward to any other suggestions as I'm keen to get
    E-P-I-C working correctly.

     
  • Jan Ploski
    Jan Ploski
    2006-07-24

    Logged In: YES
    user_id=86907

    I think that the cause of problems is that the 'workspace'
    folder or some of its subfolders (like .metadata) is not
    writable by your Windows/Unix user. Try changing ownership
    and/or write permissions on this folder. Alternatively, you
    can start Eclipse with the command line parameter "-data
    c:\some\other\path". This will make Eclipse create the
    folder c:\some\other\path and use it as the workspace.

    Here is another test: from the File menu, choose "New >
    Project... > Perl Project". If the project is created
    correctly, click on it and create a new Perl file with "New
    > File > Perl File". (This is what I meant by creating a
    file within the workspace in previous post.)

    If all this does not help, please attach the file
    <workspace>\.metadata\.log to this bug report.

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