Cannot find used language dependency in build solution
Hi,
I try to export a language via build solution so that I can use it as IDEA plugin. This works like a charm with another (simple) language I created, but a more sophisticated one fails with this error:
"cannot find used language in dependencies: jetbrains.mps.lang.plugin.standalone"
Indeed is that one not listed in the solutions dependencies section (but in the model properties), only jetbrains.mps.lang.plugin. I've already added the jetbrains.mps.lang.plugin.standalone.jar from $mps_home/languages/workbench, but that doesn't help.
So where I can declare this dependency?
Best regards,
Jens
I try to export a language via build solution so that I can use it as IDEA plugin. This works like a charm with another (simple) language I created, but a more sophisticated one fails with this error:
"cannot find used language in dependencies: jetbrains.mps.lang.plugin.standalone"
Indeed is that one not listed in the solutions dependencies section (but in the model properties), only jetbrains.mps.lang.plugin. I've already added the jetbrains.mps.lang.plugin.standalone.jar from $mps_home/languages/workbench, but that doesn't help.
So where I can declare this dependency?
Best regards,
Jens
Please sign in to leave a comment.
IntelliJ IDEA plug-in retains only the minimal (core) set of MPS functionality which is required for language users, not developers. To bundle a language for IntelliJ IDEA you have to constraint your dependencies by that reduced set of modules (see buildCore and buildCoreEx scripts for the full list).
Here are two quick rules:
Best,
Evgeny
Best regards,
Jens
Meanwhile, grep plugin.mps file for jetbrains.mps.lang.plugin.standalone.structure:
<import index="tgbt" modelUID="r:c70ee934-afb1-4c02-b6a9-1c4d1908a792(jetbrains.mps.lang.plugin.standalone.structure)" version="1" implicit="yes" />
Then grep for the index attribute value (tgbt), you'll find something like
<node type="tgbt.StandalonePluginDescriptor" ....
Now you can open the concept (Ctrl N -> StandalonePluginDescriptor) and search for its instances in the project.
Best regards,
Jens