Bug 141250 - [content assist] Additional info jobs should catch run-time exceptions
Summary: [content assist] Additional info jobs should catch run-time exceptions
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.2 RC4   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-11 05:14 EDT by Tom Hofmann CLA
Modified: 2006-05-11 13:54 EDT (History)
0 users

See Also:


Attachments
AdditionalInfoController.java.diff (1.42 KB, patch)
2006-05-11 05:15 EDT, Tom Hofmann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hofmann CLA 2006-05-11 05:14:49 EDT
3.2 RC3

See also bug 140750 and bug 101033 - contributed ICompletionProposal implementations may not behave correctly. While the CompletionProposalComputer infrastructure protects itself against misbehaving computers, the same is not true for CompletionProposalPopup and AdditionalInfoController.

One aspect stands out from the general request in bug 101033: because additional information is now fetched using Jobs, RuntimeExceptions thrown from within the job will cause a dialog to popup, thus cancelling the content assist session. A situation like the one in bug 140750 hence makes content assist unusable. Exceptions in other areas we don't protect against are much less of a problem, since they get simply logged by the SWT message pump, but don't cause the assist session to end.
Comment 1 Tom Hofmann CLA 2006-05-11 05:15:59 EDT
Created attachment 41086 [details]
AdditionalInfoController.java.diff

Catches RuntimeExceptions in the additional info job and logs them with severity WARNING, which will still write to the log, but not trigger the pop-up dialog.
Comment 2 Tom Hofmann CLA 2006-05-11 05:18:54 EDT
Dani, can you request approval?
Comment 3 Dani Megert CLA 2006-05-11 05:20:07 EDT
This is a very useful safty net which we can fix with very low-risk patch.

Martin and Philippe, please cast your vote.
Comment 4 Martin Aeschlimann CLA 2006-05-11 05:32:40 EDT
+1 for 3.2RC4
Comment 5 Philipe Mulet CLA 2006-05-11 05:43:24 EDT
+1 for 3.2RC4
Comment 6 Dani Megert CLA 2006-05-11 05:52:40 EDT
Fixed in HEAD. Reviewed by Markus and Tobias.
Available in builds >= I20060511-0800.
Comment 7 Tom Hofmann CLA 2006-05-11 13:54:43 EDT
Verified in I20060511-0800 by intentionally throwing a RuntimeException from  a proposal.

Verified that the exception gets logged, but that the completion proposal popup stays operational.