Trying to use the Formula Langauge Follow
I decided to write a little example that used the Formula Langauge. Everything seemed to work fine until I tried to create a model or specifically while defining a model tried to define an Expression. Whenever it comes time to choose an expression in the editor all I get is: ?expression?
So I thought I would give the agreement langauge example project a go, however I have the same problem there. When I define a Plan and try to choose an amount all I get is ?expression?
Any idea what I'm doing wrong?
Thanks!
Please sign in to leave a comment.
Hello, RefuX,
> I decided to write a little example that used the Formula Langauge.
> Everything seemed to work fine until I tried to create a model or
> specifically while defining a model tried to define an Expression.
> Whenever it comes time to choose an expression in the editor all I
> get is: ?expression?
>
> So I thought I would give the agreement langauge example project a
> go, however I have the same problem there. When I define a Plan and
> try to choose an amount all I get is ?expression?
>
> Any idea what I'm doing wrong?
Did you imported all needed languages. You have to import
formulaLanguage and your language. To import language open node in model
and press control+L. If this won't help please write us how to reproduce it.
there was bug related to autocompletion in formula language. it was fixed after 234 was out.
Igor
Back from vacation, just tried out Build 239.
Tried this in the agreement language project.
I get this error:
[1828172] ERROR - s.ide.command.CommandProcessor - Exception during executing c ommand Unnamed java.lang.RuntimeException: Couldn't find method "nodeSubstituteActionsBuilder_A ctionsFilter_ClearAll" in jetbrains.mps.formulaLanguage.actions.Queries or in it s supers at jetbrains.mps.util.QueryMethod.invoke(QueryMethod.java:49) at jetbrains.mps.smodel.action.ModelActions.filterActions(ModelActions.j ava:120) at jetbrains.mps.smodel.action.ModelActions.filterActions(ModelActions.j ava:97) at jetbrains.mps.smodel.action.ModelActions.createChildNodeSubstituteAct ions(ModelActions.java:82) at jetbrains.mps.nodeEditor.DefaultChildSubstituteInfo.createActions(Def aultChildSubstituteInfo.java:54) at jetbrains.mps.nodeEditor.AbstractNodeSubstituteInfo.items(AbstractNod eSubstituteInfo.java:82) at jetbrains.mps.nodeEditor.AbstractNodeSubstituteInfo.getMatchingItems( AbstractNodeSubstituteInfo.java:56) at jetbrains.mps.nodeEditor.AbstractEditorComponent.activateNodeSubstitu teChooser(AbstractEditorComponent.java:1165) at jetbrains.mps.nodeEditor.AbstractEditorComponent.activateNodeSubstitu teChooser(AbstractEditorComponent.java:1130) at jetbrains.mps.nodeEditor.EditorComponentKeyboardHandler.processKeyPre ssed(EditorComponentKeyboardHandler.java:124) at jetbrains.mps.nodeEditor.AbstractEditorComponent$13.run(AbstractEdito rComponent.java:1111) at jetbrains.mps.ide.command.CommandProcessor.executeCommand_internal(Co mmandProcessor.java:86) at jetbrains.mps.ide.command.CommandProcessor.executeCommand(CommandProc essor.java:71) at jetbrains.mps.ide.command.CommandProcessor.executeCommand(CommandProc essor.java:56) at jetbrains.mps.nodeEditor.AbstractEditorComponent.processKeyPressed(Ab stractEditorComponent.java:1109) at jetbrains.mps.nodeEditor.AbstractEditorComponent$7.keyPressed(Abstrac tEditorComponent.java:271) at java.awt.Component.processKeyEvent(Unknown Source) at javax.swing.JComponent.processKeyEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Sour ce) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Sour ce) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
I deleted my solution and recreated it and now this error has gone away. :-)