lsfusion_find_elements: finish a module-name search promptly and report unknown IDEA module names in `scope`
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Java
- Estrellas
- 9
- Forks
- 3
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 lsfusion/plugin-idea
-
MCP lsfusion_find_elements: a relatedElements seed outside the modules filter is silently dropped and the filtered modules are returned wholePosiblemente ocupada @pavel-miniutka la tomó hace 5 días. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 54/100
lsfusion/plugin-idea#94 · 1 asignado ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
lsfusion/plugin-idea#84 ·
-
DX
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
lsfusion/plugin-idea#48 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
lsfusion/plugin-idea#34 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
lsfusion/plugin-idea#23 ·
Todos los issues de lsfusion/plugin-idea
Issues similares
-
area: cli
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
vitruv-tools/NeoJoin#415 ·
Los mantenedores suelen responder en 1 día
-
Quick Installation step 2 installs from the plugin manager, but the plugin isn't published yetAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
Los mantenedores suelen responder en 6 días
-
account assessment course feature lecture
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
[Bug] 连接达梦时报错,agent 进程启动即退Abiertobug db/dameng user-priority/P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
t8y2/dbx#15534 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
docs: document identity-provider types compatibility for Keycloak 26.5+Posiblemente ocupada @Motouom la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
adorsys/keycloak-config-cli#1766 ·
Los mantenedores suelen responder en 12 días