Formatting conflict [message #1868439] |
Fri, 19 July 2024 09:07  |
Eclipse User |
|
|
|
I'm a bit puzzled by a ConflictingFormattingException while implementing formatting using Xtext 2.34.0:
!MESSAGE org.eclipse.xtext.util.ExceptionAcceptor - Conflicting Regions.
{{{}}}: newLine=2 at offset=286 length=1
[[[]]]: newLine=1-1-2 at offset=286 length=1
My interpretation is that the first region requires 2 new lines while the following region requires at least 1 new line but 2 new lines is the maximum. In this sense, placing 2 new lines between these regions would be the solution, right? Indeed, this is my intention.
So why is this exception thrown?
As can be seen, the first region has while the following region has prepend[setNewLines(1, 1, 2)]
Regards,
Ralph
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03177 seconds