Closed maikol-solis closed 4 years ago
With this commit (https://github.com/org-roam/org-roam/commit/32bf91077e01fbfbaa23eeaef23400e3d8ec64b2), the database was moved to the user's Emacs directory. The main change is that org-roam-db--get() no longer exists.
org-roam-db--get()
Using emacs --debug-init I got this error for the server
emacs --debug-init
Debugger entered--Lisp error: (void-function org-roam-db--get) org-roam-db--get() byte-code("\300\301\302\303 !\304\18\262\1!!\207" [floor float-time file-attributes org-roam-db--get 5] 5) (defvar org-roam-server-db-last-modification (byte-code "\300\301\302\303 !\304\18\262\1!!\207" [floor float-time file-attributes org-roam-db--get 5] 5)) require(org-roam-server nil nil) eval-buffer(#<buffer *load*-242102> nil "/home/maikol/.doom.d/config.el" nil t) ; Reading at buffer position 24655 load-with-code-conversion("/home/maikol/.doom.d/config.el" "/home/maikol/.doom.d/config.el" t t) load("/home/maikol/.doom.d/config" t nomessage) (let (file-name-handler-alist) (load (expand-file-name "config" doom-private-dir) t 'nomessage)) (condition-case e (let (file-name-handler-alist) (load (expand-file-name "config" doom-private-dir) t 'nomessage)) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name "config" doom-private-dir) doom-private-dir))) (if no-config-p nil (maphash (doom-module-loader doom-module-config-file) doom-modules) (run-hook-wrapped 'doom-init-modules-hook #'doom-try-run-hook) (condition-case e (let (file-name-handler-alist) (load (expand-file-name "config" doom-private-dir) t 'nomessage)) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name "config" doom-private-dir) doom-private-dir))) (load custom-file 'noerror (not doom-debug-mode))) (progn (if doom-debug-p (progn (let ((inhibit-message (active-minibuffer-window))) (message #("DOOM Initializing user config" 0 5 (face font-lock-comment-face)))))) (maphash (doom-module-loader doom-module-init-file) doom-modules) (run-hook-wrapped 'doom-before-init-modules-hook #'doom-try-run-hook) (if no-config-p nil (maphash (doom-module-loader doom-module-config-file) doom-modules) (run-hook-wrapped 'doom-init-modules-hook #'doom-try-run-hook) (condition-case e (let (file-name-handler-alist) (load (expand-file-name "config" doom-private-dir) t 'nomessage)) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name "config" doom-private-dir) doom-private-dir))) (load custom-file 'noerror (not doom-debug-mode)))) (if init-p (progn (if doom-debug-p (progn (let ((inhibit-message (active-minibuffer-window))) (message #("DOOM Initializing user config" 0 5 (face font-lock-comment-face)))))) (maphash (doom-module-loader doom-module-init-file) doom-modules) (run-hook-wrapped 'doom-before-init-modules-hook #'doom-try-run-hook) (if no-config-p nil (maphash (doom-module-loader doom-module-config-file) doom-modules) (run-hook-wrapped 'doom-init-modules-hook #'doom-try-run-hook) (condition-case e (let (file-name-handler-alist) (load (expand-file-name "config" doom-private-dir) t 'nomessage)) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name "config" doom-private-dir) doom-private-dir))) (load custom-file 'noerror (not doom-debug-mode)))) nil) (let* ((init-p (and t (condition-case e (let (file-name-handler-alist) (load (expand-file-name doom-module-init-file doom-private-dir) t 'nomessage)) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name doom-module-init-file doom-private-dir) doom-private-dir)))))) (if init-p (progn (if doom-debug-p (progn (let ((inhibit-message ...)) (message #("DOOM Initializing user config" 0 5 ...))))) (maphash (doom-module-loader doom-module-init-file) doom-modules) (run-hook-wrapped 'doom-before-init-modules-hook #'doom-try-run-hook) (if no-config-p nil (maphash (doom-module-loader doom-module-config-file) doom-modules) (run-hook-wrapped 'doom-init-modules-hook #'doom-try-run-hook) (condition-case e (let (file-name-handler-alist) (load (expand-file-name "config" doom-private-dir) t 'nomessage)) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (doom--handle-load-error e (expand-file-name "config" doom-private-dir) doom-private-dir))) (load custom-file 'noerror (not doom-debug-mode)))) nil)) (progn (setq doom-init-modules-p t) (if no-config-p nil (if doom-debug-p (progn (let ((inhibit-message (active-minibuffer-window))) (message #("DOOM Initializing core modules" 0 5 (face font-lock-comment-face)))))) (doom-initialize-core-modules)) (let* ((init-p (and t (condition-case e (let (file-name-handler-alist) (load ... t ...)) ((debug doom-error) (signal ... ...)) ((debug error) (doom--handle-load-error e ... doom-private-dir)))))) (if init-p (progn (if doom-debug-p (progn (let (...) (message ...)))) (maphash (doom-module-loader doom-module-init-file) doom-modules) (run-hook-wrapped 'doom-before-init-modules-hook #'doom-try-run-hook) (if no-config-p nil (maphash (doom-module-loader doom-module-config-file) doom-modules) (run-hook-wrapped 'doom-init-modules-hook #'doom-try-run-hook) (condition-case e (let (file-name-handler-alist) (load ... t ...)) ((debug doom-error) (signal ... ...)) ((debug error) (doom--handle-load-error e ... doom-private-dir))) (load custom-file 'noerror (not doom-debug-mode)))) nil))) (if (or force-p (not doom-init-modules-p)) (progn (setq doom-init-modules-p t) (if no-config-p nil (if doom-debug-p (progn (let ((inhibit-message ...)) (message #("DOOM Initializing core modules" 0 5 ...))))) (doom-initialize-core-modules)) (let* ((init-p (and t (condition-case e (let ... ...) (... ...) (... ...))))) (if init-p (progn (if doom-debug-p (progn (let ... ...))) (maphash (doom-module-loader doom-module-init-file) doom-modules) (run-hook-wrapped 'doom-before-init-modules-hook #'doom-try-run-hook) (if no-config-p nil (maphash (doom-module-loader doom-module-config-file) doom-modules) (run-hook-wrapped 'doom-init-modules-hook #'doom-try-run-hook) (condition-case e (let ... ...) (... ...) (... ...)) (load custom-file 'noerror (not doom-debug-mode)))) nil)))) doom-initialize-modules(nil) (progn (setq doom-init-p t) (if doom-debug-p (progn (let ((inhibit-message (active-minibuffer-window))) (message #("DOOM Initializing Doom" 0 5 (face font-lock-comment-face)))))) (progn (set-default 'exec-path doom--initial-exec-path) (set-default 'load-path doom--initial-load-path) (set-default 'process-environment doom--initial-process-environment)) (condition-case e (load (string-remove-suffix ".el" doom-autoloads-file) nil 'nomessage) (file-missing (if (equal (nth 3 e) doom-autoloads-file) (signal 'doom-error (list "Doom is in an incomplete state" "run 'doom sync' on the command line to repair it")) (signal 'doom-autoload-error e)))) (if (or (display-graphic-p) (daemonp)) (doom-load-envvars-file doom-env-file 'noerror)) (require 'core-modules) (autoload 'doom-initialize-packages "core-packages") (autoload 'doom-initialize-core-packages "core-packages") (eval-after-load 'package #'(lambda nil (require 'core-packages))) (eval-after-load 'straight #'(lambda nil (doom-initialize-packages))) (add-hook 'window-setup-hook #'(lambda (&rest _) (add-hook 'hack-local-variables-hook #'doom-run-local-var-hooks-h) (add-hook 'after-change-major-mode-hook #'doom-run-local-var-hooks-maybe-h 'append) (add-hook 'doom-first-input-hook #'gcmh-mode) (let ((fn (intern ...))) (fset fn #'(lambda ... ... ...)) (put 'doom-first-input-hook 'permanent-local t) (let ((--dolist-tail-- ...)) (while --dolist-tail-- (let ... ... ...)))) (let ((fn (intern ...))) (fset fn #'(lambda ... ... ...)) (put 'doom-first-file-hook 'permanent-local t) (let ((--dolist-tail-- ...)) (while --dolist-tail-- (let ... ... ...)))) (let ((fn (intern ...))) (fset fn #'(lambda ... ... ...)) (put 'doom-first-buffer-hook 'permanent-local t) (let ((--dolist-tail-- ...)) (while --dolist-tail-- (let ... ... ...))))) nil nil) (add-hook 'emacs-startup-hook #'doom-load-packages-incrementally-h) (add-hook 'window-setup-hook #'doom-display-benchmark-h 'append) (if doom-debug-p (doom-debug-mode 1)) (doom-initialize-modules force-p)) (if (or force-p (not doom-init-p)) (progn (setq doom-init-p t) (if doom-debug-p (progn (let ((inhibit-message (active-minibuffer-window))) (message #("DOOM Initializing Doom" 0 5 (face font-lock-comment-face)))))) (progn (set-default 'exec-path doom--initial-exec-path) (set-default 'load-path doom--initial-load-path) (set-default 'process-environment doom--initial-process-environment)) (condition-case e (load (string-remove-suffix ".el" doom-autoloads-file) nil 'nomessage) (file-missing (if (equal (nth 3 e) doom-autoloads-file) (signal 'doom-error (list "Doom is in an incomplete state" "run 'doom sync' on the command line to repair it")) (signal 'doom-autoload-error e)))) (if (or (display-graphic-p) (daemonp)) (doom-load-envvars-file doom-env-file 'noerror)) (require 'core-modules) (autoload 'doom-initialize-packages "core-packages") (autoload 'doom-initialize-core-packages "core-packages") (eval-after-load 'package #'(lambda nil (require 'core-packages))) (eval-after-load 'straight #'(lambda nil (doom-initialize-packages))) (add-hook 'window-setup-hook #'(lambda (&rest _) (add-hook 'hack-local-variables-hook #'doom-run-local-var-hooks-h) (add-hook 'after-change-major-mode-hook #'doom-run-local-var-hooks-maybe-h 'append) (add-hook 'doom-first-input-hook #'gcmh-mode) (let ((fn ...)) (fset fn #'...) (put 'doom-first-input-hook 'permanent-local t) (let (...) (while --dolist-tail-- ...))) (let ((fn ...)) (fset fn #'...) (put 'doom-first-file-hook 'permanent-local t) (let (...) (while --dolist-tail-- ...))) (let ((fn ...)) (fset fn #'...) (put 'doom-first-buffer-hook 'permanent-local t) (let (...) (while --dolist-tail-- ...)))) nil nil) (add-hook 'emacs-startup-hook #'doom-load-packages-incrementally-h) (add-hook 'window-setup-hook #'doom-display-benchmark-h 'append) (if doom-debug-p (doom-debug-mode 1)) (doom-initialize-modules force-p))) doom-initialize() eval-buffer(#<buffer *load*> nil "/home/maikol/.emacs.d/init.el" nil t) ; Reading at buffer position 2620 load-with-code-conversion("/home/maikol/.emacs.d/init.el" "/home/maikol/.emacs.d/init.el" t t) load("/home/maikol/.emacs.d/init" noerror nomessage) startup--load-user-init-file(#f(compiled-function () #<bytecode 0x5bd9c5>) #f(compiled-function () #<bytecode 0x5bd9d9>) t) command-line() normal-top-level()
Fixed with #98 , thanks!
With this commit (https://github.com/org-roam/org-roam/commit/32bf91077e01fbfbaa23eeaef23400e3d8ec64b2), the database was moved to the user's Emacs directory. The main change is that
org-roam-db--get()
no longer exists.Using
emacs --debug-init
I got this error for the server