Bug on Kitty: Terminfo file not found
维护者通常 1 天内回复
@ethanpailes 已经在做这个了。
开始于 2024年6月21日。
评估
这个 Issue 还没有评估数据。
描述
What happened
I can't create shpool sessions in kitty-terminal but I can with gnome-terminal.
Here's the output that appears in journalctl -f:
ThreadId(07) handling new connection: resolving terminfo
REDACTED shpool[2274258]: Caused by:
REDACTED shpool[2274258]: Terminfo file not found
Here are relevant outputs in my kitty:
❯ echo $TERMINFO
/home/$USER/.local/kitty.app/lib/kitty/terminfo
❯ echo $TERM
xterm-kitty
And on gnome-terminal:
[11:51]echo $TERMINFO
/home/USER/.local/kitty.app/lib/kitty/terminfo
[11:51]>echo $TERM
xterm-256color
So I tried this in kitty: TERM="xterm-256color" shpool attach -f "test" and it worked directly.
What I expected to happen
First, this error should appear not only in journalctl but to the user that called it! I get no feedback that shpool failed except that shpool list shows an empty list.
Then, the error is incorrect: it should not be "Terminfo" file not found (the file is found) but has to do with $TERM.
To Reproduce
Steps to reproduce the behavior:
- Run `journalctl -f | grep shpool
- In gnome-terminal (=a working shpool terminal) run
TERM="xterm-kitty" shpool attach -f "test" - Notice the absence of error in the shell
- Notice the error in the journal
Version info
shpool 0.6.2
Logs
shpool[2274258]: INFO ThreadId(01) run:serve: socket got a new connection
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}: new
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}:parse_connect_header: new
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}:parse_connect_header: close time.busy=88.6µs time.idle=12.6µs
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}:handle_attach: new
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}:handle_attach: locked shells table
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}:handle_attach: no existing 'test' session, creating new one
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}:handle_attach: creating new subshell
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}:handle_attach:spawn_subshell: new
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}:handle_attach:spawn_subshell: user_info=Info { default_shell: "/bin/zsh", home_dir: "/home/USER", user: "USER" }
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}:handle_attach:spawn_subshell:inject_env: new
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}:handle_attach:spawn_subshell:inject_env: injecting TERM into shell Some("xterm-kitty")
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}:handle_attach:spawn_subshell:inject_env: close time.busy=40.3µs time.idle=6.14µs
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}:handle_attach:spawn_subshell: close time.busy=194µs time.idle=5.47µs
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}:handle_attach: close time.busy=248µs time.idle=8.34µs
shpool[2274258]: INFO ThreadId(33) handle_conn{cid=14}: close time.busy=433µs time.idle=24.7µs
shpool[2274258]: ERROR ThreadId(33) handling new connection: resolving terminfo
shpool[2274258]: Caused by:
shpool[2274258]: Terminfo file not found
- 主要语言
- Rust
- 星标
- 2k
- 派生
- 70
- 平均合并
- 2 天 3 小时
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
shell-pool/shpool 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 78/100
shell-pool/shpool#463 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
shell-pool/shpool#442 · 1 条评论 ·
维护者通常 1 天内回复
-
misc LLM reports未关闭
难度 5/5 一周以上 新手友好度 5/100
shell-pool/shpool#454 ·
维护者通常 1 天内回复
-
vterm
难度 4/5 3-5 天 新手友好度 30/100
shell-pool/shpool#445 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
shell-pool/shpool#429 ·
维护者通常 1 天内回复
查看 shell-pool/shpool 的全部 Issue
相似的 Issue
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)未关闭
难度 1/5 1 小时以内 新手友好度 72/100
influxdata/influxdb#27767 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 65/100
oras-project/rust-oci-client-node#132 ·
维护者通常 2 天内回复
-
Ignore entry for RUSTSEC-2020-0168 no longer matches anything (`mach` is no longer in `Cargo.lock`)可能已有人在做 @zyl71 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 72/100
Blockstream/lwk#213 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
libracoder/kiri#749 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
manuscript-lang/manuscript#6389 ·
维护者通常 1 天内回复