-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error at start. #116
Comments
There are 2 places where the (f-full (or
load-file-name
buffer-file-name)) |
Hello,
I did set rg-roam-server-export-inline-images to nil, and the warning still comes up, but everything seems to work OK.
I wouldn’t call myself a novice (i’m 75 years), and can some, but I haven’t a sinle clue on how I should do the (f-full…..
thing
med venlig hilsen (=With Kind Regards)
Niels
<applewebdata://012105BB-2607-46FE-AC74-B30FA0D4883D>
Niels Søndergaard
Mariehøj 236, 2990 Nivå
<tel:+45 4052 2789>+45 4052 2789 [email protected] <mailto:[email protected]>
… Den 25. nov. 2020 kl. 17.21 skrev Göktuğ Karakaşlı ***@***.***>:
There are 2 places where the file-name-directory function is used. Can you disable org-roam-server-export-inline-images and try again. Also what is the output of
(f-full (or
load-file-name
buffer-file-name))
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#116 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AN7YBR522YQCEZKFBSNFUGLSRUVGZANCNFSM4T6XPC5A>.
|
I think the problem is here. org-roam-server/org-roam-server.el Lines 61 to 66 in fde2636
I write this to find the path of the org-roam-server installation so I can start a webserver in there and reference some assets. How did you install org-roam-server ?
|
hello,
by straight:
(use-package org-roam-server
:straight t
;; :hook (after-init . org-roam-server-mode)
:config
(setq org-roam-server-host "127.0.0.1"
org-roam-server-port 8080
org-roam-server-export-inline-images nil
org-roam-server-authenticate nil
org-roam-server-network-poll t
org-roam-server-network-arrows nil
org-roam-server-network-label-truncate t
org-roam-server-network-label-truncate-length 60
org-roam-server-network-label-wrap-length 20))
(org-roam-server-mode t)
mvh
Niels
<applewebdata://B6B69CA9-9680-46B4-84C1-AF20686E1808>
Niels Søndergaard
Mariehøj 236, 2990 Nivå
<tel:+45 4052 2789>+45 4052 2789 [email protected] <mailto:[email protected]>
… Den 25. nov. 2020 kl. 19.14 skrev Göktuğ Karakaşlı ***@***.***>:
I think the problem is here.
https://github.com/org-roam/org-roam-server/blob/fde2636d794f020ed5810fa38fe57a264932f661/org-roam-server.el#L61-L66 <https://github.com/org-roam/org-roam-server/blob/fde2636d794f020ed5810fa38fe57a264932f661/org-roam-server.el#L61-L66>
I write this to find the path of the org-roam-server installation so I can start a webserver in there and reference some assets. How did you install org-roam-server?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#116 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AN7YBR3AVYRHIQ6WSBEAUVTSRVCP7ANCNFSM4T6XPC5A>.
|
Can you check whether it makes any difference if you load |
Actually, the warning text comes in the minibuffer and i the message-file:
first time:
Org-Roam-Server mode disabled
and the second time I do it
org-roam-server-mode: Wrong type argument: stringp, nil
the server runs, and I dont se any bad sideeffects
mvh
Niels
<applewebdata://A1B71208-FFF3-4E43-AD94-674B9229DA6D>
Niels Søndergaard
Mariehøj 236, 2990 Nivå
<tel:+45 4052 2789>+45 4052 2789 [email protected] <mailto:[email protected]>
… Den 25. nov. 2020 kl. 19.21 skrev Göktuğ Karakaşlı ***@***.***>:
Can you check whether it makes any difference if you load org-roam-server-mode manually by removing (org-roam-server-mode t) and using M-x org-roam-server-mode
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#116 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AN7YBR2GGS2LL5ZRR2CVEB3SRVDKDANCNFSM4T6XPC5A>.
|
Hello Göktug,
I think, somethig has changed outside my mashine, as the startup of the server now stop just after the server is started, and the the rest of the configuration is not loaded,.
A “emacs —debug-init” gives this message:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
file-name-directory(nil)
org-roam-server-mode(t)
eval-buffer(#<buffer *load*-452610> nil "/Users/niels/.emacs.d/config.el" nil t) ; Reading at buffer position 112633
load-with-code-conversion("/Users/niels/.emacs.d/config.el" "/Users/niels/.emacs.d/config.el" nil nil)
load("/Users/niels/.emacs.d/config.el" nil nil t)
load-file("~/.emacs.d/config.el")
(let ((orgfile (concat my-user-emacs-directory "config.org")) (elfile (concat my-user-emacs-directory "config.el"))) (if (or (not (file-exists-p elfile)) (file-newer-than-file-p orgfile elfile)) (progn (my-tangle-config-org))) (load-file elfile))
eval-buffer(#<buffer *load*> nil "/Users/niels/.emacs.d/init.el" nil t) ; Reading at buffer position 9152
load-with-code-conversion("/Users/niels/.emacs.d/init.el" "/Users/niels/.emacs.d/init.el" t t)
load("/Users/niels/.emacs.d/init" noerror nomessage)
startup--load-user-init-file(#f(compiled-function () #<bytecode 0xb9b71650be6e440>) #f(compiled-function () #<bytecode 0x81a386fa189e553>) t)
command-line()
normal-top-level()
and it does not matter how I start the server, then “dired” dies with something about JPG, I havn’t had time to investigate the yet……
mvh
Niels
<applewebdata://8475103C-7CAF-4F67-9704-A1BC5236CDB1>
Niels Søndergaard
Mariehøj 236, 2990 Nivå
<tel:+45 4052 2789>+45 4052 2789 [email protected] <mailto:[email protected]>
… Den 25. nov. 2020 kl. 22.06 skrev Niels Søndergaard ***@***.***>:
Actually, the warning text comes in the minibuffer and i the message-file:
first time:
Org-Roam-Server mode disabled
and the second time I do it
org-roam-server-mode: Wrong type argument: stringp, nil
the server runs, and I dont se any bad sideeffects
mvh
Niels
<applewebdata://8475103C-7CAF-4F67-9704-A1BC5236CDB1>
Niels Søndergaard
Mariehøj 236, 2990 Nivå
<tel:+45 4052 2789>+45 4052 2789 ***@***.*** ***@***.***>
> Den 25. nov. 2020 kl. 19.21 skrev Göktuğ Karakaşlı ***@***.*** ***@***.***>>:
>
>
> Can you check whether it makes any difference if you load org-roam-server-mode manually by removing (org-roam-server-mode t) and using M-x org-roam-server-mode
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub <#116 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AN7YBR2GGS2LL5ZRR2CVEB3SRVDKDANCNFSM4T6XPC5A>.
>
|
I've seen the same issue. But it appears to be resolved after installing the latest version from MELPA. I suspect something weird was going on in the compiled code, as I didn't see the error message when using the interpreted version (C-M-x on org-roam-server-mode). However, the httpd log would still show the type error (and not show any graph in the browser, error 500). |
I have the same issue for a long time. I've tried the method mentioned above but it didn't work, even if I use the latest version of Spacemacs and org-roam-server. My config is Win10, emacs 26.3, latest Spacemacs develop branch (commit Date: Tue Mar 23 18:52:45 2021), and latest org-roam-server package (20210321.1040) And after I update emacs from 26.3 to 27.1, the problem has gone. I don't know why but it works fine now, maybe you can try it. |
When I start the org-roam-server with (org-roam-server-mode t), I get this (taceback)
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
file-name-directory(nil)
org-roam-server-mode(t)
eval-buffer(#<buffer load-250872> nil "/Users/niels/.emacs.d/config.el" nil t) ; Reading at buffer position 114506
load-with-code-conversion("/Users/niels/.emacs.d/config.el" "/Users/niels/.emacs.d/config.el" nil nil)
load("/Users/niels/.emacs.d/config.el" nil nil t)
load-file("~/.emacs.d/config.el")
(let ((orgfile (concat my-user-emacs-directory "config.org")) (elfile (concat my-user-emacs-directory "config.el"))) (if (or (not (file-exists-p elfile)) (file-newer-than-file-p orgfile elfile)) (progn (my-tangle-config-org))) (load-file elfile))
eval-buffer(#<buffer load> nil "/Users/niels/.emacs.d/init.el" nil t) ; Reading at buffer position 9226
load-with-code-conversion("/Users/niels/.emacs.d/init.el" "/Users/niels/.emacs.d/init.el" t t)
load("/Users/niels/.emacs.d/init" noerror nomessage)
startup--load-user-init-file(#f(compiled-function () #<bytecode 0xb9b71679d120c40>) #f(compiled-function () #<bytecode 0x81a386fa189e553>) t)
command-line()
normal-top-level()
but everything seems to work OK, at least the web-server runs....
med venlig hilsen (With Kind regards) ... again :-)
Niels Søndergaard
The text was updated successfully, but these errors were encountered: