Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Absolute path is being read a relative #4192

Closed
1 task done
akshaybabloo opened this issue May 20, 2024 · 0 comments
Closed
1 task done

Absolute path is being read a relative #4192

akshaybabloo opened this issue May 20, 2024 · 0 comments

Comments

@akshaybabloo
Copy link

Description

I am trying to read a file that is not part of the folder I am running the typst from and when I am trying to read that file, it converts an d absolute path and attaches it to relative path

#let text = read("/home/akshay/code/personal/some/thing/temo2.py")
#raw(text, lang: "python")

And this is the error I get

typst compile temp.typ
error: file not found (searched at /home/akshay/code/personal/phd-thesis/home/akshay/code/personal/some/thing/temo2.py)
  ┌─ temp.typ:3:17
  │
3 │ #let text = read("/home/akshay/code/personal/head-tracker/non-nn/encoder.py")
  │                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst
@akshaybabloo akshaybabloo added the bug Something isn't working label May 20, 2024
@Enivex Enivex removed the bug Something isn't working label May 20, 2024
@Enivex Enivex converted this issue into discussion #4195 May 20, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants