Editor: provide user with feedback upon violation of a constraint Follow
I was playing around with MPS to create a state machine language. Now I've added a constraint that checks that there is at most one initial state. Is there any way to add some kind of error message to the editor that is provided to the end user?
Please sign in to leave a comment.
You can use typesystem. Refer the video https://www.youtube.com/watch?v=IGt21_Sn_dA and the cookbook https://confluence.jetbrains.com/display/MPSD20173/Typesystem
Also, you might want to keep this upcoming feature in mind: https://youtrack.jetbrains.com/issue/MPS-9668
Thank you! That was indeed what I was looking for. I hope that that feature gets implemented soon :)