8000 Adding Features to the Feature Model via Quick Fix puts them into wrong place · Issue #207 · isselab/HAnS · GitHub
[go: up one dir, main page]

Skip to content

Adding Features to the Feature Model via Quick Fix puts them into wrong place #207

Open

Description

@Kevin3112

What happened?

When using Quick Fix to add a feature to the feature model, the following error is displayed:

Image

Another error is displayed when UNASSIGNED is empty, after its children have moved:

Image

Then, when UNASSIGNED is empty and another feature is added via Quick Fix, it ends up in the same line as UNASSIGNED:

Image

Subsequent features are then placed in the correct places

Relevant log output or stack trace

Steps to reproduce

  1. Use Quick Fix to add a feature to the feature model
  2. Move the feature into its correct position (Do not delete UNASSIGNED)
  3. Add another feature to the feature model using Quick Fix

Plugin version

0.2.5

Intellij version

2026.1.1

Operating System

None

Activity

  1. johmara commented on May 26, 2026

    @johmara
    Member

    From what I remember this error was always there since UNASSIGNED becomes a secondary root and the file can have at most one root. The UNASSIGNED row should be removed when the features under it are sorted properly.

    When we implemented this feature we wanted the error so that you wouldn't commit your feature-model with unassigned features.

    If you have a suggestion on how this could work better please feel free to give some details.

  2. Kevin3112 commented on May 27, 2026

    @Kevin3112
    CollaboratorAuthor

    I understand. I think in the past it actually worked (not sure anymore), but maybe we can have a proper error message remembering developers to remove it instead of a parsing error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0