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 171291

Summary: AssertionError at org.netbeans.modules.scala.editing.ast.ScalaElement.paramNames
Product: contrib Reporter: witstart <witstart>
Component: ScalaAssignee: _ dcaoyuan <dcaoyuan>
Status: NEW ---    
Severity: blocker CC: witstart
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=151761
Issue Type: DEFECT Exception Reporter: 151761
Attachments: stacktrace
stacktrace

Description witstart 2009-09-01 22:55:47 UTC
Build: NetBeans IDE Dev (Build 200908022240)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02-77, Java(TM) SE Runtime Environment, 1.6.0_13-b03-196
OS: Mac OS X, 10.5.8, x86_64

User Comments:
GUEST: Trying to code complete method name when writing an override def.

In other words I typed "override def to" and then hit Ctrl-Space to see what methods starting with  "to" that I could override.

witstart: Ctrl-Space on a scala keyword

GUEST: Code completion should work, right?



Stacktrace: 
java.lang.AssertionError
        at org.netbeans.modules.scala.editing.ast.ScalaElement.paramNames(ScalaElement.java:342)
        at org.netbeans.modules.scala.editing.ScalaCompletionProposal$FunctionProposal.getLhsHtml(ScalaCompletionProposal.java:243)
        at org.netbeans.modules.csl.editor.completion.GsfCompletionItem$DelegatedItem.getLeftHtmlText(GsfCompletionItem.java:171)
        at org.netbeans.modules.csl.editor.completion.GsfCompletionItem.getPreferredWidth(GsfCompletionItem.java:498)
        at org.netbeans.modules.editor.completion.CompletionJList$RenderComponent.getPreferredSize(CompletionJList.java:325)
        at org.netbeans.modules.editor.completion.CompletionJList.setData(CompletionJList.java:160)
Comment 1 witstart 2009-09-01 22:55:52 UTC
Created attachment 86944 [details]
stacktrace
Comment 2 witstart 2009-09-02 20:44:14 UTC
Build: NetBeans IDE Dev (Build 200908022240)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02-77, Java(TM) SE Runtime Environment, 1.6.0_13-b03-196
OS: Mac OS X, 10.5.8, x86_64

User Comments: 
expanding a variable name with Ctrl-Space

Stacktrace: 
java.lang.AssertionError
        at org.netbeans.modules.scala.editing.ast.ScalaElement.paramNames(ScalaElement.java:342)
        at org.netbeans.modules.scala.editing.ScalaCompletionProposal$FunctionProposal.getLhsHtml(ScalaCompletionProposal.java:243)
        at org.netbeans.modules.csl.editor.completion.GsfCompletionItem$DelegatedItem.getLeftHtmlText(GsfCompletionItem.java:171)
        at org.netbeans.modules.csl.editor.completion.GsfCompletionItem.getPreferredWidth(GsfCompletionItem.java:498)
        at org.netbeans.modules.editor.completion.CompletionJList$RenderComponent.getPreferredSize(CompletionJList.java:325)
        at org.netbeans.modules.editor.completion.CompletionJList.setData(CompletionJList.java:160)
Comment 3 witstart 2009-09-02 20:44:18 UTC
Created attachment 87005 [details]
stacktrace