org-roam icon indicating copy to clipboard operation
org-roam copied to clipboard

"Selecting deleted buffer" SQL Issue After Updating Emacs

Open joyguar opened this issue 2 years ago • 5 comments

Description

I am on the Emacs29 branch. I recently updated my build of emacs29 and now I getting "Selecting deleted buffer" when attempting to invoke any org-roam commands.

Steps to Reproduce

  1. Upgrade Emacs to latest version of Emacs 29 branch.
  2. Load Emacs
  3. Run org-roam-node-find

Backtrace

Debugger entered--Lisp error: (error "Selecting deleted buffer")
  #f(compiled-function (connection) "Return true if the end of the buffer has a properly-formatted prompt." #<bytecode 0x191e4b04f276b127>)(#<emacsql-sqlite-connection emacsql-sqlite-connection-156a4d619fde>)
  apply(#f(compiled-function (connection) "Return true if the end of the buffer has a properly-formatted prompt." #<bytecode 0x191e4b04f276b127>) #<emacsql-sqlite-connection emacsql-sqlite-connection-156a4d619fde> nil)
  emacsql-waiting-p(#<emacsql-sqlite-connection emacsql-sqlite-connection-156a4d619fde>)
  #f(compiled-function (connection &optional timeout) "Block until CONNECTION is waiting for further input." #<bytecode -0x753f2e5ec2eec72>)(#<emacsql-sqlite-connection emacsql-sqlite-connection-156a4d619fde>)
  apply(#f(compiled-function (connection &optional timeout) "Block until CONNECTION is waiting for further input." #<bytecode -0x753f2e5ec2eec72>) #<emacsql-sqlite-connection emacsql-sqlite-connection-156a4d619fde> nil)
  emacsql-wait(#<emacsql-sqlite-connection emacsql-sqlite-connection-156a4d619fde>)
  #f(compiled-function (connection sql &rest args) #<bytecode -0x98cadbffec43024>)(#<emacsql-sqlite-connection emacsql-sqlite-connection-156a4d619fde> [:pragma (= busy-timeout $s1)] 15000)
  apply(#f(compiled-function (connection sql &rest args) #<bytecode -0x98cadbffec43024>) #<emacsql-sqlite-connection emacsql-sqlite-connection-156a4d619fde> ([:pragma (= busy-timeout $s1)] 15000))
  emacsql(#<emacsql-sqlite-connection emacsql-sqlite-connection-156a4d619fde> [:pragma (= busy-timeout $s1)] 15000)
  #f(compiled-function (connection &rest rest) #<bytecode -0x89914dfe87f06ce>)(#<emacsql-sqlite-connection emacsql-sqlite-connection-156a4d619fde> (:file "/home/trismegistus/organum/org-roam.db"))
  apply(#f(compiled-function (connection &rest rest) #<bytecode -0x89914dfe87f06ce>) (#<emacsql-sqlite-connection emacsql-sqlite-connection-156a4d619fde> (:file "/home/trismegistus/organum/org-roam.db")))
  #f(compiled-function (&rest args) #<bytecode 0x1d0de56ae1e85221>)(#<emacsql-sqlite-connection emacsql-sqlite-connection-156a4d619fde> (:file "/home/trismegistus/organum/org-roam.db"))
  apply(#f(compiled-function (&rest args) #<bytecode 0x1d0de56ae1e85221>) #<emacsql-sqlite-connection emacsql-sqlite-connection-156a4d619fde> (:file "/home/trismegistus/organum/org-roam.db"))
  initialize-instance(#<emacsql-sqlite-connection emacsql-sqlite-connection-156a4d619fde> (:file "/home/trismegistus/organum/org-roam.db"))
  #f(compiled-function (class &rest slots) "Default constructor for CLASS `eieio-default-superclass'.\nSLOTS are the initialization slots used by `initialize-instance'.\nThis static method is called when an object is constructed.\nIt allocates the vector used to represent an EIEIO object, and then\ncalls `initialize-instance' on that object." #<bytecode 0x1836ca04480d595e>)(emacsql-sqlite-connection :file "/home/trismegistus/organum/org-roam.db")
  apply(#f(compiled-function (class &rest slots) "Default constructor for CLASS `eieio-default-superclass'.\nSLOTS are the initialization slots used by `initialize-instance'.\nThis static method is called when an object is constructed.\nIt allocates the vector used to represent an EIEIO object, and then\ncalls `initialize-instance' on that object." #<bytecode 0x1836ca04480d595e>) emacsql-sqlite-connection (:file "/home/trismegistus/organum/org-roam.db"))
  make-instance(emacsql-sqlite-connection :file "/home/trismegistus/organum/org-roam.db")
  emacsql-sqlite("/home/trismegistus/organum/org-roam.db")
  org-roam-db()
  org-roam-db-query("SELECT\n  id,\n  file,\n  filetitle,\n  \"level\",\n  tod...")
  org-roam-node-list()
  org-roam-node-read--completions(nil nil)
  consult-org-roam-node-read(nil nil nil nil nil)
  apply(consult-org-roam-node-read (nil nil nil))
  org-roam-node-read(nil nil nil)
  org-roam-node-find()
  funcall-interactively(org-roam-node-find)
  command-execute(org-roam-node-find)

Expected Results

Org-roam-node-find buffer opens allowing me to select a file.

Actual Results

Buffer fails to populate and instead get "Selecting deleted buffer"

Environment

Copy info below this line into issue:

  • Emacs: GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) of 2023-01-24
  • Framework: N/A
  • Org: Org mode version 9.5.5 (9.5.5-g2d3802 @ /home/trismegistus/.config/flux-emacs/.local/packages/29.0/straight/build/org/)
  • Org-roam: v2.2.2-23-gd95d256
  • sqlite-connector: sqlite

joyguar avatar Jan 25 '23 01:01 joyguar

Try this if on Emacs version >= 29

  (use-package emacsql-sqlite-builtin)
  (setq org-roam-database-connector 'sqlite-builtin)

I have it on my org-roam use-package's declaration :init.

dangom avatar Jan 26 '23 19:01 dangom

I've tried the above (I am on emacs 29) and I get an "invalid-slot-type" error when I execute the org-roam use-package declaration. Here's my config, followed by the error:

  (use-package emacsql-sqlite-builtin :pin melpa)

  (use-package org-roam
    :pin melpa
    :after (org emacsql-sqlite-builtin)

    :ensure t
    :custom
    (org-roam-db-location stag-org-roam-db-location)
    (org-roam-v2-ack t)
    (org-roam-directory stag-org-roam-directory)
    (org-roam-database-connector 'sqlite-builtin)
    :config
    (org-roam-db-autosync-mode)
    ;:hook
    ;(after-init . org-roam-mode)
    :bind
    ("C-c n l" . org-roam-buffer-toggle)
    ("C-c n t" . org-roam-dailies-goto-today)
    ("C-c n f" . org-roam-node-find)
    ("C-c n i" . org-roam-node-insert)
    ("C-c n g" . org-roam-graph))
Debugger entered--Lisp error: (invalid-slot-type emacsql-sqlite-builtin-connection process process #<sqlite db=0x557a0d5944b8 name=/home/stag/.emacs.d/local-files/org-roam.db>)
  signal(invalid-slot-type (emacsql-sqlite-builtin-connection process process #<sqlite db=0x557a0d5944b8 name=/home/stag/.emacs.d/local-files/org-roam.db>))
  eieio--validate-slot-value(#s(eieio--class :name emacsql-sqlite-builtin-connection :docstring nil :parents (#s(eieio--class :name emacsql-connection :docstring nil :parents nil :slots [#s(cl-slot-descriptor :name process :initform 'eieio--unbound :type process :props nil) #s(cl-slot-descriptor :name log-buffer :initform nil :type (or null buffer) :props ((:documentation . "Output log (debug)."))) #s(cl-slot-descriptor :name finalizer :initform 'eieio--unbound :type t :props ((:documentation . "Object returned from `make-finalizer'.")))] :index-table #<hash-table eq 3/65 0x155e842332d5> :children (emacsql-sqlite-builtin-connection emacsql-sqlite-connection) :initarg-tuples ((:process . process) (:log-buffer . log-buffer)) :class-slots [#s(cl-slot-descriptor :name types :initform nil :type t :props ((:documentation . "Maps EmacSQL types to SQL types.")))] :class-allocation-values [nil] :default-object-cache #<emacsql-connection emacsql-connection-155e8423340e> :options (:custom-groups nil (:documentation "A connection to a SQL database.") :abstract t))) :slots [#s(cl-slot-descriptor :name process :initform 'eieio--unbound :type process :props nil) #s(cl-slot-descriptor :name log-buffer :initform nil :type (or null buffer) :props ((:documentation . "Output log (debug)."))) #s(cl-slot-descriptor :name finalizer :initform 'eieio--unbound :type t :props ((:documentation . "Object returned from `make-finalizer'."))) #s(cl-slot-descriptor :name file :initform 'eieio--unbound :type (or null string) :props ((:documentation . "Database file name.")))] :index-table #<hash-table eq 4/65 0x155e84fad015> :children nil :initarg-tuples ((:process . process) (:log-buffer . log-buffer) (:file . file)) :class-slots [#s(cl-slot-descriptor :name types :initform '((integer "INTEGER") (float "REAL") (object "TEXT") (nil nil)) :type t :props ((:documentation . "Maps EmacSQL types to SQL types.")))] :class-allocation-values [((integer "INTEGER") (float "REAL") (object "TEXT") (nil nil))] :default-object-cache #<emacsql-sqlite-builtin-connection emacsql-sqlite-builtin-connection-155e8482cae0> :options (:custom-groups nil (:documentation "A connection to a SQLite database using builtin su..."))) 1 #<sqlite db=0x557a0d5944b8 name=/home/stag/.emacs.d/local-files/org-roam.db> process)
  eieio-oset(#<emacsql-sqlite-builtin-connection emacsql-sqlite-builtin-connection-155e84a978a2> process #<sqlite db=0x557a0d5944b8 name=/home/stag/.emacs.d/local-files/org-roam.db>)
  #f(compiled-function (value this) #<bytecode 0x1803028aac5f3c42>)(#<sqlite db=0x557a0d5944b8 name=/home/stag/.emacs.d/local-files/org-roam.db> #<emacsql-sqlite-builtin-connection emacsql-sqlite-builtin-connection-155e84a978a2>)
  apply(#f(compiled-function (value this) #<bytecode 0x1803028aac5f3c42>) #<sqlite db=0x557a0d5944b8 name=/home/stag/.emacs.d/local-files/org-roam.db> #<emacsql-sqlite-builtin-connection emacsql-sqlite-builtin-connection-155e84a978a2> nil)
  \(setf\ emacsql-process\)(#<sqlite db=0x557a0d5944b8 name=/home/stag/.emacs.d/local-files/org-roam.db> #<emacsql-sqlite-builtin-connection emacsql-sqlite-builtin-connection-155e84a978a2>)
  #f(compiled-function (#<emacsql-sqlite-builtin-connection emacsql-sqlite-builtin-connection-155e84a978a2> (:file "~/.emacs.d/local-files/org-roam.db"))
  apply(#f(compiled-function 
  #f(compiled-function (&rest args) #<bytecode 0x638722828eaff9c>)(#<emacsql-sqlite-builtin-connection emacsql-sqlite-builtin-connection-155e84a978a2> (:file "~/.emacs.d/local-files/org-roam.db"))
  apply(#f(compiled-function (&rest args) #<bytecode 0x638722828eaff9c>) #<emacsql-sqlite-builtin-connection emacsql-sqlite-builtin-connection-155e84a978a2> (:file "~/.emacs.d/local-files/org-roam.db"))
  initialize-instance(#<emacsql-sqlite-builtin-connection emacsql-sqlite-builtin-connection-155e84a978a2> (:file "~/.emacs.d/local-files/org-roam.db"))
  #f(compiled-function (class &rest slots) "Default constructor for CLASS `eieio-default-superclass'.\nSLOTS are the initialization slots used by `initialize-instance'.\nThis static method is called when an object is constructed.\nIt allocates the vector used to represent an EIEIO object, and then\ncalls `initialize-instance' on that object." #<bytecode -0x13a0935c5de39ea2>)(emacsql-sqlite-builtin-connection :file "~/.emacs.d/local-files/org-roam.db")
  apply(#f(compiled-function (class &rest slots) "Default constructor for CLASS `eieio-default-superclass'.\nSLOTS are the initialization slots used by `initialize-instance'.\nThis static method is called when an object is constructed.\nIt allocates the vector used to represent an EIEIO object, and then\ncalls `initialize-instance' on that object." #<bytecode -0x13a0935c5de39ea2>) emacsql-sqlite-builtin-connection (:file "~/.emacs.d/local-files/org-roam.db"))
  make-instance(emacsql-sqlite-builtin-connection :file "~/.emacs.d/local-files/org-roam.db")
  emacsql-sqlite-builtin("~/.emacs.d/local-files/org-roam.db")
  org-roam-db()
  org-roam-db-sync()
  org-roam-db-autosync-mode()
  (progn (org-roam-db-autosync-mode) t)
  (condition-case err (progn (org-roam-db-autosync-mode) t) ((debug error) (funcall use-package--warning109 :config err)))
  (lambda nil (condition-case err (progn (org-roam-db-autosync-mode) t) ((debug error) (funcall use-package--warning109 :config err))))()
  eval-after-load(org-roam (lambda nil (condition-case err (progn (org-roam-db-autosync-mode) t) ((debug error) (funcall use-package--warning109 :config err)))))
  (progn (let ((custom--inhibit-theme-enable nil)) (if (memq 'use-package custom-known-themes) nil (custom-declare-theme 'use-package 'use-package-theme nil (list)) (enable-theme 'use-package) (setq custom-enabled-themes (remq 'use-package custom-enabled-themes))) (custom-theme-set-variables 'use-package '(org-roam-db-location stag-org-roam-db-location nil nil "Customized with use-package org-roam") '(org-roam-v2-ack t nil nil "Customized with use-package org-roam") '(org-roam-directory stag-org-roam-directory nil nil "Customized with use-package org-roam") '(org-roam-database-connector 'sqlite-builtin nil nil "Customized with use-package org-roam"))) (if (fboundp 'org-roam-buffer-toggle) nil (autoload #'org-roam-buffer-toggle "org-roam" nil t)) (if (fboundp 'org-roam-dailies-goto-today) nil (autoload #'org-roam-dailies-goto-today "org-roam" nil t)) (if (fboundp 'org-roam-node-find) nil (autoload #'org-roam-node-find "org-roam" nil t)) (if (fboundp 'org-roam-node-insert) nil (autoload #'org-roam-node-insert "org-roam" nil t)) (if (fboundp 'org-roam-graph) nil (autoload #'org-roam-graph "org-roam" nil t)) (eval-after-load 'org-roam #'(lambda nil (condition-case err (progn (org-roam-db-autosync-mode) t) ((debug error) (funcall use-package--warning109 :config err))))) (progn (let* ((name "C-c n l") (key [3 110 108]) (kmap (or (if (and nil ...) (symbol-value nil) nil) global-map)) (kdesc (cons (if (stringp name) name (key-description name)) (if (symbolp nil) nil 'nil))) (binding (lookup-key kmap key))) (let ((entry (assoc kdesc personal-keybindings)) (details (list #'org-roam-buffer-toggle (if ... nil binding)))) (if entry (setcdr entry details) (add-to-list 'personal-keybindings (cons kdesc details)))) (define-key kmap key #'org-roam-buffer-toggle)) (let* ((name "C-c n t") (key [3 110 116]) (kmap (or (if (and nil ...) (symbol-value nil) nil) global-map)) (kdesc (cons (if (stringp name) name (key-description name)) (if (symbolp nil) nil 'nil))) (binding (lookup-key kmap key))) (let ((entry (assoc kdesc personal-keybindings)) (details (list #'org-roam-dailies-goto-today (if ... nil binding)))) (if entry (setcdr entry details) (add-to-list 'personal-keybindings (cons kdesc details)))) (define-key kmap key #'org-roam-dailies-goto-today)) (let* ((name "C-c n f") (key [3 110 102]) (kmap (or (if (and nil ...) (symbol-value nil) nil) global-map)) (kdesc (cons (if (stringp name) name (key-description name)) (if (symbolp nil) nil 'nil))) (binding (lookup-key kmap key))) (let ((entry (assoc kdesc personal-keybindings)) (details (list #'org-roam-node-find (if ... nil binding)))) (if entry (setcdr entry details) (add-to-list 'personal-keybindings (cons kdesc details)))) (define-key kmap key #'org-roam-node-find)) (let* ((name "C-c n i") (key [3 110 105]) (kmap (or (if (and nil ...) (symbol-value nil) nil) global-map)) (kdesc (cons (if (stringp name) name (key-description name)) (if (symbolp nil) nil 'nil))) (binding (lookup-key kmap key))) (let ((entry (assoc kdesc personal-keybindings)) (details (list #'org-roam-node-insert (if ... nil binding)))) (if entry (setcdr entry details) (add-to-list 'personal-keybindings (cons kdesc details)))) (define-key kmap key #'org-roam-node-insert)) (let* ((name "C-c n g") (key [3 110 103]) (kmap (or (if (and nil ...) (symbol-value nil) nil) global-map)) (kdesc (cons (if (stringp name) name (key-description name)) (if (symbolp nil) nil 'nil))) (binding (lookup-key kmap key))) (let ((entry (assoc kdesc personal-keybindings)) (details (list #'org-roam-graph (if ... nil binding)))) (if entry (setcdr entry details) (add-to-list 'personal-keybindings (cons kdesc details)))) (define-key kmap key #'org-roam-graph))))
  (lambda nil (progn (let ((custom--inhibit-theme-enable nil)) (if (memq 'use-package custom-known-themes) nil (custom-declare-theme 'use-package 'use-package-theme nil (list)) (enable-theme 'use-package) (setq custom-enabled-themes (remq 'use-package custom-enabled-themes))) (custom-theme-set-variables 'use-package '(org-roam-db-location stag-org-roam-db-location nil nil "Customized with use-package org-roam") '(org-roam-v2-ack t nil nil "Customized with use-package org-roam") '(org-roam-directory stag-org-roam-directory nil nil "Customized with use-package org-roam") '(org-roam-database-connector 'sqlite-builtin nil nil "Customized with use-package org-roam"))) (if (fboundp 'org-roam-buffer-toggle) nil (autoload #'org-roam-buffer-toggle "org-roam" nil t)) (if (fboundp 'org-roam-dailies-goto-today) nil (autoload #'org-roam-dailies-goto-today "org-roam" nil t)) (if (fboundp 'org-roam-node-find) nil (autoload #'org-roam-node-find "org-roam" nil t)) (if (fboundp 'org-roam-node-insert) nil (autoload #'org-roam-node-insert "org-roam" nil t)) (if (fboundp 'org-roam-graph) nil (autoload #'org-roam-graph "org-roam" nil t)) (eval-after-load 'org-roam #'(lambda nil (condition-case err (progn (org-roam-db-autosync-mode) t) ((debug error) (funcall use-package--warning109 :config err))))) (progn (let* ((name "C-c n l") (key [3 110 108]) (kmap (or (if ... ... nil) global-map)) (kdesc (cons (if ... name ...) (if ... nil ...))) (binding (lookup-key kmap key))) (let ((entry (assoc kdesc personal-keybindings)) (details (list ... ...))) (if entry (setcdr entry details) (add-to-list 'personal-keybindings (cons kdesc details)))) (define-key kmap key #'org-roam-buffer-toggle)) (let* ((name "C-c n t") (key [3 110 116]) (kmap (or (if ... ... nil) global-map)) (kdesc (cons (if ... name ...) (if ... nil ...))) (binding (lookup-key kmap key))) (let ((entry (assoc kdesc personal-keybindings)) (details (list ... ...))) (if entry (setcdr entry details) (add-to-list 'personal-keybindings (cons kdesc details)))) (define-key kmap key #'org-roam-dailies-goto-today)) (let* ((name "C-c n f") (key [3 110 102]) (kmap (or (if ... ... nil) global-map)) (kdesc (cons (if ... name ...) (if ... nil ...))) (binding (lookup-key kmap key))) (let ((entry (assoc kdesc personal-keybindings)) (details (list ... ...))) (if entry (setcdr entry details) (add-to-list 'personal-keybindings (cons kdesc details)))) (define-key kmap key #'org-roam-node-find)) (let* ((name "C-c n i") (key [3 110 105]) (kmap (or (if ... ... nil) global-map)) (kdesc (cons (if ... name ...) (if ... nil ...))) (binding (lookup-key kmap key))) (let ((entry (assoc kdesc personal-keybindings)) (details (list ... ...))) (if entry (setcdr entry details) (add-to-list 'personal-keybindings (cons kdesc details)))) (define-key kmap key #'org-roam-node-insert)) (let* ((name "C-c n g") (key [3 110 103]) (kmap (or (if ... ... nil) global-map)) (kdesc (cons (if ... name ...) (if ... nil ...))) (binding (lookup-key kmap key))) (let ((entry (assoc kdesc personal-keybindings)) (details (list ... ...))) (if entry (setcdr entry details) (add-to-list 'personal-keybindings (cons kdesc details)))) (define-key kmap key #'org-roam-graph)))))()
  eval-after-load(org (lambda nil (progn (let ((custom--inhibit-theme-enable nil)) (if (memq 'use-package custom-known-themes) nil (custom-declare-theme 'use-package 'use-package-theme nil (list)) (enable-theme 'use-package) (setq custom-enabled-themes (remq 'use-package custom-enabled-themes))) (custom-theme-set-variables 'use-package '(org-roam-db-location stag-org-roam-db-location nil nil "Customized with use-package org-roam") '(org-roam-v2-ack t nil nil "Customized with use-package org-roam") '(org-roam-directory stag-org-roam-directory nil nil "Customized with use-package org-roam") '(org-roam-database-connector 'sqlite-builtin nil nil "Customized with use-package org-roam"))) (if (fboundp 'org-roam-buffer-toggle) nil (autoload #'org-roam-buffer-toggle "org-roam" nil t)) (if (fboundp 'org-roam-dailies-goto-today) nil (autoload #'org-roam-dailies-goto-today "org-roam" nil t)) (if (fboundp 'org-roam-node-find) nil (autoload #'org-roam-node-find "org-roam" nil t)) (if (fboundp 'org-roam-node-insert) nil (autoload #'org-roam-node-insert "org-roam" nil t)) (if (fboundp 'org-roam-graph) nil (autoload #'org-roam-graph "org-roam" nil t)) (eval-after-load 'org-roam #'(lambda nil (condition-case err (progn ... t) (... ...)))) (progn (let* ((name "C-c n l") (key [3 110 108]) (kmap (or ... global-map)) (kdesc (cons ... ...)) (binding (lookup-key kmap key))) (let ((entry ...) (details ...)) (if entry (setcdr entry details) (add-to-list ... ...))) (define-key kmap key #'org-roam-buffer-toggle)) (let* ((name "C-c n t") (key [3 110 116]) (kmap (or ... global-map)) (kdesc (cons ... ...)) (binding (lookup-key kmap key))) (let ((entry ...) (details ...)) (if entry (setcdr entry details) (add-to-list ... ...))) (define-key kmap key #'org-roam-dailies-goto-today)) (let* ((name "C-c n f") (key [3 110 102]) (kmap (or ... global-map)) (kdesc (cons ... ...)) (binding (lookup-key kmap key))) (let ((entry ...) (details ...)) (if entry (setcdr entry details) (add-to-list ... ...))) (define-key kmap key #'org-roam-node-find)) (let* ((name "C-c n i") (key [3 110 105]) (kmap (or ... global-map)) (kdesc (cons ... ...)) (binding (lookup-key kmap key))) (let ((entry ...) (details ...)) (if entry (setcdr entry details) (add-to-list ... ...))) (define-key kmap key #'org-roam-node-insert)) (let* ((name "C-c n g") (key [3 110 103]) (kmap (or ... global-map)) (kdesc (cons ... ...)) (binding (lookup-key kmap key))) (let ((entry ...) (details ...)) (if entry (setcdr entry details) (add-to-list ... ...))) (define-key kmap key #'org-roam-graph))))))
  (lambda nil (eval-after-load 'org #'(lambda nil (progn (let ((custom--inhibit-theme-enable nil)) (if (memq ... custom-known-themes) nil (custom-declare-theme ... ... nil ...) (enable-theme ...) (setq custom-enabled-themes ...)) (custom-theme-set-variables 'use-package '... '... '... '...)) (if (fboundp 'org-roam-buffer-toggle) nil (autoload #'org-roam-buffer-toggle "org-roam" nil t)) (if (fboundp 'org-roam-dailies-goto-today) nil (autoload #'org-roam-dailies-goto-today "org-roam" nil t)) (if (fboundp 'org-roam-node-find) nil (autoload #'org-roam-node-find "org-roam" nil t)) (if (fboundp 'org-roam-node-insert) nil (autoload #'org-roam-node-insert "org-roam" nil t)) (if (fboundp 'org-roam-graph) nil (autoload #'org-roam-graph "org-roam" nil t)) (eval-after-load 'org-roam #'(lambda nil ...)) (progn (let* (... ... ... ... ...) (let ... ...) (define-key kmap key ...)) (let* (... ... ... ... ...) (let ... ...) (define-key kmap key ...)) (let* (... ... ... ... ...) (let ... ...) (define-key kmap key ...)) (let* (... ... ... ... ...) (let ... ...) (define-key kmap key ...)) (let* (... ... ... ... ...) (let ... ...) (define-key kmap key ...)))))))()
  eval-after-load(emacsql-sqlite-builtin (lambda nil (eval-after-load 'org #'(lambda nil (progn (let (...) (if ... nil ... ... ...) (custom-theme-set-variables ... ... ... ... ...)) (if (fboundp ...) nil (autoload ... "org-roam" nil t)) (if (fboundp ...) nil (autoload ... "org-roam" nil t)) (if (fboundp ...) nil (autoload ... "org-roam" nil t)) (if (fboundp ...) nil (autoload ... "org-roam" nil t)) (if (fboundp ...) nil (autoload ... "org-roam" nil t)) (eval-after-load 'org-roam #'...) (progn (let* ... ... ...) (let* ... ... ...) (let* ... ... ...) (let* ... ... ...) (let* ... ... ...)))))))
  (condition-case err (eval-after-load 'emacsql-sqlite-builtin #'(lambda nil (eval-after-load 'org #'(lambda nil (progn ... ... ... ... ... ... ... ...))))) ((debug error) (funcall use-package--warning109 :catch err)))
  (progn (use-package-pin-package 'org-roam "melpa") (use-package-ensure-elpa 'org-roam '(t) 'nil) (defvar use-package--warning109 #'(lambda (keyword err) (let ((msg (format "%s/%s: %s" ... keyword ...))) (display-warning 'use-package msg :error)))) (condition-case err (eval-after-load 'emacsql-sqlite-builtin #'(lambda nil (eval-after-load 'org #'(lambda nil ...)))) ((debug error) (funcall use-package--warning109 :catch err))))
  eval((progn (use-package-pin-package 'org-roam "melpa") (use-package-ensure-elpa 'org-roam '(t) 'nil) (defvar use-package--warning109 #'(lambda (keyword err) (let ((msg ...)) (display-warning 'use-package msg :error)))) (condition-case err (eval-after-load 'emacsql-sqlite-builtin #'(lambda nil (eval-after-load 'org #'...))) ((debug error) (funcall use-package--warning109 :catch err)))) nil)
  elisp--eval-last-sexp(nil)
  eval-last-sexp(nil)
  funcall-interactively(eval-last-sexp nil)
  call-interactively(eval-last-sexp nil nil)
  command-execute(eval-last-sexp)

Trevoke avatar Feb 17 '23 18:02 Trevoke

Try this if on Emacs version >= 29

  (use-package emacsql-sqlite-builtin)
  (setq org-roam-database-connector 'sqlite-builtin)

I have it on my org-roam use-package's declaration :init.

That's fixed the issue for me (Emacs 29.0.60 commit 94e70ed).

robmoss avatar Feb 23 '23 14:02 robmoss

This doesn't work for me. GNU Emacs 29.1.50 (build 1, x86_64-apple-darwin22.5.0, NS appkit-2299.60 Version 13.4.1 (c) (Build 22F770820d)) of 2023-08-02

LuciusChen avatar Aug 03 '23 08:08 LuciusChen

But I found that at the beginning there would be an error message saying "selecting deleted buffer", but after a period of idle time, it no longer occurs.

LuciusChen avatar Aug 03 '23 08:08 LuciusChen