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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbol's function definition is void: org-projectile-per-project #9374

Closed
lsytj0413 opened this Issue Aug 6, 2017 · 62 comments

Comments

Projects
None yet
@lsytj0413
Copy link

lsytj0413 commented Aug 6, 2017

Description :octocat:

Error (use-package): org-projectile :config: Symbol's function definition is void: org-projectile-per-project

Reproduction guide 馃悶

  • Start Emacs

Observed behaviour: 馃憖 馃挃
in the Warnings buffer shows:
Error (use-package): org-projectile :config: Symbol's function definition is void: org-projectile-per-project

Expected behaviour: 鉂わ笍 馃槃

System Info 馃捇

  • OS: gnu/linux
  • Emacs: 24.5.1
  • Spacemacs: 0.200.9
  • Spacemacs branch: develop (rev. a0cdcca)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(helm
 (auto-completion :variables auto-completion-enable-sort-by-usage t)
 (better-defaults :variables better-defaults-move-to-end-of-code-first t)
 emacs-lisp git markdown org
 (shell :variables shell-default-shell 'multi-term shell-default-height 30 shell-default-position 'bottom)
 (c-c++ :variables c-c++-default-mode-for-headers 'c++-mode c-c++-enable-clang-support t)
 asm
 (python :variables python-sort-imports-on-save t)
 javascript github semantic
 (go :variables go-tab-width 4 go-use-gometalinter t)
 ranger gtags ibuffer sql
 (colors :variables colors-enable-nyan-cat-progress-bar t colors-enable-rainbow-identifiers t)
 (spacemacs-layouts :variables layouts-enable-autosave t layouts-autosave-delay 300)
 graphviz plantuml docker
 (syntax-checking :variables syntax-checking-enable-by-default t)
 liter ycmd)

Backtrace 馃惥

@dre-hh

This comment has been minimized.

Copy link

dre-hh commented Aug 6, 2017

had same issue, but newest spacemacs pull from develop and package update solved it

@lsytj0413

This comment has been minimized.

Copy link

lsytj0413 commented Aug 6, 2017

@dre-hh
I have pull from develop branch since the commit #98ff30, and the problem is still exsit.

@dre-hh

This comment has been minimized.

Copy link

dre-hh commented Aug 6, 2017

@lsytj0413 but what about updating emacs packages?

@yatesco

This comment has been minimized.

Copy link

yatesco commented Aug 6, 2017

It seems org-projectile has undergone some significant internal redesign with some breaking changes. The front page (https://github.com/IvanMalison/org-projectile) gives more info, as does this issue: IvanMalison/org-projectile#31

@incandescentman

This comment has been minimized.

Copy link

incandescentman commented Aug 6, 2017

Same issue here. Switched to develop and it seems to be fixed for now.

Symbol's function definition is void:
(org-projectile:per-repo)
 (org-projectile:per-repo)
 (if (file-name-absolute-p org-projectile-file) (progn (setq...
@lsytj0413

This comment has been minimized.

Copy link

lsytj0413 commented Aug 7, 2017

@dre-hh @incandescentman
I use the develop branch and update all packages, but the issue is still exsit.
BUT when i switch to MASTER branch then the issue has gone.

@d12frosted

This comment has been minimized.

Copy link
Collaborator

d12frosted commented Aug 9, 2017

org-projectile-per-project is defined in latest org-projectile.

@lsytj0413

This comment has been minimized.

Copy link

lsytj0413 commented Aug 9, 2017

I update org-projectile to:

org-projectile-20170803.634

and when i start spacemacs, there is a warning:

Error (use-package): org-projectile :init: Symbol's value as variable is void: occ-get-categories

@bnicenboim

This comment has been minimized.

Copy link

bnicenboim commented Aug 22, 2017

Hi, I've just installed spacemacs (never used emacs or vim before, just sublime). Is there a workaround? I've actually installed spacemacs to use org-mode.

@lsytj0413

This comment has been minimized.

Copy link

lsytj0413 commented Aug 28, 2017

@bnicenboim
the newest version has solve this problem, you can update org-projectile package to the newest version.
Other way, you can add org-projectile to the dotspacemacs-exclude-packages list.

@lazysquid

This comment has been minimized.

Copy link

lazysquid commented Sep 12, 2017

@lsytj0413
I've installed the newest version but it still has same problem. I'm using master branch of spacemacs.

@lsytj0413

This comment has been minimized.

Copy link

lsytj0413 commented Sep 13, 2017

@FrostedPenguin
I'm using the develop branch

@channingwalton

This comment has been minimized.

Copy link
Contributor

channingwalton commented Sep 25, 2017

Hi, any further updates on this issue?

@lsytj0413

This comment has been minimized.

Copy link

lsytj0413 commented Sep 26, 2017

@channingwalton
No updates.

@lsytj0413 lsytj0413 closed this Sep 26, 2017

@peterhoeg

This comment has been minimized.

Copy link
Contributor

peterhoeg commented Sep 26, 2017

Isn't it a bit premature to close the issue as it persists?

@yatesco

This comment has been minimized.

Copy link

yatesco commented Sep 26, 2017

Any idea when this will make it to the master branch?

@lsytj0413

This comment has been minimized.

Copy link

lsytj0413 commented Sep 27, 2017

@yatesco
Maybe add org-projectile to the dotspacemacs-exclude-packages list.

@yatesco

This comment has been minimized.

Copy link

yatesco commented Sep 27, 2017

Thanks @lsytj0413 - I realise I could exclude it :-), but I was hoping there would be a fix. The more I read about org in spacemacs the more I appreciate the complexities involved otherwise I guess a simple cherry-pick would be possible.

In this case a git checkout develop is the answer I think.

@jonathanunderwood

This comment has been minimized.

Copy link

jonathanunderwood commented Oct 12, 2017

Still seeing this today - I am confused as to why the issue was closed without a solution?

@chriskaukis

This comment has been minimized.

Copy link
Contributor

chriskaukis commented Oct 12, 2017

Experiencing this same error. Fresh install from master to confirm.

@prajnak

This comment has been minimized.

Copy link

prajnak commented Oct 14, 2017

also confirming the same error on a fresh install from master

@bricewge

This comment has been minimized.

Copy link

bricewge commented Oct 14, 2017

As said before, this issue is fixed in develop. If you want to stay on 0.200.9 you can cherry-pick 6063466; it fix the issue.

@jonathanunderwood

This comment has been minimized.

Copy link

jonathanunderwood commented Oct 14, 2017

@Kingpatzer

This comment has been minimized.

Copy link

Kingpatzer commented Oct 14, 2017

I'm a brand new user to spacemacs and I'd like to understand how to fix this issue. Note: I don't want to run the development branch because I don't want other things breaking and I don't know what "cherry picking" that bricwge is mentioning means -- but it looks like he is suggesting hand coding a bunch of changes to files -- which for someone who's using Emacs and org mode for doing papers and running a few python data scripts is really asking a lot.

How does a normal, everyday non-hacker fix this problem on the main release?

I've deleted the package from ~/.emacs.d/elpa and let spacemacs re-install, but that doesn't seem to do it.

@peterhoeg

This comment has been minimized.

Copy link
Contributor

peterhoeg commented Oct 15, 2017

@Kingpatzer, you can add org-projectile to dotspacemacs-excluded-packages on your $HOME/.spacemacs/init.el file as mentioned in #9374 (comment).

@cypa

This comment has been minimized.

Copy link

cypa commented Oct 16, 2017

issue persists

capisce added a commit to capisce/dotfiles that referenced this issue Oct 24, 2017

.spacemacs: Disable org-projectile package for now due to error
"Symbol's function definition is void: org-projectile-per-project"

syl20bnr/spacemacs#9374
@kelanwu

This comment has been minimized.

Copy link

kelanwu commented Apr 1, 2018

This issue still persists in master(0.200.13), but has fixed in develop branch.
I'd like to stay in master branch, and I solved this by @bricewge 's suggestion.

@nocksock

This comment has been minimized.

Copy link

nocksock commented Apr 2, 2018

Tried @bricewge's suggestion and it worked for me too. In a nutshell: git cherry-pick 6063466231ce5e209aacd2de612e53390a25c442 in the ~/.emacs.d repository. Restart emacs and all org-projectile commands work as intended 馃帀

@frankjonen

This comment has been minimized.

Copy link

frankjonen commented Apr 14, 2018

Hmm, not quite. Going into ~/.emacs.d and executing git cherry-pick 6063466231ce5e209aacd2de612e53390a25c442 yields:

error: could not apply 60634662... Make org-projectile integration compatible with its new version hint: after resolving the conflicts, mark the corrected paths hint: with 'git add <paths>' or 'git rm <paths>' hint: and commit the result with 'git commit'

The only result I got was that the start screen stopped listing my projects and I have to reinstall now.

After the re-install I tried @stevexyc's approach. It did nothing. I still get Error (use-package): org-projectile/:config: Symbol鈥檚 function definition is void: org-projectile:per-repo when I C-c c

@ginhton

This comment has been minimized.

Copy link

ginhton commented May 6, 2018

I solved this problem by using following solutions (in evil mode):

  1. SPC h SPC, input "org" , and then select layer -> org. press Enter.
  2. SPC f j, select "package.el" and press Enter to open that file.
  3. /org-projectile:per-repo, find that line and g c c or just comment this line.
  4. restart spacemacs.

original link - Chinese

@rlcintra

This comment has been minimized.

Copy link

rlcintra commented May 16, 2018

Please reopen this issue since it still affects the master branch (release 0.200.13.x).

@anhdle14

This comment has been minimized.

Copy link

anhdle14 commented May 22, 2018

Fresh install of emacs is still being affected.

Spacemacs v.0.200.13
@EricBeReal

This comment has been minimized.

Copy link

EricBeReal commented Jun 5, 2018

After a fresh Emacs upgrade and reinstall of space macs I faced same issue with following setup:

  • OS: debian
  • Emacs: 25.1.1
  • Spacemacs: 0.200.13

Turns out it was easy as deleting .emacs.d/elpa directory and restarting emacs.

@jbhannah

This comment has been minimized.

Copy link

jbhannah commented Jun 15, 2018

There are multiple function calls in Spacemacs' org integration that have been renamed in org-projectile, e.g. org-projectile:per-repo is now org-projectile-per-project, in both the MELPA stable and MELPA latest releases. I'm planning on going through and fixing these references and opening a PR. This is fixed in 6063466 in the develop branch.

@MrMic

This comment has been minimized.

Copy link

MrMic commented Jun 17, 2018

Same issue today, with a new install of spacemacs.

@elatomo

This comment has been minimized.

Copy link

elatomo commented Jun 20, 2018

I also faced this issue today after updating all packages.

find ~/.emacs.d/elpa -name "*elc" -delete and restarting fixed it.

@gavinrogers

This comment has been minimized.

Copy link

gavinrogers commented Jun 28, 2018

Error (use-package): org-projectile/:config: Symbol鈥檚 function definition is void: org-projectile:per-repo

Still happening on master. I switched to dev yesterday which didn't fix it, but following the directions given by @stevexyc above seemed to work but today I'm seeing the error again.

AGollapalli added a commit to AGollapalli/spacemacs that referenced this issue Jul 7, 2018

Fix org/init-org-projectile
Updated some symbol definitions in order to fix the issue discussed here:
syl20bnr#9374

Users were getting the following error: '''Error (use-package): org-projectile/:config: Symbol鈥檚 function definition is void: org-projectile:per-repo'''.

It should also be noted that they will have to change their .spacemacs files to accomodate the new chanages

AGollapalli added a commit to AGollapalli/spacemacs that referenced this issue Jul 7, 2018

Updated README.org
Update to fix the revised Org-Projectile init.
Please update your .spacemacs file accordingly.
In response to: '''Error (use-package): org-projectile/:config: Symbol鈥檚 function definition is void: org-projectile:per-repo'''
as noted here: syl20bnr#9374
@AGollapalli

This comment has been minimized.

Copy link

AGollapalli commented Jul 7, 2018

Replacing:

(with-eval-after-load 'org-agenda
  (require 'org-projectile)
  (push (org-projectile:todo-files) org-agenda-files))

with:

(require 'org-projectile)
(setq org-agenda-files (append org-agenda-files (org-projectile-todo-files)))

in my config seems to fix it on develop. The symbols in the org layer are outdated on master.

@Ryuk03

This comment has been minimized.

Copy link

Ryuk03 commented Jul 10, 2018

I download the last master, when emacs start, get a new error as below:
Error (use-package): projectile/:config: Symbol鈥檚 function definition is void: projectile-global-mode
env:
windows 10
emacs 26.1
emacs-w64-25.3-O2-with-modules

@sdwolfz

This comment has been minimized.

Copy link
Collaborator

sdwolfz commented Jul 10, 2018

@Ryuk03 Your issue is fixed on develop. You can either switch to that branch or enable spacepla in your .spacemacs so that you get an older/stable version of projectile.

@colonelrascals

This comment has been minimized.

Copy link

colonelrascals commented Jul 12, 2018

This still affects the master branch correct?

@sdwolfz

This comment has been minimized.

Copy link
Collaborator

sdwolfz commented Jul 12, 2018

@colonelrascals yes, it's still present here: https://github.com/syl20bnr/spacemacs/blob/master/layers/+distributions/spacemacs-base/packages.el#L364 and will be fixed once we release the next version. But unfortunately I have no ETA for that, so your best bet is to enable spacepla (or switch to develop).

@colonelrascals

This comment has been minimized.

Copy link

colonelrascals commented Jul 12, 2018

Switch to develop...thanks

@xircon

This comment has been minimized.

Copy link

xircon commented Jul 16, 2018

bbatsov/projectile#1254

ag projectile-global-mode ~/.ihsec                     
/home/steve/.ihsec/spacemacs/layers/+distributions/spacemacs-base/packages.el
364:      (projectile-global-mode)

Edit line 364 to projectile-global

@fmjrey

This comment has been minimized.

Copy link

fmjrey commented Aug 12, 2018

To those wondering what spacepla is: it's a typo, search for spacelpa instead.
It's a new feature in develop branch that allows the freezing of elpa dependencies to version known to work.
Definitely something needed as demonstrated by this very frustrating issue.
See this reddit thread for instructions.

@tomtsang

This comment has been minimized.

Copy link

tomtsang commented Aug 25, 2018

I also faced this issue today after updating all packages.

find ~/.emacs.d/elpa/org-projectile-20180601.242/ -name "*elc" -delete and restarting fixed it.

@TyOverby

This comment has been minimized.

Copy link

TyOverby commented Aug 26, 2018

This still effects master

@brorbw

This comment has been minimized.

Copy link

brorbw commented Aug 29, 2018

I can verify that this is still an issue

@laurierloi

This comment has been minimized.

Copy link

laurierloi commented Aug 31, 2018

Just had the same issue today. Using @stevexyc git fetch fixed the problem

@vegai

This comment has been minimized.

Copy link

vegai commented Sep 19, 2018

None of the suggested fixes worked for me, so I went to develop branch & spacelpa. That did.

@vonpupp

This comment has been minimized.

Copy link

vonpupp commented Nov 26, 2018

I confirm that moving to the develop branch seems to work fine. As many sugested, I also think the master branch need more frequent merges. Congratulations on the project, it is an awesome tool.

@Benjmhart

This comment has been minimized.

Copy link

Benjmhart commented Dec 27, 2018

any chance of this fix getting moved to master any time soon?

@sdwolfz

This comment has been minimized.

Copy link
Collaborator

sdwolfz commented Dec 27, 2018

We're working exclusively on the release, see: #11741. Please feel free to lend a hand if you want to have this faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment