Incorrect Solution shapes tutorial sample

 Download MPS 3.3 and as a start i created e new project and followed the shapes tutorial on YouTube (https://www.youtube.com/watch?v=Mb1QzHx83M4) .  Showed however an incorrect solution (see image below).

 I tried a new concept "Circle01" in the "shapes Sample" (the sample delivered with MPS 3.3). Here also I got the same problem as showed in the image below.

Tried the same in version MPS 3.2 and had no problem!

Can someone tell me what is going wrong here and how to fix this?

 

Remark: the problem with the missing "StaticFieldReference" was a missing dependency in the 'Model properties' (see comment below).

 

 

 

 

 

8 comments
Official comment

Ok, now I see the problem - the default editor misplaces one of the properties. This seems to be a bug in MPS, which I've reported (https://youtrack.jetbrains.com/issue/MPS-23432).

You can continue in the tutorial, just accept that the default editor places one property in a wrong place. In the next step of the tutorial you'll create a custom editor and so it will no longer be bothering you.

Vaclav

 

Hi Ben, 

could you post the link to which tutorial you were following? I just checked the shapes sample project that ships with MPS 3.3 and it works fine for me.

0

Hi Philipp,

 

Thanks for your ck quick reaction.

I followed the tutrial on YouTube  with this adress :

https://www.youtube.com/watch?v=Mb1QzHx83M4

 

I have also another problem:

When creating the ColorReference concept there is no possibility to introduce under Reference the 'StaticFieldDeclaration' (not present in the baseLanguage?).

 

 

 

 

 

0

Hi everyone,

I have the same problem as Ben (see below)

#####################################################

canvas MyDrawing {
   
  shapes :
    circle <no radius> {
      y : <no y>
      x : <no x>
       
    }
    square <no upperLeftY> {
      size : <no size>
      upper left X : <no upperLeftX>
       
    }
}

#################################################

Can you please tell me how to fix this?

I'am also using MPS 3.3

Thanks!

0

From the screenshots it seems that you are either missing the editor definitions or the need to be re-generated. You are seeing the default tree-like editor. What nodes do you guys have under the "editor" model of your language?

0

Hi Vaclav,

but at this stage of the Tutorial, there is no editor definition for the concepts. One just defines the properties in the concept file.

I really tried the Tutorial many times and followed the details step by step but it doesn't really help.

Once I defined the editor nodes with another layout of the properties, everything works fine. 

This problem just occurs at the beginning of the Tutorial before one defines the editor nodes. May be you missed something at that point? Because in the Tutorial they expect the following code without the editor definitions which is different from what we get (see my other post).

####################################################

canvas MyDrawing {
   
  shapes :
    circle {
      y : <no y>
      x : <no x>
      radius:<no radius>
    }
    square  {
      size : <no size>
      upperLeft X : <no upperLeftX>

 

      upperLeftY: <no upperLeftY>
       
    }
}

#################################################

 

0

Hi Vaclav,

I just continued the tutorial and everything works fine :-)

Thanks for reporting the bug!

Hana

0

Please sign in to leave a comment.