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 197115 - Option to disable automatic reparsing NEEDED
Summary: Option to disable automatic reparsing NEEDED
Status: RESOLVED DUPLICATE of bug 187567
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-26 17:13 UTC by vitus
Modified: 2012-03-30 07:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans has such useful option (36.85 KB, image/png)
2011-03-26 18:06 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vitus 2011-03-26 17:13:48 UTC
I have a large project (approx. 500 k lines of code) in c++. The initial parsing of sources at startup takes around 1 min, but that's fine. The navigation in the code is perfect, everything works nice, UNTIL I type anything in the editor. The automatic reparsing starts at that point and makes IDE absolutely unusable for next few minutes. 
This can't be solved by disabling the "C++ code assistance", because that disables also the navigation, and that's exactly what I need to use. 
The menu item "Reparse project" already exists, which can make things easier. 

The proposed scenario could be:
1. Run the IDE, wait until the project is parsed
2. Disable automatic reparsing (keeping the code assistance active)
3. Edit the code as much as needed
4. Manually call "Reparse project" -> making the code assistance data up-to-date

Having this option Netbeans will be suitable also for this large projects. It is not without.
Comment 1 soldatov 2011-03-26 18:06:33 UTC
Created attachment 107300 [details]
NetBeans has such useful option
Comment 2 Vladimir Voskresensky 2011-03-26 19:23:29 UTC
vitus, Valera is right - it's in place. Tools->Options->C++->Highlighting; Reparse on file change
Comment 3 sbheinric 2012-02-09 00:18:50 UTC
The option to "disable automatic reparsing on file change" does exist, but even with this option enabled, it still attempts to reparse every time a file is SAVED, which still makes the editor unusable for large projects.

I desperately hope that, in the future, Netbeans will be fixed to not attempt to reparse all the header files whenever any one is changed, as suggested in issue 208035.  

However, until that time, the editor is still effectively unusable for medium or large projects.  Therefore, I propose two possible interim solutions:

A) Provide an option to completely disable code completion within Netbeans.
B) Provide an option to disable automating reparsing on file SAVE, and instead provide a button or hotkey shortcut that must be used to manually invoke reparsing when the programmer has time to take a coffee break.
Comment 4 Vladimir Voskresensky 2012-02-09 09:40:51 UTC
(In reply to comment #3)
> The option to "disable automatic reparsing on file change" does exist, but even
> with this option enabled, it still attempts to reparse every time a file is
> SAVED, which still makes the editor unusable for large projects.
> 
> I desperately hope that, in the future, Netbeans will be fixed to not attempt
> to reparse all the header files whenever any one is changed, as suggested in
> issue 208035.  
> 
> However, until that time, the editor is still effectively unusable for medium
> or large projects.  Therefore, I propose two possible interim solutions:
> 
> A) Provide an option to completely disable code completion within Netbeans.
in project's context menu: Code Assistance-> uncheck Code Assistance

> B) Provide an option to disable automating reparsing on file SAVE, and instead
> provide a button or hotkey shortcut that must be used to manually invoke
> reparsing when the programmer has time to take a coffee break.
in project's context menu: Code Assistance-> Reparse Project
Comment 5 Alexander Simon 2012-03-30 06:51:47 UTC
Vladimir,
Now IDE supports smart reparsing (see Bug #187567).
Is this issue still actual?
Comment 6 Vladimir Voskresensky 2012-03-30 07:32:08 UTC
sbheinric, please, try dev build. It has requested support for partial reparse.

*** This bug has been marked as a duplicate of bug 187567 ***