JetBrains / MPS-extensions

MPS-extensions aims to ease language development within MPS.
https://jetbrains.github.io/MPS-extensions/
Apache License 2.0
80 stars 47 forks source link

Brackets expression is not working in MPS 2023.2 #819

Open alexanderpann opened 2 months ago

alexanderpann commented 2 months ago

there is no entry in the substitute menu.

veldhvzbd commented 2 months ago

And when you have an editor containing a BracketsCell, it generates code that does not compile: The template template_BracketsCell_DeleteBracket contains a line inner.smodelAttribute.addAll(node.smodelAttribute); which gets to be generated as ListSequence.fromList(SLinkOperations.getChildren(inner, LINKS.smodelAttribute$KJ43)).addSequence(SLinkOperations.getChildren(node, LINKS.smodelAttribute$KJ43)); The Java compiler complains that incompatible types: java.util.List<org.jetbrains.mps.openapi.model.SNode> cannot be converted to jetbrains.mps.internal.collections.runtime.ISequence<? extends org.jetbrains.mps.openapi.model.SNode>.

alexanderpann commented 2 months ago

I don't know what happened but I can't reproduce my original issue and also not the issue with the generation.