org-roam-server: preview doesn't work with emacsclient/emacs --daemon

hello,

I am new to emacs and doom-emacs so perhaps I am missing something.

But it seems that “preview” of org-roam files fails with “404 Not Found” error when I launch org-roam-server from emacsclient (M-x org-roam-server-mode RET) when I use emacs --daemon. Furthermore, when I run M-x org-roam-server-mode RET from emacsclient with emacs daemon, I get one error wrong type argument: listp, sp-text-mode-emoticon-p.

However, if I run M-x org-roam-server-mode RET without daemon mode of emacs, I don’t get the previous error and preview works right.

Regards,

More info:

  • using emacs-doom
  • using the configuration of org-roam-server proposed in the README file of this repo

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 18 (6 by maintainers)

Most upvoted comments

Recently, I have met this error after I uprade doom-emacs. When I try to disable smartparens on doom, it works fine again.

Screen Shot 2020-08-11 at 4 42 09 PM

I guess this error is caused by doom-emacs (not this package) when using a wrong hook somewhere for smartparens.

I’m not sure, that I have the same issue. But I had troubles with preview in doom.

I couldn’t figure out reasons, but I found workaround. I add (org-roam-server-mode) in the config.el to start org-roam-server together with emacs. Because when I run org-roam-server from opened org-mode buffer, I see the same 404-error.

So I think a place where org-roam-server was started makes difference. In total I recommend to check it.

This might be the solution rather than a workaround

(unless (server-running-p)
  (org-roam-server-mode))

I’m not sure, that I have the same issue. But I had troubles with preview in doom.

I couldn’t figure out reasons, but I found workaround. I add (org-roam-server-mode) in the config.el to start org-roam-server together with emacs. Because when I run org-roam-server from opened org-mode buffer, I see the same 404-error.

So I think a place where org-roam-server was started makes difference. In total I recommend to check it.