reddit / emacs

Request for Ideas: trying to debug ol-emacs-slack

JustinSilverman · 2022-04-08 18:32
I am trying to ge the ol-emacs-slack package ([see github issue here](https://github.com/ag91/ol-emacs-slack/issues/5)) working but am having some really weird results while debugging. I was hopeing someone more experience could provide some ideas. At the heart of it, there is a function ol/slack-store-link that I am trying to debug. Whats weird is that if I debug by stepping through the function in edebug it works but if I evaluate the function and evaluate it interactively it breaks. In particular the offending lines always seem to relate to somthing like `(oref object attribute)`where I get some error about attribute being void. The function does rely heavily on (I think) the EIEIO object system... could that have something to do with it? Anyone have any idea what could possibly cause that? I am sorry this is such a vague question but trying to create a reproducible example is clearly not so straightforward right now. ​ EDIT: I figured it out. It was missing libraries adding (require 'eieio) and (require 'cl-lib) fixed it. Man that was annoying.
AndreaSomePostfix · 2022-04-08 21:48
sorry! I will be more careful with require from now on. Thanks for your great investigation once more: I am sure you helped at least another user and me for sure ;) Apologies again for your time
JustinSilverman · 2022-04-08 22:10
No apologies necessary at all! Thanks so much for developing! I am just annoyed the error was so hard to track down.