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 82006 - Code completion doesn't work in Quote sample app
Summary: Code completion doesn't work in Quote sample app
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-05 23:20 UTC by Vladimir Voskresensky
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 Vladimir Voskresensky 2006-08-05 23:20:37 UTC
Open Quote sample app.
open file module.cc
go to line 120,
new line
ctrl+space
No completion list + exception:
INFO [stderr]: java.lang.ClassCastException:
org.netbeans.modules.cnd.modelimpl.csm.FunctionDDImpl
INFO [stderr]:  at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$CsmCompletionResult.createResultItem(CsmCompletionQuery.java:1314)
INFO [stderr]:  at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$CsmCompletionResult.convertData(CsmCompletionQuery.java:1289)
INFO [stderr]:  at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$CsmCompletionResult.<init>(CsmCompletionQuery.java:1263)
INFO [stderr]:  at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$CsmCompletionResult.<init>(CsmCompletionQuery.java:1256)
INFO [stderr]:  at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveItem(CsmCompletionQuery.java:797)
INFO [stderr]:  at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveExp(CsmCompletionQuery.java:691)
INFO [stderr]:  at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.getResult(CsmCompletionQuery.java:180)
INFO [stderr]:  at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:167)
INFO [stderr]:  at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:97)
INFO [stderr]:  at
org.netbeans.editor.ext.Completion.performQuery(Completion.java:589)
INFO [stderr]:  at org.netbeans.editor.ext.Completion.access$700(Completion.java:47)
INFO [stderr]:  at
org.netbeans.editor.ext.Completion$1QueryTask.run(Completion.java:515)
INFO [stderr]:  at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:516)
INFO [stderr]:  at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:949)
Comment 1 Vladimir Voskresensky 2006-08-07 10:01:23 UTC
dowgraded priority, because can't reproduce after rebooting and recompiling.
Didn't close to make some more investigations.
Comment 2 soldatov 2006-09-06 15:00:08 UTC
I can reproduce.
Repeate these steps:
- Create Quote sample project
- Open cpu.cc file
- Go to line 27
- Press ctrl-space
==> code completion list doesn't appear

tail -20 ~/.netbeans/netbeans5.5beta2/var/log/messages.log

java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.FunctionDDImpl
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$CsmCompletionResult.createResultItem(CsmCompletionQuery.java:1314)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$CsmCompletionResult.convertData(CsmCompletionQuery.java:1289)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$CsmCompletionResult.<init>(CsmCompletionQuery.java:1263)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$CsmCompletionResult.<init>(CsmCompletionQuery.java:1256)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveItem(CsmCompletionQuery.java:797)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveExp(CsmCompletionQuery.java:691)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.getResult(CsmCompletionQuery.java:180)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:167)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:97)
        at org.netbeans.editor.ext.Completion.performQuery(Completion.java:595)
        at org.netbeans.editor.ext.Completion.access$700(Completion.java:53)
        at org.netbeans.editor.ext.Completion$1QueryTask.run(Completion.java:521)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 3 soldatov 2006-10-09 15:42:55 UTC
Can't reproduce now.