sysdev34-wq opened a new issue, #9626:
URL: https://github.com/apache/netbeans/issues/9626

   ### Apache NetBeans version
   
   Apache NetBeans 31
   
   ### What happened
   
   When using the "Include Path" option to add "ide-helper" files for 
autocompletion, some classes end up duplicated on those extra files, it has 
same clases with PHPDoc annotations.
   Everything works fine, but when I use `Ctrl + B` (or "Go to Declaration") on 
a class, it takes me to the external helper file instead of the actual class 
within the project.
   Is there a way to ensure that if a class exists within the project, it takes 
precedence over the classes in the "Include Path" files (which are intended 
solely for autocompletion)?
   
   ### Language / Project Type / NetBeans Component
   
   PHP
   
   ### How to reproduce
   
   File within the project
   ```php
   // App/MyCustomClasss.php
   namespace App{
      class MyCustomClasss{}
   }
   ```
   same text on a "Include Path" directory/file
   ```php
   // extra_files/helper.php
   namespace App{
     /**
      * @property int $id
      * /
     class MyCustomClasss{}
   }
   ```
   Now, in another file within the project.
   ```php
   $obj = new MyCustomClasss(); 
   // here "Go to Declaration" on MyCustomClasss
   // it opens `extra_files/helper.php` but `App/MyCustomClasss.php` one should 
take priority
   ```
   
   
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows
   
   ### JDK
   
   latest
   
   ### Apache NetBeans packaging
   
   Community provided installer
   
   ### Anything else
   
   I tried using `@mixin` with a different name for the class, but the class 
allows for multiple concatenations, and using `@mixin` causes the reference to 
the class to be lost after the second level of concatenation.
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to