Repository navigation
Conversation
kbirken
force-pushed
the
feature/detect_duplicate_attribute_assignments_2046
branch
from
November 20, 2026 08:15
2f571f1 to
a75ab05
Compare
dbinkele
previously approved these changes
Nov 20, 2026
dbinkele
left a comment
Member
There was a problem hiding this comment.
LGTM. Checked the branch in MPS: check_FeatureAttributeAssignment flags both duplicate assignments in NonUniqueAttributeAssignments (expectations sit on the assignments, which are only visible in the Inspector), and ConfWithoutError stays clean.
dbinkele
approved these changes
Nov 23, 2026
kbirken
enabled auto-merge
November 23, 2026 08:09
…ribute_assignments_2046
kbirken
deleted the
feature/detect_duplicate_attribute_assignments_2046
branch
November 23, 2026 08:37
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.
Closes #2046
Partner PR in iets3.core (linter side): IETS3/iets3.core#1810
Summary
check_FeatureAttributeAssignment(org.iets3.variability.configuration.base, typesystem, virtual packageattribute): reports everyFeatureAttributeAssignmentwhose attribute is assigned more than once in the sameInlineFeatureConfigurationContent(error idnon_unique_attribute_assignment). Such duplicates typically result from an erroneous manual merge; they mirror the duplicateFeatureConfigurationcase from Detect and fix inconsistent states in feature model configurations #1476.fix_DuplicateAttributeAssignment: removes the selected duplicate assignment. The user decides which one to keep, since either assignment may carry the productive value.INTERNAL ERROR: value already present: FM1@@s), so the rule reports an error, not a warning.checkmodelsis not affected.Test plan
Model
test.org.iets3.variability.configuration.base.checking_rules@tests, virtual packageconfig.inconsistent:NonUniqueAttributeAssignments(NodesTestCase): both duplicate assignments are flagged withnon_unique_attribute_assignment; a configuration with a single assignment stays error-free.FixDuplicateAttributeAssignment(EditorTestCase): applies the quickfix on the second of two assignments (selected in the inspector, where attribute assignments are edited) and checks that exactly this one is removed.Both tests pass in MPS 2024.1 (in-process run).