bastibe / org-journal

A simple org-mode based journaling mode
BSD 3-Clause "New" or "Revised" License
1.24k stars 123 forks source link

helm-M-x-execute-command: Invalid version syntax: ‘’ (must start with a number) when org-roam is installed #324

Closed madjestic closed 3 years ago

madjestic commented 3 years ago

Describe the bug Whenever I install org-roam and try to activate org-journal-mode with M-x org-journal-mode I get the following error:

helm-M-x-execute-command: Invalid version syntax: ‘’ (must start with a number) when org-roam is installed

It does not matter if helm is installed, I tried using bare-minimum config with nothing but package (to access melpa) and org-roam and org-journal installed and the result is similar. One or another works, but not together.

To Reproduce Install org-roam and org-journal-mode together and try to activate org-journal-mode with M-x org-journal-mode

Result The error Invalid version syntax: ‘’ (must start with a number) should appear in the status bar and journal mode fails to start.

Expected behavior Journal mode should work as expected without throwing an error.

Screenshots image

Desktop (please complete the following information):

Your Emacs Configuration

(use-package org-journal
  :after org
  :bind
  ("C-c n n" . org-journal-new-entry)
  :custom
  (org-journal-date-prefix "#+title: ")
  (org-journal-file-format "%Y-%m-%d.org")
  (org-journal-dir "/home/madjestic/org-roam/")
  (org-journal-date-format "%A, %d %B %Y"))

(use-package org-roam
      :hook
      (after-init . org-roam-mode)
      :custom
      (org-roam-directory "/home/madjestic/org-roam/")
      :bind (:map org-roam-mode-map
              (("C-c n l" . org-roam) ;; toggle links window
               ("C-c n f" . org-roam-find-file)
               ("C-c n j" . org-roam-jump-to-index)
               ("C-c n b" . org-roam-switch-to-buffer)
               ("C-c n g" . org-roam-graph))
              :map org-mode-map
              (("C-c n i" . org-roam-insert))))

Cheers, Vlad

casch-at commented 3 years ago

Duplicate of #317. Try it with the org or org-plus-contrib package from the orgmode archive repo. It should work! https://orgmode.org/elpa.html The builtin in version of org shouldn't lead to this error to.

Did you install org from the gnu elpa repo?

madjestic commented 3 years ago

I installed org-roam and org-journal from melpa.

That fixes it, thanks!

casch-at commented 3 years ago

This should work as a workaround too.

(eval-after-load "org" (setq org-version "9.4.4")) ;; or whatever org version you have installed