org-roam / company-org-roam

Company completion backend for Org-roam
GNU General Public License v3.0
57 stars 4 forks source link

Error on startup #1

Open anthrolisp opened 4 years ago

anthrolisp commented 4 years ago

Results from emacs --debug-init

Debugger entered--Lisp error: (error "Could not find package org-roam in recipe repositories: (org-elpa melpa gnu-elpa-mirror emacsmirror-mirror)")
  signal(error ("Could not find package org-roam in recipe repositories: (org-elpa melpa gnu-elpa-mirror emacsmirror-mirror)"))
  error("Could not find package %S in recipe repositories: %S" org-roam (org-elpa melpa gnu-elpa-mirror emacsmirror-mirror))
  straight--convert-recipe(org-roam "Building company-org-roam")
  straight-use-package(org-roam nil nil "Building company-org-roam")
  straight--build-package((:host github :repo "jethrokuan/company-org-roam" :package "company-org-roam" :type git :local-repo "company-org-roam") nil)
  #f(compiled-function () #<bytecode 0x1bb0671>)()
  straight--transaction-exec(use-package-\(:host\ github\ :repo\ \"jethrokuan/company-org-roam\"\ :package\ \"company-org-roam\"\ :type\ git\ :local-repo\ \"company-org-roam\"\)-nil-nil :now #f(compiled-function () #<bytecode 0x1bb0671>))
  straight-use-package((company-org-roam :host github :repo "jethrokuan/company-org-roam"))
  eval-buffer(#<buffer  *load*-878872> nil "/home/name/.emacs.d/config.el" nil t)  ; Reading at buffer position 13934
  load-with-code-conversion("/home/name/.emacs.d/config.el" "/home/name/.emacs.d/config.el" nil nil)
  load("/home/name/.emacs.d/config.el" nil nil t)
  load-file("/home/name/.emacs.d/config.el")
  org-babel-load-file("/home/name/.emacs.d/config.org")
  eval-buffer(#<buffer  *load*> nil "/home/name/.emacs.d/init.el" nil t)  ; Reading at buffer position 1721
  load-with-code-conversion("/home/name/.emacs.d/init.el" "/home/name/.emacs.d/init.el" t t)
  load("/home/name/.emacs.d/init" t t)
  #f(compiled-function () #<bytecode 0x1e0f5d>)()
  command-line()
  normal-top-level()

Here's my init config for both org-roam and company-org-roam:

(use-package org-roam
      :hook 
      (after-init . org-roam-mode)
      :custom
      (org-roam-directory "~/Dropbox/projects/alife/")
      :bind (:map org-roam-mode-map
              (("C-c n l" . org-roam)
               ("C-c n f" . org-roam-find-file)
               ("C-c n b" . org-roam-switch-to-buffer)
               ("C-c n g" . org-roam-show-graph))
              :map org-mode-map
              (("C-c n i" . org-roam-insert))))
(setq org-roam-completion-system 'default)
(require 'org-roam-protocol)

; https://github.com/jethrokuan/company-org-roam

(use-package company-org-roam
  :straight (:host github :repo "jethrokuan/company-org-roam")
  :config
  (push 'company-org-roam company-backends))

Any thoughts? Many thanks in advance!

jethrokuan commented 4 years ago

This might be related to the local melpa repositories not being updated issue:

https://github.com/hlissner/doom-emacs/commit/f28a304abd1b9e13c4e1217211bef305c5f3badc#r38132446