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.
This assertion error continues to come up constantly making it nearly difficult to do any editing with this file. It also doesn't happen with all files, just a few.
Created attachment 63626 [details] When opening this file. I get this AssertionError
Assertion says to assign to Ruby.
This is a bug in the JavaScript parser. It's related to position information for E4X. The following simple construct will reproduce the problem: var x = <f={}/>; (Here's the corresponding construct in the original larger test case: var breakpointSetResponse = <response command="breakpoint_set" state={ disabled ? "disabled" : "enabled"} id={href + ":" + line} transaction_id={transaction_id} />; ) The offsets for the E4X nodes are off by one, and this triggers an assertion further up in the parse tree which asserts that the AST offsets are within certain bounds. Adjusting category (should be JavaScript; the error reporter probably suggested ruby/gsf because the parser is invoked from within GSF so the stacktrace-to-bugcategory filter recommended GSF => ruby/gsf). Also adjusting release since this was in 6.1 as well and is not new to 6.5. This bug shouldn't be a problem in official releases however since it's an assertion failure only, and official builds don't run with assertions enabled.
Fixed in changeset 5554eb006496.