Simplest language tutorial problems on mac os x Follow
Hello all. I found this exiting system through one month research on internet and wanted to give a try for language oriented method.
- powerbook g4 1,67ghz with mac os x 10.4.8
- Java 1.5
- IntelliJ IDEA 6.0.4
- MPS EAP build
Installing ok for both programs. Everything also ok to "generate language part" on simplest language tutorial, but then java problems starts:
1) I cannot see MPS plugin loaded to IDEA althought MPS is in IDEa plugins folder
2) After generation i get some error messages, one of them is: Invalid reference "classifier" in templates... String literal is marked red. Probably some classes are not loaded.
3) Other errors:
- executing builder for source: ...
- -- was source node: ...
- -- was rule: ...
- -- was template: ...
- generation failed...
Could someone tell me how to configure MPS and IDEA right way to get them working on mac os x?
Please sign in to leave a comment.
I got further by uninstalling both programs and starting from clean table. Now IDEA works well with MPS, but had to add this:
to MPS project classpath entries (for System.out and String?) and also i had to attach source and classes from IDEA Preferences -> Project Settings -> Project Structure -> Project Libraries -> MPS (taking /bin away from path)
After generation IDEA leaves 3 warning regarding to castings and one big list of strange warnings to me:
Mapping configuration for SimplestLanguage on tutorial didn't put import to java source. That and ArrayList imports had to made manually...
I just want to report these things, if some others are trying to make it work on a mac. Tomorrow i hope i get tutorial finished.
Thakx for letting us know! have you succeed with tutorial?
Yes. I think i succeed with compiling. I got exactly the same results as on screenshots.
Have anyone made php oriented tutorials with MPS?
Unfortunately we don't have php samples that I know about.
We have on-going web-app project (http://www.sergeydmitriev.com/mps/blog/archives/2006/12/web_application.html) but it isn't based on PHP.
Thanks, that was interesting to watch anyway.
I couldn't get as far as you unfortunately :). I try create a very simple language with 1 concept with 1 string property in it and when I click Generate Language on OS X with IDEA 6.0.4 I get the following - I'm completely stumped and don't know what I can do to get past this...
Couldn't resolve reference baseMethodDeclaration from InstanceMethodCall  in jetbrains.mps.bootstrap.structureLanguage.generator.baseLanguage@templates
The target model jetbrains.mps.smodel@java_stub doesn't contain node with ERI=method (SNode).(getReferent((jetbrains.mps.baseLanguage.types.classifier/jetbrains.mps.baseLanguage.types.classifier )) : (jetbrains.mps.baseLanguage.types.classifier/jetbrains.mps.baseLanguage.types.classifier ))
The target model java.lang@java_stub doesn't contain node with ERI=[ClassConcept]String
means that there is no class String in a classpath of your mps project. Try adding a jar file with this class to a language or project classpath in the language or project properties dialog.