| Summary: | Type parameters in tooltip disappear when pressing F2 | ||
|---|---|---|---|
| Product: | [Tools] Xtend | Reporter: | Moritz Eysholdt <moritz.eysholdt> |
| Component: | Core | Assignee: | Project Inbox <xtend-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | Holger.Schill, sebastian.zarnekow, sven.efftinge |
| Version: | 2.3.0 | Flags: | sebastian.zarnekow:
juno+
|
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
Probably an HTML escaping thing with '<' and '>' Is already fixed in current head. Requested via bug 522520. -M. Requested via bug 522520. -M. |
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.