Use Formatter1 in Xtext 2.9 [message #1725134] |
Tue, 01 March 2016 02:48  |
Eclipse User |
|
|
|
Hello,
I'm currently migrating a DSL to Xtext 2.9 and don't want to rewrite the formatter with the new API (as the grammar doesn't need to change).
I tried to bind the IFormatter in the RuntimeSetup and the tests are working in Eclipse and are green.
However if I try to build and test it in out CI (via Gradle) the formatting tests fail with "org.junit.ComparisonFailure", which basically means that the formatter isn't called.
My Helpermethod to test the formatting ist:
private def void assertFormattedAs(CharSequence input, CharSequence erwartet)
{
erwartet.toString.assertEquals(
(input.parse.eResource as XtextResource).parseResult.rootNode.format(0, input.length).formattedText)
}
Is there any other setup I need to make to have it working in Gradle?
best regards!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.32667 seconds