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.
Build: NetBeans IDE 8.0.1 (Build 201408251540) VM: Java HotSpot(TM) 64-Bit Server VM, 24.65-b04, Java(TM) SE Runtime Environment, 1.7.0_67-b01 OS: Windows 8 User Comments: GUEST: tgedfgdfgdfgdf GUEST: <Please provide a description of the problem or the steps to reproduce>ee ent38: opened scss (SASS), jsp and jspf files Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:868) at java.lang.StringBuilder.substring(StringBuilder.java:72) at java.lang.AbstractStringBuilder.subSequence(AbstractStringBuilder.java:849) at java.lang.StringBuilder.subSequence(StringBuilder.java:72) at org.netbeans.modules.html.editor.hints.Nesting.getSPIHintFixes(Nesting.java:130) at org.netbeans.modules.html.editor.hints.Nesting.getExtraHintFixes(Nesting.java:109)
Created attachment 149095 [details] stacktrace
Created attachment 149096 [details] stacktrace Showing the "Actions Items" panel
Created attachment 149097 [details] stacktrace opened a project with scss, jsp and jspf files
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=211252
For information, I had previously deleted the NetBeans cache, so Maven Repositories Index cache didn't exist yet (the stacktrace seems to be about Maven Repositories). I have recreated/downloaded the Maven Repositories Index caches, but the exception still occurs. More precisely, it happens when I develop the "Maven Repositories" node in the Services panel. Bug 100% reproducible.
I also happens every time I open a JSPF file with this line : "<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>". If I remove it, the exception is not thrown.
Created attachment 149098 [details] A file that always throw the exception. A file that always throw the exception. Remove line 3 ("<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>") and the exception is gone. I'm on a Maven3 project with JDK7 and Tomcat8.
Created attachment 149165 [details] stacktrace Don't know
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=211252
Created attachment 150409 [details] stacktrace just opened a php file with a lot of html in it
Created attachment 151020 [details] stacktrace was trying to close an if block in php when this error happened
209 duplicates -> P1
http://hg.netbeans.org/web-main/rev/db83c5303606
Fixed seems safe, verified
This is a candidate for NB 8.0.2 Patch 1 , so please integrate the bugfix into releases/release801 branch today by 10pm CET, for more information see http://wiki.netbeans.org/NetBeansPatchesProcess
Added to releases: http://hg.netbeans.org/releases/rev/be2443ab1c39 http://hg.netbeans.org/releases/rev/cb674b662a5b
Cannot reproduce, verified Product Version: NetBeans IDE 8.0.2 (Build 201411181905) Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 1 Java: 1.7.0_71; Java HotSpot(TM) Client VM 24.71-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_71-b14 System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
*** Bug 244878 has been marked as a duplicate of this bug. ***