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 Dev (Build 201403100001) VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132 OS: Windows 8 User Comments: Sam.MIT: AsyncRequest web app default CSS file -> url tag access Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(String.java:1954) at org.netbeans.modules.css.editor.csl.CssCompletion.getPrefix(CssCompletion.java:629) at org.netbeans.modules.css.editor.csl.CssCompletion.getPrefix(CssCompletion.java:505) at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.getCompletionEnvironment(GsfCompletionProvider.java:708) at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.resolveCompletion(GsfCompletionProvider.java:591) at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.access$400(GsfCompletionProvider.java:248)
Created attachment 145955 [details] stacktrace
Created attachment 145956 [details] stacktrace AsyncRequest web app default CSS file -> url tag access
Created attachment 146622 [details] stacktrace editing css: .diff-popup-button-previous { display: inline; content: url("drop_arrow-ena.png"); } and Ctrl+click on url function because it is highlighted as a string
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=208318
reproducible case: div { content: url("image.png"); } and invoke completion somewhere inside the 'url' token
changeset: 276187:bc2cb92116fa summary: #242799 - StringIndexOutOfBoundsException: String index out of range: -2
Integrated into 'main-silver', will be available in build *201407290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/bc2cb92116fa User: Marek Fukala <mfukala@netbeans.org> Log: #242799 - StringIndexOutOfBoundsException: String index out of range: -2
Verified, thanks Product Version: NetBeans IDE 8.0.1 (Build 201408142300) Java: 1.7.0_65; Java HotSpot(TM) Client VM 24.65-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_65-b17 System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)