Community
Participate
Working Groups
Steps to reproduce: 1. Create an Xtend2 file and open it in the editor. 2. Create contents that raises an error: ---- class Foo { test_fail() { newArrayList("ab", "abc").fold(0, [s, max | Math::max(s.length, max)]) } } ----- 3. display the error message by moving the cursor over the error annotation on the left-hand side of the editor. 4. press F2 to turn the tooltip into an actual window. -> the error message changes, it seems like the type parameters in the message are not displayed anymore. I.e., the message changes from: --- Incompatible types. Expected org.eclipse.xtext.xbase.lib.Functions$Function2<java.lang.String,java.lang.Integer,? extends java.lang.Integer> but was org.eclipse.xtext.xbase.lib.Functions$Function2<java.lang.String,? extends java.lang.Object & super int,java.lang.Integer> --- to --- Incompatible types. Expected org.eclipse.xtext.xbase.lib.Functions$Function2 but was org.eclipse.xtext.xbase.lib.Functions$Function2 --- this is kinda annoying when you want to copy'n'paste an error message ;) This error does no appear with the tooltip over the underlined text.
Probably an HTML escaping thing with '<' and '>'
Is already fixed in current head.
Requested via bug 522520. -M.