[Bug] Windows 大型 Maven 工作区中 Java Support 插件后端会话偶发结束并重启,根因未明
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- java, typescript
- Domain
- devtools
Research direction
Start by reviewing the backend session lifecycle and host logs around process exit, timeout, cancellation, and restart; the issue does not name source files or tests. If the issue recurs, collect the host logs from several minutes around the disconnect, the backend exit code and stderr, and JDT LS logs. Done means identifying why the session ends and ensuring the cause is recorded, with the existing reconnect behavior kept in view.
Written by the indexing model from the issue text.
Description
Platform / 平台
Windows
Area / 模块
Extensions / 扩展
Lithe version / Lithe 版本
0.8.1
Priority / 优先级
P2 / 后续考虑:目前不着急,可安排到后续版本
OS and architecture / 操作系统与架构
Windows 11 Home 10.0.26200, x64
Environment / 环境信息
JDK: 17.0.8
Maven: 3.9.3
JDT LS: Java Support 插件 2.0.1 自带版本
Other: Maven 插件 1.0.0;大型多模块 Maven 工作区
Steps to reproduce / 复现步骤
还没有能稳定复现的步骤。已知出现过的条件:
- 在 Windows 上打开一个大型多模块 Maven 工作区,装有 Java Support 和 Maven 插件。
- 等 JDT LS 启动并导入工作区,正常编辑一段时间。
- Java Support 插件的后端会话偶尔会结束,随后宿主重新启动一个新会话。
排查 #2067 时出现过两次。之后用诊断构建打开同一个工作区运行了 20 分钟,没有再出现。
Expected behavior / 预期行为
正常使用时插件后端会话一直保持连接,不会自己结束;如果会话确实结束了,日志里能看到原因(进程退出码、stderr、超时或宿主主动停止)。
Actual behavior / 实际行为
后端会话偶发结束并重启,根因不明:
- 不清楚是插件后端进程自己退出、崩溃,还是宿主因为超时或其他原因主动结束了会话。
- 断开曾导致 main 方法旁的运行/调试图标消失,因为旧会话留下的编辑器动作绑定拒绝新会话注册。#2069 已修复这一点:断开重连后动作能恢复。所以现在断开对用户的影响变小了,但断开本身没有解决,也没有留下日志。
- 断开时其他依赖插件后端的功能(构建模型、插件设置、插件页面等)会不会出问题,没有检查过。
Logs or diagnostic output / 日志或诊断输出
未采集。两次断开都发生在排查 #2067 期间,当时没有保留会话结束前后的日志。
下次出现时请导出诊断日志,重点保留:
- 插件后端会话结束前后几分钟的宿主日志;
- 后端进程的退出码和 stderr 输出;
- 同一时间 JDT LS 的日志,以及会话结束前有没有超时或取消的请求。
Screenshots or recordings / 截图或录屏
无。
Checklist / 提交前检查
- I searched existing issues for duplicates. / 我已搜索现有 Issue,确认没有重复报告。
- I removed secrets and personal data from the report. / 我已从报告中移除敏感信息和个人数据。
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 151
- Avg merge
- 3h 48m
- Merged PRs (30d)
- 571
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 1lck/Lithe-IDEA
-
review: medium
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
1lck/Lithe-IDEA#2432 ·
Maintainers usually reply within 1 day
-
review: medium
Difficulty 1/5 Under an hour Newbie friendliness 82/100
1lck/Lithe-IDEA#2431 ·
Maintainers usually reply within 1 day
-
refactor review: high
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
1lck/Lithe-IDEA#2376 ·
Maintainers usually reply within 1 day
-
area:ui enhancement P2 platform:cross-platform refactor review: high
Difficulty 1/5 Under an hour Newbie friendliness 84/100
1lck/Lithe-IDEA#2365 ·
Maintainers usually reply within 1 day
-
review: medium
Difficulty 3/5 1-2 days Newbie friendliness 57/100
1lck/Lithe-IDEA#2434 ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
rel: fix
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Deltares/fews-web-oc#2400 ·
Maintainers usually reply within 1 day
-
Command bar: Tab-to-search on claude.ai falls back to Google site: search instead of opening a prompt on ClaudePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ardia-browser/ardia#4426 ·
Maintainers usually reply within 1 day
-
Bug report: isValidISODateDashOnly accepts text before or after the date-timePossibly taken @bardrop claimed this today. Open
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
pnp/cli-microsoft365#7713 ·
Maintainers usually reply within 1 day
-
Diagram: Journey Type: Bug / Error
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
mermaid-js/mermaid-v13#1293 ·
Maintainers usually reply within 1 day