Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-8981

Eclipse Oxygen: Cannot open file after project creation in debug perspective

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: Release 5.1.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Mac OS 10.13.2
      JDK 1.9
      SDK: 7.0.1.GA
      Appc CLI: 7.0.1
      Node.js: 8.9.1

    • Story Points:
      5
    • Sprint:
      2018 Sprint 02 Studio

      Description

      Steps to Reproduce:
      1. Open debug perspective
      2. Create a new alloy/classic project
      3. After project creation the new project is shown in App Explorer.
      4. Click on any file in the App Explorer

      Actual Result:
      The file does not open. Errors are shown in logs as below.
      Note: Need to move to Studio or Studio (extended) perspective to get the file selection work again.

      !ENTRY org.eclipse.e4.ui.workbench 4 2 2018-01-09 13:01:19.428
      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.e4.ui.workbench".
      !STACK 0
      java.lang.ClassCastException: AbstractTreeViewer should return an instance of ITreeSelection from its getSelection() method.
      	at org.eclipse.jface.viewers.AbstractTreeViewer.getStructuredSelection(AbstractTreeViewer.java:2949)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.getStructuredSelection(AbstractTreeViewer.java:1)
      	at org.eclipse.ui.internal.navigator.NavigatorSaveablesService.getActiveSaveables(NavigatorSaveablesService.java:286)
      	at org.eclipse.ui.navigator.CommonNavigator.getActiveSaveables(CommonNavigator.java:636)
      	at org.eclipse.ui.internal.SaveableHelper.needsSave(SaveableHelper.java:307)
      	at org.eclipse.ui.internal.handlers.SaveHandler.evaluate(SaveHandler.java:87)
      	at org.eclipse.ui.internal.handlers.AbstractSaveHandler$1.evaluate(AbstractSaveHandler.java:48)
      	at org.eclipse.ui.internal.services.EvaluationReference.evaluate(EvaluationReference.java:71)
      	at org.eclipse.ui.internal.services.EvaluationReference.evaluate(EvaluationReference.java:98)
      	at org.eclipse.ui.internal.services.EvaluationReference.changed(EvaluationReference.java:92)
      	at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:114)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:355)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:370)
      	at org.eclipse.ui.internal.services.EvaluationService$1.changed(EvaluationService.java:76)
      	at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:114)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:355)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:370)
      	at org.eclipse.ui.internal.WorkbenchPage.updateActivePartSources(WorkbenchPage.java:331)
      	at org.eclipse.ui.internal.WorkbenchPage.updateActivations(WorkbenchPage.java:300)
      	at org.eclipse.ui.internal.WorkbenchPage.access$18(WorkbenchPage.java:293)
      	at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:211)
      	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$3.run(PartServiceImpl.java:250)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:247)
      	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:756)
      	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:681)
      	at org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer.activate(AbstractPartRenderer.java:95)
      	at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.lambda$0(ContributedPartRenderer.java:60)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4257)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1502)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1525)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1510)
      	at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1621)
      	at org.eclipse.swt.widgets.Control.sendMouseEvent(Control.java:3498)
      	at org.eclipse.swt.widgets.Tree.sendMouseEvent(Tree.java:2788)
      	at org.eclipse.swt.widgets.Control.mouseEvent(Control.java:2603)
      	at org.eclipse.swt.widgets.Composite.mouseEvent(Composite.java:927)
      	at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2612)
      	at org.eclipse.swt.widgets.Tree.mouseDown(Tree.java:2111)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5798)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      	at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:228)
      	at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2148)
      	at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2411)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5862)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      	at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5290)
      	at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5440)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
      	at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3695)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1150)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1039)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
      	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
      	at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:126)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
       
      !ENTRY org.eclipse.e4.ui.workbench 4 0 2018-01-09 13:01:19.439
      !MESSAGE An exception occurred while notifying part listeners
      !STACK 0
      java.lang.ClassCastException: AbstractTreeViewer should return an instance of ITreeSelection from its getSelection() method.
      	at org.eclipse.jface.viewers.AbstractTreeViewer.getStructuredSelection(AbstractTreeViewer.java:2949)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.getStructuredSelection(AbstractTreeViewer.java:1)
      	at org.eclipse.ui.internal.navigator.NavigatorSaveablesService.getActiveSaveables(NavigatorSaveablesService.java:286)
      	at org.eclipse.ui.navigator.CommonNavigator.getActiveSaveables(CommonNavigator.java:636)
      	at org.eclipse.ui.internal.SaveableHelper.needsSave(SaveableHelper.java:307)
      	at org.eclipse.ui.internal.handlers.SaveHandler.evaluate(SaveHandler.java:87)
      	at org.eclipse.ui.internal.handlers.AbstractSaveHandler$1.evaluate(AbstractSaveHandler.java:48)
      	at org.eclipse.ui.internal.services.EvaluationReference.evaluate(EvaluationReference.java:71)
      	at org.eclipse.ui.internal.services.EvaluationReference.evaluate(EvaluationReference.java:98)
      	at org.eclipse.ui.internal.services.EvaluationReference.changed(EvaluationReference.java:92)
      	at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:114)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:355)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:370)
      	at org.eclipse.ui.internal.services.EvaluationService$1.changed(EvaluationService.java:76)
      	at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:114)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:355)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:370)
      	at org.eclipse.ui.internal.WorkbenchPage.updateActivePartSources(WorkbenchPage.java:331)
      	at org.eclipse.ui.internal.WorkbenchPage.updateActivations(WorkbenchPage.java:300)
      	at org.eclipse.ui.internal.WorkbenchPage.access$18(WorkbenchPage.java:293)
      	at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:211)
      	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$3.run(PartServiceImpl.java:250)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:247)
      	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:756)
      	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:681)
      	at org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer.activate(AbstractPartRenderer.java:95)
      	at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.lambda$0(ContributedPartRenderer.java:60)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4257)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1502)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1525)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1510)
      	at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1621)
      	at org.eclipse.swt.widgets.Control.sendMouseEvent(Control.java:3498)
      	at org.eclipse.swt.widgets.Tree.sendMouseEvent(Tree.java:2788)
      	at org.eclipse.swt.widgets.Control.mouseEvent(Control.java:2603)
      	at org.eclipse.swt.widgets.Composite.mouseEvent(Composite.java:927)
      	at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2612)
      	at org.eclipse.swt.widgets.Tree.mouseDown(Tree.java:2111)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5798)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      	at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:228)
      	at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2148)
      	at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2411)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5862)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      	at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5290)
      	at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5440)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
      	at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3695)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1150)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1039)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
      	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
      	at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:126)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
      

        Attachments

          Activity

            People

            • Assignee:
              ppedduri Prashanth Pedduri (Inactive)
              Reporter:
              ssekhri Satyam Sekhri
              Reviewer:
              Kondal Kolipaka (Inactive)
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: