Community
Participate
Working Groups
I've seen some strangely intermittent -- that is, never consistent enough to report -- issues with performance and parsing of my cross-project XPand and XTend files. Sometimes I get into a state where dependent artifacts will not resolve and/or xtend markers will not go away. Often this seems to happen after there have been a number of very long xtend/xpand analyze jobs. But this last time I'm getting some errors which might be helpful. First, I'm having cases where I get the "did you forget to configure" error and the type is completely nonsensical. i.e. I don't have a type "SPr". This looks like some kind of corruption to me: EvaluationException : Couldn't resolve type for 'SPr'. Did you forget to configure the corresponding metamodel? metaabm::ascape::tmpl::namesascape[2144,55] on line 80 'String scape(SPr agent)' at org.eclipse.internal.xtend.xtend.ast.AbstractExtension.init(AbstractExtension.java:225) at org.eclipse.xtend.expression.ExecutionContextImpl.internalAllExtensions(ExecutionContextImpl.java:332) at org.eclipse.xtend.expression.ExecutionContextImpl.getAllExtensions(ExecutionContextImpl.java:305) at org.eclipse.xtend.shared.ui.core.search.XtendXpandSearchEngine.findExtensionsByNameInResourceAndImports(XtendXpandSearchEngine.java:303) at org.eclipse.xtend.shared.ui.editor.navigation.AbstractHyperlinkDetector.findExtensionMatches(AbstractHyperlinkDetector.java:213) at org.eclipse.xpand.ui.editor.XpandHyperlinkDetector.computeMatchesAndHyperlinks(XpandHyperlinkDetector.java:105) at org.eclipse.xtend.shared.ui.editor.navigation.AbstractHyperlinkDetector.detectHyperlinks(AbstractHyperlinkDetector.java:74) at org.eclipse.xpand.ui.editor.XpandOpenAction.run(XpandOpenAction.java:68) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:278) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185) at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109) 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:1031) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3775) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1404) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1400) at org.eclipse.swt.widgets.Canvas.sendKeyEvent(Canvas.java:416) at org.eclipse.swt.widgets.Control.doCommandBySelector(Control.java:958) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5068) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSResponder.interpretKeyEvents(NSResponder.java:56) at org.eclipse.swt.widgets.Composite.keyDown(Composite.java:587) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4978) at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220) at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:1943) at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2025) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5040) at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method) at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4582) at org.eclipse.swt.widgets.Display.applicationProc(Display.java:4659) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:115) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3274) 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(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:619) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574) at org.eclipse.equinox.launcher.Main.run(Main.java:1407) And I also noticed the following in my system console: 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] java.lang.NullPointerException 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.xtend.shared.ui.Activator.getId(Activator.java:174) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.xtend.shared.ui.core.builder.XtendXpandMarkerManager.getMARKER_TYPE(XtendXpandMarkerManager.java:38) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.xtend.shared.ui.core.builder.XtendXpandMarkerManager$2.execute(XtendXpandMarkerManager.java:134) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.xtend.shared.ui.core.builder.XtendXpandMarkerManager.deleteMarkers(XtendXpandMarkerManager.java:137) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.xtend.shared.ui.core.AbstractResource.analyze(AbstractResource.java:92) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.xtend.shared.ui.core.internal.XtendXpandProject.analyze(XtendXpandProject.java:338) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.xtend.shared.ui.core.builder.XtendXpandBuilder.build(XtendXpandBuilder.java:201) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242) 1/14/11 1:04:12 PM [0x0-0x2c92c9].org.eclipse.eclipse[8314] at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
OK, I missed something really obvious. Somehow -- due to an accidental edit presumably -- I really did try to use a bad type there. So pls ignore the first issue. But on second issue, there does seem to be something going on with creation of markers.
To avoid confusion, I'm going to mark this one invalid and create a new bug for the marker issue.