Simplest language tutorial problems on mac os x
Hello all. I found this exiting system through one month research on internet and wanted to give a try for language oriented method.
My configuration:
- 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:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar
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:
com/intellij/j2ee/j2eeDom/XmlBasedObjectsManager
java.lang.NoClassDefFoundError: com/intellij/j2ee/j2eeDom/XmlBasedObjectsManager
at anima.plugins.struts.H.projectOpened(y:86)
at com.intellij.openapi.project.impl.ProjectImpl.c(ProjectImpl.java:175)
at com.intellij.openapi.project.impl.ProjectImpl.access$200(ProjectImpl.java:59)
at com.intellij.openapi.project.impl.ProjectImpl$MyProjectManagerListener.projectOpened(ProjectImpl.java:1)
at com.intellij.openapi.project.impl.ProjectManagerImpl$1.projectOpened(ProjectManagerImpl.java:19)
at com.intellij.openapi.project.impl.ProjectManagerImpl.d(ProjectManagerImpl.java:104)
at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:203)
at jetbrains.mps.plugin.IDEAHandler$2$1.run(IDEAHandler.java:111)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:402)
at jetbrains.mps.plugin.IDEAHandler$2.run(IDEAHandler.java:71)
at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:3)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:10)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:8)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:72)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:73)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
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 [1096028240408] 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
Hello,
This
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.