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 153040

Summary: IllegalArgumentException: indent=-32 < 0
Product: contrib Reporter: esser <esser>
Component: ScalaAssignee: _ dcaoyuan <dcaoyuan>
Status: NEW ---    
Severity: blocker CC: fernandotakai
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=138746
Issue Type: DEFECT Exception Reporter: 138746
Attachments: stacktrace

Description esser 2008-11-12 13:51:52 UTC
Build: NetBeans IDE 6.5 RC2 (Build 200810270001)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-119, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-237
OS: Mac OS X, 10.5.5, i386

Stacktrace: 
java.lang.IllegalArgumentException: indent=-32 < 0
        at org.netbeans.modules.editor.indent.api.IndentUtils.createIndentString(IndentUtils.java:200)
        at org.netbeans.modules.editor.indent.spi.Context.modifyIndent(Context.java:177)
        at org.netbeans.modules.scala.editing.ScalaFormatter$.run(ScalaFormatter.java:310)
        at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:294)
        at org.netbeans.modules.scala.editing.ScalaFormatter.reindent(ScalaFormatter.java:267)
        at org.netbeans.modules.scala.editing.ScalaFormatter.reindent(ScalaFormatter.java:140)
Comment 1 esser 2008-11-12 13:51:57 UTC
Created attachment 73680 [details]
stacktrace
Comment 2 Jiri Prox 2008-11-12 15:55:07 UTC
Can you provide steps to reproduce, please?
Thanks
Comment 3 Miloslav Metelka 2008-11-18 09:25:37 UTC
Reassigning to languages/scala since the formatter impl passes wrong indent value.
Comment 4 Exceptions Reporter 2009-07-09 20:12:32 UTC
This issue already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=138746