Open ramos opened 11 months ago
My understanding of what we need to do here (from asking this question a long time ago) is that you need something like the following.
First, make sure emacs 29 is configured with sqlite support (unsure it's possible to compile it without, but turn it off and on again, you know?)
Then:
(use-package emacsql-sqlite-builtin :pin melpa)
(use-package org-roam
:pin melpa
:after org
:after (org emacsql-sqlite-builtin)
:ensure t
:custom
(org-roam-database-connector 'sqlite-builtin))
I believe this will get you up and running.
With your suggested changes, I get the error message:
Debugger entered--Lisp error: (error "Archive ’melpa’ requested for package ’emacsql-sql...")
error("Archive '%s' requested for package '%s' is not available" "melpa" emacsql-sqlite-builtin)
But If I remove the :pin melpa
everything seems to work now
Many thanks
Ah sorry, that was the last bit specific to my config. Glad it's working for you now :D
But yes, this is probably worth a section in the documentation somewhere, I couldn't find it yesterday.
Certainly this should be written down somewhere in the documentation
Many thanks!
A.
The emacsql-sqlite-builtin
package does not seem to be available yet in melpa-stable. Any idea if this is simply a matter of melpa-stable shipping code that is not yet fully compatible with Emacs 29.1, or is there some other action to fix this for a user that uses Emacs 29.1 and melpa-stable?
That is ... Probably a matter of asking the emacsql-sqlite-builtin
folks to create a stable tag. There's a divergence in the emacs community about the importance of stable tags, IIRC (I believe there's an open issue on the melpa repository about it, holding the conversation).
Note that this is purely conjecture on my part.
For others reading this, the MacOS build of 29.1 that is posted at https://emacsformacosx.com/ does not appear to have been built with sqlite support.
But the version at https://github.com/railwaycat/homebrew-emacsmacport does have sqlite builtin. More testing needed, but it's the best pre-compiled Mac version I've found so far.
Description
After upgrading emacs, and pulling the latest version of all repos (using straight), org-roam fails to connect to the database:
Steps to Reproduce
Installing org-roam, with this config:
crashes.
Backtrace
Expected Results
working org-roam
Actual Results
org-roam fails
Environment
void linux on emacs 20.0.92