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 182327 - [69cat] AssertionError: org.netbeans.modules.html.editor.gsf.HtmlHintsProvider@4eb884e3 supplied hint Description(desc=Unmatched tag,fixes=[org.netbeans.modules.html.editor.gsf.HtmlHintsProvider$DisableErrorC
Summary: [69cat] AssertionError: org.netbeans.modules.html.editor.gsf.HtmlHintsProvide...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-18 17:44 UTC by jstevison
Modified: 2010-05-12 04:13 UTC (History)
36 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 166650


Attachments
stacktrace (1.48 KB, text/plain)
2010-03-18 17:45 UTC, jstevison
Details
stacktrace (1.59 KB, text/plain)
2010-03-29 14:13 UTC, laurin1
Details
stacktrace (1.59 KB, text/plain)
2010-03-29 14:16 UTC, laurin1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jstevison 2010-03-18 17:44:52 UTC
This bug was originally marked as duplicate of bug 176909, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201003180200)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-10M3025
OS: Mac OS X

User Comments:
GUEST: Editing a php/html template in a Symfony project. Started typing an "<input>"-tag, and opted to allow editor to autocomplete. Note that I am running the jVi plugin.

moilejter: Typing into HTML page

GUEST: typing code -- mySql and php

GUEST: Editing some old, "awful" php / html code mixture.

udioron: editing javascript

pchytil: Switching to firefox, than back to PHP IDE.

dreidmg: edit jsp

GUEST: Just opened up a project -- wasn't really doing anything yet...

GUEST: i copied a text

GUEST: Autocompletition in a Web php file.

GUEST: two netbeans problem

GUEST: Attempting to edit a jsp file.  The file is displayed properly and can be edited but this error comes up whenever launching a new jsp for editing.

GUEST: just doing my code and this message posp up, really annoying. I installed this beta/nightly build one becaus the version 6.5.1 was just hangin on "task scanning", is there a working netbeans version i can download?

sjoerdmaessen: hitting the backspace button

GUEST: trying to save html file recieved this

jstevison: Editing a Heredoc in a PHP file.

sergey461: Edit XHTML  file

javierav: import a project from source files, netbeans was scanning and indexing...

dreidmg: edit jsp

fzamboj: well, now is throwing exception very often while editing. I opened php file and got the first exception and then tried to edit file. I pressed space and exception is here.

GUEST: Html autocomplete

fzamboj: opened php file

GUEST: Reduced Projects column and resized gui (right side inwards)

GUEST: Recieved this when using autocomplete for html attribute

fzamboj: well, finaly looks like restart won't help

GUEST: Coding HTML

jsedek: paste this code int JSP file:
----------------------
?<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
    <div >
-----------------------

AE is thrown after each modification

GUEST: Opened a PHP file containing HTML that had an error by clicking the task.

GUEST: Editing a pasted html file of  950 lines

pribyl: I just opened html file (probably with some errors with html tags). No badges were displayed, only this Assertion appeared

GUEST: Delete PHP block inside javascript block

negora: I was editing a JSP file, working with a EJB facade and arrays.

pchytil: I was opening a single PHP file containing mediawiki skin class definition.

abjerkho: Clicking tab for viewing another file

mkroll: Open a old JSP-Page

pchytil: This exception still keeps jumping out every time I use the editor. It is almost unusable.

GUEST: Again, editing in old code: html and php mixture.

GUEST: cannot do a single edit after the initial exception, new ones occur as soon as one starts typing

stefanv: Opened html file with inline php (some kind of template for CodeIgniter)

dreidmg: open jsp

iamthegr1n: I was editing a php file. I was begining to write <div> in next line after ?> and probably the hinting service failed to provide completition.

GUEST: Html autocomplete

GUEST: editing a php file, happens any time when there's some html involved

GUEST: editing PHP file.
File named: default.html.php

MVC structure, View file. Contained HTML and PHP script.
Format like below:
<li><strong>Valid for Locations: </strong> <?php echo $this->coupon->valid_loc; ?></li>;

kawazu428: editing a .jsp file; this one appears every third second or so.

musilt2: During ediring .hrml.erb file in rails app

uipoet: Clicked my cursor inside a .gsp file. This is a very annoying bug!

alexismp: copy pasting XHTML code

fzamboj: opened .phtml file




Stacktrace: 
java.lang.AssertionError: org.netbeans.modules.html.editor.gsf.HtmlHintsProvider@4eb884e3 supplied hint Description(desc=Unmatched tag,fixes=[org.netbeans.modules.html.editor.gsf.HtmlHintsProvider$DisableErrorChecksFix@341c7b75]) with invalid range OffsetRange[1454,1459>
   at org.netbeans.modules.csl.hints.GsfHintsProvider$2.run(GsfHintsProvider.java:334)
   at org.netbeans.modules.csl.hints.GsfHintsProvider$2.run(GsfHintsProvider.java:357)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:151)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:135)
   at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:190)
   at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:103)
Comment 1 jstevison 2010-03-18 17:45:01 UTC
Created attachment 95395 [details]
stacktrace
Comment 2 Marek Fukala 2010-03-24 12:46:06 UTC
I'm affraid I cannot do much with this issue. The OffsetRanges in Hint-s provided by the HtmlHintsProvider are checked for not being less than zero and if from_offset is less or equal to to_offset. 

The offset range is recomputed to document's offset using the given ParserResult's snapshot so I do not understand how can such offsets be out of range of the top level snapshot.

The whole problem seems to be a parsing.api bug, maybe some snapshots caching since the issue is not always reproducible.

I could possibly add a check if the returned offset overlaps the top level snapshot's length but I do not have access to it.
Comment 3 Vitezslav Stejskal 2010-03-25 11:30:15 UTC
local changeset: 77b60d8f9fb0

I added some more diagnostics. If this happens again, please reopen.
Comment 4 Quality Engineering 2010-03-27 06:16:10 UTC
Integrated into 'main-golden', will be available in build *201003270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/77b60d8f9fb0
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #182327: improved diagnostic message
Comment 5 laurin1 2010-03-29 14:13:35 UTC
Created attachment 96216 [details]
stacktrace
Comment 6 laurin1 2010-03-29 14:16:29 UTC
Created attachment 96219 [details]
stacktrace
Comment 7 laurin1 2010-03-29 14:25:53 UTC
I'm using 2010-03-29_15-03-32 and it's still occurring.
Comment 8 Vitezslav Stejskal 2010-05-04 12:54:16 UTC
local changeset: 37972e23330c
Comment 9 Quality Engineering 2010-05-12 04:13:11 UTC
Integrated into 'main-golden', will be available in build *201005112200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: