ahungry / org-jira

Bring Jira and OrgMode together
680 stars 130 forks source link

The default behavior of org-element-use-cache to nil causes everything after the first query to fail #341

Closed embeddedpenguin closed 1 year ago

embeddedpenguin commented 1 year ago

I've been having this issue where I can start emacs, call org-jira-get-issues just fine, but if I try to do anything after that, I am met with this error:

Fetching issues...
About to render 12 issues.
error in process sentinel: org-element-at-point-no-context: Invalid function: org-element-with-disabled-cache
error in process sentinel: Invalid function: org-element-with-disabled-cache

I can't post the full trace because it has my credentials all over it, but the issue is solved by simply setting org-element-use-cache to t instead of nil. I realize this was done because of freezing issues like #275, but I'm wondering if maybe this shouldn't be the default behavior going forward. It could also be something doom or I have done in my config.

In the meantime, is there a way I can stop org-jira from setting org-element-use-cache to nil?

I'm using doom emacs. Doom version: 3.0.0-pre Emacs Version: 29.1-rc1 Org version: 9.7

embeddedpenguin commented 1 year ago

Ok I have no idea what I'm talking about I guess. Restarted emacs and ... suddenly I got the above errors again. Set org-element-use-cache back to nil and it started working. Closing this because I have no clue what works and what doesn't.