History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16379
Type: Usability Problem Usability Problem
Status: Open Open
Assignee: Anna Kozlova
Reporter: AlexL
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Syntax Error tooltip message is misformatted and scrollbar doesn't work

Created: 15 Nov 07 22:50   Updated: 16 Nov 07 13:50
Component/s: Editor. Error Highlighting

File Attachments: None
Image Attachments:

1. 7549_garbled_error_mesage.png
(15 kb)

2. long_and_garbled_error_tooltip.jpg
(65 kb)
Environment: Windows XP SP2

Build: 7,549
Severity: Medium


 Description  « Hide
I had a method call which had mismatched arguments due to a change in the argument type.
When I moused over the syntax error, the IDEA error tooltip looked very bad. Here are the problems I saw:
1) The tooltip was stretched across the entire screen.
2) There were large spaces after some of the arguments
3) The tooltip displayed a scrollbar, but when I tried to use the scrollbar, the tooltip disappeared.
So I couldn't see the entire message.

Suggestions:
1) Is it possible for IDEA to reformat the method signature to ensure only a maximum number of chars are shown
per row?
2) I think IDEA should allow the tooltip to expand vertically more than it allows currently.
3) Can IDEA be smarter about highlighting the mismatched arguments in question? If I could tell just by looking
at the syntax error that argument 3 was mismatched, I wouldn't even need to look at this tooltip.

Workaround:
I have to look at the errror message printed by the compiler to figure out the problem.

Here is the method signature:

private AlarmRule loadAlarmRule(int ruleId, HashMap actionMap, HashMap<Integer, ArrayList<AlarmRuleAttribute>> attributeMap, HashMap<Integer, ArrayList<AlarmRuleGroup>> groupMap, HashMap<Integer, HashMap<Object, String>> instanceText,
    		HashMap<Integer, Escalations> escObjs, ArrayList ruleEsc)
    {
   }

Compiler Error Message:

D:\workspace\80\web\java\com\proactivenet\api\alarmrule\AlarmRuleCache.java (393:9) loadAlarmRule(int,java.util.HashMap,java.util.HashMap<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleAttribute>>,java.util.HashMap<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleGroup>>,java.util.HashMap<java.lang.Integer,java.util.HashMap<java.lang.Object,java.lang.String>>,java.util.HashMap<java.lang.Integer,com.abc.api.alarmrule.Escalations>,java.util.ArrayList) in com.abc.api.alarmrule.AlarmRuleCache cannot be applied to (int,java.util.Map<java.lang.Integer,java.util.List<com.abc.api.alarmrule.AlarmRuleAction>>,java.util.Map<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleAttribute>>,java.util.Map<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleGroup>>,java.util.Map<java.lang.Integer,java.util.HashMap<java.lang.Object,java.lang.String>>,java.util.Map<java.lang.Integer,com.abc.api.alarmrule.Escalations>,java.util.List<java.util.Map>)
D:\workspace\80\web\java\com\abc\api\alarmrule\AlarmRuleCache.java:393: loadAlarmRule(int,java.util.HashMap,java.util.HashMap<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleAttribute>>,java.util.HashMap<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleGroup>>,java.util.HashMap<java.lang.Integer,java.util.HashMap<java.lang.Object,java.lang.String>>,java.util.HashMap<java.lang.Integer,com.abc.api.alarmrule.Escalations>,java.util.ArrayList) in com.abc.api.alarmrule.AlarmRuleCache cannot be applied to (int,java.util.Map<java.lang.Integer,java.util.List<com.abc.api.alarmrule.AlarmRuleAction>>,java.util.Map<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleAttribute>>,java.util.Map<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleGroup>>,java.util.Map<java.lang.Integer,java.util.HashMap<java.lang.Object,java.lang.String>>,java.util.Map<java.lang.Integer,com.abc.api.alarmrule.Escalations>,java.util.List<java.util.Map>)



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.