Problems entering literal from LWC11 Tutorial

I'm using MPS 1.5 now and trying again to work through Markus's tutorial and cannot figure out how to enter the following literal:

if( link == /link/EntityAttribute : type/)
prettyPrint();

After I type the slash, MPS seems like it wants to perform division.  Is there some trick to this, or did I skip an important step in the tutorial?

Thanks,
Jeff
4 comments
Comment actions Permalink
hi,

after typing link ==  (and waiting that the editor recognized it correctly) use code completion to select the

/link/<role>

entry. that s it..

Dan
0
Comment actions Permalink
Thanks Dan; I had already tried that and it's not available.  I hadn't gone through the tutorial sequentially, so I'm wondering if I might have missed an important step?
0
Comment actions Permalink
There's something that's somehow either corrupted or configured wrong in the project.  I went to another project and created a simple empty concept and had no trouble entering it.  

I'm not sure, but I may have started this project in MPS 2.0 before I was advised not to use 2.0

Maybe I'll try starting the tutorial over.

I did notice the following IDE error that may or may not be related:

java.lang.ClassNotFoundException : jetbrains.mps.ide.BaseNodeEditor$BaseEditorState: jetbrains.mps.ide.BaseNodeEditor$BaseEditorState
java.lang.ClassNotFoundException: jetbrains.mps.ide.BaseNodeEditor$BaseEditorState
java.lang.ClassNotFoundException: jetbrains.mps.ide.BaseNodeEditor$BaseEditorState
 at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:67)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at com.intellij.util.lang.UrlClassLoader.loadClass(UrlClassLoader.java:80)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at jetbrains.mps.workbench.editors.MPSFileNodeEditorProvider.readState(MPSFileNodeEditorProvider.java:57)
 at com.intellij.openapi.fileEditor.impl.HistoryEntry.<init>(HistoryEntry.java:89)
 at com.intellij.openapi.fileEditor.impl.EditorsSplitters.readExternalPanel(EditorsSplitters.java:253)
 at com.intellij.openapi.fileEditor.impl.EditorsSplitters.openFiles(EditorsSplitters.java:194)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$10$1$1.run(FileEditorManagerImpl.java:1015)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:110)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:86)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:78)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$10$1.run(FileEditorManagerImpl.java:1012)
 at com.intellij.openapi.wm.impl.commands.InvokeLaterCmd.run(InvokeLaterCmd.java:33)
 at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:319)
 at java.awt.event.InvocationEvent.dispatch(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:610)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:500)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(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)



java.lang.ClassNotFoundException: jetbrains.mps.ide.editorTabs.TabbedEditor$TabbedEditorState
java.lang.ClassNotFoundException: jetbrains.mps.ide.editorTabs.TabbedEditor$TabbedEditorState
 at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:67)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at com.intellij.util.lang.UrlClassLoader.loadClass(UrlClassLoader.java:80)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at jetbrains.mps.workbench.editors.MPSFileNodeEditorProvider.readState(MPSFileNodeEditorProvider.java:57)
 at com.intellij.openapi.fileEditor.impl.HistoryEntry.<init>(HistoryEntry.java:89)
 at com.intellij.openapi.fileEditor.impl.EditorsSplitters.readExternalPanel(EditorsSplitters.java:253)
 at com.intellij.openapi.fileEditor.impl.EditorsSplitters.openFiles(EditorsSplitters.java:194)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$10$1$1.run(FileEditorManagerImpl.java:1015)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:110)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:86)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:78)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$10$1.run(FileEditorManagerImpl.java:1012)
 at com.intellij.openapi.wm.impl.commands.InvokeLaterCmd.run(InvokeLaterCmd.java:33)
 at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:319)
 at java.awt.event.InvocationEvent.dispatch(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:610)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:500)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(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)



