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

org-gtd-oops "Invalid agenda key" #208

Open
fedefelds opened this issue Jun 17, 2024 · 5 comments
Open

org-gtd-oops "Invalid agenda key" #208

fedefelds opened this issue Jun 17, 2024 · 5 comments

Comments

@fedefelds
Copy link

Whenever I try to run the "org-gtd-oops" command (M-x org-gtd-oops), I get the following output:

Invalid agenda key

Surprisingly, this error is gone as soon as I enable edebug for said function:

  • first, I look for the definition of the function within the source code
  • then, highlight the entire function definition
  • C-u C-M-x (instrument org-gtd-oops..aka enable edebug)
  • run org-gtd-oops...works flawlessly

I am not sure why it does not work straight away, and it is even more strange that this workaround even works

@Trevoke
Copy link
Owner

Trevoke commented Jun 19, 2024 via email

@fedefelds
Copy link
Author

Very weird indeed. I ended up copying the code from the function to my config file and it works just fine, but the issue is still there. Might be a problem with my config, but it is hard to tell for now. I use vanilla emacs but of course, I have my own config file. Here is the part in charge of org-gtd:
(use-package org-gtd :after org :demand t :custom (org-gtd-directory "~/Documents/org/gtd") (org-agenda-files '("~/Documents/org/gtd")) (org-edna-use-inheritance t) (org-gtd-organize-hooks '(org-gtd-set-area-of-focus org-set-tags-command org-set-effort org-priority)) (org-gtd-areas-of-focus '("Home" "Upskill" "Health" "Family" "Career")) (org-gtd-update-ack "3.0.0") (org-habit-graph-column 50) :config (org-gtd-mode) :bind (("C-c d c" . org-gtd-capture) ("C-c d e" . org-gtd-engage) ("C-c d p" . org-gtd-process-inbox) :map org-gtd-clarify-map ("C-c c" . org-gtd-organize)))

Btw, thanks for making such nice package...it is super useful!

@PwzXxm
Copy link

PwzXxm commented Aug 27, 2024

Firstly, thanks for creating this wonderful package.
I run into this as well. Doom Emacs. Installed from MELPA, e.g. (package! org-gtd) in packages.el file.
Any additional information that might be helpful?

@Trevoke
Copy link
Owner

Trevoke commented Aug 28, 2024

@PwzXxm if you have a problem with org-gtd from using doom, usually clearing the packages / forcing a package resync fixes the problem, can you please try that?

@PwzXxm
Copy link

PwzXxm commented Aug 29, 2024

@PwzXxm if you have a problem with org-gtd from using doom, usually clearing the packages / forcing a package resync fixes the problem, can you please try that?

Thanks for your reply. I tried deleting the package and resync but still no luck.

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

3 participants