X10
  1. X10
  2. XTENLANG-948

Unable to open X10 files outside the workspace

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: X10 2.0.1
    • Fix Version/s: X10 2.0.4
    • Component/s: X10DT
    • Labels:
      None
    • Environment:
      All
    • Number of attachments :
      0

      Description

      I have a MacBook Pro running 10.6.2. I downloaded X10 v2.0.1. I was able to get the Java and C backends working from the command line - ran the Hello.x10 and MontyPi.x10 examples.

      I downloaded Eclipse Classic v3.5.1 (Cocoa 64-bit) and let it install the X10DT stuff. After finishing and restarting Eclipse, I had created a new X10 project (Java back end) and had it create a sample Hello, World application. Everything went fine.

      Then, I went to File > Open File and browsed to the X10 samples directory to start reading some code. When I tried to open the file, it did not open and I got the java exception appended below. I figure I have to have missed something trivial. Any clues?

      java.lang.NullPointerException
      at org.eclipse.imp.editor.UniversalEditor.findLanguageSpecificPreferences(UniversalEditor.java:680)
      at org.eclipse.imp.editor.UniversalEditor.createPartControl(UniversalEditor.java:635)
      at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:662)
      at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462)
      at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
      at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
      at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
      at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
      at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
      at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
      at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
      at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
      at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608)
      at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
      at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
      at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
      at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
      at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
      at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
      at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
      at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:778)
      at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:677)
      at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:638)
      at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2854)
      at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2762)
      at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2754)
      at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2705)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2701)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2685)
      at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
      at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1151)
      at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:107)
      at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:76)
      at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
      at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
      at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1079)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3441)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3100)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
      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:368)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

        Activity

        Hide
        Beth R Tibbitts added a comment -

        Note that what we usually test involves opening a file within an Eclipse/X10 project.
        This scenario is opening a file that is not part of a project.
        So we need to be sure to check this scenario too!

        Show
        Beth R Tibbitts added a comment - Note that what we usually test involves opening a file within an Eclipse/X10 project. This scenario is opening a file that is not part of a project. So we need to be sure to check this scenario too!
        Hide
        Robert M. Fuhrer added a comment -

        By definition, anything outside the workspace is outside any project (since we don't support linked resources).

        IMP supports nearly the full set of services (highlighting, outlining, folding, etc.) for files living outside the workspace, but this seemingly got broken in a recent release. I.e., this used to work, and should work.

        Show
        Robert M. Fuhrer added a comment - By definition, anything outside the workspace is outside any project (since we don't support linked resources). IMP supports nearly the full set of services (highlighting, outlining, folding, etc.) for files living outside the workspace, but this seemingly got broken in a recent release. I.e., this used to work, and should work.
        Hide
        David Grove added a comment -

        moving open issues in X10 DT 2.0.1.1 to X10 DT 2.0.2.2 as discussed with Bob.

        Show
        David Grove added a comment - moving open issues in X10 DT 2.0.1.1 to X10 DT 2.0.2.2 as discussed with Bob.
        Hide
        Robert M. Fuhrer added a comment -

        This required a couple of small fixes to the IMP runtime, and one to the X10DT. All changes have been committed to SVN HEAD on the respective repositories.

        Show
        Robert M. Fuhrer added a comment - This required a couple of small fixes to the IMP runtime, and one to the X10DT. All changes have been committed to SVN HEAD on the respective repositories.
        Hide
        David Grove added a comment -

        bulk close of all resolved issues as part of closing 2.0.4 items.

        Show
        David Grove added a comment - bulk close of all resolved issues as part of closing 2.0.4 items.

          People

          • Assignee:
            Robert M. Fuhrer
            Reporter:
            Robert M. Fuhrer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 day
              1d
              Remaining:
              Remaining Estimate - 1 day
              1d
              Logged:
              Time Spent - Not Specified
              Not Specified