Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typst Snap package can't access local packages #2

Open
Unaimend opened this issue Aug 17, 2024 · 1 comment · May be fixed by #1
Open

Typst Snap package can't access local packages #2

Unaimend opened this issue Aug 17, 2024 · 1 comment · May be fixed by #1

Comments

@Unaimend
Copy link

Description

I tried installing the package [2] on my system via cloning the repo into the following path
~/.local/share/typst/packages/local/petri/0.1.0 by following the approach described in [3]
The typst compiler nonetheless gives the following error

error: package not found (searched for @local/petri:0.1.0)
  ┌─ ProjectPlan.typ:5:8
  │
5 │ #import "@local/petri:0.1.0": *
  │         ^^^^^^^^^^^^^^^^^^^^

System information can be found in the following screenshot
image

Some more things were tried below the following question on the discord but nothing worked
https://discord.com/channels/1054443721975922748/1088371919725793360/1274364908187942924

Thank you very much for typst and your help

[2] https://github.com/augustebaum/petri
[3] https://github.com/typst/packages

@Unaimend Unaimend changed the title Cant import local package Can't import local package Aug 17, 2024
@PgBiel
Copy link

PgBiel commented Aug 17, 2024

As commented on Discord, this seems to be a problem with Typst's snap package, which currently seems to excessively restrict the directories Typst can access.

@PgBiel PgBiel changed the title Can't import local package Typst Snap package can't access local packages Aug 17, 2024
@PgBiel PgBiel transferred this issue from typst/packages Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants