Skip to content
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

Unable to add notes #1054

Open
philohistoria opened this issue Jan 14, 2023 · 1 comment
Open

Unable to add notes #1054

philohistoria opened this issue Jan 14, 2023 · 1 comment

Comments

@philohistoria
Copy link

I was upgrading to Emacs 26 to 28. It also upgrades my org-ref from version 20191023.117 to org-ref-20220509.1414
Then my note taking stopped working

I can use org-ref-cite-insert-helm to insert citations like cite:&XXX , but when I try to run
org-ref-open-bibtex-notes or org-ref-open-notes-at-point or directly click on the citation, the error debug result is

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
regexp-quote(nil)
bibtex-completion-get-entry1(nil)
bibtex-completion-get-entry(nil)
bibtex-completion-edit-notes-default((nil))
bibtex-completion-edit-notes((nil))
org-ref-open-notes-at-point()
funcall-interactively(org-ref-open-notes-at-point)
call-interactively(org-ref-open-notes-at-point)
(if remapped-cmd (call-interactively remapped-cmd) (call-interactively cmd))
(let ((remapped-cmd (if hydra-look-for-remap (command-remapping cmd) nil))) (if remapped-cmd (call-interactively remapped-cmd) (call-interactively cmd)))
hydra--call-interactively-remap-maybe(org-ref-open-notes-at-point)
org-ref-citation-hydra/org-ref-open-notes-at-point-and-exit()
funcall-interactively(org-ref-citation-hydra/org-ref-open-notes-at-point-and-exit)
call-interactively(org-ref-citation-hydra/org-ref-open-notes-at-point-and-exit nil nil)
command-execute(org-ref-citation-hydra/org-ref-open-notes-at-point-and-exit)

Does anyone has similar issues? Or could anyone help diagnose these issues? Thanks a lot!

@jkitchin
Copy link
Owner

The error you show seems to indicate it is not finding a cite link at the point. i,e. org-ref-get-bibtex-key-under-cursor is returning nil. I would start by debugging that function.

notes work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants