Bug 163658 - C/C++ project browser refresh
Summary: C/C++ project browser refresh
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-07 09:15 EST by Tiziano Leidi CLA
Modified: 2020-09-04 15:18 EDT (History)
0 users

See Also:


Attachments
pictur with the problem (11.56 KB, image/gif)
2006-11-07 09:16 EST, Tiziano Leidi CLA
no flags Details
duplicate project in C/C++ explorer (15.94 KB, image/gif)
2006-12-14 03:27 EST, Tiziano Leidi CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziano Leidi CLA 2006-11-07 09:15:55 EST
The C/C++ project browser is not always refreshed as it should (see attached .gif file).

the only way to solve the problem is to perform a full workspace refresh

workspace.getRoot().refreshLocal(IResource.DEPTH_INFINITE, null);

just after project creation. 

manual refresh does not solve the situation !
programmatic refresh on the project is not enough !

Seems to be a problem of wrong synchronisation of threads (race condition), because the bug disappear if a stop is done by the debugger (breakpoint) or with a sleep just after project creation.
Comment 1 Tiziano Leidi CLA 2006-11-07 09:16:38 EST
Created attachment 53365 [details]
pictur with the problem
Comment 2 Tiziano Leidi CLA 2006-12-14 03:27:02 EST
Created attachment 55644 [details]
duplicate project in C/C++ explorer

The attached picture shows a further problem that seems to have a similar cause to the problem of this bug:
Same projects is present twice in the C/C++ explorer.