lsfusion_find_elements: finish a module-name search promptly and report unknown IDEA module names in `scope`
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
- 55/100
Hướng nghiên cứu
Trace how names searches with elementTypes = "module" build their search scope and apply the name filter, then inspect how scope resolves IDEA module names. Reproduce the full-name search and an unknown scope with the examples in the issue. Done means full-name searches return promptly with all matching modules, and unresolved scope names are reported clearly.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
Two behaviours of names searches on a large multi-module project (plugin 1.0.315, a workspace of about 30 IDEA modules):
-
A search supplied with a module's full name —
names = "<ModuleName>", elementTypes = "module"— withoutscopereturns the module, but only after the whole time budget is spent: the answer carries"meta": "too long - timeout hit"even withtimeoutSeconds = 30, and the same withscope = "project". Withscope = "<the IDEA module that holds the file>"the answer is immediate. The time such a search takes should not depend on the size of the project. -
scopeisproject,project and librariesor a comma-separated list of IDEA module names. A name that is not an IDEA module (for example, an lsFusion module name or a Maven artifact id) is skipped silently; when none of the listed names is an IDEA module, the search scope is empty and the tool answers{"items": []}, which cannot be told apart from "the element does not exist".
names = "MyModule", elementTypes = "module", minSymbols = 0, timeoutSeconds = 30
-> 1 item, "meta": "too long - timeout hit" (about 27 s)
names = "MyModule", elementTypes = "module", scope = "my-idea-module", minSymbols = 0
-> 1 item (immediate)
names = "MyModule", elementTypes = "module", scope = "no-such-idea-module", minSymbols = 0
-> {"items": []}
Reason
An agent that looks a module up by name reads the timeout flag as "the search is incomplete" and falls back to a text search, and reads the empty answer under a wrong scope as "no such module". The report that prompted this issue did exactly that and located the module by file instead.
Fix
- A search supplied with a full module name completes promptly and still returns every match the name filter allows (the filter matches by occurrence of the name, so other modules whose names contain it are returned as well).
- A
scopewhose IDEA module names match nothing is rejected with an error naming the unknown names, or the unresolved names are reported inmeta.
- Ngôn ngữ chính
- Java
- Star
- 9
- Fork
- 3
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 lsfusion/plugin-idea
-
MCP lsfusion_find_elements: a relatedElements seed outside the modules filter is silently dropped and the filtered modules are returned wholeCó thể đã có người làm @pavel-miniutka đã nhận 5 ngày trước. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
lsfusion/plugin-idea#94 · 1 người được giao ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
lsfusion/plugin-idea#84 ·
-
DX
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
lsfusion/plugin-idea#48 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
lsfusion/plugin-idea#34 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
lsfusion/plugin-idea#23 ·
Tất cả issue của lsfusion/plugin-idea
Issue tương tự
-
area: cli
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
vitruv-tools/NeoJoin#415 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Quick Installation step 2 installs from the plugin manager, but the plugin isn't published yetĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
account assessment course feature lecture
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] 连接达梦时报错,agent 进程启动即退Đang mởbug db/dameng user-priority/P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
t8y2/dbx#15534 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs: document identity-provider types compatibility for Keycloak 26.5+Có thể đã có người làm @Motouom đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
adorsys/keycloak-config-cli#1766 ·
Maintainer thường phản hồi trong vòng 12 ngày