typst.ts
typst.ts copied to clipboard
typst-ts-cli Crash Report
Describe the bug
Running typst-ts-cli c --watch --entry main.typ
produces the following error:
name = "typst-ts-cli"
operating_system = "Pop!_OS 22.04 (jammy) [64-bit]"
crate_version = "0.4.0-rc3"
explanation = """
Panic occurred in file '/home/runner/work/typst.ts/typst.ts/compiler/src/service/watch.rs' at line 23
"""
cause = "called `Result::unwrap()` on an `Err` value: \"failed to watch directory (Too many open files (os error 24))\""
method = "Panic"
backtrace = """
0: 0x55f28d671cc2 - <unresolved>
1: 0x55f28e1497a2 - <unresolved>
2: 0x55f28e137d29 - <unresolved>
3: 0x55f28e168632 - <unresolved>
4: 0x55f28e13ae6f - <unresolved>
5: 0x55f28e13a8d7 - <unresolved>
6: 0x55f28d6c6675 - <unresolved>
7: 0x55f28d6c5803 - <unresolved>
8: 0x55f28e1774f3 - <unresolved>
9: 0x55f28d6cefb9 - <unresolved>
10: 0x7f1527829d90 - <unresolved>
11: 0x7f1527829e40 - __libc_start_main
12: 0x55f28d6beb95 - <unresolved>
13: 0x0 - <unresolved>"""
Even if I have no open files on the system. The same command works great if --watch
is not specified. This is likely related to https://github.com/Enter-tainer/typst-preview/issues/133