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 267963 - AssertionError: [\Phalcon\Db] should start with [\Phalcon\Http\]
Summary: AssertionError: [\Phalcon\Db] should start with [\Phalcon\Http\]
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-10 05:43 UTC by minemax
Modified: 2016-09-10 05:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 224970


Attachments
stacktrace (3.74 KB, text/plain)
2016-09-10 05:43 UTC, minemax
Details

Note You need to log in before you can comment on or make changes to this bug.
Description minemax 2016-09-10 05:43:07 UTC
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)
Comment 1 minemax 2016-09-10 05:43:10 UTC
Created attachment 161989 [details]
stacktrace