Skip to content

Missing error handling with duplicate feature names #51

@ekuiter

Description

@ekuiter

UVL (both the java parser and Visual Studio code extension) neither warns nor errors about the duplicate feature names (e.g., Lightsaber) in the following example:

features
	Penguin
		optional
			"Left Wing Item"
				alternative
					"Lightsaber"
						alternative
							"lightsaber left"
							"light-staff left"
					"Flag"
						alternative
							"german flag left"
							"pride flag left"
					"Staff"
						alternative
							"staff left"
							"spear left"
							"cross left"
							"cane left"
			"Right Wing Item"
				alternative
					"Lightsaber"
						alternative
							"lightsaber right"
							"light-staff right"
					"Flag"
						alternative
							"german flag right"
							"pride flag right"
					"Staff"
						alternative
							"staff right"
							"spear right"
							"cross right"
							"cane right"

However, this is then wrongly translated into a DIMACS file by FeatureIDE, and leads to wrong analysis results afterwards. Is this supposed to be allowed in UVL (i.e., is FeatureIDE wrong to assume unique names)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions