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 198659 - [70cat] AssertionError: assumption here is that a tag within process tag must be either processed or perhaps virtual: item=HtmlStackItem[<tagName=script,indent=4,optionalClosingTag=false,processed=false,virtu
Summary: [70cat] AssertionError: assumption here is that a tag within process tag must...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-16 22:44 UTC by schkovich
Modified: 2011-05-20 08:01 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 178878


Attachments
stacktrace (4.84 KB, text/plain)
2011-05-16 22:44 UTC, schkovich
Details
stacktrace (6.90 KB, text/plain)
2011-05-16 22:49 UTC, schkovich
Details
stacktrace (6.90 KB, text/plain)
2011-05-19 21:38 UTC, schkovich
Details
Example containing typo causing exception to be thrown (513 bytes, application/x-php)
2011-05-20 08:01 UTC, schkovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schkovich 2011-05-16 22:44:19 UTC
Build: NetBeans IDE Dev (Build 201105150400)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Linux

User Comments:
schkovich: hit enter after characther 80 placing closing script tag into the new line




Stacktrace: 
java.lang.AssertionError: assumption here is that a tag within process tag must be either processed or perhaps virtual: item=HtmlStackItem[<tagName=script,indent=4,optionalClosingTag=false,processed=false,virtual=false,foreign=true,empty=false] stack=[HtmlStackItem[<tagName=script,indent=4,optionalClosingTag=false,processed=false,virtual=false,foreign=true,empty=false]]
   at org.netbeans.modules.css.formatting.api.support.MarkupAbstractIndenter.discardProcessedMarkupItems(MarkupAbstractIndenter.java:855)
   at org.netbeans.modules.css.formatting.api.support.MarkupAbstractIndenter.removeFullyProcessedTags(MarkupAbstractIndenter.java:844)
   at org.netbeans.modules.css.formatting.api.support.MarkupAbstractIndenter.getIndentFromState(MarkupAbstractIndenter.java:360)
   at org.netbeans.modules.css.formatting.api.support.MarkupAbstractIndenter.getLineIndent(MarkupAbstractIndenter.java:407)
   at org.netbeans.modules.css.formatting.api.support.AbstractIndenter.processLanguage(AbstractIndenter.java:1188)
   at org.netbeans.modules.css.formatting.api.support.AbstractIndenter.calculateIndentation(AbstractIndenter.java:345)
Comment 1 schkovich 2011-05-16 22:44:23 UTC
Created attachment 108336 [details]
stacktrace
Comment 2 schkovich 2011-05-16 22:49:40 UTC
Created attachment 108339 [details]
stacktrace

saving trashy mixed php file having css, javascript, html, sql and more...
Comment 3 David Konecny 2011-05-19 21:23:52 UTC
A test case to reproduce this problem would be appreciated!
Comment 4 schkovich 2011-05-19 21:38:35 UTC
Created attachment 108403 [details]
stacktrace

formatting (alt + shift + f) nasty php file having html, css, javascript, mysql and some php
Comment 5 David Konecny 2011-05-19 21:50:02 UTC
Could you send me the file you are reformatting please (directly to my address if you prefer). Thanks!
Comment 6 David Konecny 2011-05-20 03:08:37 UTC
Resolved thanks to schkovich's file. It was caused by typo in document being formatted. Indentation code was improved and unit test with this test case added.
d935b7bec7bf
Comment 7 schkovich 2011-05-20 08:01:00 UTC
Created attachment 108409 [details]
Example containing typo causing exception to be thrown