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 169555 - code completion marks functions of a class as unknown
Summary: code completion marks functions of a class as unknown
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-30 11:43 UTC by luky
Modified: 2013-05-07 11:20 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 luky 2009-07-30 11:43:38 UTC
Code complition marks as unknown functions of a class which are actually known as compilation works
example:

in header file:
typedef struct {
	AIAPI AIErr (*NewParser) ( AIStyleParser* parser );
} AIArtStyleParserSuite;

in source file:
AIArtStyleParserSuite *sStyleParserSuite;
error = sStyleParserSuite->NewParser( &styleParser);


NewParser is marked as unknown/unresolved
Comment 1 nnnnnk 2009-08-12 17:33:46 UTC
I can not reproduce this bug.

Please, could you provide definitions for AIAPI and AIErr.
Comment 2 luky 2009-08-12 19:28:32 UTC
AIErr is just int and AIAPI is empy. But I don't think it's the trouble
The whole system seems to behave bit unstably - sometimes you must save the file, sometime you must recompile to get 
types resolved, sometimes types are not resolved at all. Sometimes types or functions are red but when you ctrl+clik on 
it you get to declaration. It is much better in recent builds than it used to be, though
 
Comment 3 nnnnnk 2009-08-12 21:01:03 UTC
What version of NetBeans do you use?
Some unpleasant issues of NetBeans 6.7 have been fixed in 6.7.1.
It seems that the reason if instability you are talking about is 
http://www.netbeans.org/issues/show_bug.cgi?id=168032, isn't it?
Comment 4 luky 2009-08-12 23:36:59 UTC
My build is Build 200907300201
so I guess it is after the fix
As i said it's much better recently but ocassionaly it doesn't work
I think one example is itoa under cygwin, it's not resolved.
Comment 5 soldatov 2009-08-13 12:32:15 UTC
itoa is non-standard C++ function. And I can't compile any code with it in Cygwin. Therefore it is missed in Code
Completion. With MinGW it works fine.
Comment 6 luky 2009-08-13 16:01:15 UTC
i am using cygwin and commpiling with -mnocygwin option and _itoa works, but doesn't matter. I suggest to lower 
priority and keep it in monitoring state. When I will come accross a new  example I will post it here

Comment 7 nnnnnk 2009-08-17 15:22:34 UTC
ok