syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.65k stars 4.89k forks source link

(invalid-function (date date)) error on org-agenda #15717

Closed stefancocora closed 2 years ago

stefancocora commented 2 years ago

Description :octocat:

Upon invoking org-agenda (, a a) from an orgmode file I get this error:

(invalid-function (date date)) error on org-agenda

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart:

Expected behaviour: :heart: :smile:

System Info :computer:

Backtrace :paw_prints:

Debugger entered--Lisp error: (invalid-function (date date))
  (date date)()
  org-agenda-get-day-entries("/home/stefan/tmp/emacs/org-mode-agenda-bug-date-da..." (8 29 2022) :deadline :scheduled :timestamp :sexp)
  apply(org-agenda-get-day-entries "/home/stefan/tmp/emacs/org-mode-agenda-bug-date-da..." (8 29 2022) (:deadline :scheduled :timestamp :sexp))
  org-agenda-list(nil)
  funcall-interactively(org-agenda-list nil)
  call-interactively(org-agenda-list)
  org-agenda(nil)
  funcall-interactively(org-agenda nil)
  call-interactively(org-agenda nil nil)
  command-execute(org-agenda)

Additional info

When starting emacs and loading the 1st orgmode file I see this in the Messages buffer, not sure if related

IMPORTANT: please install Org from GNU ELPA as Org ELPA will close before Org 9.6

Related

Others have reported the same issue here

I've rm -rf all dirs in .emacs.d/elpa/28.0/develop and restarted emacsd systemd svc which recompiled all .el layer files Still get the same error

lebensterben commented 2 years ago

try to update emacs to 28.1.

byte compiling issue is beyond the scope of Spacemacs.

stefancocora commented 2 years ago

Thank for the pointer lebensterben

Updating to emacs 28.1, like you've guessed, fixed this issue.

Please make sure next time to not close an issue from a user based on your hunch ( hunch being that this issue was about byte compilation ), which in this case wasn't the issue. I've described what other things I've tried before creating a bug report, wasn't saying that byte compilation is the culprit in this case.

Thanks again!

lebensterben commented 2 years ago

The cause is excatly byte compilation, as already pointed out in your linked issue.