lsfusion_find_elements: finish a module-name search promptly and report unknown IDEA module names in `scope`
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Java
- 星标
- 9
- 派生
- 3
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
lsfusion/plugin-idea 的其他 Issue
-
MCP lsfusion_find_elements: a relatedElements seed outside the modules filter is silently dropped and the filtered modules are returned whole可能已有人在做 @pavel-miniutka 于 5 天前认领。 未关闭bug
难度 4/5 3-5 天 新手友好度 54/100
lsfusion/plugin-idea#94 · 已指派 1 人 ·
-
bug
难度 4/5 3-5 天 新手友好度 25/100
lsfusion/plugin-idea#84 ·
-
DX
难度 4/5 3-5 天 新手友好度 35/100
lsfusion/plugin-idea#48 ·
-
难度 5/5 一周以上 新手友好度 20/100
lsfusion/plugin-idea#34 ·
-
难度 4/5 3-5 天 新手友好度 35/100
lsfusion/plugin-idea#23 ·
查看 lsfusion/plugin-idea 的全部 Issue
相似的 Issue
-
area: cli
难度 2/5 1-3 小时 新手友好度 70/100
vitruv-tools/NeoJoin#415 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
维护者通常 6 天内回复
-
account assessment course feature lecture
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
bug db/dameng user-priority/P2
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
docs: document identity-provider types compatibility for Keycloak 26.5+可能已有人在做 @Motouom 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
adorsys/keycloak-config-cli#1766 ·
维护者通常 12 天内回复