Skip to content

Fix local package search path #2492

@jonas-schulze

Description

@jonas-schulze

Is there an existing issue for this?

  • I have searched the existing issues

Platform

Other Platforms (universal)

Editor

VS Cod(e,ium)

Editor Version

  • VSCode version: 1.117.0
  • Tinymist version: 0.14.16

Describe the bug

Tinymist does not find local packages installed at $HOME/.local/share/typst/packages/local (I am running Linux). If I instead install the packages to $HOME/.cache/typst/packages/local, which is the default for published packages, Tinymist finds them just fine. The error on the VSCode Problems tab reads as follows:

package not found (searched for @local/drawmatrix:0.1.0)

If I build the document using typst compile, the local package is found either way.

Server Logs

Tinymist Typst.log

Browser Logs

I really don't think these are necessary, but I will upload them later if you do need them.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions