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 189668 - AssertionError at org.netbeans.modules.ant.grammar.AntHighlightsContainer$1.moveNext
Summary: AssertionError at org.netbeans.modules.ant.grammar.AntHighlightsContainer$1.m...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 189683 190016 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-19 07:20 UTC by bokc
Modified: 2010-09-16 15:42 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 172023


Attachments
stacktrace (2.37 KB, text/plain)
2010-08-19 07:20 UTC, bokc
Details
stacktrace (2.46 KB, text/plain)
2010-08-26 08:39 UTC, Peter Nabbefeld
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bokc 2010-08-19 07:20:28 UTC
Build: NetBeans IDE Dev (Build 201008180001)
VM: Java HotSpot(TM) Client VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Windows XP

User Comments:
bokc: edit ant script




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.ant.grammar.AntHighlightsContainer$1.moveNext(AntHighlightsContainer.java:112)
   at org.netbeans.modules.editor.lib2.highlighting.CheckedHighlightsSequence.moveNext(CheckedHighlightsSequence.java:102)
   at org.netbeans.modules.editor.lib2.highlighting.ProxyHighlightsContainer$Sequence2Marks.moveNext(ProxyHighlightsContainer.java:432)
   at org.netbeans.modules.editor.lib2.highlighting.ProxyHighlightsContainer$ProxySeq.moveNext(ProxyHighlightsContainer.java:287)
   at org.netbeans.modules.editor.NbToolTip.buildTip(NbToolTip.java:293)
   at org.netbeans.modules.editor.NbToolTip.buildToolTip(NbToolTip.java:116)
Comment 1 bokc 2010-08-19 07:20:34 UTC
Created attachment 101513 [details]
stacktrace
Comment 2 Jesse Glick 2010-08-19 13:13:05 UTC
I added better diagnostics to the assertion in core-main #5037882f2b27 which should be in a dev build soon. Are you able to reproduce on a particular Ant script? If so, could you attach that script (assuming it is not confidential; else a similar script that has the same problem)?
Comment 3 Jesse Glick 2010-08-19 14:08:28 UTC
*** Bug 189683 has been marked as a duplicate of this bug. ***
Comment 4 Quality Engineering 2010-08-20 03:11:10 UTC
Integrated into 'main-golden', will be available in build *201008200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5037882f2b27
User: Jesse Glick <jglick@netbeans.org>
Log: Diagnostics for #189668.
Comment 5 David Konecny 2010-08-26 00:07:26 UTC
I do not know how to reproduce. Perhaps my exception in exception reporter with your diagnostics logging will help.
Comment 6 David Konecny 2010-08-26 00:13:26 UTC
In

Product Version: NetBeans IDE Dev (Build 100824-1fbd63af7530)
Java: 1.6.0_20; Java HotSpot(TM) Client VM 16.3-b01
System: Linux version 2.6.32-24-generic running on i386; UTF-8; en_NZ (nb)

this happen to me always whenever I hover mouse caret over an Ant variable (I have line wrapping ON), eg. 

<?xml version="1.0" encoding="UTF-8"?>
<project name="changeme" default="all" basedir=".">
    <target name="all">
        <fail unless="${aaa}">XXX</fail>
        </target>
</project>

if I move mouse caret over aaa then exception is thrown.
Comment 7 Peter Nabbefeld 2010-08-26 08:39:26 UTC
Created attachment 101674 [details]
stacktrace

Getting this from time to time when editing ant build files, impossible to say why :-(
Comment 8 Jesse Glick 2010-08-26 14:20:12 UTC
core-main #d6d6d031fc97
Comment 9 Quality Engineering 2010-08-27 03:17:00 UTC
Integrated into 'main-golden', will be available in build *201008270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d6d6d031fc97
User: Jesse Glick <jglick@netbeans.org>
Log: #189668: AssertionError at org.netbeans.modules.ant.grammar.AntHighlightsContainer$1.moveNext
Comment 10 Jesse Glick 2010-09-16 15:42:07 UTC
*** Bug 190016 has been marked as a duplicate of this bug. ***