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 201534 - Code model sometimes very confused
Summary: Code model sometimes very confused
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-02 00:35 UTC by tbrunhoff
Modified: 2011-09-09 12:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot of ide (242.77 KB, image/png)
2011-09-02 00:35 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2011-09-02 00:35:45 UTC
Created attachment 110329 [details]
screenshot of ide

I don't know what is special about this code, or even if it is special, but the attached snapshot shows one particular method where all the local variables are undefined, even though it appears that the types are understood by the ide's c++ parser. Note that the arguments to the method are defined, but no local variables are recognized. Within this same file, the types (uint_64, uint_8, etc) are used.  The red markings in the margin cover just this method and the next one.

Note also that this is after
 - exit ide
 - remove .netbeans/dev/var/cache
 - restarting the ide

I even tried an additional "reparse project".

Product Version: NetBeans IDE Dev (Build 201108310601)
Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09
System: Linux version 2.6.35.13-92.fc14.x86_64 running on i386; UTF-8; en_US (nb)
User directory: /home/toddb/.netbeans/dev
Cache directory: /home/toddb/.netbeans/dev/var/cache
Comment 1 Leonid Lenyashin 2011-09-02 08:41:38 UTC
Please have a look and also evaluate if it needs to be fixed in 7.0.1 patch 2 as well.
Comment 2 Vladimir Voskresensky 2011-09-09 12:25:51 UTC
Todd, could it be also related to other configurations which remain in your userdir[1]? What if you run ide with completely clean userdir to checks this scenario?
If it is still reproducible, could you, please, use Ctrl+Shift+M to dump model of file.

Thanks,
Vladimir.
[1] We had a bug that if user import some settings from old version of NB => editor's lexer phase can be corrupted and it cause parser to be corrupted as well
Comment 3 Vladimir Voskresensky 2011-09-09 12:27:23 UTC
(In reply to comment #2)
> If it is still reproducible, could you, please, use Ctrl+Shift+M to dump model
> of file.
Sorry, shortcut is Ctrl+Alt+Shift+M and we are interested in "File Code Model" choice and Cache of xRef for file

Thanks,
Vladimir.