ahyatt / emacs-websocket

A websocket implementation in elisp, for emacs.
GNU General Public License v2.0
324 stars 42 forks source link

Error (websocket): in callback `on-open': Symbol's value as variable is void: This #82

Open algon-ns opened 2 months ago

algon-ns commented 2 months ago

Trying to get a graph of my org-roam, I get this error. Also if I try to run (org-roam-db-autosync-mode)

I can't find any not commented "This" in the code in org-roam configuration, neither in the parts of org-roam I have seached.

ahyatt commented 2 months ago

It could be that the on-open callback itself has the issue, in which case the client calling websocket directly is likely to have the issue. I don't see anything in org-roam-ui that seems suspicious though. Is it possible to get a stack trace, with M-x toggle-debug-on-error?

algon-ns commented 2 months ago

There is not traceback, only the line :

⛔ Error (websocket): in callback `on-open': Symbol's value as variable is void: This

I’ve tried to find a comment line without the ;; in roam and websocket, but haven’t found one

med venlig hilsen Niels <about:blank#> Niels Søndergaard • civilingeniør Address: Mariehøj 236, 2990 Nivå Mobile: +45 4052 2789 <tel:%20%20+45%204052%202789> Website: algon.dk https://algon.dk/ Email: @. @.> <about:blank#> <about:blank#> Når du går gennem Helvede, så bliv ved med at gå!

Winston Churchill https://da.wikipedia.org/wiki/Winston_Churchill (1874 – 1965)

Den 14. aug. 2024 kl. 05.00 skrev Andrew Hyatt @.***>:

It could be that the on-open callback itself has the issue, in which case the client calling websocket directly is likely to have the issue. I don't see anything in org-roam-ui that seems suspicious though. Is it possible to get a stack trace, with M-x toggle-debug-on-error?

— Reply to this email directly, view it on GitHub https://github.com/ahyatt/emacs-websocket/issues/82#issuecomment-2287742783, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN7YBR33WAYH64CTL2M2TXTZRLB5BAVCNFSM6AAAAABMLQRYFKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBXG42DENZYGM. You are receiving this because you authored the thread.

ahyatt commented 2 months ago

This error appears when the callback errors out. In this case, the callback must be org-roam-ui, which supplies the on-open callback.

You could try to edebug into org-roam-ui--ws-on-open, or open a bug under that project.