Unable to make build solution...

Hello,

I just installed MPS 3.0 and created a build solution for the Calculator tutorial language.

I am getting the following error when making this solution and I am wondering if anybody has encountered this issue and was able to resolve it:

mps module jetbrains.mps.lang.test.runtime was not found in the layout
--  – was input node: [modules] BuildMps_Language <no ref>[4087223729874454721] in Calculator.build@3_1
--  – was template: [value] XmlTextValue <no ref>[4821808014881207503] in jetbrains.mps.build.mps.generator.template.main@generator
mps module jetbrains.mps.lang.test was not found in the layout of `Calculator'
--  – was input node: [root] BuildProject <no ref>[4087223729874454662] in Calculator.build@3_1
--  – was template: [content] XmlElement <no ref>[5970181360960745066] in jetbrains.mps.build.mps.generator.template.main@generator
mps module jetbrains.mps.lang.test.runtime was not found in the layout of `Calculator'
--  – was input node: [root] BuildProject <no ref>[4087223729874454662] in Calculator.build@3_1
--  – was template: [content] XmlElement <no ref>[5970181360960745066] in jetbrains.mps.build.mps.generator.template.main@generator
mps module jetbrains.mps.baseLanguage.unitTest was not found in the layout of `Calculator'
--  – was input node: [root] BuildProject <no ref>[4087223729874454662] in Calculator.build@3_1
--  – was template: [content] XmlElement <no ref>[5970181360960745066] in jetbrains.mps.build.mps.generator.template.main@generator

Thanks,
- Quenio
2 comments
I forgot to mention that this issue only occurred when I created a standalone IDE build solution.
0
Hi, kk22ss,

This happens because dependency on jetbrains.mps.testing plugin is not added by default (wizard adds as little dependencies as possible since every user can customize the script and add whatever he needs). You can do the following to fix the problem:

1. Add dependency on mpsTesting build script to dependencies section of Calculator script:
mpsTesting (artifacts location $mps_home/plugins)
prettyPrint();
This line tells the script that you need modules from mpsTesting to compile your code and that they are located under $mps_home/plugins folder.

2. Add dependency on "jetbrains.mps.testing" into "ide plugin" section of the script:
idea plugin Calculator 
  name Calculator 
  short (folder) name Calculator 
  description <no description> 
  version 1.0 
  << no vendor >> 
  content: 
    Calculator 
  dependencies: 
    jetbrains.mps.core 
    jetbrains.mps.testing 
prettyPrint();
This tells the plugin system that jetbrains.mps.testing is required to load your plugin.

3. Finally, add importing testing plugin files (line import mpsTesting::mps-testing) to the layout of your standalone build:
folder plugins 
  import mpsStandalone::plugins/svn4idea 
  import mpsStandalone::plugins/cvsIntegration 
  import mpsStandalone::plugins/git4idea 
  import mpsStandalone::plugins/mps-core 
  import mpsTesting::mps-testing 
  plugin Calculator 
    <empty> 
     
  # optional plugins 
  import mpsMakePlugin::mps-make.jar 
  
prettyPrint();
This tells the script that you need the testing plugin included into you standalone MPS build.

--
Julia
0

Please sign in to leave a comment.