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 227342 - IllegalArgumentException: indent=-4 < 0
Summary: IllegalArgumentException: indent=-4 < 0
Status: NEW
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: marsaultj
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-12 09:33 UTC by stefanp_safilo
Modified: 2015-02-18 10:57 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 183475


Attachments
stacktrace (1.97 KB, text/plain)
2013-03-12 09:33 UTC, stefanp_safilo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefanp_safilo 2013-03-12 09:33:54 UTC
Build: NetBeans IDE 7.3 (Build 201302132200)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows Vista

User Comments:
GUEST: SCSS plugin by Jeremy MARSAULT

GUEST: reformatting code (specifically, a SCSS file) using the keyboard shortcut

stefanp_safilo: nothing special

GUEST: format code

GUEST: I tried to format .scss file.

GUEST: I simply tried to format the code

GUEST: I try make new line in scss editor window in css selector line "#academy .content...."

#academy .content table.items td.items .item .scrollGalleryHead img.childs{
	width: 100px;
	height: 100px;
}

GUEST: in .less file with cscc plugin write "p{", then automated ended with "}".
So mein cursor is inside {|}. Click enter and .. this error

Sorry for my english




Stacktrace: 
java.lang.IllegalArgumentException: indent=-4 < 0
   at org.netbeans.modules.editor.indent.api.IndentUtils.createIndentString(IndentUtils.java:203)
   at org.netbeans.modules.editor.indent.spi.Context.modifyIndent(Context.java:197)
   at org.netbeans.modules.languages.scss.formatter.ScssFormatter$1.run(ScssFormatter.java:209)
   at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:317)
   at org.netbeans.modules.languages.scss.formatter.ScssFormatter.reindent(ScssFormatter.java:56)
   at org.netbeans.modules.languages.scss.formatter.ScssFormatter.reindent(ScssFormatter.java:329)
Comment 1 stefanp_safilo 2013-03-12 09:33:56 UTC
Created attachment 132501 [details]
stacktrace
Comment 2 Marek Fukala 2013-07-02 12:31:37 UTC
languages.scss -> third party plugin
Comment 3 Marek Fukala 2013-07-02 12:36:15 UTC
http://plugins.netbeans.org/plugin/34929