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.69k stars 4.89k forks source link

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

Closed lsytj0413 closed 7 years ago

lsytj0413 commented 7 years ago

Description :octocat:

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

Reproduction guide :beetle:

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

Expected behaviour: :heart: :smile:

System Info :computer:

Backtrace :paw_prints:

dre-hh commented 7 years ago

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

lsytj0413 commented 7 years ago

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

dre-hh commented 7 years ago

@lsytj0413 but what about updating emacs packages?

yatesco commented 7 years ago

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: https://github.com/IvanMalison/org-projectile/issues/31

incandescentman commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

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

lsytj0413 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

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

lsytj0413 commented 7 years ago

@FrostedPenguin I'm using the develop branch

channingwalton commented 7 years ago

Hi, any further updates on this issue?

lsytj0413 commented 7 years ago

@channingwalton No updates.

peterhoeg commented 7 years ago

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

yatesco commented 7 years ago

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

lsytj0413 commented 7 years ago

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

yatesco commented 7 years ago

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 commented 7 years ago

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

chriskaukis commented 7 years ago

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

prajnak commented 7 years ago

also confirming the same error on a fresh install from master

bricewge commented 7 years ago

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

jonathanunderwood commented 7 years ago

Why not make a fixed release from master, rather than leaving this broken?

On 14 Oct 2017 15:18, "bricewge" notifications@github.com wrote:

As said before, this issue is fixed in develop. If you want to stay on 0.200.9 you can cherry-pick 6063466 https://github.com/syl20bnr/spacemacs/commit/6063466231ce5e209aacd2de612e53390a25c442; it fix the issue.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/syl20bnr/spacemacs/issues/9374#issuecomment-336637753, or mute the thread https://github.com/notifications/unsubscribe-auth/AA8jcg7K0WTPEDxlJutCIISabodFArgcks5ssMLQgaJpZM4Oumz7 .

Kingpatzer commented 7 years ago

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 commented 7 years ago

@Kingpatzer, you can add org-projectile to dotspacemacs-excluded-packages on your $HOME/.spacemacs/init.el file as mentioned in https://github.com/syl20bnr/spacemacs/issues/9374#issuecomment-325238803.

cypa commented 7 years ago

issue persists

jonathanunderwood commented 6 years ago

Still broken on the release (master) branch today. @syl20bnr: why not backport the fix to master so it's released to end users?

00krishna commented 6 years ago

I ran into the same exact issue, with this error showing up on startup. I am on the MASTER branch and here is what worked for me.

  1. Close emacs. I use version 25.3
  2. I went into the ~/.emacs.d/elpa directory
  3. Searched for org-projectile
  4. Deleted the org-projectile-xxx folder
  5. Then restart emacs and it will download org-projectile again.

So this helped fix my issue. I had to try this a couple of times before it finally worked. Hope this helps.

stevexyc commented 6 years ago

To fix this issue, I went into

  1. cd ~/.emacs.d/elpa/org-projectile-XXXX
  2. git fetch
  3. restart emacs Should solve the problem
ghost commented 6 years ago

Fresh install of spacemacs today, and hit this problem. What's blocking a fix for this being pushed to master?

macbem commented 6 years ago

Issue persists

rebcabin commented 6 years ago
find ~/.emacs.d -name "*.elc" -delete

restart emacs

nocksock commented 6 years ago

I still have this exact same issue. Has it been solved?

venturno commented 6 years ago

Just had this same issue today as well. Using @stevexyc 's git fetch suggestion worked for me

SwenChan commented 6 years ago

Same issue, and thx to @stevexyc 's suggestion, it work for me, too. But curiously, why?

kelanwu commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

error: could not apply 60634662... Makeorg-projectileintegration 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’s function definition is void: org-projectile:per-repo when I C-c c

ginhton commented 6 years ago

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 commented 6 years ago

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

anhdle14 commented 6 years ago

Fresh install of emacs is still being affected.

Spacemacs v.0.200.13
ghost commented 6 years ago

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

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

jbhannah commented 6 years ago

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 https://github.com/syl20bnr/spacemacs/commit/6063466231ce5e209aacd2de612e53390a25c442 in the develop branch.

MrMic commented 6 years ago

Same issue today, with a new install of spacemacs.

elatomo commented 6 years ago

I also faced this issue today after updating all packages.

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

gavinrogers commented 6 years ago

Error (use-package): org-projectile/:config: Symbol’s 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.

acgollapalli commented 6 years ago

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.

jink-e commented 6 years ago

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

sdwolfz commented 6 years ago

@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 commented 6 years ago

This still affects the master branch correct?