java.lang.ClassNotFoundException: jetbrains.mps.ide.editorTabs.TabbedEditor$TabbedEditorState
java.lang.ClassNotFoundException: jetbrains.mps.ide.editorTabs.TabbedEditor$TabbedEditorState
 at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:67)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at com.intellij.util.lang.UrlClassLoader.loadClass(UrlClassLoader.java:80)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at jetbrains.mps.workbench.editors.MPSFileNodeEditorProvider.readState(MPSFileNodeEditorProvider.java:57)
 at com.intellij.openapi.fileEditor.impl.HistoryEntry.<init>(HistoryEntry.java:89)
 at com.intellij.openapi.fileEditor.impl.EditorsSplitters.readExternalPanel(EditorsSplitters.java:253)
 at com.intellij.openapi.fileEditor.impl.EditorsSplitters.openFiles(EditorsSplitters.java:194)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$10$1$1.run(FileEditorManagerImpl.java:1015)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:110)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:86)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:78)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$10$1.run(FileEditorManagerImpl.java:1012)
 at com.intellij.openapi.wm.impl.commands.InvokeLaterCmd.run(InvokeLaterCmd.java:33)
 at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:319)
 at java.awt.event.InvocationEvent.dispatch(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:610)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:500)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(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)



java.lang.ClassNotFoundException: jetbrains.mps.ide.editorTabs.TabbedEditor$TabbedEditorState
java.lang.ClassNotFoundException: jetbrains.mps.ide.editorTabs.TabbedEditor$TabbedEditorState
 at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:67)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at com.intellij.util.lang.UrlClassLoader.loadClass(UrlClassLoader.java:80)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at jetbrains.mps.workbench.editors.MPSFileNodeEditorProvider.readState(MPSFileNodeEditorProvider.java:57)
 at com.intellij.openapi.fileEditor.impl.HistoryEntry.<init>(HistoryEntry.java:89)
 at com.intellij.openapi.fileEditor.impl.EditorsSplitters.readExternalPanel(EditorsSplitters.java:253)
 at com.intellij.openapi.fileEditor.impl.EditorsSplitters.openFiles(EditorsSplitters.java:194)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$10$1$1.run(FileEditorManagerImpl.java:1015)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:110)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:86)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:78)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$10$1.run(FileEditorManagerImpl.java:1012)
 at com.intellij.openapi.wm.impl.commands.InvokeLaterCmd.run(InvokeLaterCmd.java:33)
 at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:319)
 at java.awt.event.InvocationEvent.dispatch(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:610)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:500)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(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)



java.lang.ClassNotFoundException: jetbrains.mps.ide.BaseNodeEditor$BaseEditorState
java.lang.ClassNotFoundException: jetbrains.mps.ide.BaseNodeEditor$BaseEditorState
 at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:67)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at com.intellij.util.lang.UrlClassLoader.loadClass(UrlClassLoader.java:80)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at jetbrains.mps.workbench.editors.MPSFileNodeEditorProvider.readState(MPSFileNodeEditorProvider.java:57)
 at com.intellij.openapi.fileEditor.impl.HistoryEntry.<init>(HistoryEntry.java:89)
 at com.intellij.openapi.fileEditor.impl.EditorsSplitters.readExternalPanel(EditorsSplitters.java:253)
 at com.intellij.openapi.fileEditor.impl.EditorsSplitters.openFiles(EditorsSplitters.java:194)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$10$1$1.run(FileEditorManagerImpl.java:1015)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:110)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:86)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:78)
 at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$10$1.run(FileEditorManagerImpl.java:1012)
 at com.intellij.openapi.wm.impl.commands.InvokeLaterCmd.run(InvokeLaterCmd.java:33)
 at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:319)
 at java.awt.event.InvocationEvent.dispatch(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:610)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:500)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(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)
0
Comment actions Permalink
java.lang.ClassNotFoundException: jetbrains.mps.ide.BaseNodeEditor$BaseEditorState

This class was added in MPS 2.0, so most probably you are trying to "downgrade" MPS :-)
Don't do that and simply create new project in MPS 1.5 if you need it.
0

Please sign in to leave a comment.