More mistake messages in the process of following "TheSimplestLanguage"
NO 1.The process of setup relative softwares:(Win Server 2003)
1.Install IntelliJ IDEA5661.
2.Install jdk1.5.0_08.
Set the envirenment variable,and make sure it is true through a simple java programme "HelloWorld".
3.Install MPS.
4.Start MPS and install plugins.But MPSPlugin is installed to the directory "\JetBrains\IntelliJ IDEA 5661\plugins\plugins",
so I cut it off and paste it to "\JetBrains\IntelliJ IDEA 5661\plugins";
5.Start IntelliJ IDEA5661.Open Settings->Project Structure and add JSDK ?IntelliJ IDEA SDK to "Global Resources->JDKs".
Then choose JSDK for "Project JDK";
6.Load project "fixedLengthReader" in MPS, generate textfile,then the mistake what I mentioned in the last thread "Prolems about query menthod" arises.
NO 2. The process of create project "TheSimplestLanguage" .
1.Before I start to create concept,two warn messages appear in DOS.
-
WARN - ps.ide.projectPane.ProjectPane - Couldn't select model "TheSimplestLanguage.structure" : tree node not found.
WARN - ps.ide.projectPane.ProjectPane - Couldn't select model "TheSimplestLanguage.editor" : tree node not found.
-
2.After creating an instance of the TheSimplestConcept int the solution:
-
ERROR - ins.mps.project.AbstractModule - Couldn't find language: "" in scope: main
java.lang.Throwable
at jetbrains.mps.logging.Logger.errorWithTrace(Logger.java:65)
at jetbrains.mps.project.AbstractModule.getLanguage(AbstractModule.java:48)
at jetbrains.mps.project.AbstractModule.getLanguage(AbstractModule.java:38)
at jetbrains.mps.projectLanguage.editor.Queries$2.isValidText(Queries.java:334)
at jetbrains.mps.nodeEditor.EditorCell_Property.(EditorCell_Property.java:17)
at jetbrains.mps.nodeEditor.EditorCell_Property.create(EditorCell_Property.java:25)
at jetbrains.mps.projectLanguage.editor.Language_Editor.createLanguageNameCell(Language_Editor.java:24)
at jetbrains.mps.projectLanguage.editor.Language_Editor.createEditorCell(Language_Editor.java:20)
at jetbrains.mps.nodeEditor.EditorManager.createEditorCell_internal(EditorManager.java:239)
at jetbrains.mps.nodeEditor.EditorManager.createEditorCell(EditorManager.java:222)
at jetbrains.mps.nodeEditor.EditorContext.createNodeCell(EditorContext.java:63)
at jetbrains.mps.nodeEditor.EditorContext.createNodeCell(EditorContext.java:99)
at jetbrains.mps.bootstrap.editorLanguage.cellProviders.RefNodeListHandler.createNodeCell(RefNodeListHandler.java:56)
at jetbrains.mps.projectLanguage.editor.NewModelProperties_Editor_LanguageListHandler.createNodeCell(NewModelProperties_Editor_LanguageListHandler.java:32)
at jetbrains.mps.nodeEditor.cellProviders.AbstractCellListHandler.createCells(AbstractCellListHandler.java:105)
at jetbrains.mps.projectLanguage.editor.NewModelProperties_Editor.createLanguageList(NewModelProperties_Editor.java:207)
at jetbrains.mps.projectLanguage.editor.NewModelProperties_Editor.createColumnCell(NewModelProperties_Editor.java:42)
at jetbrains.mps.projectLanguage.editor.NewModelProperties_Editor.createEditorCell(NewModelProperties_Editor.java:29)
at jetbrains.mps.nodeEditor.EditorManager.createEditorCell_internal(EditorManager.java:239)
at jetbrains.mps.nodeEditor.EditorManager.createEditorCell(EditorManager.java:222)
at jetbrains.mps.nodeEditor.EditorManager.createRootCell(EditorManager.java:61)
at jetbrains.mps.nodeEditor.EditorManager.createRootCell(EditorManager.java:50)
at jetbrains.mps.nodeEditor.EditorContext.createRootCell(EditorContext.java:69)
at jetbrains.mps.nodeEditor.UIEditorComponent.createRootCell(UIEditorComponent.java:71)
at jetbrains.mps.nodeEditor.AbstractEditorComponent$11.run(AbstractEditorComponent.java:931)
at jetbrains.mps.nodeEditor.AbstractEditorComponent.runSwapCellsActions(AbstractEditorComponent.java:1647)
at jetbrains.mps.nodeEditor.AbstractEditorComponent.rebuildEditorContent(AbstractEditorComponent.java:929)
at jetbrains.mps.nodeEditor.AbstractEditorComponent$MyModelListener.modelChangedInCommand(AbstractEditorComponent.java:1542)
at jetbrains.mps.smodel.SModel.fireSModelChangedInCommandEvent(SModel.java:316)
at jetbrains.mps.smodel.SModel.access$100(SModel.java:25)
at jetbrains.mps.smodel.SModel$SModelEventTranslator.commandFinished(SModel.java:812)
at jetbrains.mps.ide.command.CommandProcessor.fireCommandFinished(CommandProcessor.java:145)
at jetbrains.mps.ide.command.CommandProcessor.executeCommand_internal(CommandProcessor.java:97)
at jetbrains.mps.ide.command.CommandProcessor.executeCommand(CommandProcessor.java:74)
at jetbrains.mps.ide.command.CommandProcessor.executeCommand(CommandProcessor.java:59)
at jetbrains.mps.nodeEditor.AbstractEditorComponent.processKeyPressed(AbstractEditorComponent.java:1261)
at jetbrains.mps.nodeEditor.AbstractEditorComponent$7.keyPressed(AbstractEditorComponent.java:284)
at java.awt.Component.processKeyEvent(Unknown Source)
at javax.swing.JComponent.processKeyEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at jetbrains.mps.ide.BaseDialog.showDialog(BaseDialog.java:121)
at jetbrains.mps.ide.BaseNodeDialog.showDialog(BaseNodeDialog.java:81)
at jetbrains.mps.ide.actions.model.NewModelAction.execute(NewModelAction.java:27)
at jetbrains.mps.ide.action.AbstractActionAdapter.actionPerformed(AbstractActionAdapter.java:49)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
-
3.when create a template of the generator
-
WARN - ps.ide.projectPane.ProjectPane - Couldn't select model "TheSimplestLanguage.generator.baseLanguage.template.main@templates" : tree node not found.
WARN - s.mps.nodeEditor.EditorContext - ref context not initialized
WARN - s.mps.nodeEditor.EditorContext - ref context not initialized
WARN - s.mps.nodeEditor.EditorContext - ref context not initialized
ERROR - ps.generator.GenerationSession - Exception
jetbrains.mps.generator.GenerationFailedException: jetbrains.mps.generator.GenerationFailedException: java.lang.RuntimeException: Error invocation method: "propertyMacro_aaa" in TheSimplestLanguage.generator.baseLanguage.template.main.Queries
at jetbrains.mps.generator.template.AbstractTemplateModelGenerator.executeNodeBuilders(AbstractTemplateModelGenerator.java:209)
at jetbrains.mps.generator.template.AbstractTemplateModelGenerator.doPrimaryMapping(AbstractTemplateModelGenerator.java:128)
at jetbrains.mps.generator.GenerationSession.generateModel(GenerationSession.java:190)
at jetbrains.mps.generator.GenerationSession.generateModel_internal(GenerationSession.java:157)
at jetbrains.mps.generator.GenerationSession.generateModel(GenerationSession.java:91)
at jetbrains.mps.generator.GeneratorManager.generateModels(GeneratorManager.java:354)
at jetbrains.mps.generator.GeneratorManager$1$1$1.run(GeneratorManager.java:244)
at jetbrains.mps.ide.command.CommandProcessor.executeCommand_internal(CommandProcessor.java:89)
at jetbrains.mps.ide.command.CommandProcessor.executeCommand(CommandProcessor.java:74)
at jetbrains.mps.ide.command.CommandProcessor.executeCommand(CommandProcessor.java:51)
at jetbrains.mps.generator.GeneratorManager$1$1.run(GeneratorManager.java:242)
Caused by: jetbrains.mps.generator.GenerationFailedException: java.lang.RuntimeException: Error invocation method: "propertyMacro_aaa" in TheSimplestLanguage.generator.baseLanguage.template.main.Queries
at jetbrains.mps.generator.template.AbstractTemplateModelGenerator.executeNodeBuilder(AbstractTemplateModelGenerator.java:342)
at jetbrains.mps.generator.template.AbstractTemplateModelGenerator.executeNodeBuilder(AbstractTemplateModelGenerator.java:349)
at jetbrains.mps.generator.template.AbstractTemplateModelGenerator.executeNodeBuilder(AbstractTemplateModelGenerator.java:349)
at jetbrains.mps.generator.template.AbstractTemplateModelGenerator.executeNodeBuilder(AbstractTemplateModelGenerator.java:349)
at jetbrains.mps.generator.template.AbstractTemplateModelGenerator.executeNodeBuilder(AbstractTemplateModelGenerator.java:349)
at jetbrains.mps.generator.template.AbstractTemplateModelGenerator.executeNodeBuilder(AbstractTemplateModelGenerator.java:349)
at jetbrains.mps.generator.template.AbstractTemplateModelGenerator.executeNodeBuilders(AbstractTemplateModelGenerator.java:197)
-
But when there's not a macro in the template,it works well even there's so many mistakes.
when there is,the similar error messages I mentioned in the last thread "problems about query method" arise.
Please sign in to leave a comment.
How to deal with that?
Could you please describe how you make MPS to install plugin to IDEA/plugins/plugins folder. I tried to reproduce it but eveyrthing worked well.
good news: I can reproduce this problem in b292
bad news: I couldn't find a workaround for this :-(
I've submitted the src : http://www.jetbrains.net/jira/browse/MPS-654
Igor
When I installed plugins,I click into the folder "IDEA/plugins",then installed.
I tried once again.This time,when installing the plugins.I didn't click into the folder"plugins" and just chose it.
Then the plugins was corectly installed.But the problems still existed.I'm confused and exhausted.
JDK:envirenment variables
-
JAVA_HOME: C:\Program Files\Java\jdk1.5.0_08
CLASS_PATH: .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
PATH: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
-
The below is the IDE fatal errors in intelliJ IDEA
-
java.lang.NullPointerException
at jetbrains.mps.plugin.ProjectHandler$20.run(ProjectHandler.java:455)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:89)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:41)
at jetbrains.mps.plugin.ProjectHandler$25$1.run(ProjectHandler.java:585)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:154)
at jetbrains.mps.plugin.ProjectHandler$25.run(ProjectHandler.java:583)
at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:4)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:8)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:90)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:168)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:27)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
-