Spacemacs: More than one init function found for package org-roam

I’m using the development branch of spacemacs. After updating today the org-roam package, I now get on startup the warning

Warning: More than one init function found for package org-roam. Previous owner was org, replacing it with layer org-roam.

Looks like Spacemacs just added org-roam layer to development branch.

I don’t use Spacemancs but I suppose it’s a good thing for you as a user.

And… I guess when you say “you upgraded org-roam package” you used some Spacemacs way of package updates (?).

Can you change your org layer’s init file and keep the now-standard init in org-roam layer?

There may be someone in this forum who has an experience in removing this warning… If you would like a fix quick, you might like to ask a Spacemacs community for advice.

2 Likes

Yes, you are right. I just saw that the latest commit on the development branch mentions a new org-roam layer which probably clashed with my manual installation.

However, I just tried to install spacemacs from scratch and adding the org-roam layer results in a warning - Unknown layer org-roam declared in dotfile.

I’ll ask on a spacemacs forum. Thanks anyway!

1 Like

Looks like you need to include org-roam like this now:

(org :variables
     org-enable-roam-support t)

and remove the previous reference to your org-roam layer.

1 Like

That works, thanks!