lsfusion_find_elements: finish a module-name search promptly and report unknown IDEA module names in `scope`
まだ誰も着手していません。
評価
調査の方向性
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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 1週間以上 初心者へのやさしさ 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 日以内に返信