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 - IllegalArgumentException: indent=-32 < 0
Summary: IllegalArgumentException: indent=-32 < 0
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Scala (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ dcaoyuan
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-12 13:51 UTC by esser
Modified: 2009-07-09 20:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 138746


Attachments
stacktrace (3.39 KB, text/plain)
2008-11-12 13:51 UTC, esser
Details

Note You need to log in before you can comment on or make changes to this bug.
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