Bug 426657 - [1.8] Presentation for long form of error messages
Summary: [1.8] Presentation for long form of error messages
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 404675
  Show dependency tree
 
Reported: 2014-01-25 19:50 EST by Stephan Herrmann CLA
Modified: 2016-05-04 10:12 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 Stephan Herrmann CLA 2014-01-25 19:50:15 EST
When I'll address bug 404675 it will probably be a good idea to offer a short and a long version of some errors. See that javac has s.t. similar with its -Xdiags:verbose switch, but I think in the IDE we can do even better :)

It's not that I have an implementation of explanatory error messages up my sleeve, yet, but the internal InferenceContext18 actually has all the information for given multi-page error messages ...

WDYT?
Comment 1 Dani Megert CLA 2014-04-18 03:36:34 EDT
(In reply to Stephan Herrmann from comment #0)
> When I'll address bug 404675 it will probably be a good idea to offer a
> short and a long version of some errors. See that javac has s.t. similar
> with its -Xdiags:verbose switch, but I think in the IDE we can do even
> better :)

What exactly do you mean by "do even better"? Create something in the middle of short and long? ;-)
Comment 2 Stephan Herrmann CLA 2014-04-19 12:22:11 EDT
(In reply to Dani Megert from comment #1)
> What exactly do you mean by "do even better"? Create something in the middle
> of short and long? ;-)

Create something more interactive than a long unreadable error message.
At least a tree structure that you can drill into to get more details on demand.

Why not an extra view with some sync'ed highlighting so you can select individual AST nodes and inspect what inference "thought" about them, which nodes can be typed, and where inference found a conflict etc.

The deluxe version of this could be called a typing-debugger, a tool that lets you experiment and inspect.