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 76145 - Code completion list does not appears for some of large projects.
Summary: Code completion list does not appears for some of large projects.
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 5.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-10 10:05 UTC by soldatov
Modified: 2010-02-01 10:24 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 soldatov 2006-05-10 10:05:55 UTC
I have bug described in http://www.netbeans.org/issues/show_bug.cgi?id=76035 again.

Steps:
- Create Freeway project (descibed in IZ 76035)
- Open maniac.cc file in built-in editor
- Move cursor at 51-th line
- Press "ctrl-space" (code completion)
"Please wait..." message arisen and hidden. But code completion
list does not appears.

But now I haven't any exception in ~/.netbeans/5.0/var/log/messages.log file.

P.S. Second example works correctly.
Comment 1 soldatov 2006-05-10 10:26:06 UTC
P.S. After some delay this exception appeared:

java.lang.ArrayIndexOutOfBoundsException: 2
        at
org.netbeans.modules.cnd.api.model.util.CsmSortUtilities.compareFunctions(CsmSortUtilities.java:362)
        at
org.netbeans.modules.cnd.api.model.util.CsmSortUtilities.access$400(CsmSortUtilities.java:37)
        at
org.netbeans.modules.cnd.api.model.util.CsmSortUtilities$NaturalMemberNameComparator.compare(CsmSortUtilities.java:217)
        at java.util.Arrays.mergeSort(Arrays.java:1307)
        at java.util.Arrays.mergeSort(Arrays.java:1295)
        at java.util.Arrays.mergeSort(Arrays.java:1295)
        at java.util.Arrays.mergeSort(Arrays.java:1295)
        at java.util.Arrays.mergeSort(Arrays.java:1295)
        at java.util.Arrays.sort(Arrays.java:1223)
        at java.util.Collections.sort(Collections.java:159)
        at
org.netbeans.modules.cnd.api.model.util.CsmSortUtilities.sortMembers(CsmSortUtilities.java:102)
        at
org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getLibElements(CsmProjectContentResolver.java:208)
        at
org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getLibFunctions(CsmProjectContentResolver.java:180)
        at
org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.getLibFunctions(CompletionResolverImpl.java:326)
        at
org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.resolveContext(CompletionResolverImpl.java:215)
        at
org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.resolve(CompletionResolverImpl.java:139)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveItem(CsmCompletionQuery.java:758)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveExp(CsmCompletionQuery.java:685)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.getResult(CsmCompletionQuery.java:174)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:161)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:91)
        at org.netbeans.editor.ext.Completion.performQuery(Completion.java:589)
        at org.netbeans.editor.ext.Completion.access$700(Completion.java:47)
        at org.netbeans.editor.ext.Completion$1QueryTask.run(Completion.java:515)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
Comment 2 soldatov 2006-09-08 15:16:16 UTC
It works correctly now.
Comment 3 Alexander Pepin 2008-01-25 18:37:18 UTC
verified in NB6.0