Thanks Xavier. I'll just deal with the open/close/open until then, it's no too bad now that I've reduced the number of platforms.
E On Mon, Feb 7, 2011 at 7:42 PM, Xavier Ducrohet <[email protected]> wrote: > I think the issue is when you open the editor while the SDK is still > loading. > We've done some work around this for 10.0 so it should be better. > > Xav > > On Mon, Feb 7, 2011 at 3:23 PM, Evan Ruff > <[email protected]> wrote: > > Also, not sure if I tried this previously, but it seems that now I can > get > > the layout editor if I close the opened XML tab, wait a minute, then > reopen. > > I still get the "No theme selected" message, but after selecting one it > does > > render properly! > > E > > > > On Mon, Feb 7, 2011 at 6:22 PM, Evan Ruff < > [email protected]> > > wrote: > >> > >> Xavier, > >> Here's the output from NPE issue in the Layout Editor with the ADT Plug > >> w/Debug: > >> java.lang.NullPointerException > >> at > >> > com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.renderWithBridge(GraphicalEditorPart.java:1484) > >> at > >> > com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.recomputeLayout(GraphicalEditorPart.java:1211) > >> at > >> > com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.activated(GraphicalEditorPart.java:1039) > >> at > >> > com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.pageChange(LayoutEditor.java:365) > >> at > >> > org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1067) > >> at > >> > org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:607) > >> at > >> > org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:352) > >> 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.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:1254) > >> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1207) > >> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1606) > >> at org.eclipse.ui.internal.PartStack.add(PartStack.java:497) > >> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103) > >> at org.eclipse.ui.internal.PartStack.add(PartStack.java:483) > >> 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:2860) > >> at > >> > org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768) > >> at > >> org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760) > >> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711) > >> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) > >> at > >> > org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707) > >> at > >> > org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691) > >> at > >> > org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2682) > >> 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:365) > >> at > >> > org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:168) > >> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:229) > >> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:208) > >> at > >> > org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274) > >> at > >> > org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250) > >> at > >> > org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:373) > >> at > >> > org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:526) > >> at > >> > org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48) > >> at > >> > org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:845) > >> 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:843) > >> at > >> > org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1131) > >> at > >> > org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1235) > >> at > >> org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:264) > >> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:258) > >> at > >> org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:298) > >> 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:4066) > >> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657) > >> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) > >> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) > >> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) > >> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) > >> at > >> > org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) > >> at > >> > org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) > >> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) > >> at > >> > org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) > >> 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:369) > >> 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:619) > >> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574) > >> at org.eclipse.equinox.launcher.Main.run(Main.java:1407) > >> Hope this can help! > >> E > >> > >> On Mon, Feb 7, 2011 at 6:18 PM, Evan Ruff < > [email protected]> > >> wrote: > >>> > >>> Kostya, > >>> I followed your instructions to update Eclipse and it has fixed my > >>> content assist issue! Thank you for the great tip! > >>> Xavier, I have removed all of my unused Platforms and now only have 1.6 > >>> and 2.1 with the Google APIs. I have confirmed I can recreate the NPE > issue. > >>> I am installing the new version with the debug now... > >>> E > >>> > >>> On Sun, Feb 6, 2011 at 11:07 AM, Kostya Vasilyev <[email protected]> > >>> wrote: > >>>> > >>>> Slow code assist, or, more precisely, JavaDoc lookup (which is shown > >>>> side by side with code assist suggestions) is a known Eclipse Helios > 3.6SR1 > >>>> issue. > >>>> > >>>> I've written a summary of various workarounds here: > >>>> > >>>> http://kmansoft.wordpress.com/category/tools/ > >>>> > >>>> The good news is that this is fixed in 3.6SR2, due February 25. > >>>> > >>>> -- Kostya > >>>> > >>>> 06.02.2011 18:15, Evan Ruff пишет: > >>>> > >>>> Hey Guys, > >>>> I'm having a NPE thrown when I try to edit a layout. I generally > happens > >>>> about 85% of the time. If it does not throw the NPE, it says "Missing > Theme" > >>>> with no assist or layout. The XML editor does still > provide assistance if > >>>> the NPE is not thrown. Additionally, my auto-complete is taking > FOREVER > >>>> inside Android classes. Is anyone else experiencing something like > this? Any > >>>> ideas how to rectify the situation? > >>>> Thank you for any help! > >>>> Evan > >>>> Here's the details: > >>>> Eclipse Helios R1, 32-bit Windows installed on Drive E. > >>>> Projects/Workspace installed on E. > >>>> Android Development Tools 9.0.0.v201101191456-93220 > >>>> Google Plugin for Eclipse 1.4.2.v201012111742 > >>>> Subversion, etc... everything else is pretty stock. > >>>> In my Content Assist preferences, I only have Basic Proposals and Java > >>>> Proposals checked in both dialog. > >>>> Here's the NPE from the trying to edit the layout: > >>>> java.lang.NullPointerException > >>>> at > >>>> > com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.renderWithBridge(Unknown > >>>> Source) > >>>> at > >>>> > com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.recomputeLayout(Unknown > >>>> Source) > >>>> at > >>>> > com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.activated(Unknown > >>>> Source) > >>>> at > >>>> > com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.pageChange(Unknown > >>>> Source) > >>>> at > >>>> > org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1067) > >>>> at > >>>> > org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:607) > >>>> at > >>>> > org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:352) > >>>> 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:2863) > >>>> at > >>>> > org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768) > >>>> at > >>>> > org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760) > >>>> at > org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711) > >>>> at > org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) > >>>> at > >>>> > org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707) > >>>> at > >>>> > org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691) > >>>> at > >>>> > org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2682) > >>>> 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:365) > >>>> at > >>>> > org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:168) > >>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:229) > >>>> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:208) > >>>> at > >>>> > org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274) > >>>> at > >>>> > org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250) > >>>> at > >>>> > org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:373) > >>>> at > >>>> > org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:526) > >>>> at > >>>> > org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48) > >>>> at > >>>> > org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:845) > >>>> 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:843) > >>>> at > >>>> > org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1131) > >>>> at > >>>> > org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1235) > >>>> at > >>>> > org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:264) > >>>> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:258) > >>>> at > >>>> > org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:298) > >>>> 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:4066) > >>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657) > >>>> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) > >>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) > >>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) > >>>> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) > >>>> at > >>>> > org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) > >>>> at > >>>> > org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) > >>>> at > org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) > >>>> at > >>>> > org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) > >>>> 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:369) > >>>> 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:619) > >>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574) > >>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1407) > >>>> To get this particular NPE, I created a new Android project and edited > >>>> the main.xml. > >>>> Thanks again! > >>>> E > >>>> -- > >>>> You received this message because you are subscribed to the Google > >>>> Groups "Android Developers" group. > >>>> To post to this group, send email to > [email protected] > >>>> To unsubscribe from this group, send email to > >>>> [email protected] > >>>> For more options, visit this group at > >>>> http://groups.google.com/group/android-developers?hl=en > >>>> > >>>> -- > >>>> Kostya Vasilyev -- WiFi Manager + pretty widget -- > >>>> http://kmansoft.wordpress.com > >>>> > >>>> -- > >>>> You received this message because you are subscribed to the Google > >>>> Groups "Android Developers" group. > >>>> To post to this group, send email to > [email protected] > >>>> To unsubscribe from this group, send email to > >>>> [email protected] > >>>> For more options, visit this group at > >>>> http://groups.google.com/group/android-developers?hl=en > >> > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > > > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc. > http://developer.android.com | http://tools.android.com > > Please do not send me questions directly. Thanks! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

