building IDEA plugin: package org.jetbrains.mps.openapi.module does not exist

I am using MPS3 EAP2. I was able to configure dependencies for an IDEA plugin build solution to the point that no errors are reported in the build solution (this involved installing the MPS plugins manually into IDEAHOME/plugins, installing with the UI from the repo did not place the mps-* directories under plugins, then tuning dependencies manually on the modules). This was not trivial and I still don't fully understand how dependencies ought to be declared so that creating build files is easier.

In any case, running the build solution now fails with compile errors that suggest more missing dependencies, having to do with smodel and openapi.

What module or solution contain these dependencies and how does one configure the build script to find them?
Does MPS3 require a new version of the IDEA MPS plugins?

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -classpath /Applications/MPS 3.0.app/lib/ant/lib/ant-antlr.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-apache-bcel.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-apache-bsf.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-apache-log4j.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-apache-oro.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-apache-regexp.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-apache-resolver.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-apache-xalan2.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-commons-logging.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-commons-net.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-jai.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-javamail.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-jdepend.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-jmf.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-jsch.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-junit.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-launcher.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-netrexx.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-swing.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant-testutil.jar:/Applications/MPS 3.0.app/lib/ant/lib/ant.jar:/Applications/MPS 3.0.app/lib/tools.jar org.apache.tools.ant.launch.Launcher -Djava.home=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home -Dant.home=/Applications/MPS 3.0.app/lib/ant -f /Users/fac2003/MPSProjects/NYoSh/build.xml assemble
Buildfile: /Users/fac2003/MPSProjects/NYoSh/build.xml

fetchDependencies:

java.compile.org.campagnelab.nyosh.gstring:
    [javac] Compiling 29 source files to /Users/fac2003/MPSProjects/NYoSh/build/tmp/NYoSh/java/out/org.campagnelab.nyosh.gstring
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/Language.java:6: package org.jetbrains.mps.openapi.module does not exist
    [javac] import org.jetbrains.mps.openapi.module.SModuleReference;
    [javac]          ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/Language.java:14: cannot find symbol
    [javac] symbol  : class LanguageAspectDescriptor
    [javac] location: package jetbrains.mps.smodel.runtime
    [javac] import jetbrains.mps.smodel.runtime.LanguageAspectDescriptor;
    [javac]      ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/Language.java:15: package jetbrains.mps.openapi.editor.descriptor does not exist
    [javac] import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor;
    [javac]  ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/Language.java:18: cannot find symbol
    [javac] symbol  : class SModuleReference
    [javac] location: class org.campagnelab.nyosh.gstring.Language
    [javac]   public static SModuleReference MODULE_REFERENCE = ModuleReference.fromString("c6567f13-87ab-4686-8f6f-42e8228c0e27(org.campagnelab.nyosh.gstring)");
    [javac]  ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/editor/EditorAspectDescriptorImpl.java:5: package jetbrains.mps.openapi.editor.descriptor does not exist
    [javac] import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor;
    [javac]  ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/editor/EditorAspectDescriptorImpl.java:7: package jetbrains.mps.openapi.editor.descriptor does not exist
    [javac] import jetbrains.mps.openapi.editor.descriptor.ConceptEditorHint;
    [javac]  ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/editor/EditorAspectDescriptorImpl.java:9: package jetbrains.mps.editor.runtime.desctiptor does not exist
    [javac] import jetbrains.mps.editor.runtime.desctiptor.ConceptEditorHintImpl;
    [javac]  ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/editor/EditorAspectDescriptorImpl.java:10: package jetbrains.mps.openapi.editor.descriptor does not exist
    [javac] import jetbrains.mps.openapi.editor.descriptor.ConceptEditor;
    [javac]  ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/editor/EditorAspectDescriptorImpl.java:13: package jetbrains.mps.openapi.editor.descriptor does not exist
    [javac] import jetbrains.mps.openapi.editor.descriptor.ConceptEditorComponent;
    [javac]  ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/editor/EditorAspectDescriptorImpl.java:15: cannot find symbol
    [javac] symbol: class EditorAspectDescriptor
    [javac] public class EditorAspectDescriptorImpl implements EditorAspectDescriptor {
    [javac]       ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/Language.java:50: cannot find symbol
    [javac] symbol  : class LanguageAspectDescriptor
    [javac] location: class org.campagnelab.nyosh.gstring.Language
    [javac]   public <T extends LanguageAspectDescriptor> T getAspectDescriptor(Class<T> descriptorClass) {
    [javac]      ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/editor/EditorAspectDescriptorImpl.java:16: cannot find symbol
    [javac] symbol  : class ConceptEditorHint
    [javac] location: class org.campagnelab.nyosh.gstring.editor.EditorAspectDescriptorImpl
    [javac]   private Collection<ConceptEditorHint> myHints = Arrays.<ConceptEditorHint>asList(new ConceptEditorHintImpl("default", "Compact presentation", true, "org.campagnelab.nyosh.gstring.editor.GStringHints.default"), new ConceptEditorHintImpl("exploded", "Exploded presentation", true, "org.campagnelab.nyosh.gstring.editor.GStringHints.exploded"));
    [javac]       ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/editor/EditorAspectDescriptorImpl.java:18: cannot find symbol
    [javac] symbol  : class ConceptEditor
    [javac] location: class org.campagnelab.nyosh.gstring.editor.EditorAspectDescriptorImpl
    [javac]   public Collection<ConceptEditor> getEditors(ConceptDescriptor descriptor) {
    [javac]      ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/editor/EditorAspectDescriptorImpl.java:31: cannot find symbol
    [javac] symbol  : class ConceptEditorComponent
    [javac] location: class org.campagnelab.nyosh.gstring.editor.EditorAspectDescriptorImpl
    [javac]   public Collection<ConceptEditorComponent> getEditorComponents(ConceptDescriptor descriptor, String editorComponentId) {
    [javac]      ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/editor/EditorAspectDescriptorImpl.java:37: cannot find symbol
    [javac] symbol  : class ConceptEditorHint
    [javac] location: class org.campagnelab.nyosh.gstring.editor.EditorAspectDescriptorImpl
    [javac]   public Collection<ConceptEditorHint> getHints() {
    [javac]      ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/behavior/GStringComponent_Behavior.java:5: package org.jetbrains.mps.openapi.model does not exist
    [javac] import org.jetbrains.mps.openapi.model.SNode;
    [javac]         ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/behavior/GStringComponent_Behavior.java:6: cannot find symbol
    [javac] symbol  : class BehaviorReflection
    [javac] location: package jetbrains.mps.smodel.behaviour
    [javac] import jetbrains.mps.smodel.behaviour.BehaviorReflection;
    [javac]        ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/behavior/GStringComponent_Behavior.java:11: cannot find symbol
    [javac] symbol  : class SNode
    [javac] location: class org.campagnelab.nyosh.gstring.behavior.GStringComponent_Behavior
    [javac]   public static void init(SNode thisNode) {
    [javac]            ^
    [javac] /Users/fac2003/MPSProjects/NYoSh/languages/source_gen/org/campagnelab/nyosh/gstring/behavior/GStringComponent_Behavior.java:15: cannot find symbol
    [javac] symbol  : class SNode
    [javac] location: class org.campagnelab.nyosh.gstring.behavior.GStringComponent_Behavior
    [javac]   public static String call_literal_4087517305356282226(SNode thisNode) {

IDEA.mps (40KB)
1 comment

I'm facing the same problem. I set up a new IDEA and installed MPS on it. Setting the path to its folder as idea_home didn't work. Also tried using the standalone MPS IDE I have, that one didn't work either.

0

Please sign in to leave a comment.