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 天內回覆