-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CoordCellRef: Fix adding the optional finder #574
base: maintenance/mps20213
Are you sure you want to change the base?
CoordCellRef: Fix adding the optional finder #574
Conversation
@alexanderpann and @sergej-koscejev Thanks very much for the fix. I tried it and it works great. Should we create an issue for the broken optional cell in the grammar cells language? I don't know where that language is or know much about it but I heard it is something useful I should be using. Is it also part of iets3.opensource? |
Actually, the old behavior of the optional cell was wrong, which was fixed a while ago. The way the cell was used is just not compatible with the latest version of grammar cells. There is nothing else that needs to be fixed. |
@alexanderpann and @sergej-koscejev Ok. Thanks. One last follow up just to make sure I am understanding (I am a bit new to MPS). So, could I use the optional grammar cell facility in this sheets use case or is it that use case which is not compatible with the grammar cells I have with 2021.1? In other words, you mentioned you couldn't get the optional cell working in your comment above. Is that because the use in the sheets is not possible or something else? Just wanted to understand. |
The optional cell uses side transformations. Normally they work, but this editor uses |
Thanks @alexanderpann . Appreciate your help on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general. Just couple of minor questions:
- is there really a need for the additional vertical collection wrapper in the editor?
- in case there is a already cell specified without a finder, would just typing
/
before that add the finder as expected? I'm not sure if this worked before with an optional cell, but just for the sake of completeness. - would it be possible to add some editor tests for this scenario? To ensure we avoid regression in this specific editor behaviour in the future.
@alexanderpann I am not sure here. Where the questions/findings of @wsafonov already addressed in this PR or are they missing? |
IMO, I've addressed all points. |
edd6322
to
ad0194d
Compare
@arimer I've rebased the PR for 2021.3. It could be merged. |
This PR replaces the not working optional finder cell of the CoordCellRef editor with a transformation menu so that the finder can be added through the code completion menu of the cell instead of typing "/" before the cell.
I changed it because I couldn't get the optional cell working. The missing spaces in the editor (punctuation-x: true) prevent the side transformation to be executed. Fixes #559.