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

include file error in "file viewer" #41

Closed
Iorest opened this issue Jun 19, 2020 · 7 comments
Closed

include file error in "file viewer" #41

Iorest opened this issue Jun 19, 2020 · 7 comments

Comments

@Iorest
Copy link

Iorest commented Jun 19, 2020

when I include a file using#+INCLUDE,there is an error error: (error Cannot include file ~/.emacs.d/elpa/org-roam-server-20200608.1547/,I don't konw how to solve it.

@goktug97
Copy link
Member

I can't reproduce your error.
#+INCLUDE: "~/roam/agenda.org"
This works perfectly fine for me. Maybe try updating everything to their the latest version.

Try exporting to the HTML manually to see if there is something wrong with your setup.

@Iorest
Copy link
Author

Iorest commented Jun 21, 2020

Yes,sometimes it’s OK for me,and sometimes It‘s wrong.But I change nothing.I think there is a bug in directory setting.

@goktug97
Copy link
Member

If you use relative paths, while exporting, it will use org-roam-server installation path as the root, not your roam-directory. You have to use absolute paths while using INCLUDE in your org files. I tried
#+INCLUDE: "~/test123.org"
#+INCLUDE: "/home/goktug/test123.org"
and both works but
#+INCLUDE: "../test123.org" doesn't work and I got
error: (error Cannot include file /home/goktug/libraries/test123.org)

@Iorest
Copy link
Author

Iorest commented Jun 25, 2020

Yeah,it‘s right!I’m confused how to solve it.

@goktug97
Copy link
Member

Don't use relative paths, use full path of the file you want to include.
For example, dont use #INCLUDE: test.org, use #INCLUDE: /home/lorest/roam-directory/test.org.

@goktug97
Copy link
Member

goktug97 commented Jul 5, 2020

Do you have any update?

@goktug97
Copy link
Member

Inactive

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

No branches or pull requests

2 participants