Couldn't find method

Hi

I followed the SimplestLanguage tutorial... and its failng in the last step...

Couldn't find method "templateMappingRule_SourceQuery_ AllTextConcepts" in SimplestLanguage.generator.baseLanguage.template.main.Queries or in its supers.

I send in attach 2 screenshots, one of MPS where you can see the error and the declaration of "AllTextConcepts" and the other of IntelliJ with the Queries (wich compiles fine) class opened.

This must be a basic error (since none else complains about it), but can't seem to find where did went wrong, any clue?...

[] Rui

bellow is the stack treace:

  ERROR - ps.generator.GenerationSession - Exception

java.lang.RuntimeException: Couldn't find method "templateMappingRule_SourceQuery_ AllTextConcepts" in SimplestLanguage.generator.baseLanguage.template.main.Queries or in its supers

        at jetbrains.mps.util.QueryMethod.getQueryMethod(QueryMethod.java:97)

        at jetbrains.mps.util.QueryMethod.invoke(QueryMethod.java:106)

        at jetbrains.mps.generator.template.TemplateGenUtil.createSourceNodeListForMappingRule(TemplateGenUtil.java:330)

        at jetbrains.mps.generator.template.TemplateGenUtil.createNodeBuildersForMappingRule(TemplateGenUtil.java:193)

        at jetbrains.mps.generator.template.NodeBuilderManager.createRootBuilders(NodeBuilderManager.java:123)

        at jetbrains.mps.generator.template.AbstractTemplateModelGenerator.doPrimaryMapping(AbstractTemplateModelGenerator.java:115)

        at jetbrains.mps.generator.GenerationSession.generateModel(GenerationSession.java:177)

        at jetbrains.mps.generator.GenerationSession.generateModel_internal(GenerationSession.java:142)

        at jetbrains.mps.generator.GenerationSession.generateModel(GenerationSession.java:77)

        at jetbrains.mps.generator.GeneratorManager.generateModels(GeneratorManager.java:316)

        at jetbrains.mps.generator.GeneratorManager$3$1.run(GeneratorManager.java:214)

        at jetbrains.mps.ide.command.CommandProcessor.executeCommand_internal(CommandProcessor.java:85)

        at jetbrains.mps.ide.command.CommandProcessor.executeCommand(CommandProcessor.java:71)

        at jetbrains.mps.ide.command.CommandProcessor.executeCommand(CommandProcessor.java:48)

        at jetbrains.mps.generator.GeneratorManager$3.run(GeneratorManager.java:212)



Attachment(s):
1392x547-intellimps.png
1468x630-mps.png
1 comment
Comment actions Permalink

Hi again...

Ok, I found out what it was... had a space character preceding "AllTextConcepts"

... guess I answered my self :-)

[] Rui

0

Please sign in to leave a comment.