[PHP] "Go to Declaration"/"Ctrl + B" improvement
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Java
- Star
- 3.1k
- Fork
- 939
- Merge trung bình
- 4 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 25
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/netbeans
-
Contribution welcome kind:feature Platform
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
apache/netbeans#9614 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind:bug LSP needs:triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/netbeans#9548 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Editor Java kind:feature needs:triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
The main Options dialog window has buttons with OK on the left instead of on the right on LinuxĐang mởkind:bug needs:triage os:linux os:macos Platform UI
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Incorrect DTD for wstcref-FilesĐang mởkind:bug needs:triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/netbeans
Issue tương tự
-
[BUG] Re-subscribing the Mono returned by listTools/listResources/listResourceTemplates/listPrompts/listRoots duplicates the resultsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
modelcontextprotocol/java-sdk#1174 · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
module: core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
bigbluebutton/bigbluebutton#26028 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Fix SNMP4J Agent vulnerabilityĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
MetricsHub/metricshub-community#1390 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
apache/rocketmq-dashboard#6331 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Upgrade to Commons Codec 1.23.0Đang mởstatus: team-only type: dependency-upgrade
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
spring-projects/spring-boot#52143 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày