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 249346 - Code completion is completely broken in some cpp files.
Summary: Code completion is completely broken in some cpp files.
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-14 14:42 UTC by TomCatFort
Modified: 2015-03-23 01:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Problematic project with screenshots. (328.11 KB, application/zip)
2014-12-14 14:42 UTC, TomCatFort
Details

Note You need to log in before you can comment on or make changes to this bug.
Description TomCatFort 2014-12-14 14:42:22 UTC
Created attachment 151101 [details]
Problematic project with screenshots.

Code completion is broken for certain classes, regardless where they used. This is best seen in they associated .cpp files, where code completion seems to be nearly completely broken. Affected identifiers can not be resolved.

I also noticed that in the navigation window, the function's name are correct but they not appear to be contained in they respective classes. Furthermore they icons are incorrect too.

I was not able deduce what change produced the error. Files that worked correctly in the past appears suddenly broken, even without modifying them. I was not able to create a minimal code that reproduces the problem either. Thus I provided my entire project complete with the source. Please see the files error.cpp and screen_manager.cpp. The projects uses C++11 and compiles only on Linux so far.

I do not know any workaround for it.

There is a very similar bug that was fixed in the past: ID = 236435.

If you need any more info, please don't hesitate to contact me.
Comment 1 Vladimir Voskresensky 2014-12-15 16:32:11 UTC
Hello, 
What if add space and save the file? 
Do you see the errors?
What if you close IDE and remove cache dir, then reopen IDE?
Comment 2 TomCatFort 2014-12-15 17:41:38 UTC
(In reply to Vladimir Voskresensky from comment #1)
> What if add space and save the file? 
> Do you see the errors?
Yes, changing the bugged .cpp or it's corresponding .hpp had no correcting effect.

> What if you close IDE and remove cache dir, then reopen IDE?
This worked! Thank you! 
I closed the IDE, deleted `~/.cache/netbeans` directory, then reopened the IDE. All bugged source files are working correctly again.
Comment 3 petrk 2015-03-23 01:58:46 UTC
I closed it as invalid because there is a workaround and it is mostly impossible to figure where the glitch happened. If you'll encounter similar issues, please, reopen the bug.