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

Org-roam v2 upgrade: Cannot open load file: No such file or directory, org-roam-buffer #200

Open
Wheest opened this issue Jul 22, 2021 · 3 comments
Labels
1. documentation Improvements or additions to documentation 1. misconfiguration Something isn't working because of errors in user config files 1. question Should be asked on Slack or Discourse, really

Comments

@Wheest
Copy link

Wheest commented Jul 22, 2021

Describe the bug
I just updated my Doom Emacs and migrated to Org-roam v2. When I run orb-insert-link I get the error:
Cannot open load file: No such file or directory, org-roam-buffer

Expected behaviour
I expected to see the typical behaviour of orb-insert-link.

ORB configuration

I note on the README that it tells us to look at the manual to ensure that our ORB configs are updated for org-roam-v2.

However I am not seeing anything in my config that looks out of the ordinary, nor any "migration tips" in the manual.

(use-package! org-roam-bibtex
  :after org-roam
  :hook (org-roam-mode . org-roam-bibtex-mode)
  :config
  (require 'org-ref)
  (require 'ivy-bibtex)
  (setq orb-insert-interface 'ivy-bibtex)
  (setq  bibtex-completion-pdf-field "file")
  )

(setq orb-preformat-keywords '("citekey" "author" "date" "year" "keywords" "booktitle" "file"))

(setq orb-templates
      '((\"r\" \"reference\" plain (function org-roam-capture--get-point)
         "\n#+ROAM_KEY: cite:%^{citekey}%?
:AUTHOR: %^{author}
:DATE: %^{date}
:YEAR: %^{year}
#+CREATED: <%<%Y-%m-%d %H:%M:%S>>
:BOOKTITLE: %^{booktitle}
#+ROAM_TAGS: %^{keywords}
#+SOURCE: %^{file}
[[file:%^{file}][Source file]]
"
         :file-name "references/${citekey}"
         :head "#+TITLE: ${title}"
         :unnarrowed t)))

Environment (please complete the following information):

  • ORB commit or MELPA package version: 0.6.0
  • Org Roam commit or MELPA package version: 2.0.0
  • Org Mode version: 9.5
  • Emacs framework: Doom
  • Emacs version: 27.1
  • OS: Linux
@myshevchuk
Copy link
Member

Hi,

the following should work:

Configure ORB with use-package (from README):

(use-package! org-roam-bibtex
  :after org-roam
  :config
  (require 'org-ref)) ; optional: if Org Ref is not loaded anywhere else, load it here

Use org-roam-capture-templates (from Orb-manual):

(setq org-roam-capture-templates
      '(;; ... other templates
        ;; bibliography note template
        ("r" "bibliography reference" plain "%?"
        :if-new
        (file+head "references/${citekey}.org" "#+title: ${title}\n")
        :unnarrowed t)))

Make sure you upgraded ORB in Doom.

Please, check the Discourse group first before opening a new GitHub issue. Please consult the README section Getting Help for further details.

@myshevchuk myshevchuk added 1. misconfiguration Something isn't working because of errors in user config files 1. question Should be asked on Slack or Discourse, really labels Jul 22, 2021
@myshevchuk myshevchuk reopened this Jul 22, 2021
@Wheest
Copy link
Author

Wheest commented Jul 22, 2021

Thank you, I have moved the discussion to this discourse discussion

@myshevchuk
Copy link
Member

myshevchuk commented Jul 22, 2021

I'll need to add a README instruction on how to start org-roam-bibtex-mode automatically.

For your case, putting the following in config.el is appropriate:

(after! org-roam
  (org-roam-bibtex-mode))

@myshevchuk myshevchuk added the 1. documentation Improvements or additions to documentation label Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. documentation Improvements or additions to documentation 1. misconfiguration Something isn't working because of errors in user config files 1. question Should be asked on Slack or Discourse, really
Projects
None yet
Development

No branches or pull requests

2 participants