TextGen not found for 'jetbrains.mps.baseLanguage.math.structure.ComplexType

I'm trying to learn how to use MPS by following the book "The MPS Language Workbench", but I'm having trouble getting the first example to work in both MPS 3.4 and MPS 3.3.

I try creating a new solution project that uses the math language, and trying to create a new class like

 

public class HelloWorld {
public static void main(string[] args) {
complex a = 2 + 3 * I;
System.out.println("hello");
}
}

 

But when I try to run this program I get a number of errors, and the generated Java contains the line:

<!TextGen not found for 'jetbrains.mps.baseLanguage.math.structure.ComplexType'!>

And a similar thing for the use of I. I've tried searching to see if this is a common problem, but I can't figure out what I'm doing wrong or what I'm missing to make this work.

 

Any help would be appreciated,

Thanks

 

 

0
3 comments

There is no obvious mistake that I could spot. The issue is perhaps in how you set up dependencies on the Complex language in your project.

Vaclav

 

0
Avatar
Permanently deleted user

When I create a new model (in which I create the new class) the book doesn't mention adding any dependencies in the Model Properties dialogue, are there specific things I should be putting there in order to make this work? It seems like there probably should be, but I don't even know where to begin figuring out which ones.

 

Thanks again

0
Avatar
Permanently deleted user

So I tried again with my first project in MPS 3.4 and now things seem to be working correctly, I have no idea what I did differently, but for now I can keep going with the book.

0

Please sign in to leave a comment.