You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/11/02 01:43:00 UTC

[jira] [Updated] (NETBEANS-1576) PHP autocompletion partially broken

     [ https://issues.apache.org/jira/browse/NETBEANS-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated NETBEANS-1576:
-------------------------------------
    Labels: autocompletion php pull-request-available  (was: autocompletion php)

> PHP autocompletion partially broken
> -----------------------------------
>
>                 Key: NETBEANS-1576
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1576
>             Project: NetBeans
>          Issue Type: Bug
>          Components: php - Editor
>    Affects Versions: 9.0, 10.0
>         Environment: Product Version: Apache NetBeans IDE Dev (Build incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
>            Reporter: Nameless
>            Assignee: Junichi Yamamoto
>            Priority: Major
>              Labels: autocompletion, php, pull-request-available
>         Attachments: PhpAutocompletionProblems.zip, autocompletion_problem_screencast.mp4
>
>
> It seems that autocompletion partially broken for PHP project.
> In project's properties PHP version 7.2 selected for my example.
> Here is [screencast|https://streamable.com/auldi] (attached also). 
> Screencast was made with NB v10#890, but I'm getting the same troubles with Netbeans 9 (with installed PHP plugin from 8.2 dev) too, so both versions are specified.
> Textual description (in comments):
> {code:php}
> <?php
>     namespace Repo;
>     
>     use Entity\EntityClass;
>     
>     /**
>      * @method EntityClass[] getAll() 
>      */
>     class RepoClass
>     {
>         /**
>          * 
>          * @param array $params
>          * @return EntityClass
>          */
>         public function findOrCreate(array $params): EntityClass
>         {
>             return new EntityClass();
>         }
>     }
> {code}
> {code:php}    
> <?php
>     
>     namespace App;
>     
>     class App
>     {
>         public function exec()
>         {
>             $repo = $magick->getRepo();
>             /* @var $repo \Repo\RepoClass */
>             $obj = $repo->findOrCreate($params);
>             // for now all goes fine, ctrl+space after `->` shows methods 
>             // `getAll()` and  `findOrCreate(array $params)`
>             $obj-> // but no autocompletion here :(
>         }
>     
>     }    
> {code}
> {panel:title=Versions}
> Product Version: Apache NetBeans IDE Dev (Build incubator-netbeans-linux-890-on-20181029)
> Java: 11.0.1; Java HotSpot(TM) 64-Bit Server VM 11.0.1+13-LTS
> Runtime: Java(TM) SE Runtime Environment 11.0.1+13-LTS
> System: Linux version 4.18.15-1-default running on amd64; UTF-8; ru_RU (nb)
> {panel}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists