Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 68576 - [Problems] "Problems" View is updated on Save only..It should be updated when code changes in editor
Summary: [Problems] "Problems" View is updated on Save only..It should be updated when...
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 470927 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-25 02:09 EDT by rsathish CLA
Modified: 2015-06-25 12:19 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rsathish CLA 2004-06-25 02:09:43 EDT
All IDEs update the Syntax errors when code changes.
Unfortuantely in Eclipse, one neeeds to save the file to get this pane refreshed.
This is very annoying.

Can this behaviour be changed? so that When code is changed resulting in an
error , the problems view gets refreshed?
Comment 1 Philipe Mulet CLA 2004-06-25 07:50:12 EDT
The editor merges problems issued from last official compile (when building) 
and those issued when reconciling user input. This is rendered in editor only.
You may discard editor changes for instance, and these extra problems would 
simply disappear then.

If real markers were created and rendered in problem view, these would 
broadcast changes to clients, where these have no incidence on clients until:
1- editor contents is saved
2- classfiles are regenerated.

So editor problems are rather a preview of what you will see when the next 
build will occur.

The reason why save seems to refresh the problem view, is that you are running 
on autobuild, where a build automatically takes place each time you save a 
file or modify any file.
Comment 2 Dani Megert CLA 2004-06-25 08:33:51 EDT
The Problems view could also show the annotations via text file buffer's
annotation model.
Comment 3 Stefan Xenos CLA 2004-06-25 12:27:55 EDT
I don't think it makes sense to add specific code to the problems view to detect
annotations in the text editor, as this would only work for the problems view
and not other views that indicate problem state such as the annotations in the
package explorer. I would either expect it to behave like this everywhere or
nowhere.

This should be part of some more general facility that allows clients to examine
and listen to changes in unsaved IMarkers (aka annotations) in the same way they
can listen to IMarker changes in the workspace.... or we should flag this as
invalid. If we opt for the former, then the problems view would behave largely
like it does now, but it would simply search a different tree for its markers.
Comment 4 Stefan Xenos CLA 2004-06-25 12:34:28 EDT
Moving to core, since that's where the support would need to start.
Comment 5 John Arthorne CLA 2004-06-28 14:31:41 EDT
Sorry, the problems view will only update when the file is saved. It is too
expensive to be constantly update all these annotations as you type.
Comment 6 Markus Keller CLA 2015-06-25 12:19:13 EDT
*** Bug 470927 has been marked as a duplicate of this bug. ***