[SOLVED] DotExpression is not triggered in specific editor cells

Dear folks,

I followed the language patterns example regarding the DotExpression that ships with MPS. Now, instead of an operation with fixed "name", such as "zip" and "kind" in the example, I have a concept that references an already existing custom operation and implements the IOperation interface, so it can be used as operation child of a DotExpression. The editor of that OperationReference displays only the name of the referenced operation:

<default> editor for concept OperationReference    
  node cell layout:           
     ( % operation % -> {name} )

  inspected cell layout:      
    <choose cell model>

The problem now is that when ever I type the name of the operation or select it from the completion menu And type a dot, it does not get wrapped into a DotExpression. However, when I change the editor in a way that it has a constant at the very end (e.g., an x) it works:

<default> editor for concept OperationReference    
  node cell layout:           
     ( % operation % -> {name} x )

  inspected cell layout:      
    <choose cell model>

This kinda seems like that it doesn't recognize the dot as trigger for the DotExpression when the editor only represents a property or anything that can be textually editable?

Any ideas how to solve this?

 

Cheers,

Dennis

1
2 comments
Avatar
Permanently deleted user

Hi!

I encountered the same issue - I would also appreciate a solution for this!

Cheers,

Norm

 

0
Avatar
Permanently deleted user

I solved this. It was due to the fact that in the completion menu there was a possible substitution that had a dot in the name. After fixing the representation to get rid of the dot, the expected behavior of the DotExpression was shown.

0

Please sign in to leave a comment.