Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4647

Autocompletion in php broken? (alias and namespaces)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Information Provided
    • 12.0, 11.3
    • None
    • php - Editor
    • None

    Description

       

      Hi,

      For years now I am using netbeans for php and promoting it to every php-programmer, mostly with success!

      But since version 8 or so, I have the feeling that php in netbeans is not getting better  Even to the point that I am starting to look for another IDE.

      I know one jira-issue should only have ONE topic and purpose. But I have the feeling that php does not have much priority. And some of my previous reports/requests did not get any attention. So first I want to know if what I say below wil get any priority before taking much time to make a detailed report.
      Sorry!!! But I am really getting disappointed on netbeans  and desperate 

      edit: i split my post in separate issues

       My previous request for autocompletion on properties:

      https://issues.apache.org/jira/browse/NETBEANS-3675 

       

      Codecompletion with namespace, aliases and extends

       

      Overwritten function seen in parent-class:

      Extend class seen in parent-class:

       Overwritten function in parent-class NOT seen when using an alias for the namespace

        

      Extend class not seen in parent-class when using an alias as namespace

      Codecompletion working when parentclass has override-function with alias-namespace

       

      No codecompletion after removing the function in the parent-class

      Correct Code completion with Alias and function:

       

       No Codecompletion with alias in childclass, alias in first-parent removed and function removed:

       

      While writing this issue I found the difference when having an overridden function or not....

      some code:

        

      namespace rh\data\listdata;
      use rh\data\data\Data;
      use rh\data\listdata\ListInterface;
      
      class ListData extends Data implements ListInterface{
        public function getListIds(){
          // netbeans does not see that it is extended by \sales\product\record\ListRecord
        }
      }
      
      namespace rhAdmin\sales\product\record\ListRecord;
      use rh\data\listdata\ListData;
      
      class ListRecord extends ListData{
      
      }
      
      namespace sales\product\record;
      use rhAdmin\sales\product\record\ListRecord as rhBase;
      
      class ListRecord extends rhBase{
        public function otherTest(){
          // when start typing '$this->' the items from the parent-classes are not seen/shown by netbeans
        }
      }
      
      

       

       

       

       

      I hope someone can reproduce this or tell me what I am doing wrong.
      Sorry for my female complaints 

      Still hoping someone can help. xxxx

      flexjoly

       

       

       

       

      Attachments

        1. image-2020-07-28-14-43-06-810.png
          92 kB
          flexJoly
        2. image-2020-07-28-14-41-38-480.png
          89 kB
          flexJoly
        3. image-2020-07-28-13-17-15-567.png
          378 kB
          flexJoly
        4. image-2020-07-28-13-15-11-891.png
          353 kB
          flexJoly
        5. image-2020-07-28-13-11-45-910.png
          500 kB
          flexJoly
        6. image-2020-07-28-13-10-46-227.png
          334 kB
          flexJoly
        7. image-2020-07-28-13-04-10-932.png
          120 kB
          flexJoly
        8. image-2020-07-28-13-02-07-177.png
          103 kB
          flexJoly

        Activity

          People

            junichi11 Junichi Yamamoto
            flexjoly flexJoly
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: