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.
I don't know whether it is feature, bug or wrong setting but code completion doesn't work for me for any #included files (or more precisely types in the files). I had the same problem in version 6.0 and therefore tried to migrate to 6.1 but nothing changed.
Escalated to P2. Can you provide an example that shows this problem? It would be very helpful to the development team to have that since the feature has been extensively tested and works -- so there may be scenarios which the team has not considered.
Hi, sorry for lack of example, I have studied the case I have noticed first time more precisely. Code completion worked fine for most of the included file, my mistake to let you think it doesn't, sorry. I have changed Summary of this issue to reflect this mistake. Althought for most of the included file completion worked fine, completion wasn't able to process this example: file object.h: template<class t> class Object{ public: template<class t2> Object<t> getSomething(){ ... } }; file example.h: #include "object.h" void doNothing(){ Object o; o. <-------- no code completion suggestion } I have to note that without "template<class t2>" it works.
Thank you for details. I see the bug and you are right, the problem is template function inside template class without templating of fun it works.
I made investigation and discovered that because of this error model missed class content at all.
Created attachment 59730 [details] patch
Vladimir K., could you review the proposed fix, please? - I fixed incorrect predicate - reordered rules to have more precise before less precise ones all unit & codemodel tests pass without errors.
integrated in trunk: http://hg.netbeans.org/main?cmd=changeset;node=680112cd2824 + test http://hg.netbeans.org/main?cmd=changeset;node=6c0204554613
I reviewed the proposed fixed thoroughly. I completely agree with it. It is safe and correct. I strongly believe it's worth including the fix into 6.1
verified in 200804040802 build + jars with fixes from developers
fix integrated in 6.1 http://hg.netbeans.org/release61?cmd=changeset;node=04f07f45977f
verified in 200804082140 build (branch: release61)