`Processing lsp` never exits and leaves orphaned processes
@overcast302 已经在做这个了。
开始于 2026年10月10日。
评估
调研方向
从 java/src/processing/mode/java/lsp/PdeLanguageServer.java 开始,查看只打印一行的 exit(),以及丢弃了 launcher.startListening() 所返回 future 的 main()。检查 stdin 读到 EOF 时会发生什么,以及此时进程应当如何结束。完成的标准是:关闭或崩溃 VS Code 时 LSP 进程随之退出,你可以在退出编辑器后用 pgrep -af 'Processing lsp' 确认。
由索引模型根据 Issue 内容生成。
描述
Most appropriate sub-area of Processing 4?
Other (specify if possible)
Processing version
4.5.7 (AUR processing-bin)
Operating system
Arch Linux x86_64
Bug description
The LSP server never terminates when the client goes away. This way, after closing Visual Studio Code with official Processing extension via File > Exit (or Ctrl+Q), the Processing LSP process is left running. The process also survives abrupt client death, since nothing on the server side reacts to the client disappearing.
Steps to reproduce this
- Install Processing 4.5.7 and the official Processing Visual Studio Code extension.
- Open Visual Studio Code
- Quit Visual Studio Code with Ctrl+Q (File > Exit).
- Run:
pgrep -af 'Processing lsp' - The process is still running.
snippet
No response
Additional context
PdeLanguageServer.exit() only prints a line and never calls System.exit(). PdeLanguageServer.main() also ignores the future returned by launcher.startListening(), so nothing happens when stdin reaches EOF. As a result, nothing in the server can end the LSP process when the client disappears.
Would you like to work on the issue?
Yes, I’d like to help with this
- 主要语言
- Java
- 星标
- 513
- 派生
- 183
- 平均合并
- 4 小时 6 分钟
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
processing/processing4 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 64/100
processing/processing4#1554 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
processing/processing4#1515 · 1 个 reaction ·
-
bug
难度 3/5 1-2 天 新手友好度 55/100
processing/processing4#1573 · 3 条评论 ·
-
startup error未关闭
难度 4/5 3-5 天 新手友好度 25/100
processing/processing4#1569 · 7 条评论 ·
-
Binaries under bin directory lack executable permissions for the snap and .deb packages for Linux可能已有人在做 @catilac 于 23 天前认领。 未关闭bug
processing/processing4#1567 · 3 条评论 · 1 个 reaction · 已指派 1 人 ·
查看 processing/processing4 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
objectionary/eo-graphs#80 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
-
enhancement good first issue
难度 2/5 半天 新手友好度 66/100
apache/fineract-consumer-facing#175 ·
维护者通常 1 天内回复
-
[BUG] 订单:会员凭订单号即可取消其他会员的待付款订单(取消接口不校验订单归属)可能已有人在做 @dadiyang 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
macrozheng/mall#1016 ·
-
难度 2/5 1-3 小时 新手友好度 78/100