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.
Works: <?php class TestAutoComplete { } $testAutoComplete = new TestAuto[... completion works: TestAutoComplete() ...] Broken: <?php class TestAutoComplete { /**#@*/ } $testAutoComplete = new TestAuto[... No suggestions ...]
Created attachment 155028 [details] screenshot I cannot reproduce it. my environments: Product Version: NetBeans IDE 8.0.2 (Build 201408251540) Java: 1.7.0_80; Java HotSpot(TM) Client VM 24.80-b11 Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15 System: Linux version 3.2.0-88-generic-pae running on i386; UTF-8;
@hummer Just try removing user and cache directories(Help > About) of NetBeans. NOTE: your settings are initialized if do that. Thanks.
(In reply to junichi11 from comment #2) > @hummer > Just try removing user and cache directories(Help > About) of NetBeans. > NOTE: your settings are initialized if do that. Thanks. Hi, thanks for the suggestion. Yes, it worked after removing the cache and user directories. But after importing my settings the bug appeared again. So I partially imported them until it was broken. The problem is the option: PHP -> Annotations -> Treat unkown Annotations as Type Annotations When it's checked autocompletion fails if the class contains a docblock template (/**#@*/), after unchecking it's working again. I can always reproduce this when checking/unchecking this option.
(In reply to hummer from comment #3) > The problem is the option: PHP -> Annotations -> Treat unkown Annotations as > Type Annotations It's reproducible. Thanks for reporting it!
Created attachment 157214 [details] patch I've created a patch. Probably the same problem as [1]. [1] https://netbeans.org/bugzilla/show_bug.cgi?id=245892
Tomas, Could you please review it? Thanks.
(In reply to junichi11 from comment #6) > Tomas, Could you please review it? Will do it, soon. Thanks a lot!
Junichi, it would be nice to have a test for it...
Patch applied, thanks a lot for it, Junichi! http://hg.netbeans.org/web-main/rev/3f3f79bb7cc6
Integrated into 'main-silver', will be available in build *201511210002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/3f3f79bb7cc6 User: Tomas Mysik <tmysik@netbeans.org> Log: #253811 - PHP class completion fails when class file contains docblock template Patch contributed by junichi11@netbeans.org.
*** Bug 248165 has been marked as a duplicate of this bug. ***