๐Ÿ“š node [[updating to org roam 1 2 3]]

Updating to org-roam 1.2.3

[[org-roam]] 1.2.3 came out on 13th November 2020.

Update steps

  • SPC f e U to invoke configuration-layer/update-packages (spacemacs' update packages command).
    • Updates all packages, not just org-roam - is there a way to do just one?
    • Open org-roam - it needs to update the DB from v9 to v10.
      • This is taking a few minutes for my >1000 files.
      • And it has frozenโ€ฆ is it because I edited a file while it was in progress?
        • I cancelled the operation. Now if I do org-roam-db-build-cache, it doesn't do anything process any more files.
        • Restarted, nothing happened.
        • Superficially appears OK, but I'm wondering what will be the deal with those 500 or so files that didn't get processed? I'll just use it and see.

Things that broke

I noticed that my backlinks weren't publishing. This might have already been happening anyway, and I just noticed. But here were the issues:

So I've updated commonplace/org-roam--backlinks-list function with these changes.

I noticed here that Jethro has a slightly different function for this these days - I wonder if the logic here would be worth adding to mine too.

In addition to this, while debugging I noticed I was looking at the wrong DB location - I was personally looking at the DB in the project folder, but org-roam was looking at the DB in .emacs.d. I have a feeling my publish.el was also looking in the project folder, but not confirmed. For now I've updated publish.el to explicitly look at emacs.d location with (setq org-roam-db-location "/home/neil/.emacs.d/org-roam.db"), but I'd actually rather they both looked in the project directory. Will have to see what happened to my .dir-locals.el.

UPDATE: yeah it turns out org-roam-db-location needs setting in dir-locals: https://www.orgroam.com/manual.html#How-do-I-have-more-than-one-Org_002droam-directory_003f . This seems to have been the case for a while though, so not sure why this changed recently.

New features

The main one of interest to me looks like Revamp org-roam-dailies. Although, from watching the video, it doesn't seem to do anything that I wasn't already doing? I use org-roam-dailies-today, and I already had org-roam-dailies-capture-templates set up.

Actually now I get the message -

โ€˜org-roam-dailies-todayโ€™ is an obsolete command (as of org-roam 1.2.2); use โ€˜org-roam-dailies-find-todayโ€™ instead.

pull color="#b51f08"> <title>500 Internal Error wtf.
<link rel="stylesheet" href="https://doc.anagora.org/css/center.css"> <button class="pull-url" value="https://doc.anagora.org/css/center.css">">pull</button>
<div class="container-fluid text-center">
    <div class="vertical-center-row">
        <h1>500 Internal Error <small>wtf.</small></h1>
    </div>
</div>
๐Ÿ“– stoas
โฅฑ context