A custom date format chrono can't render stops every recording from starting
维护者通常 1 天内回复
评估
调研方向
Start by reading format_recording_project_name and cap_utils::moment_format_to_chrono, then inspect the existing recording_project_names_preserve_random_placeholder_in_window_title test for related behavior. Reproduce with {moment:YYYY 100%} and check how an unrenderable placeholder and placeholders in window titles are handled. Done means recording starts and the expected placeholder text is preserved; linked pull request #3913 is already open.
由索引模型根据 Issue 内容生成。
描述
Description
The default project name template accepts custom formats such as {date:DD/MM/YYYY} and {moment:YYYYMMDD}, and Cap's support assistant lists {moment:...} among the placeholders. format_recording_project_name turns the format into a chrono one with cap_utils::moment_format_to_chrono and renders it with datetime.format(&format).to_string(). That passes a % straight through, so a format chrono can't render, such as one ending in % or containing %Q, makes to_string() panic. The panic lands in the recording start task, so no recording can start until the template is changed.
Window titles reach the same code. {target_name} is substituted before the date placeholders are expanded, so a window titled "Notes {date}" makes a project named "Notes 2026-11-06 …", and a title containing {time:100%} fails the start the same way. {random} in a window title is already kept as it reads (recording_project_names_preserve_random_placeholder_in_window_title).
Reproduction
- Set Settings → General → Default project name to
{moment:YYYY 100%}. - Start a Studio recording.
- The recording doesn't start. The log shows
recording start task died: task … panicked with message "a Display implementation returned an error unexpectedly: Error".
Seen with a debug build of main (da2c85eed) on macOS.
Expected
The recording starts, and the placeholder that can't be rendered is left as typed, as an unknown placeholder is. Placeholders inside a window title stay as they read.
- 主要语言
- Rust
- 星标
- 24.2k
- 派生
- 2.2k
- 平均合并
- 1 天 10 小时
- 30 天内合并 PR
- 684
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CapSoftware/Cap 的其他 Issue
-
Download, FAQ, privacy and terms pages have no meta description可能已有人在做 @patrickballard 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
CapSoftware/Cap#3675 · 1 条评论 ·
维护者通常 1 天内回复
-
self hosting
难度 2/5 1-3 小时 新手友好度 68/100
CapSoftware/Cap#2384 · 3 条评论 ·
维护者通常 1 天内回复
-
Dashboard pagination causes full page reloads on self-hosted Cap可能已有人在做 @DipanshuAmbilkar03 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
CapSoftware/Cap#2305 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
CapSoftware/Cap#1714 · 3 条评论 ·
维护者通常 1 天内回复
-
"Main window when recording starts: Minimise" hides the main window instead可能已有人在做 @richiemcilroy 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 45/100
CapSoftware/Cap#3900 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
-
bug order-flow studies ui
难度 2/5 1-3 小时 新手友好度 88/100
userFRM/egui-charts#2417 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
In a plain-text message, Font, Font Size, Font Color and Text Highlight Color stay live可能已有人在做 @ragelfundionctrumnar 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
UCS-Care-Group/mailcraft#862 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
smoltcp-rs/smoltcp#1243 ·
维护者通常 1 天内回复