Hey Xav, I also get the Missing Theme error, I have a very very fresh Eclipse and SDK r9 install (very very fresh because I just got this PC).
I notice that this appears most often when I create a new layout XML file by doing this: - right click on existing layout file - select copy - right click on /layout folder - select paste then edit the filename - try to open the newly created file I have tried the workaround above by selecting an OS version from the rightmost dropdown and the GUI loads up. But the next time I open the file the Missing Theme error happens again. Thanks, Zarah. On Feb 8, 8:42 am, 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.GraphicalEditorPar > >> t.renderWithBridge(GraphicalEditorPart.java:1484) > >> at > >> com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPar > >> t.recomputeLayout(GraphicalEditorPart.java:1211) > >> at > >> com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPar > >> t.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.j > >> ava:1067) > >> at > >> org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:607) > >> at > >> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPa > >> rt.java:352) > >> at > >> org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.ja > >> va:670) > >> at > >> org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465 > >> ) > >> at > >> org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReferen > >> ce.java:595) > >> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313) > >> at > >> org.eclipse.ui.internal.presentations.PresentablePart.setVisible(Presentabl > >> ePart.java:180) > >> at > >> org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(Pre > >> sentablePartFolder.java:270) > >> at > >> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftT > >> oRightTabOrder.java:65) > >> at > >> org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPa > >> rt(TabbedStackPresentation.java:473) > >> at > >> org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.ja > >> va: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.j > >> ava:63) > >> at > >> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java: > >> 225) > >> at > >> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:21 > >> 3) > >> at > >> org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:77 > >> 8) > >> at > >> org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManage > >> r.java:677) > >> at > >> org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:638) > >> at > >> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.j > >> ava:2860) > >> at > >> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:276 > >> 8) > >> 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(EditorUti > >> lity.java:365) > >> at > >> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUti > >> lity.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(SelectionDis > >> patchAction.java:274) > >> at > >> org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAct > >> ion.java:250) > >> at > >> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOp > >> en(PackageExplorerActionGroup.java:373) > >> at > >> org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageE > >> xplorerPart.java:526) > >> at > >> org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLin > >> kWithEditorHelper.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:8 > >> 43) > >> at > >> org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java > >> :1131) > >> at > >> org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.ja > >> va: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(EclipseA > >> ppLauncher.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.GraphicalEditorPar > >>>> t.renderWithBridge(Unknown > >>>> Source) > >>>> at > >>>> com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPar > >>>> t.recomputeLayout(Unknown > >>>> Source) > >>>> at > >>>> com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPar > >>>> t.activated(Unknown > >>>> Source) > >>>> at > > ... > > read more » -- 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

