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

Nameless updated NETBEANS-1576:
-------------------------------
    Affects Version/s: 10.0
                       9.0
           Attachment: PhpAutocompletionProblems.zip
                       autocompletion_problem_screencast.mp4
          Description: 
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}

  was:
Sorry, too early submit, but I'll edit it now


{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}

          Component/s: php - Editor
              Summary: PHP autocompletion partially broken  (was: PHP 
autocompletion broken)

> 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
>            Priority: Major
>              Labels: autocompletion, php
>         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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to