Open st-vi opened 10 months ago
Copying feature models may lead to errors. In the current example, the PersonPriority feature results in an error. The error is shown in the image below. Normally, as can be seen, it is always read out line by line. However, by copying the feature model, a blank line is incorrectly inserted here.
If you look at the corresponding code, which looks at the lines read out, it is clear that these two strings that are passed in one line cannot be processed.
If you delete the line with this feature and write the feature again by hand, at least for me no errors are thrown and the constraint completion works correctly.
If that still doesn't help, please try again if the entire feature model is written by hand.
How should such problems be dealt with? Apparently the problem occurs more often when content (feature models) is copied and pasted. @SundermannC
Thank you for checking! For me, it seems like the fix should target the unexpected blank line. Handling it later, when the error occurs, does not seem optimal.
Do we know what causes the added blank line?
I recognized the error when working with the elevator example from the feature IDE book.
When writing new constraints the server crashes. It seems to be related to the length of the feature model.
For example the model
crashes when starting to write the constraint
CallButtons
but when we remove two features (does not matter which ones, I think) like this
everything is fine when writing the constraint.
I could reproduce this error with different feature models that have a certain length.