seeing MPS-generated java sources in IDEA

http://www.sergeydmitriev.com/mps/doc/tutorial.html

says

MPS goes through the process of generating code in IntelliJ IDEA. When it is complete, you can check out the code that was generated by going to the IntelliJ IDEA window. Open the TheSimplestConcept.java file which is located in the source_gen folder.

MPS apparently doesn't do anything to help me see the sources in IDEA. It doesn't create a project file with all the libraries configured, and it doesn't tell IDEA to open the project that it doesn't make.

I made an IDEA project so I can see the generated sources, but I can't tell which libraries I need to use.

Oh.  I see.  lib/mps.jar seems to do the trick.

But it would be nice if MPS would create a project file and give me a button to open it.

Edited by: Dave Yost on Nov 3, 2008 8:01 AM

Edited by: Dave Yost on Nov 3, 2008 8:23 AM

9 comments
Comment actions Permalink

Hi Dave,

Good point, thanks for the feedback.

You also may want to take a look at more recent  (still in work) documentation -  http://www.jetbrains.net/confluence/display/MPS/MPSUser%27sGuide

Any comments are welcomed.

Igor.

Edited by: Igor Alshannikov on Nov 3, 2008 2:23 PM

0
Comment actions Permalink

Hello, Dave,

You can view generated source if you open file view in project view (see combobox below project view toolbar).

0
Comment actions Permalink

Also you might find useful transient models feature. You can turn it on with generate->save transient models menu item. After that, on each generation you will be asked whether you want to save transient models. If you answer yes, you will be able everything that generated from your models in transient modules node in project view.

0
Comment actions Permalink

Please let me know when you've fixed the tutorial, so I can proceed.

Also, on the documentation, it is very frustrating to go to item after item only to find nothing there. To remove this usability problem, I suggest that a title include (Todo) at the end when there is nothing there.

0
Comment actions Permalink

You are following the wrong tutorial which is obsolete. I recommend you following tutorials here: http://www.jetbrains.net/confluence/display/MPS/MPSTutorialsPage They are quite up to date.

0
Comment actions Permalink

I've taken a look at MPS site and it turned out that we have a wrong link on documentation link. Documentation there is completely obsolete. You can find our new documentation here: http://www.jetbrains.net/confluence/display/MPS/MPSDocumentationPage The wrong link will be updated later.

0
Comment actions Permalink

When I click on Getting Started with MPS on this page

http://www.jetbrains.net/confluence/display/MPS/MPSTutorialsPage

I get the attached result. Is this a server configuration problem?

Or am I supposed to do something (if so, it's not at all clear).



Attachment(s):
mps-tutorial.png
0
Comment actions Permalink

Much better! Lots to read!

The MPS project structure link goes to a page that includes all of its subheadings. This is good. But the Defining Language Structure heading doesn't link to a page. It would be better if it did. The subheadings under Structure don't match the subheadings on the page the Structure heading links to.

Finally, it would be convenient if there were a link that would go to a page containing the entire document, for printing.

0
Comment actions Permalink

This tutorial is on external server which isn't available now. I recommend you use screencast instead.

0

Please sign in to leave a comment.