Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351522 - codan problems in problems view should support newline
Summary: codan problems in problems view should support newline
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: CDT Codan Inbox CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-08 04:32 EDT by Gil Barash CLA
Modified: 2011-07-19 03:50 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.