Bug 64392 - Bogus errors displayed in the editor
Summary: Bogus errors displayed in the editor
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
: 64427 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-27 12:46 EDT by Bryan Hunt CLA
Modified: 2009-08-30 02:06 EDT (History)
1 user (show)

See Also:


Attachments
bogus errors (209.52 KB, image/jpeg)
2004-05-27 12:49 EDT, Bryan Hunt CLA
no flags Details
real error not propagated (307.24 KB, image/jpeg)
2004-05-27 16:35 EDT, Bryan Hunt CLA
no flags Details
Option file for jdt-core debug trace ON. (1.46 KB, text/plain)
2004-05-28 11:21 EDT, Frederic Fusier CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan Hunt CLA 2004-05-27 12:46:35 EDT
I just started eclipse and it shows several errors in the editor that are bogus.  See attachment.
Comment 1 Bryan Hunt CLA 2004-05-27 12:49:28 EDT
Created attachment 11219 [details]
bogus errors

This picture is certainly better that a 1000 words from me.
Comment 2 Bryan Hunt CLA 2004-05-27 12:55:31 EDT
Restarted eclipse and the problem went away.
Comment 3 Dirk Baeumer CLA 2004-05-27 13:03:15 EDT
Can you remember the message of the errors.
Comment 4 Bryan Hunt CLA 2004-05-27 13:09:48 EDT
Hovering over the error indicator did not display a tooltip.  I've also seen a similar problem where bogus 
errors are reported in the editor, navigator, and Problems view that say the import org.eclipse cannot 
be found.  In both cases org.eclipse is underlined in the import declarations.
Comment 5 Bryan Hunt CLA 2004-05-27 16:35:41 EDT
Created attachment 11239 [details]
real error not propagated

Here is a screenshot of a real error reported correctly in the editor, but
nowhere else.
Comment 6 Dirk Baeumer CLA 2004-05-28 03:00:52 EDT
Bryan, there is a difference between errors shown in the editor and errors 
shown in other views. The editor shows error without the need of actually 
compiling the source. So if you change the code errors will show up 
immediatelly in the editor but not in other views. Views show the "build 
state" error. So editor and views are only in sync after a build. 

Does this sceanrio apply to the cases where you have seen the error only 
showing up in the editor.

Moving to JDT/Core to comment on the error that the import org.eclipse can't 
be resolved.
Comment 7 Philipe Mulet CLA 2004-05-28 08:08:57 EDT
Which build is this referring to ? Could be a classpath initialization issue, 
and we did resolve many of these in recent past.
Comment 8 Dirk Baeumer CLA 2004-05-28 09:05:00 EDT
*** Bug 64427 has been marked as a duplicate of this bug. ***
Comment 9 Frederic Fusier CLA 2004-05-28 09:31:23 EDT
Another question: was your workspace built?

I experienced similar behavior while copying classes for example from one
project to another and having classpath problem in my second project.

In this case, after the copy, you'll get lot of errors in the copied class if
you edit it, but no error in problem views. After rebuilding my workspace, then
problems views correctly reflect the errors that were displayed in the editor...
Comment 10 Philipe Mulet CLA 2004-05-28 09:56:33 EDT
Pls reopen once requested info is available.
Comment 11 Bryan Hunt CLA 2004-05-28 10:50:19 EDT
These problems are occuring on M9.  In the case of comment #5, you will notice from the screenshot 
that the code in the editor has been saved (no * in the editor tab) but the error does not display in any 
of the other views, (and yes, I have incrimental build turned on so the workspace was built.
Comment 12 Frederic Fusier CLA 2004-05-28 11:17:40 EDT
Thx for the info. Unfortunately we need more to understand what happen in your
workspace...
Would it be possible:
1- to attach the .classpath file of com.ibm.hdwb.data.ui project in which you
get these errors,
2- to start eclipse with some jdt-core debug trace turned on (I will attach
corresponding .options file) and then send us the resulting content of console
output.
Comment 13 Frederic Fusier CLA 2004-05-28 11:21:04 EDT
Created attachment 11275 [details]
Option file for jdt-core debug trace ON.

Detach this option file and start eclipse using -debug option as follow:
start eclipse.exe -showlocation -debug <path to the .options file> -data
%WORKSPACE% -consoleLog...

or put this .options file in starting directory when you launch eclipse (it
should be something like <eclipse install dir>/eclipse
Comment 14 Bryan Hunt CLA 2004-05-28 11:23:26 EDT
I'll gladly provide the info as soon as the problem occurs again.  Unfortunately, restarting Eclipse makes 
the problem go away.
Comment 15 Frederic Fusier CLA 2004-05-28 11:25:44 EDT
ok, then I set it as resolved remind. Reopen it when you'll get this problem
again and provide further information. thx
Comment 16 Frederic Fusier CLA 2005-02-17 09:48:26 EST
Closing as never reproduced in a long time
Comment 17 Denis Roy CLA 2009-08-30 02:06:17 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.