Skip to content

Cannot find a valid tinymist binary when using tinymist 0.14.16 #2487

@Marcondiro

Description

@Marcondiro

Is there an existing issue for this?

  • I have searched the existing issues

Platform

ARM64 Linux (linux-arm64)

Editor

VS Cod(e,ium)

Editor Version

1.116.0

Describe the bug

Hi,

While trying to use tinymist 0.14.16 in a devcontainer based on typst image (Alpine linux) on an ARM host (Apple Silicon mac, shouldn't matter much?) I encounter the error reported below.

It looks like the tinymist binary is not located in /root/.vscode-server/extensions/myriad-dreamin.tinymist-0.14.16/out/. Manually downloading the executable and placing it there fixes the issue.

As a result the preview and the other features of tinymist do not work.

Server Logs

[empty]

Browser Logs

Cannot find a valid tinymist binary. Some features like auto-formatting on Enter may not work. Please check your tinymist.serverPath configuration. Exception: Error: Could not find a valid tinymist binary. Bundled ('/root/.vscode-server/extensions/myriad-dreamin.tinymist-0.14.16/out/tinymist'): failed to probe: error: spawnSync /root/.vscode-server/extensions/myriad-dreamin.tinymist-0.14.16/out/tinymist ENOENT In PATH ('tinymist'): failed to probe: error: spawnSync tinymist ENOENT

Additional context

Versions 0.14.2, 0.14.8, 0.14.10 work just fine

One difference I noticed is that the new version seems unable to detect the platform

~/.vscode-server/extensions/myriad-dreamin.tinymist-0.14.16 # grep -i platform package.json 
                "targetPlatform": "undefined",

while the old ones are

~/.vscode-server/extensions/myriad-dreamin.tinymist-0.14.10-alpine-arm64 # grep -i platform package.json 
                "targetPlatform": "alpine-arm64",

What I tried and did not fix:

  • Reinstalling the extension
  • Restarting vscode
  • deleting the container, images and volumes created by vscode

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions