I am working on Debian 12 with xfce4.--
I installed emacs 29.1 from backports because I want to try out
org-roam.
When looking at:
https://www.orgroam.com/manual.html#Setting-up-Org_002droam
Then the following should be enough:
(setq org-roam-directory (file-truename "~/org/roam"))
(org-roam-db-autosync-mode)
But I get:
Debugger entered--Lisp error: (emacsql-error "incomplete input" 1)
signal(emacsql-error ("incomplete input" 1))
#f(compiled-function (_ code message) "Get condition for MESSAGE provided from SQLite." #<bytecode -0x1efd49e407452c74>)(#<emacsql-sqlite-connection emacsql-sqlite-connection-155a293a3c32> 1 "incomplete input")
apply(#f(compiled-function (_ code message) "Get condition for MESSAGE provided from SQLite." #<bytecode -0x1efd49e407452c74>) #<emacsql-sqlite-connection emacsql-sqlite-connection-155a293a3c32> (1 "incomplete input"))
emacsql-handle(#<emacsql-sqlite-connection emacsql-sqlite-connection-155a293a3c32> 1 "incomplete input")
#f(compiled-function (connection) "Parse well-formed output into an s-expression." #<bytecode 0x6ae616b26e89a6a>)(#<emacsql-sqlite-connection emacsql-sqlite-connection-155a293a3c32>)
apply(#f(compiled-function (connection) "Parse well-formed output into an s-expression." #<bytecode 0x6ae616b26e89a6a>) #<emacsql-sqlite-connection emacsql-sqlite-connection-155a293a3c32> nil)
emacsql-parse(#<emacsql-sqlite-connection emacsql-sqlite-connection-155a293a3c32>)
#f(compiled-function (connection sql &rest args) #<bytecode -0x98d231c19cc83a4>)(#<emacsql-sqlite-connection emacsql-sqlite-connection-155a293a3c32> [:create-index $i1 :on $i2 $S3] alias-node-id aliases [node-id])
apply(#f(compiled-function (connection sql &rest args) #<bytecode -0x98d231c19cc83a4>) #<emacsql-sqlite-connection emacsql-sqlite-connection-155a293a3c32> ([:create-index $i1 :on $i2 $S3] alias-node-id aliases [node-id]))
emacsql(#<emacsql-sqlite-connection emacsql-sqlite-connection-155a293a3c32> [:create-index $i1 :on $i2 $S3] alias-node-id aliases [node-id])
org-roam-db--init(#<emacsql-sqlite-connection emacsql-sqlite-connection-155a293a3c32>)
org-roam-db()
org-roam-db-sync(t)
org-roam-db--upgrade-maybe(#<emacsql-sqlite-connection emacsql-sqlite-connection-155a29395310> 0)
org-roam-db()
org-roam-db-sync()
org-roam-db-autosync-mode()
elisp--eval-last-sexp(nil)
eval-last-sexp(nil)
funcall-interactively(eval-last-sexp nil)
command-execute(eval-last-sexp)
And when I close that, I also see:
Debugger entered--Lisp error: (error "Process emacsql-sqlite not running: finished\n")
process-send-string(#<process emacsql-sqlite> "9 ")
#f(compiled-function (connection message) #<bytecode 0x625692ba2c5664a>)(#<emacsql-sqlite-connection emacsql-sqlite-connection-155a29395310> "ROLLBACK;")
apply(#f(compiled-function (connection message) #<bytecode 0x625692ba2c5664a>) (#<emacsql-sqlite-connection emacsql-sqlite-connection-155a29395310> "ROLLBACK;"))
#f(compiled-function (&rest args) #<bytecode -0x1f3d5346d8e5b31c>)(#<emacsql-sqlite-connection emacsql-sqlite-connection-155a29395310> "ROLLBACK;")
apply(#f(compiled-function (&rest args) #<bytecode -0x1f3d5346d8e5b31c>) #<emacsql-sqlite-connection emacsql-sqlite-connection-155a29395310> "ROLLBACK;")
emacsql-send-message(#<emacsql-sqlite-connection emacsql-sqlite-connection-155a29395310> "ROLLBACK;")
#f(compiled-function (connection sql &rest args) #<bytecode -0x98d231c19cc83a4>)(#<emacsql-sqlite-connection emacsql-sqlite-connection-155a29395310> [:rollback])
apply(#f(compiled-function (connection sql &rest args) #<bytecode -0x98d231c19cc83a4>) #<emacsql-sqlite-connection emacsql-sqlite-connection-155a29395310> [:rollback])
emacsql(#<emacsql-sqlite-connection emacsql-sqlite-connection-155a29395310> [:rollback])
#f(compiled-function () #<bytecode 0x3533fbf87f28899>)()
org-roam-db--upgrade-maybe(#<emacsql-sqlite-connection emacsql-sqlite-connection-155a29395310> 0)
org-roam-db()
org-roam-db-sync()
org-roam-db-autosync-mode()
elisp--eval-last-sexp(nil)
eval-last-sexp(nil)
funcall-interactively(eval-last-sexp nil)
command-execute(eval-last-sexp)
I extended the initialisation to:
(use-package emacsql-sqlite
:ensure t
)
(setq org-roam-database-connector 'sqlite)
(setq org-roam-directory (file-truename "~/org/roam"))
(setq org-roam-db-location (file-truename "~/Databases/org-roam.sqlite"))
(use-package org-roam
:ensure t)
(org-roam-db-autosync-mode)
But that did not change anything.
What could be happening here?
It seems that emacsql-sqlite is not running.
But why? How do I get it started?
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 00:45:41 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
10 files (20,373K bytes) |
| Messages: | 264,078 |