Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 399459

Summary: Eclipse can't import classes after some time
Product: [Eclipse Project] JDT Reporter: Krzysiek Nazwisko <nowy84>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: major    
Priority: P3 CC: jarthana, stephan.herrmann
Version: 4.2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
log from IDE none

Description Krzysiek Nazwisko CLA 2013-01-30 03:26:43 EST
Hi!

I noticed that under some circumstances (unfortunately, I can't get reproducing path), Eclipse messes up :(
What I mean is:
- in "Open Type" window it can't find some classes (some can, but some no :( But i.ex. "Open Resource" can find this class
- Content Assist (CTRL + space) also can't find some classes (what is weird - "Open Type" can find this class).
If I type this class manually, Eclipse can't import it!:(
- can't finding any references for method (Ctrl+Shift+G on method - 0 matches)

Cleaning and refreshing my project doesn't help it :( BUT helps restarting the IDE. After restarting everything backs to normal.

Of course, I have the "Build Automatically" option checked.
There are no errors in project (in "Problems" view are only Warnings)

Anybody noticed this strange, similar behavior...?
It's very irritating :/

As I said, for now, I can't reproduce it :( It happens averagely once, twice in 8 hours session work.
I have little presumption that it may be connected with saving project with build errors, but I'm not sure so I don't want to show wrong path.

I looked in .log Eclipse file, but I didn't find anything interesting (I'm enclosing the file in post).

Maybe I should look somewhere else...? What can I turn on to give you more informations?

This bug(?) it's really disturbing the work :/

I did also a post on forum, but maybe Bugzilla is better place for this.
Link to post:
http://www.eclipse.org/forums/index.php/t/452180/
Comment 1 Krzysiek Nazwisko CLA 2013-01-30 03:27:19 EST
Created attachment 226299 [details]
log from IDE
Comment 2 Stephan Herrmann CLA 2013-02-01 15:04:45 EST
As you already guessed, this information is not sufficient for investigation on our side. Not seeing any errors in the log is surprising.

When the bug starts occurring, is it like a sudden switch from good to bad, or does JDT seem to be "losing" more and more types over time?

As you say some classes are still found, can you narrow down, which one's are typically lost - are those from a particular library? If these classes are not from projects in the workspace, how are those libraries found, i.e.: how's your classpath configured?
Comment 3 Krzysiek Nazwisko CLA 2013-02-05 06:30:06 EST
Thanks for the answer.

When the bug starts occurring, I usually restart Eclipse (because as I said before it's annoying problem), so I can't say if it is losing more and more types.

Range of "lost" classes: there are "my" classes - directly from my project (not from referenced libraries). Even more - it's weird that if the problem's occuring, some classes from one of my package are visible but some others, from THE SAME package, are not(!)
Comment 4 Eclipse Genie CLA 2020-04-09 14:05:21 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.