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 agenda fails, "wrong type argument: number-or-marker-p" #8000

Closed
junebash opened this issue Dec 19, 2016 · 4 comments
Closed

org agenda fails, "wrong type argument: number-or-marker-p" #8000

junebash opened this issue Dec 19, 2016 · 4 comments

Comments

@junebash
Copy link

Description :octocat:

After updating packages, on attempting to load org-agenda (even on startup (since I have org-agenda items on the home screen)) it fails and I get the error "Wrong type argument: number-or-marker-p, <2016-12-30 Fri>" or another datestamp.

Reverting my updated packages seemed to fix the bug, but I would like to be able to use the latest version of stuff.

Reproduction guide 🪲

  • Start Emacs
  • C-c a a (or , a a or , a [insert any agenda command])
  • receive error above

Observed behaviour: 👀 💔
see error/traceback above/below

Expected behaviour: ❤️ 😄
I'd expect to see the org-agenda view.

System Info 💻

  • OS: darwin
  • Emacs: 25.1.1
  • Spacemacs: 0.200.5
  • Spacemacs branch: master (rev. 664ba6a)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: hybrid
  • Completion: ivy
  • Layers:
(ivy auto-completion emacs-lisp git markdown org shell spell-checking syntax-checking version-control javascript osx colors deft ibuffer themes-megapack command-log csv csharp
     (c-c   :variables c-c  -enable-clang-support t)
     html python swift yaml ruby shell-scripts lua dash tmux evil-cleverparens vinegar
     (geolocation :variables geolocation-enable-location-service t geolocation-enable-weather-forecast t)
     semantic speed-reading)
  • System configuration features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES

Backtrace 🐾

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p "<2016-12-30 Fri>")
  org-agenda-get-deadlines()
  org-agenda-get-day-entries("/Users/jonbash/notes/wwu-todo.org" (12 19 2016) :deadline :scheduled :timestamp :sexp)
  apply(org-agenda-get-day-entries "/Users/jonbash/notes/wwu-todo.org" (12 19 2016) (: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)
@schmendrik
Copy link

schmendrik commented Dec 29, 2016

I can confirm this. Repeated tasks and their timestamps are causing this problem.

This is how you reproduce the bug:
Insert this timestamp anywhere in your org file: <2015-12-07 Mon +1m>

It will cause the following error message to display in the minibuffer when you run M-x org-agenda RET a RET:

Wrong number of arguments: (1 . 5), 6

This is how you fix it: remove +1m from that timestamp (so it is <2015-12-07 Mon>) and the agenda will display as usual.

I'm on org mode version 9.0.2 (Emacs 25.1, Windows).

Edit: Also, both of the following 2 lines were causing the same issue in another org file of mine:

SCHEDULED: <2016-12-29 Thu>

DEADLINE: <2016-12-29 Thu>

@syl20bnr
Copy link
Owner

Did you try to delete all the .elc files in the org-plus-contrib folder installed in ~/.emacs.d/elpa directory ?

@schmendrik
Copy link

Actually, the problem went away after I updated org-mode.

@syl20bnr
Copy link
Owner

syl20bnr commented Feb 9, 2017

Marking this issue as closed since it has had. I activity for 1 month and the problem is likely related with deleting the elc files.

@syl20bnr syl20bnr closed this as completed Feb 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants