Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 474468

Summary: [formatter] FormattingNotApplicableException
Product: [Tools] Xtend Reporter: Dennis Huebner <dennis.huebner>
Component: CoreAssignee: Project Inbox <xtend-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: christian.dietrich.opensource
Version: 2.9.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
See Also: https://github.com/eclipse/xtext-core/pull/779
Whiteboard: v2.15
Attachments:
Description Flags
error log none

Description Dennis Huebner CLA 2015-08-07 02:59:49 EDT
Exception is logged during formatting this Example class:

class FormatterTest {
	def testFormatter2() {
		val map = newHashMap("1" -> #{"a", "b"})
		map.forEach [ type, roots |
			roots.forEach [
				println(type + it)
			]
		]
	}
}
Comment 1 Dennis Huebner CLA 2015-08-07 03:56:25 EDT
Created attachment 255693 [details]
error log

Error log
Comment 2 Eclipse Genie CLA 2018-06-27 14:36:55 EDT
GitHub Pull Request 779 created by [cdietrich]
https://github.com/eclipse/xtext-core/pull/779
Comment 3 Christian Dietrich CLA 2018-06-28 01:08:11 EDT
Fixed in 2.15