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.2 (Build 201411181905) VM: Java HotSpot(TM) 64-Bit Server VM, 24.55-b03, Java(TM) SE Runtime Environment, 1.7.0_55-b13 OS: Windows 7 User Comments: ainos984: I'm working on many project, I use less and was testing the import features between some less files. GUEST: this problem showing when I using Laravel 5 gtzabari: No idea what I did. GUEST: Editing a style element that had media="screen" and surrounded an @import. Merely typing a space after the import caused the exception. GUEST: Working with scss file GUEST: open .less css template file Accelerate: I'm not sure, but I think that it happend when I importend unexisting file in scss file Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1911) at org.netbeans.modules.css.editor.csl.CssCompletion.handleLexicalBasedCompletion(CssCompletion.java:758) at org.netbeans.modules.css.editor.csl.CssCompletion.complete(CssCompletion.java:155) at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.addCodeCompletionItems(GsfCompletionProvider.java:615) at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.resolveCompletion(GsfCompletionProvider.java:602) at org.netbeans.modules.csl.editor.completion.GsfCompletionProvider$JavaCompletionQuery.access$400(GsfCompletionProvider.java:248)
Created attachment 154247 [details] stacktrace
Hi, thank for reports. Can you paste a code, where this happened? Probably something with @import
I created reproducible steps to press Ctrl+space in @import |"" This should fix it: http://hg.netbeans.org/web-main/rev/d4df1633ec6e
Integrated into 'main-silver', will be available in build *201507220303* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/d4df1633ec6e User: Milutin Kristofic <mkristofic@netbeans.org> Log: #253024 - StringIndexOutOfBoundsException: String index out of range: -1