`codegraph index` tells you to run `codegraph daemon stop`, which the CLI rejects
维护者通常 1 天内回复
已经有一个关联 PR 被合并了。
- #2819 来自 @colbymchenry —— 已合并
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 70/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- node.js, typescript
- 领域
- cli
调研方向
从 src/bin/codegraph.ts 第 909 行附近的错误消息和第 1960–1969 行附近的 daemon 命令实现入手;将提示内容与命令的实际行为进行比较。检查 src/mcp/writer-lock.ts 第 241 行附近对应的消息。确定恢复说明应该如何发挥作用,然后验证两条消息都向用户提供了可运行的命令。
由索引模型根据 Issue 内容生成。
描述
When codegraph index can't stop the project's daemon, it says:
✗ Failed to index: Could not verify that the active CodeGraph daemon has stopped. Run `codegraph daemon stop` to stop it, then retry `codegraph index`.
That command doesn't exist. codegraph daemon takes no arguments, so following the advice fails:
$ codegraph daemon stop
error: too many arguments for 'daemon'. Expected 0 arguments but got 1.
codegraph daemon is an arrow-key picker (codegraph.ts#L1960-L1969). Without a TTY it only lists the daemons. The message is at codegraph.ts#L909, and the writer-lock message gives the same advice (writer-lock.ts#L241: "codegraph daemon stop if a shared daemon").
Seen on a 1.6.2 build of main at efff7457 plus a few fixes that don't touch the daemon command or these messages (both are unchanged at 0abae119), Linux / WSL2, Node 22.23.2.
How I hit it. The daemon holding the index was an older build's, left running after the session that started it had ended (its parent was init). index reported unverified/still-running from stopDaemonAt, and the only way out was finding the pid with ps and sending SIGTERM. I didn't check whether the picker would have listed that daemon. Related: #2335 (a daemon outliving an upgrade) and #2311 (stopDaemonAt outcomes).
Possible fixes:
- Make the messages say
codegraph daemon, and mention that it's interactive. - Or add a non-interactive
codegraph daemon stop [path](default: the current project), which both messages could point to and scripts could call.
- 主要语言
- C
- 星标
- 73.2k
- 派生
- 4.7k
- 平均合并
- 5 小时 51 分钟
- 30 天内合并 PR
- 627
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
colbymchenry/codegraph 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
colbymchenry/codegraph#1900 · 2 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
colbymchenry/codegraph#1700 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
colbymchenry/codegraph#1535 · 2 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 63/100
colbymchenry/codegraph#1403 ·
维护者通常 1 天内回复
-
agent-target
难度 2/5 1-3 小时 新手友好度 68/100
colbymchenry/codegraph#649 · 5 条评论 · 50 个 reaction ·
维护者通常 1 天内回复
查看 colbymchenry/codegraph 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 90/100
Lakr233/vphone-cli#743 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
libsdl-org/SDL#16584 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 63/100
FriendsofECCE/ECCE#519 ·
-
难度 1/5 1 小时以内 新手友好度 95/100
containers/crun#2415 ·
维护者通常 1 天内回复