Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#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 > >> (Page 1 of 2)
    • 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

     
  • 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.

     
  • Logged In: YES
    user_id=621016

    I tried all your suggestions, and I always receive the
    error. The user I'm logged in with is an Administrator.
    I
    have this same problem on other computers also running
    Windows XP.

    The .metadata/.log file included below is from a fresh
    workspace created under C:\workspace\ (Eclipse created
    it),
    and triggered by an attempt to load a .pl file that I
    copied into C:\workspace\ from the command line outside of
    Eclipse...

    !SESSION 2006-07-23 23:45:19.078 --------------------------
    -
    --------------------
    eclipse.buildId=M20060629-1905
    java.version=1.5.0_06
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32,
    NL=en_CA
    Command-line arguments: -os win32 -ws win32 -arch x86 -
    data c:\workspace

    !ENTRY org.eclipse.core.resources 4 77 2006-07-23
    23:45:37.281
    !MESSAGE C:\workspace is not a valid location for linked
    resources.

    !ENTRY org.eclipse.ui 4 0 2006-07-23 23:45:37.703
    !MESSAGE Unable to create editor ID
    org.epic.perleditor.editors.PerlEditor: An unexpected
    exception was thrown.
    !STACK 0
    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)

     
  • Logged In: YES
    user_id=621016

    I tried all your suggestions, and I always receive the
    error. The user I'm logged in with is an Administrator.
    I
    have this same problem on other computers also running
    Windows XP.

    The .metadata/.log file included below is from a fresh
    workspace created under C:\workspace\ (Eclipse created
    it),
    and triggered by an attempt to load a .pl file that I
    copied into C:\workspace\ from the command line outside of
    Eclipse...

    !SESSION 2006-07-23 23:45:19.078 --------------------------
    -
    --------------------
    eclipse.buildId=M20060629-1905
    java.version=1.5.0_06
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32,
    NL=en_CA
    Command-line arguments: -os win32 -ws win32 -arch x86 -
    data c:\workspace

    !ENTRY org.eclipse.core.resources 4 77 2006-07-23
    23:45:37.281
    !MESSAGE C:\workspace is not a valid location for linked
    resources.

    !ENTRY org.eclipse.ui 4 0 2006-07-23 23:45:37.703
    !MESSAGE Unable to create editor ID
    org.epic.perleditor.editors.PerlEditor: An unexpected
    exception was thrown.
    !STACK 0
    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)

     
  • Logged In: YES
    user_id=621016

    (Sorry for the delay in posting my response -- I've been
    trying since yesterday and SourceForge.Net was giving me
    web server errors, followed by SSL certificate mismatches;
    it seems to be okay now though).

     
  • Jan Ploski
    Jan Ploski
    2006-07-25

    Logged In: YES
    user_id=86907

    Can you please also send a .log file for a scenario in
    which you create a new Perl project and create a new Perl
    file within this project in Eclipse? I suspect that there
    may be different problems depending on whether the file
    resides in a project or not.

    You may be also interested in reading up about the
    workspace concept in Eclipse's online help.

     
  • Logged In: YES
    user_id=621016

    Yes! When I create a new Perl project, and create a new
    Perl file, everything works correctly. I can even run my
    script, and the expected console output appears in the
    window below.

    The problem only comes back if I attempt to open a .pl file
    that isn't part of the project. =(

    I don't have this problem with Java source -- Eclipse can
    open any .java file from anywhere, regardless of the active
    project/workspace. If I can do the same with Perl files,
    then I'll be able to move away from my current editor that
    only works on the Win32 or OS/2 platforms.

    (I'm going to read about workspaces in Eclipse' online
    help. Thanks for the tip!)

    After being locked into Windows-based solutions, the last
    thing I want is to get locked into something different. I
    have hundreds of Perl projects where I need to only edit a
    few files at a time (and I already have a way of tracking
    changes and version numbers that involves keeping older
    copies of the source code in sub-directories that are
    burried far away from the production Perl files), so
    setting up a workspace for each one would be a lot of work
    now and will create major file management challenges for me
    down the road.

    In short, I really want to use Eclipse with E-P-I-C to
    simply open /\.p[lm]$/ files as needed without the overhead
    of setting up projects and workspaces so that I can
    continue to work efficiently from any OS of my choosing. I
    hope that it will be possible to do this in the near
    future, and I'm certain that others who have given up on E-
    P-I-C because they can't simply open a Perl script will
    probably give it another try (which I anticipate could very
    well result in a much larger user base in the future).

    Thanks in advance.

     
1 2 > >> (Page 1 of 2)