Use of baseLanguage.math Intervals in Constraints

Thanks to unmatched MPS flexibility, I've managed to use baseLanguage.math.Interval in Contraint definition for my properties:

property {value}                                                                  

  get:<default>                                                                   

  set:<default>                                                                   

  is valid:(node, propertyValue, scope)->boolean {

  propertyValue ∈ [0, +∞);

}

It looks really nice and compiles well, but when I try to use this constraint (enter property value), IDE exception is thrown:

java.lang.NoClassDefFoundError: jetbrains/mps/baseLanguage/math/runtime/Interval

The solution is to add MPS-1.0\core\baseLanguage\jetbrains.mps.baseLanguage.math.runtime.jar into Language Properties -> Design Time -> Classpath

I hope this kind of dependencies will be automatically resolved somewhere in the future ;-)

1 comment
Comment actions Permalink

Alexander,

It's a bug and, I think we will fix it soon.


Regards,

Konstantin

0

Please sign in to leave a comment.