tinymist
tinymist copied to clipboard
`tinymist preview` file not found error resulting in crash
Describe the bug
The tinymist preview
command keeps giving a "file not found" error whenever I write to the file it's watching. But the preview is updated correctly, so clearly it must've found the file... And after giving this error a few times, it just crashes.
Package/Software version:
OS: Windows 11
tinymist extension version: v0.11.0
. Get it by tinymist --version
in terminal.
tinymist
Build Timestamp: 2024-10-09T17:56:50.143796800Z
Build Git Describe: v0.11.32
Commit SHA: deb06b85113a97a9b6770d89624f1ed6b94f9331
Commit Date: None
Commit Branch: None
Cargo Target Triple: x86_64-pc-windows-msvc
Typst Version: 0.11.1
Typst Source: git+https://github.com/Myriad-Dreamin/typst.git?tag=tinymist-v0.11.1-2#314749ea26ac3f62622bc3b3c30d3a7d6a457a74
Logs:
Std out log
❯ tinymist preview report.typ --no-open
[2024-10-11T16:55:21Z INFO tinymist::tool::preview] Arguments: PreviewCliArgs {
preview: PreviewArgs {
enable_partial_rendering: false,
invert_colors: "never",
task_id: "default_preview",
refresh_style: OnType,
},
compile: CompileOnceArgs {
input: Some(
"report.typ",
),
root: None,
inputs: [],
font: CompileFontArgs {
font_paths: [],
ignore_system_fonts: false,
},
creation_timestamp: None,
certification: None,
},
preview_mode: Document,
data_plane_host: "127.0.0.1:23625",
control_plane_host: "127.0.0.1:23626",
static_file_host: "",
not_as_primary: false,
dont_open_in_browser: true,
}
[2024-10-11T16:55:21Z INFO typst_preview] Previewer: typst actor spawned
[2024-10-11T16:55:21Z DEBUG typst_preview::actor::typst] TypstActor: waiting for message
[2024-10-11T16:55:21Z INFO typst_preview] Previewer: editor actor spawned
[2024-10-11T16:55:21Z INFO tinymist::tool::preview] preview server listening on http://127.0.0.1:23626
[2024-10-11T16:55:21Z INFO tinymist::tool::preview] Control panel server listening on: 127.0.0.1:23626
[2024-10-11T16:55:21Z INFO tinymist::tool::preview] preview server listening on http://127.0.0.1:23625
[2024-10-11T16:55:21Z INFO tinymist::tool::preview] Data plane server listening on: 127.0.0.1:23625
[2024-10-11T16:55:21Z INFO tinymist::tool::preview] Static file server listening on: 127.0.0.1:23625
[2024-10-11T16:55:21Z INFO tinymist::task::cache] CacheEvictTask: evict cache in 18.8µs
[2024-10-11T16:55:21Z INFO tinymist::task::cache] CacheEvictTask: evict cache in 9.5µs
[2024-10-11T16:55:22Z DEBUG typst_preview::actor::render] OutlineRenderActor: waiting for message
[2024-10-11T16:55:22Z DEBUG typst_preview::actor::render] RenderActor: waiting for message
[2024-10-11T16:55:22Z DEBUG typst_preview::actor::render] RenderActor: has_full_render: true
[2024-10-11T16:55:22Z DEBUG typst_preview::actor::render] OutlineRenderActor: received message: RenderFullLatest
[2024-10-11T16:55:22Z DEBUG typst_preview::actor::render] OutlineRenderActor: sending outline
[2024-10-11T16:55:22Z DEBUG typst_preview::actor::render] OutlineRenderActor: waiting for message
[2024-10-11T16:55:22Z DEBUG typst_preview::actor::render] RenderActor: waiting for message
error: file not found (searched at C:\Users\XXXXX\report.typ)
= hint: at file \report.typ
[2024-10-11T16:55:30Z INFO tinymist::actor::typ_client] TypstActor: failed to prepare main file: NotFound("C:\\Users\\XXXXX\\report.typ")
[2024-10-11T16:55:30Z ERROR tinymist::actor::typ_client] TypstActor: failed to convert diagnostics: failed to get source: file not found (searched at C:\Users\thiba\XXXXX\report.typ)
[2024-10-11T16:55:30Z INFO tinymist::task::cache] CacheEvictTask: evict cache in 30µs
[2024-10-11T16:55:30Z DEBUG typst_preview::actor::render] OutlineRenderActor: received message: RenderIncremental
[2024-10-11T16:55:30Z INFO tinymist::task::cache] CacheEvictTask: evict cache in 11.5µs
[2024-10-11T16:55:30Z DEBUG typst_preview::actor::render] RenderActor: has_full_render: false
[2024-10-11T16:55:30Z DEBUG typst_preview::actor::render] OutlineRenderActor: sending outline
[2024-10-11T16:55:30Z DEBUG typst_preview::actor::render] OutlineRenderActor: waiting for message
[2024-10-11T16:55:30Z DEBUG typst_preview::actor::render] RenderActor: waiting for message
Additional context The path contains backslashes as I'm on Windows, as well as whitespace characters, so maybe that's causing the issue.