Closed japhir closed 5 months ago
Might be related to https://github.com/jkitchin/org-ref/issues/822 ?
Actually, it's related to https://github.com/jkitchin/org-ref/issues/1085! Commenting out the (require 'openalex)
line in org-ref fixes the issue!
this seems pretty weird. org-ref-citation-hydra
is defined in org-ref-citation-links
, which is loaded in org-ref-core
, so that should be ok I think.
I added two commits that might help with the issue.
Nice, these do resolve the issue! I don't know what's happening behind the scenes, but I spent entirely too much time this morning trying to figure out where this error slipped in so I'll just take your fix and stop thinking about it ;-).
Thank you!
I'm on b1ceadaa5eaa253e9dac223b9f23ce2b4e8e8ab7 and the issue is still present for me.
If you open org-ref.el and run M-x eval-buffer do you still get the error?
If not, try running this and make sure it points to the git repo, and not to something installed from Melpa:
#+BEGIN_SRC emacs-lisp
(locate-library "org-ref")
#+END_SRC
org-ref
compilation (still) throws the following error:openalex.el:566:2: Error: Symbol’s value as variable is void: org-ref-citation-hydra/params
(declare-function org-ref-citation-hydra "org-ref-citation-links")
(Re) Compilation throws no error upon addition of
(require 'org-ref-citation-links)
... and then, everything works well.
This is just an observation, I don't know how / why.
(I see that openalex
is 'required' in org-ref-core
after org-ref-citation-links
already.)
Is this because openalex
's native compilation gets triggerred during package installation before and without the need for it to be 'required'?
Because looking at compilation warnings, it appears so.
Warnings from openalex
start in my *compilation*
buffer at line 13, while those from org-ref-citation-links
start at 701.
I pushed that require. I don't see any downside to it, and if it fixes the problem all the better.
Hi John! I've been running into this issue lately: Debugger entered--Lisp error: (void-variable org-ref-citation-hydra)
There were many ways in which this triggered, but the easiest I could find after installing the package with this in the folder name:
20240129.1719
was to just(require 'org-ref)
in*scratch*
.