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 168773 - A command for reparsing symbols is needed
Summary: A command for reparsing symbols is needed
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-19 02:47 UTC by superoptimo
Modified: 2009-10-28 11:36 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description superoptimo 2009-07-19 02:47:01 UTC
For Currently Netbeans has a very good code assistance and code completition, and it has become one of the best IDE for
c++ development, even better than MSVC. Its code navigation engine works pretty fine, even with c++ (which is has a more
complex grammar than Java) , but it isn't perfect at all. After all, nothing is perfect I know. 

Incremental symbols parsing could work most of the time, but sometimes a more thorough code analysis is required.

The fact is that the code navigation could get confused when a large portion of a c++ project is modified, or when a
refactoring is performed. So then some classes disappear from the class browser and the navigator is unable to show
symbols in some files. This problem affects more to c++ projects, when Java navigation issues are very rare (due of the
simplicity of Java language).

I've found a workaround for this issue, and is deleting the /vars folder in the settings folder of netbeans (in my
system is located at  "~/.netbeans/dev" ). 

But is not very comfortable to doing this every time when the code navigator gets confused. Most IDE's have a command
for clear the symbols database and  reparsing all the source files. And netbeans needs a command like this in the
project panel or in the source menu. It could be easy to implement (just deleting the files where the symbols database
is stored).

If this feature is enabled, then Netbeans could become the BEST Ide for C++ and Java.
Comment 1 Marian Mirilovic 2009-10-25 22:33:13 UTC
reassign to CND for first evaluation ... after that we can try Java
Comment 2 Vladimir Voskresensky 2009-10-26 15:33:58 UTC
we have thought to add such action into project's context menu, under Code Assistance category.
Comment 3 superoptimo 2009-10-26 16:50:51 UTC
That's good.
Thanks.

Att: Francisco.
Comment 4 Vladimir Voskresensky 2009-10-26 17:51:01 UTC
added UI action. Will fix semantic tomorrow
http://hg.netbeans.org/cnd-main/rev/6f90bf5e8957
Comment 5 Quality Engineering 2009-10-27 11:01:16 UTC
Integrated into 'main-golden', will be available in build *200910270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6f90bf5e8957
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing IZ#168773: A command for reparsing symbols is needed
Comment 6 Vladimir Voskresensky 2009-10-27 15:15:29 UTC
reparse action:
http://hg.netbeans.org/cnd-main?cmd=changeset;node=4609db032cda

Btw, physically for C++ project cache to be removed is located in ${tmp}/${user}-cnd-cache* folder. Removing this folder
cause reparse of the project
Comment 7 rmartins 2009-10-27 18:27:41 UTC
Hi Vladimir,
is it possible to add a reparse command per file (and its dependencies) on a context menu (when we click on a file)?

Thanks,
Rolando
Comment 8 Vladimir Voskresensky 2009-10-28 09:19:55 UTC
Hi, Rolando,
press "space" and then "save" the file should cause reparse of the file and its dependencies.

Thanks,
Vladimir.
Comment 9 Quality Engineering 2009-10-28 11:36:25 UTC
Integrated into 'main-golden', will be available in build *200910280201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4609db032cda
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed IZ#168773: A command for reparsing symbols is needed