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

Close

Run: Unhandled event loop exception

Help
Anonymous
2012-01-05
2012-12-06

  • Anonymous
    2012-01-05

    Hi,

    my newer Haskell sources open fine now (see https://sourceforge.net/projects/eclipsefp/forums/forum/371922/topic/4654268), however now I ran into another problem.

    When I try to run my newly-created .hs file, I get this under the Error log view:

    eclipse.buildId=M20110909-1335
    java.version=1.7.0_02-ea
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    Framework arguments:  -product org.eclipse.epp.package.java.product
    Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
    Error
    Thu Jan 05 22:41:12 CET 2012
    Unhandled event loop exception
    java.lang.IllegalArgumentException: /FER/src/dz07.hs is in no source folder in project FER
        at net.sf.eclipsefp.haskell.core.util.ResourceUtil.getSourceFolderRelativeName(ResourceUtil.java:577)
        at net.sf.eclipsefp.haskell.debug.ui.internal.launch.InteractiveLaunchOperation.createConfiguration(InteractiveLaunchOperation.java:104)
        at net.sf.eclipsefp.haskell.debug.ui.internal.launch.InteractiveLaunchOperation.getConfiguration(InteractiveLaunchOperation.java:86)
        at net.sf.eclipsefp.haskell.debug.ui.internal.launch.InteractiveLaunchOperation.launch(InteractiveLaunchOperation.java:64)
        at net.sf.eclipsefp.haskell.debug.ui.internal.launch.InteractiveLaunchShortcut.launch(InteractiveLaunchShortcut.java:76)
        at net.sf.eclipsefp.haskell.debug.ui.internal.launch.InteractiveLaunchShortcut.launch(InteractiveLaunchShortcut.java:55)
        at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchShortcutExtension.java:434)
        at org.eclipse.debug.internal.ui.contextlaunching.ContextRunner.launchShortcut(ContextRunner.java:220)
        at org.eclipse.debug.internal.ui.contextlaunching.ContextRunner.showShortcutSelectionDialog(ContextRunner.java:286)
        at org.eclipse.debug.internal.ui.contextlaunching.ContextRunner.selectAndLaunch(ContextRunner.java:140)
        at org.eclipse.debug.internal.ui.contextlaunching.ContextRunner.launch(ContextRunner.java:82)
        at org.eclipse.debug.internal.ui.actions.RelaunchLastAction.run(RelaunchLastAction.java:77)
        at org.eclipse.ui.internal.handlers.ActionDelegateHandlerProxy.execute(ActionDelegateHandlerProxy.java:289)
        at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
        at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
        at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
        at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1509)
        at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4640)
        at org.eclipse.swt.widgets.Tree.WM_CHAR(Tree.java:5941)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4528)
        at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5937)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2531)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        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.equinox.launcher.Main.invokeFramework(Main.java:622)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
    

    So the error seems to be "java.lang.IllegalArgumentException: /FER/src/dz07.hs is in no source folder in project FER". Obviously this message makes absolutely no sense, since I do indeed have a dz07.hs in source folder in project FER. Also, my previous Run configurations work fine, but this error prevents new ones from being created. I can't even create a manual run configuration.

    How do I fix this? I can run an old configuration and type ":l src/myNewFile.hs" and GHC works, but when I need to restart it (endless loop etc.) I obviously need to repeat the process, instead of just pressing CTRL+R (that's what I bound to Run).

    On another matter, whenever I start up Eclipse, a dialog popups up asking me "Do you want to download Hoogle database" or somesuch, no matter if I press yes or no, the dialog will pop up again on the next restart. Ugh. Is there a way to disable this? It's annoying. How come nobody caught this during testing? :)

    Thanks.

     
  • JP Moresmau
    JP Moresmau
    2012-01-05

    Yes, but is src marked as a source folder in your cabal file?

    The hoogle database download message obviously doesn't appear all the time for everybody, otherwise as you said we would have caught it. Any other messages in the Error Log or in the scion-browser console output?

     

  • Anonymous
    2012-01-06

    I don't think I have a cabal file. I mean, there's (projectName).cabal right there in the Workspace, but there's no cabal file in the actual directory, and under the Source tab (when I double click on it in Workspace) it says "Resource 'FER/FER.cabal' does not exist".

    Shared scion-browser instance view doesn't show any special error messages.

    Here are a few recent messages in the error log:

    eclipse.buildId=M20110909-1335
    java.version=1.7.0_02-ea
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    Framework arguments:  -product org.eclipse.epp.package.java.product
    Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
    This is a continuation of log file E:\_\Haskell\.metadata\.bak_1.log
    Created Time: 2012-01-06 02:23:22.894
    Error
    Fri Jan 06 04:16:39 CET 2012
    FrameworkEvent ERROR
    org.osgi.framework.BundleException: Exception in net.sf.eclipsefp.haskell.browser.BrowserPlugin.stop() of bundle net.sf.eclipsefp.haskell.browser.
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:791)
        at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:565)
        at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1161)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:595)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
        at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284)
        at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:691)
        at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:598)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:390)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:198)
        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.equinox.launcher.Main.invokeFramework(Main.java:622)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
    Caused by: java.lang.NullPointerException
        at net.sf.eclipsefp.haskell.ui.views.CabalPackagesView$9.databaseUnloaded(CabalPackagesView.java:320)
        at net.sf.eclipsefp.haskell.browser.BrowserPlugin.notifyDatabaseUnloaded(BrowserPlugin.java:328)
        at net.sf.eclipsefp.haskell.browser.BrowserPlugin.databaseUnloaded(BrowserPlugin.java:356)
        at net.sf.eclipsefp.haskell.browser.BrowserServer.notifyDatabaseUnloaded(BrowserServer.java:77)
        at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.stop(StreamBrowserServer.java:225)
        at net.sf.eclipsefp.haskell.browser.BrowserPlugin.stop(BrowserPlugin.java:97)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764)
        ... 19 more
    Root exception:
    java.lang.NullPointerException
        at net.sf.eclipsefp.haskell.ui.views.CabalPackagesView$9.databaseUnloaded(CabalPackagesView.java:320)
        at net.sf.eclipsefp.haskell.browser.BrowserPlugin.notifyDatabaseUnloaded(BrowserPlugin.java:328)
        at net.sf.eclipsefp.haskell.browser.BrowserPlugin.databaseUnloaded(BrowserPlugin.java:356)
        at net.sf.eclipsefp.haskell.browser.BrowserServer.notifyDatabaseUnloaded(BrowserServer.java:77)
        at net.sf.eclipsefp.haskell.browser.client.StreamBrowserServer.stop(StreamBrowserServer.java:225)
        at net.sf.eclipsefp.haskell.browser.BrowserPlugin.stop(BrowserPlugin.java:97)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764)
        at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:565)
        at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1161)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:595)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
        at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
        at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284)
        at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:691)
        at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:598)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:390)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:198)
        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.equinox.launcher.Main.invokeFramework(Main.java:622)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
    
    eclipse.buildId=M20110909-1335
    java.version=1.7.0_02-ea
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    Framework arguments:  -product org.eclipse.epp.package.java.product
    Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
    Error
    Fri Jan 06 04:17:44 CET 2012
    FileDocumentProvider.createElementInfo
    org.eclipse.core.internal.resources.ResourceException: Resource '/FER/FER.cabal' does not exist.
        at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:320)
        at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:194)
        at org.eclipse.core.internal.resources.File.getContents(File.java:287)
        at org.eclipse.ui.editors.text.FileDocumentProvider.setDocumentContent(FileDocumentProvider.java:397)
        at org.eclipse.ui.editors.text.StorageDocumentProvider.createDocument(StorageDocumentProvider.java:229)
        at net.sf.eclipsefp.haskell.ui.internal.editors.cabal.CabalDocProvider.createDocument(CabalDocProvider.java:34)
        at org.eclipse.ui.editors.text.FileDocumentProvider.createElementInfo(FileDocumentProvider.java:735)
        at org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(AbstractDocumentProvider.java:400)
        at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4213)
        at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:237)
        at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1451)
        at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:169)
        at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3200)
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
        at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
        at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2642)
        at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3218)
        at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3245)
        at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:237)
        at org.eclipse.ui.forms.editor.FormEditor.addPage(FormEditor.java:325)
        at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:211)
        at org.eclipse.ui.forms.editor.FormEditor.addPage(FormEditor.java:308)
        at net.sf.eclipsefp.haskell.ui.internal.editors.cabal.CabalFormEditor.addPages(CabalFormEditor.java:100)
        at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138)
        at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
        at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
        at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
        at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
        at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
        at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
        at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
        at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
        at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
        at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:355)
        at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164)
        at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
        at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
        at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
        at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
        at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50)
        at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
        at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185)
        at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
        at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
        at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
        at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
        at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
        at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462)
        at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
        at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
        at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
        at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        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.equinox.launcher.Main.invokeFramework(Main.java:622)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
    

    This one is old (unable to open editor: argument not valid):

    eclipse.buildId=M20110909-1335
    java.version=1.7.0_02-ea
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    Framework arguments:  -product org.eclipse.epp.package.java.product
    Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
    Error
    Fri Jan 06 04:19:49 CET 2012
    Unable to create editor ID net.sf.eclipsefp.haskell.ui.internal.editors.haskell.HaskellEditor: Argument not valid
    java.lang.IllegalArgumentException: Argument not valid
        at org.eclipse.swt.SWT.error(SWT.java:4263)
        at org.eclipse.swt.SWT.error(SWT.java:4197)
        at org.eclipse.swt.SWT.error(SWT.java:4168)
        at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:9680)
        at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:9774)
        at org.eclipse.jface.text.TextViewer.applyTextPresentation(TextViewer.java:4836)
        at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4888)
        at org.eclipse.jface.text.presentation.PresentationReconciler.applyTextRegionCollection(PresentationReconciler.java:579)
        at org.eclipse.jface.text.presentation.PresentationReconciler.processDamage(PresentationReconciler.java:568)
        at org.eclipse.jface.text.presentation.PresentationReconciler.access$3(PresentationReconciler.java:564)
        at org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.inputDocumentChanged(PresentationReconciler.java:119)
        at org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2888)
        at org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2937)
        at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:640)
        at org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:376)
        at org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:588)
        at org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4030)
        at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3558)
        at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54)
        at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:440)
        at net.sf.eclipsefp.haskell.ui.internal.editors.haskell.HaskellEditor.createPartControl(HaskellEditor.java:323)
        at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
        at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
        at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
        at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
        at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:424)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2887)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
        at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
        at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
        at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
        at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
        at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:355)
        at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164)
        at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
        at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
        at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
        at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
        at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50)
        at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
        at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185)
        at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
        at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
        at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
        at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
        at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
        at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462)
        at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
        at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
        at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
        at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        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.equinox.launcher.Main.invokeFramework(Main.java:622)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
    
    eclipse.buildId=M20110909-1335
    java.version=1.7.0_02-ea
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    Framework arguments:  -product org.eclipse.epp.package.java.product
    Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product
    Warning
    Fri Jan 06 04:22:10 CET 2012
    Ignored attempt to add saveable that was already registered
    org.eclipse.core.runtime.AssertionFailedException: unknown saveable: org.eclipse.ui.internal.DefaultSaveable@5c96d2b5 from part: org.eclipse.ui.internal.ErrorEditorPart@5c96d2b5
        at org.eclipse.ui.internal.SaveablesList.logWarning(SaveablesList.java:187)
        at org.eclipse.ui.internal.SaveablesList.addModel(SaveablesList.java:117)
        at org.eclipse.ui.internal.SaveablesList.addModels(SaveablesList.java:289)
        at org.eclipse.ui.internal.SaveablesList.postOpen(SaveablesList.java:695)
        at org.eclipse.ui.internal.PartList.partOpened(PartList.java:234)
        at org.eclipse.ui.internal.PartList.access$0(PartList.java:210)
        at org.eclipse.ui.internal.PartList$1.propertyChanged(PartList.java:40)
        at org.eclipse.ui.internal.WorkbenchPartReference.fireInternalPropertyChange(WorkbenchPartReference.java:375)
        at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:610)
        at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
        at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
        at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
        at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
        at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
        at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:355)
        at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164)
        at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
        at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
        at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
        at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
        at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50)
        at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
        at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185)
        at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
        at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
        at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
        at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
        at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
        at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462)
        at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
        at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
        at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
        at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        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.equinox.launcher.Main.invokeFramework(Main.java:622)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
    

    No, I don't have any tabs in any of my files, except in my .project XML file.

    Thanks.

     
  • JP Moresmau
    JP Moresmau
    2012-01-06

    Well, a big premise of EclipseFP is that you have a cabal file that has all the information about your project. But anyway I have fixed the code so that you can start a GHCI session on any file, even if not contained in a source folder.
    When I talk about a source folder, I mean a folder referenced by a hs-source-dirs field in the cabal file of your project.

     

  • Anonymous
    2012-01-06

    How can I create such a cabal file? Do I need to create a new project, and then copy all my old sources into it?

    Also, how can I get the latest updates? I just started Eclipse, it says No updates found.

    Thanks for the help! I really like EclipseFP (other than these bugs). :)

     
  • JP Moresmau
    JP Moresmau
    2012-01-06

    Just create a new file into your project, at the root, called FER.cabal. Then the editor will work.

    When I say "I fixed the code", I mean in the development version, so it's not available straight away via the updates site. I think a new version  will be released maybe next week. EclipseFP depends on Haskell packages that are now released independently (but the latest versions have API changes, so we need to release everything at once), so we may be able to release more often. But there are only at the moment 2 developers working in their free time on it.
    Thanks!

     

  • Anonymous
    2012-01-08

    Cool! Thanks. Running my new file works fine now. Next week is fine too.

    Now I'm back to the old problem, though. I restarted Eclipse and now I can't open my new homework file (dz07) in the Haskell editor (Argument not valid) while my old one (dz06) works fine. :| Also, while I was working, the syntax highlighting (etc.) worked fine, but it suddenly won't work anymore after a restart. Oh well, at least I can run it. :)

     
  • JP Moresmau
    JP Moresmau
    2012-01-08

    Sandro, the issue you're referring to should be fixed in buildwrapper. buildwrapper is a haskell executable that is used by EclipseFP but released independently. Just run cabal install buildwrapper or use the cabal package view in EclipseFP. Once your buildwrapper executable is rebuilt the error should go away. If it doesn't please open a new incident on the forum with the source that refuse to open.

     

  • Anonymous
    2012-01-08

    I did. After about 5-10 minutes and a gazillion different warnings (I guess none are related to EclipseFP, but I find them weird since Haskell is all about "purity" and stuff like that), I get (I hope this is the correct output):

    [2 of 2] Compiling Main             ( src-exe\Main.hs, dist\build\buildwrapper\buildwrapper-tmp\Main.o )
    Linking dist\build\buildwrapper\buildwrapper.exe ...
    Installing library in
    C:\Users\Sandro\AppData\Roaming\cabal\buildwrapper-0.2.2\ghc-7.0.4
    Installing executable(s) in C:\Users\Sandro\AppData\Roaming\cabal\bin
    Registering buildwrapper-0.2.2...
    

    Anyway, I just tried to open dz07 with Haskell Editor and I still get Could not open the editor: Argument not valid.

    Here are some interesting messages I get in Buildwrapper output:

    buildwrapper.exe: user error (You need to re-run the 'configure' command. The version of Cabal being used has changed (was Cabal-1.10.2.0, now Cabal-1.10.1.0).)

    (they repeat every few seconds, infinite loop).

    Now, I admit that I had been using an older version of Haskell, and updated when the new version came out recently, but why does it say that it's *now* using and *old* version of Cabal? I *upgraded* Haskell, not downgraded it. I also tried doing what the message suggests (going to the project directory and under admin rights typing cabal upgrade - which completes fine), but it doesn't seem to help.

    Thanks.

     

  • Anonymous
    2012-01-08

    *cabal configure, not upgrade. Stupid forum without edit functionality.

     

  • Anonymous
    2012-01-08

    Also, I'm using:

    E:\_\Haskell\FER>cabal -V
    cabal-install version 0.10.2
    using version 1.10.2.0 of the Cabal library
    
     
  • JP Moresmau
    JP Moresmau
    2012-01-08

    Mmmhhhh… The warnings when you build are normal, it's not linked to Haskell being pure or not, it's about things being defined but not used or things having names that exist somewhere else, nothing to worry about.
    The cabal error is more worrying. I have seen it before but without being able to pinpoint what was wrong, but it was also after playing with version of cabal and such. Running cabal configure directly is not going to help, because buildwrapper does not use the same folder as cabal you launch via the command line. There should be a .dist-buidwrapper folder in your project. Delete it, it should be recreated automatically, see if this helps.

     

  • Anonymous
    2012-01-08

    I tried that, no luck though. :(

    Thanks.

     

  • Anonymous
    2012-01-08

    Here's dz07 (which cannot be opened in Haskell Editor): http://pastebin.com/7aMjXxRH

    And dz06 (which can be opened normally in Haskell Editor with full syntax highlighting): http://pastebin.com/60MtsSHy

     

  • Anonymous
    2012-01-10

    Well, I decided to totally uninstall Haskell and EclipseFP. Worry not, I only did it to reinstall it. :)

    Now I created a new project, copied my old sources and things seem to work fine, every file seems to be opening normally (at least for now).

    Thanks for all your help!