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 201608280002) VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27 OS: Linux User Comments: minemax: use (classes) autocompletion is glitchy or doesn't work at all after using new php7 syntax. e.g.: use Phalcon\Mvc\{ View, Router, Dispatcher }; use AnotherClass /* ooops, doesn't work here! */ GUEST: use Monolog\{ Logger }; use Handler\{ streamha }; GUEST: Error GUEST: Tried code completion, but got this. This is possibly due to PHP7 NS grouping. Btw. earlier build from 04.2016 didn't contain such problem AFAIR. GUEST: Pressed CTRL+SPACE Stacktrace: java.lang.AssertionError: [\Phalcon\Db] should start with [\Phalcon\Http\] at org.netbeans.modules.php.editor.completion.PHPCompletionItem.getInsertPrefix(PHPCompletionItem.java:353) at org.netbeans.modules.php.editor.completion.PHPCompletionItem$ClassItem.getCustomInsertTemplate(PHPCompletionItem.java:1513) at org.netbeans.modules.csl.editor.completion.GsfCompletionItem$DelegatedItem.defaultSubstituteText(GsfCompletionItem.java:364) at org.netbeans.modules.csl.editor.completion.GsfCompletionItem$DelegatedItem.substituteText(GsfCompletionItem.java:354) at org.netbeans.modules.csl.editor.completion.GsfCompletionItem.defaultAction(GsfCompletionItem.java:506) at org.netbeans.modules.csl.editor.completion.GsfCompletionItem$DelegatedItem.defaultAction(GsfCompletionItem.java:121)
Created attachment 161989 [details] stacktrace