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 230245 - AssertionError: CssStackItem[state=RULE_FINISHED,indent=-1,processed=false]
Summary: AssertionError: CssStackItem[state=RULE_FINISHED,indent=-1,processed=false]
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 233980 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-05-24 18:34 UTC by MrJxN
Modified: 2013-08-07 02:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200267


Attachments
stacktrace (4.81 KB, text/plain)
2013-05-24 18:34 UTC, MrJxN
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MrJxN 2013-05-24 18:34:17 UTC
Build: NetBeans IDE Dev (Build 201305232300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 7

User Comments:
mrjxn: alt-shift-f a css file compiled( successfully) from scss source (using foundation framework)

GUEST: You also can not tab into a new line of CSS...

GUEST: Error when i press enter in the last line of a scss file in close tag

GUEST: error produced by pressing enter in the last line of scss file

GUEST: Apparently, you can't add new lines of CSS code.

GUEST: Simple error saving scss file

GUEST: Trying to add code to a LESS file... pressed enter at the end of a line and it  gave this error.

GUEST: This error only happens when adding new lines at the end of a CSS rule.




Stacktrace: 
java.lang.AssertionError: CssStackItem[state=RULE_FINISHED,indent=-1,processed=false]
   at org.netbeans.modules.css.editor.indent.CssIndenter.getLineIndent(CssIndenter.java:280)
   at org.netbeans.modules.web.indent.api.support.AbstractIndenter.processLanguage(AbstractIndenter.java:1197)
   at org.netbeans.modules.web.indent.api.support.AbstractIndenter.calculateIndentation(AbstractIndenter.java:349)
   at org.netbeans.modules.web.indent.api.support.AbstractIndenter.reindent(AbstractIndenter.java:209)
   at org.netbeans.modules.css.editor.indent.CssIndentTask.reindent(CssIndentTask.java:52)
   at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:546)
Comment 1 MrJxN 2013-05-24 18:34:19 UTC
Created attachment 134879 [details]
stacktrace
Comment 2 Marek Fukala 2013-05-27 13:46:36 UTC
I cannot reproduce the issue. Does anyone have reproducible steps? Thanks in advance.
Comment 3 Marek Fukala 2013-06-04 15:27:59 UTC
I can't fix that w/o a reproducible case :-|
Comment 4 Marek Fukala 2013-07-10 12:57:51 UTC
The last exception report contains a reproducible steps:

h3{ 
border: 0px; 
&:after{ | content: ""; display: none} }

and press enter on the pipe offset
Comment 5 Marek Fukala 2013-08-06 09:38:22 UTC
*** Bug 233980 has been marked as a duplicate of this bug. ***
Comment 6 Marek Fukala 2013-08-06 09:43:19 UTC
minimum testcase: a { b { | x:y;  }  }
Comment 7 Marek Fukala 2013-08-06 11:48:07 UTC
fixed in web-main#4ab72a25558e
Comment 8 Quality Engineering 2013-08-07 02:25:58 UTC
Integrated into 'main-silver', will be available in build *201308062300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4ab72a25558e
User: Marek Fukala <mfukala@netbeans.org>
Log: #230245 - AssertionError: CssStackItem[state=RULE_FINISHED,indent=-1,processed=false]