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

Bug 351522

Summary: codan problems in problems view should support newline
Product: [Tools] CDT Reporter: Gil Barash <scobido1984>
Component: cdt-codanAssignee: CDT Codan Inbox <cdt-codan-inbox>
Status: NEW --- QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: minor    
Priority: P3 CC: cdtdoug, master_of_past_and_present, scobido1984, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Gil Barash CLA 2011-07-08 04:32:17 EDT
Build Identifier: Eclipse I20110613-1736 CDT 8.0

Let's take codan's "invalid arguments" problem as an example. When hovering over the marker we see (newlines are also shown in the tool tip):
Invalid arguments '
Candidates are:
void foo(int a)
'
in the problems view, the problem is shown as:
 Invalid arguments '
(only the first line is shown)

It would be nice if newlines would be ignored when the problem is shown in the problems view. such as: 
Invalid arguments 'Candidates are:void foo(int a)'
(in one line)


Reproducible: Always
Comment 1 Gil Barash CLA 2011-07-08 04:42:40 EDT
Small update, I tried this on a different computer and the problem doesn't reproduce there...
SO I guess it doesn't always reproduce
Comment 2 Dennis Schieferdecker CLA 2011-07-19 03:50:50 EDT
For reference, the behaviour also occurs in build "20110615-0604" on a Linux machine.

Concerning this matter, only the problem descriptions in the problem view and the hover tooltip over the actual code use newlines. The tooltip above the bug symbol on the left side does not use newlines.

In my opinion, newlines in problem descriptions of the problem view are irritating and do not help clarity - especially if one problem now takes at least 4 lines. They should be restricted to tooltips.
A more complex solution might be to have only one line in the problem description that can be expanded if needed. In the example problem "invalid arguments", candidates would be hidden until the problem is expanded.