[PHP] "Go to Declaration"/"Ctrl + B" improvement
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 65/100
Línea de trabajo
Reproduce the PHP editor's "Go to Declaration" behavior using the project class and the duplicate class in an Include Path helper file. Start by tracing PHP declaration resolution for Ctrl+B, then verify that the project declaration is selected before the external helper declaration while autocompletion still works.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
// App/MyCustomClasss.php
namespace App{
class MyCustomClasss{}
}
same text on a "Include Path" directory/file
// extra_files/helper.php
namespace App{
/**
* @property int $id
* /
class MyCustomClasss{}
}
Now, in another file within the project.
$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
- Lenguaje dominante
- Java
- Estrellas
- 3.1k
- Forks
- 939
- Merge medio
- 4 d 20 h
- PR fusionados (30 d)
- 25
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/netbeans
-
Contribution welcome kind:feature Platform
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/netbeans#9614 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
kind:bug LSP needs:triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/netbeans#9548 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Editor Java kind:feature needs:triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
The main Options dialog window has buttons with OK on the left instead of on the right on LinuxAbiertokind:bug needs:triage os:linux os:macos Platform UI
Dificultad 1/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Incorrect DTD for wstcref-FilesAbiertokind:bug needs:triage
Dificultad 1/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
Todos los issues de apache/netbeans
Issues similares
-
BoxAttachmentMulti parsing leaks IOException / ArrayIndexOutOfBoundsException on malformed content instead of IllegalArgumentExceptionPosiblemente ocupada @Kshot3000 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
ergoplatform/ergo-appkit#272 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
utopia-rise/godot-jvm#1004 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
spring-projects/spring-grpc#442 ·