This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 174766 - [parser] Reopening a project triggers parsing
Summary: [parser] Reopening a project triggers parsing
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Alexey Vladykin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-16 16:20 UTC by rmartins
Modified: 2009-11-17 04:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rmartins 2009-10-16 16:20:13 UTC
Hi,
when reopening a project, it gets re-parse even if no file has been modified...

Thanks,
Rolando
Comment 1 Alexey Vladykin 2009-11-10 08:04:14 UTC
Will investigate what's the reason, and see if it's safe to fix in 6.8.
Comment 2 Alexey Vladykin 2009-11-10 09:49:15 UTC
Rolando, could you please take NetBeans' thread dump when it's re-parsing your project?
Comment 3 Alexey Vladykin 2009-11-10 10:14:33 UTC
There is a number of things CND does even if project files are not changed.
1. CND checks if cache version is correct. If not, it discards the cache and reparses everyting. We increment cache version when new features are added. So changing to a newer NetBeans build could trigger complete reparsing.
2. CND reads its caches from /tmp/${USER}-cnd68-caches0
3. CND checks that cache is up to date, by going through all project files and checking that they have not changed.

Items 2) and 3) can take noticeable time for a large project. During this activity NetBeans can show "Parsing ..." progress bar, but actually it's not parsing.

There is another activity "Scanning projects..." which is not part of CND but is done by NetBeans itself. It builds an index for fast full-text search in the projects. It is not parsing either.
Comment 4 Alexey Vladykin 2009-11-12 02:25:21 UTC
This is incomplete without a thread dump proving that NetBeans is actually parsing. Reading caches and verifying files does not count.
Comment 5 Alexey Vladykin 2009-11-17 04:42:46 UTC
Bug #87590 suggests to change the "Parsing..." message to something like "Loading cache..." to avoid confusion.