Error migrating ECMAScript4MPS

Hi,

I'm reporting the problem here because the Window "IDE Fatal Errors" that should be used from the IDE to report errors never enables the "Report to JetBrains" button. The error, reported several times, is:

Failed to instantiate aspect interface jetbrains.mps.smodel.runtime.StructureAspectDescriptor in language org.mar9000.mps.ecmascript: jetbrains.mps.smodel.language.LanguageRuntime.createAspect(Ljava/lang/Class;)Ljetbrains/mps/smodel/runtime/ILanguageAspect;
java.lang.AbstractMethodError: jetbrains.mps.smodel.language.LanguageRuntime.createAspect(Ljava/lang/Class;)Ljetbrains/mps/smodel/runtime/ILanguageAspect;
    at jetbrains.mps.smodel.language.LanguageRuntime.getAspect(LanguageRuntime.java:101)
    at jetbrains.mps.smodel.language.StructureRegistry.getConceptDescriptor(StructureRegistry.java:68)
    at jetbrains.mps.smodel.language.ConceptRegistry.getConceptDescriptor(ConceptRegistry.java:113)
    at jetbrains.mps.smodel.language.ConceptRegistryUtil.getConceptDescriptor(ConceptRegistryUtil.java:41)
    at jetbrains.mps.smodel.adapter.structure.concept.SConceptAdapterById.getConceptDescriptor(SConceptAdapterById.java:101)
    at jetbrains.mps.smodel.adapter.structure.concept.SAbstractConceptAdapter.isValid(SAbstractConceptAdapter.java:353)
    at jetbrains.mps.ide.icons.IconManager.getIconFor(IconManager.java:116)
    at jetbrains.mps.ide.findusages.view.treeholder.tree.nodedatatypes.NodeNodeData.getIcon(NodeNodeData.java:73)
    at jetbrains.mps.ide.findusages.view.treeholder.treeview.UsagesTree.setUIProperties(UsagesTree.java:411)
    at jetbrains.mps.ide.findusages.view.treeholder.treeview.UsagesTree.setUIProperties(UsagesTree.java:432)
    at jetbrains.mps.ide.findusages.view.treeholder.treeview.UsagesTree.setUIProperties(UsagesTree.java:432)
    at jetbrains.mps.ide.findusages.view.treeholder.treeview.UsagesTree.setUIProperties(UsagesTree.java:432)
    at jetbrains.mps.ide.findusages.view.treeholder.treeview.UsagesTree.setUIProperties(UsagesTree.java:432)
    at jetbrains.mps.ide.findusages.view.treeholder.treeview.UsagesTree.buildTree(UsagesTree.java:307)
    at jetbrains.mps.ide.findusages.view.treeholder.treeview.UsagesTree.access$800(UsagesTree.java:65)
    at jetbrains.mps.ide.findusages.view.treeholder.treeview.UsagesTree$7.compute(UsagesTree.java:287)
    at jetbrains.mps.ide.findusages.view.treeholder.treeview.UsagesTree$7.compute(UsagesTree.java:257)
    at jetbrains.mps.util.ComputeRunnable.compute(ComputeRunnable.java:32)
    at jetbrains.mps.util.AbstractComputeRunnable.run(AbstractComputeRunnable.java:27)
    at jetbrains.mps.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:100)
    at jetbrains.mps.smodel.ModelAccessBase.runReadAction(ModelAccessBase.java:53)
    at jetbrains.mps.ide.findusages.view.treeholder.treeview.UsagesTree.rebuild(UsagesTree.java:292)
    at jetbrains.mps.ide.findusages.view.treeholder.treeview.UsagesTree.rebuild(UsagesTree.java:65)
    at jetbrains.mps.ide.ui.tree.MPSTree$4.run(MPSTree.java:510)
    at jetbrains.mps.smodel.WorkbenchModelAccess$2.run(WorkbenchModelAccess.java:108)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:926)
    at jetbrains.mps.smodel.WorkbenchModelAccess.runReadAction(WorkbenchModelAccess.java:103)
    at jetbrains.mps.ide.ui.tree.MPSTree.runRebuildAction(MPSTree.java:477)
    at jetbrains.mps.ide.ui.tree.MPSTree.rebuildNow(MPSTree.java:504)
    at jetbrains.mps.ide.findusages.view.treeholder.treeview.UsagesTree.access$401(UsagesTree.java:65)
    at jetbrains.mps.ide.findusages.view.treeholder.treeview.UsagesTree.rebuildNow(UsagesTree.java:173)
    at jetbrains.mps.ide.ui.tree.MPSTree$3.run(MPSTree.java:493)
    at jetbrains.mps.ide.ui.tree.MPSTree$SafeUpdate.run(MPSTree.java:886)
    at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:337)
    at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:327)
    at com.intellij.util.ui.update.MergingUpdateQueue.lambda$flush$1(MergingUpdateQueue.java:277)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2632)
    at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:288)
    at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:246)
    at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:223)
    at com.intellij.util.Alarm$Request.runSafely(Alarm.java:418)
    at com.intellij.util.Alarm$Request.access$700(Alarm.java:343)
    at com.intellij.util.Alarm$Request$1.run(Alarm.java:385)
    at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:303)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:410)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:827)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:655)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

I've got this error while trying to migrate the project ECMAScript4MPS to the last 2017.1.1 MPS version, Java 1.8.121, Linux Mint.
See the project here https://github.com/mar9000/ecmascript4mps.git

Thanks,

Mar

0
2 comments

This was an issue caused by API changes in LanguageRuntime.createAspect(). I've migrated the project to 2017.1.1

 

0

Please sign in to leave a comment.