Stuck creating the OutputField in the tutorial

I am going through the tutorial but I'm stuck at the point where I define an editor for the OutputField concept.

The node cell layout is supposed to be

[>output<]

But when I type "output" it shows up in red and the language will not generate.

What am I doing wrong?

Thanks -- Randy

3 comments
Comment actions Permalink

Hi Randy,

Here's how I created that cell in the editor:

  1. I typed '[>' without the quotes. That auto-created the horizontal collection
  2. I typed 'cons'
  3. I pressed ctrl-space to bring up code assist (that's the Eclipse term since I forget what JetBrains calls that). You should see "constant" in the list. For me, that is the only item
  4. Select the "constant" entry, if needed, and press return. You should see a cell with the text "<constant>" in grey.
  5. Now type "output"

I'm still getting used to the editing experience myself, but typically, when you see text in bold, you'll know that's a constant (aka. string literal) which you can input the same way. There are cases where you can simply begin typing and the editor will do the right thing, but I haven't divined when those cases occur.

HTH,

Kevin

0
Comment actions Permalink

Hello, Kevin,

There are cases where you can simply begin typing and the editor will do the right thing, but I haven't divined when those cases occur.


Actually it works in a quite simple way. If there's only one item in completion menu which starts with typed text, this item will be completed.

Regards,

Konstantin

0
Comment actions Permalink

Hi Kevin,

Thank you very much for the detailed steps. It worked just as you said and now I can move forward.

-- Randy

0

Please sign in to leave a comment.