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-capture Error: Symbol's value as variable is void: occ-get-categories #9407

Closed
tramsauer opened this issue Aug 11, 2017 · 8 comments
Closed

Comments

@tramsauer
Copy link

tramsauer commented Aug 11, 2017

Description :octocat:

There are already many issues relating to the changes in org-projectile (should be the error source!?) that have been solved. Still I cannot get this to work.

Error : cannot use org capture.
Message : require: Symbol's value as variable is void: occ-get-categories

related to:
#9374
#9368
https://github.com/IvanMalison/org-projectile#breaking-changes

Also the integration should be fixed as of #9380

org-mode setup:

  (with-eval-after-load 'org (
    setq org-agenda-files
      '("~/personal_todo.org" "~/work_todo.org" "~/notes.org"))
  ;; org refile targets
    (setq org-refile-targets
        '((nil :maxlevel . 5)
          (org-agenda-files :maxlevel . 3)))
    (setq org-outline-path-complete-in-steps nil)         ; Refile in a single go
    (setq org-refile-use-outline-path t)                  ; Show full paths for refiling

    (setq org-todo-keywords
          '((sequence "TODO" "NEXT" "WAITING" "SOMETIME" "|" "DONE")))
  ;; TAGS
    (setq org-tag-alist '((:startgroup . nil)
                          ("WORK" . ?w) ("HOME" . ?h)
                          ("NFH" . ?n)
                          (:endgroup . nil)
                          ("laptop" . ?l) ("phone" . ?p)))
  ;; ORG REF/ BIBTEX
    (setq reftex-default-bibliography '("~/Documents/Literature/Masterbase.bib"))
    (setq org-ref-default-bibliography '("~/Documents/Literature/Masterbase.bib")
          org-ref-pdf-directory "~/Documents/Literature/"
          org-ref-bibliography-notes "~/Documents/Literature/notes.org") 

    (setq bibtex-completion-library-path "~/Documents/Literature/")
    ;; (setq bibtex-completion-pdf-field "file")

    ;; (defun my/org-ref-open-pdf-at-point ()
    ;;   "Open the pdf for bibtex key under point if it exists."
    ;;   (interactive)
    ;;   (let* ((results (org-ref-get-bibtex-key-and-file))
    ;;          (key (car results))
    ;;          (pdf-file (car (bibtex-completion-find-pdf key))))
    ;;     (if (file-exists-p pdf-file)
    ;;         (org-open-file pdf-file)
    ;;       (message "No PDF found for %s" key))))

    ;; (setq org-ref-open-pdf-function 'my/org-ref-open-pdf-at-point)
    ;; (setq org-ref-open-pdf-function
    ;;       (lambda (fpath)
    ;;         (start-process ("xreader" "*helm-bibtex-xreader*" "/usr/bin/xreader" fpath))))

  ;; ORG CAPTURE
    (setq org-capture-templates
          '(("w" "Work Todo" entry (file+headline "~/work_todo.org" "Inbox")
             "* TODO %? :WORK:\n  %i\n  %a")
            ("p" "Personal Todo" entry (file+headline "~/personal_todo.org" "Inbox")
              "* TODO %? :Personal:\n  %i\n  %a")
            ("n" "Note" entry (file+headline "~/notes.org" "Inbox")
             "* %?\nEntered on %U\n  %i\n  %a")
            ("j" "Journal entry" plain (file+datetree+prompt "~/journal.org")
             "%K - %a\n%i\n%?\n")))))

Reproduction guide 🪲

  • Start Emacs
  • hit C-c c / SPC a o c / ..

Observed behaviour: 👀 💔
Mini buffer shows: Symbol's value as variable is void: occ-get-categories

Expected behaviour: ❤️ 😄
start filing an org-capture..

System Info 💻

  • OS: gnu/linux
  • Emacs: 24.5.1
  • Spacemacs: 0.200.9
  • Spacemacs branch: develop (rev. 0fb17fa)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
((auto-completion :variables auto-completion-enable-snippets-in-popup t auto-completion-enable-help-tooltip t auto-completion-enable-sort-by-usage t)
 bibtex csv emacs-lisp git helm html ibuffer markdown
 (org :variables org-enable-bootstrap-support t org-enable-github-support t org-enable-reveal-js-support t)
 pandoc python ranger semantic themes-megapack
 (shell :variables shell-default-height 30 shell-default-position 'bottom)
 (spell-checking :variables spell-checking-enable-by-default nil)
 (syntax-checking :variables syntax-checking-enable-by-default nil)
 version-control yaml)

Backtrace 🐾

<<BACKTRACE IF RELEVANT>>

Maybe it is just personal inabilities concerning the setup.. 😕 but still can be a but not being encountered by other users. if not so, sorry for taking your time.

@sjsrey
Copy link

sjsrey commented Aug 11, 2017

I, too, am encountering the Symbol's value as variable is void: occ-get-categories after trying C-c -c. I thought it must have been due to a change in trying to setup org-pomodoro. However, I've now gone back to a fresh install of spacemacs via git and a clean .spacemacs file and get the same error.

`~ » uname -a

Linux cody 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06) x86_64 GNU/Linux`

Emacs 24.5.1

@nikolaiam
Copy link
Contributor

The same problem here.

@colonelpanic8
Copy link
Contributor

@nikolaiam @sjsrey @RaT0M a backtrace would be super helpful here. have you updated org-category-capture?

@Awesomecase
Copy link

@IvanMalison The most recent org-projectile update fixed my occ-category-capture problems. Good work! I appreciate it.

@colonelpanic8
Copy link
Contributor

ahh @sjsrey The problem was that up until colonelpanic8/org-project-capture@634d148 emacs24 incompatible calls to cl-defmethod were being used.

@colonelpanic8
Copy link
Contributor

This can be closed now, I believe

@sjsrey
Copy link

sjsrey commented Aug 17, 2017

@IvanMalison yes, updating org-projectile has fixed the issue on my side. Thanks!

@tramsauer
Copy link
Author

@IvanMalison same here. problem solved. Thank you!

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

5 participants