Myriad-Dreamin / tinymist

Tinymist [ˈtaɪni mɪst] is an integrated language service for Typst [taɪpst].
https://myriad-dreamin.github.io/tinymist
Apache License 2.0
809 stars 36 forks source link

Automatic update fails on asahi linux on apple silicon #678

Open physicophilic opened 1 month ago

physicophilic commented 1 month ago

Describe the bug

The preview doesn't update automatically, and the jump from preview to file is not working, on Asahi Linux, apple M1 macbook.

The preview does update on save.

Package/Software version:

The issue is with the executable itself, as I ran the command from the terminal.

OS: Asahi Fedora Remix, using Fedora 40, on Apple M1 macbook

tinymist extension version: v0.11.0. Get it by tinymist --version in terminal.

Build Timestamp:     2024-10-09T17:56:34.627396382Z
Build Git Describe:  v0.11.32
Commit SHA:          deb06b85113a97a9b6770d89624f1ed6b94f9331
Commit Date:         None
Commit Branch:       None
Cargo Target Triple: aarch64-unknown-linux-gnu
Typst Version:       0.11.1
Typst Source:        git+https://github.com/Myriad-Dreamin/typst.git?tag=tinymist-v
0.11.1-2#314749ea26ac3f62622bc3b3c30d3a7d6a457a74

Logs:

tinymist preview log; I don't know what other logs are expected. I am doing a preview right from terminal in this case.

manish@Clay:~$ tinymist preview a.typ --partial-rendering
[2024-10-14T18:30:57Z INFO  tinymist::tool::preview] Arguments: PreviewCliArgs {
        preview: PreviewArgs {
            enable_partial_rendering: true,
            invert_colors: "never",
            task_id: "default_preview",
            refresh_style: OnType,
        },
        compile: CompileOnceArgs {
            input: Some(
                "a.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: false,
    }
[2024-10-14T18:30:57Z INFO  typst_preview] Previewer: typst actor spawned
[2024-10-14T18:30:57Z INFO  typst_preview] Previewer: editor actor spawned
[2024-10-14T18:30:57Z DEBUG typst_preview::actor::typst] TypstActor: waiting for me
ssage
[2024-10-14T18:30:57Z INFO  tinymist::tool::preview] preview server listening on ht
tp://127.0.0.1:23626
[2024-10-14T18:30:57Z INFO  tinymist::tool::preview] Control panel server listening
 on: 127.0.0.1:23626
[2024-10-14T18:30:57Z INFO  tinymist::tool::preview] preview server listening on ht
tp://127.0.0.1:23625
[2024-10-14T18:30:57Z INFO  tinymist::tool::preview] Data plane server listening on
: 127.0.0.1:23625
[2024-10-14T18:30:57Z INFO  tinymist::tool::preview] Static file server listening o
n: 127.0.0.1:23625
[2024-10-14T18:30:57Z INFO  tinymist::task::cache] CacheEvictTask: evict cache in 4
.666µs
[2024-10-14T18:30:57Z INFO  tinymist::task::cache] CacheEvictTask: evict cache in 1
µs
[2024-10-14T18:30:57Z DEBUG typst_preview::actor::render] OutlineRenderActor: waiti
ng for message
[2024-10-14T18:30:57Z DEBUG typst_preview::actor::render] RenderActor: waiting for 
message
[2024-10-14T18:30:57Z DEBUG typst_preview::actor::render] RenderActor: has_full_ren
der: true
[2024-10-14T18:30:57Z DEBUG typst_preview::actor::render] OutlineRenderActor: recei
ved message: RenderFullLatest
[2024-10-14T18:30:57Z DEBUG typst_preview::actor::render] OutlineRenderActor: sendi
ng outline
[2024-10-14T18:30:57Z DEBUG typst_preview::actor::render] OutlineRenderActor: waiti
ng for message
[2024-10-14T18:30:57Z DEBUG typst_preview::actor::render] RenderActor: waiting for 
message
[2024-10-14T18:31:13Z DEBUG typst_preview::actor::render] OutlineRenderActor: recei
ved message: RenderIncremental
[2024-10-14T18:31:13Z DEBUG typst_preview::actor::render] RenderActor: has_full_ren
der: false
[2024-10-14T18:31:13Z DEBUG typst_preview::actor::render] OutlineRenderActor: sendi
ng outline
[2024-10-14T18:31:13Z DEBUG typst_preview::actor::render] OutlineRenderActor: waiti
ng for message
[2024-10-14T18:31:13Z INFO  tinymist::task::cache] CacheEvictTask: evict cache in 4
.083µs
[2024-10-14T18:31:13Z DEBUG typst_preview::actor::render] RenderActor: waiting for 
message

Additional context

Completion is working as expected. On my intel machine running ubuntu 22, I have been able to make tinymist preview run out of the box.

Enter-tainer commented 1 month ago

Hi, could you try preview in browser and see if there are any error message in devtools->log panel?

physicophilic commented 1 month ago

I hope this is the log that you are seeking, because I cannot see any other log option in the dev tools. There are no errors here

image

Enter-tainer commented 1 month ago

That looks weird. So far it looks like everything is working properly.

Enter-tainer commented 3 weeks ago

I don't have an asahi linux device. On aarch64-apple-darwin with stock macos, everything works out properly. However you mentioned that The preview does update on save. This sounds like #739