Repository navigation
Bugfix/mps2026 leftover fixes - #57
Open
mfsoliveira wants to merge 4 commits into
Open
mfsoliveira wants to merge 4 commits into
mfsoliveira wants to merge 4 commits into
Conversation
The com.mbeddr.cpp.build script still declared major.version=2023 and minor.version=2, left over from the 2023.2 migration. Gradle overrides version/mbeddr.cpp.version for CI artifacts, but a build started from the MPS IDE still labelled its output 2023.2-0000. Align the defaults with gradle.properties (mbeddrCppVersion = 2026.1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mbeddr core deprecated the no-argument ILocalVarScopeProvider.getContributedLocalVariables() in favour of the getContributedLocalVariables(node<> node) overload, which is what getLocalVarScope() calls. This change move both overrides to the node overload and deleted the supper call because it was a dead code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The function reference scopes of TemplateFunctionCall and RegularFunctionCall still called the deprecated IVisibleElementProvider.visibleContentsOfType(conceptNode<>) with deprecated conceptNode/.../ literals. Switch them to the replacement visibleContentsOfTypeAsSequence(concept<>) with concept/.../ literals, keeping the ListScope.forResolvableElements wrapper unchanged. The model also gains the jetbrains.mps.lang.behavior used-language entry it was missing for its existing concept method calls. The remaining visibleContentsOfType(conceptNode<>) overrides in ClassDeclaration and CPPImplementationModule stay: mbeddr core still declares that method abstract, so every provider must implement it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three behavior method calls still used the obsolete jetbrains.mps.lang.smodel Node_ConceptMethodCall, which MPS moved to jetbrains.mps.lang.behavior (ObsoleteConceptMethodCallCheck): GlobalVarDecCPP_TextGen, typeof_QualifiedMethodCall and typeof_TemplateQualifiedMethodCall. Applied the MPS quickfix "Update obsolete concept method call"; targets and arguments are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eugenschindler
approved these changes
Dec 4, 2026
eugenschindler
left a comment
Member
There was a problem hiding this comment.
Reviewed against the MPS-extensions coding standards. No blocking findings.
Semantics I checked against the mbeddr 2026.1 dependency
getContributedLocalVariables(node):getLocalVarScopecalls the node overload, and its default delegates to the no-arg one. Nothing else calls the no-arg variant, so overriding the node overload preserves behaviour. Removing thesuper<>call is correct: its result was discarded and the default returns an empty sequence.visibleContentsOfTypeAsSequence(concept): this goes through the virtualvisibleContentsOfType(concept<>), thenvisibleContentsOfType(conceptNode<>). The overrides inClassDeclarationandCPPImplementationModuleare still reached. Satisfies 1.1 and 3.7.- Concept method call quickfix and registry cleanup look fine (3.4). Adding the
jetbrains.mps.lang.behaviorused-language to the templates constraints model fixes a genuinely missing entry. - CI is green.
Nits (non-blocking)
- (3.5) In both
getContributedLocalVariablesoverrides, the unchanged return-type nodes got new IDs (6ddXmWdIrFt→4YOx14cWljO,1OcdQnyTC27→4YOx14cWlk2). Keeping the IDs would give a cleaner diff and history. - The scope now comes via
NamedElementsScope.getAvailableElements(null)and is then wrapped inListScope.forResolvableElementsagain. The result is equivalent, but the outer wrap is redundant. Optional follow-up. - The node links in the PR description point to
127.0.0.1:63320, so other reviewers can't open them. Please use model/node names instead. - Commit 4cd7309 message has typos ("This change move…", "supper call").
- The PR title is the branch name. Something like "Clean up MPS 2026.1 migration leftovers" would read better in the history.
- No new tests. The changed scopes are covered only indirectly, through the existing error checks in the
trycatch,constructorandtemplatesNodesTestCases. That's acceptable for a no-behaviour-change refactoring.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cleans up leftovers from the migration of mbeddr.cpp to MPS 2026.1: a stale version in the MPS build script and uses of APIs that MPS or mbeddr core have deprecated or moved. One commit per fix; no behaviour change intended.
Changes
major.version/minor.version(node url) incom.mbeddr.cpp.buildstill said 2023.2. Bumped to 2026.1 to matchgradle.properties. Gradle overrides the version for CI artifacts; builds started from the MPS IDE were labelled2023.2-0000.getContributedLocalVariables—ClassConstructorSignature(node url) andCatchBlock(node url) now override mbeddr'sgetContributedLocalVariables(node<>)instead of the deprecated no-argument variant. The deadsuper<>call inClassConstructorSignature(result discarded, default returns an empty sequence) is removed.TemplateFunctionCall_Constraints(node url) andRegularFunctionCall_Constraints(node url) callvisibleContentsOfTypeAsSequence(concept/…/)instead of the deprecatedvisibleContentsOfType(conceptNode/…/). TheListScope.forResolvableElementswrapper is unchanged.GlobalVarDecCPP_TextGen,typeof_QualifiedMethodCall,typeof_TemplateQualifiedMethodCall) still used thelang.smodelNode_ConceptMethodCall; updated tolang.behaviorwith the MPS quickfix.Not changed (needs mbeddr core)
ICallLike.getActualsLink()still returnsnode<LinkDeclaration>, so its 8 implementations keep the deprecatedlinkNode/<role>/.IVisibleElementProvider.visibleContentsOfType(conceptNode<>)is deprecated but still abstract, so the overrides inClassDeclarationandCPPImplementationModulestay.Verification
build_module: base, exceptions, expressions, templates andtest.ts.com.mbeddr.cppbuild.test.ts.com.mbeddr.cpp: 221/221 tests pass (in-process in MPS 2026.1).test.ex: verified manually in the terminal and by CI on this PR (gradle.yml, Linux g++).🤖 Generated with Claude Code