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

Org-Mode Evaluation of code disabled #7641

Closed atrifex closed 2 years ago

atrifex commented 7 years ago

I am trying to run code as a part of org-mode's code blocks. However, it keeps saying that evaluation of code-blocks is disabled. I am not sure where to go to turn this option on. Please let me know. Thank you in advance.

nickanderson commented 7 years ago

+1 @frapples that worked for me as well. Previously I was purging files under .emacs.d/elpa/. :spacemacs/recompile-elpa is cleaner.

duianto commented 7 years ago

@nickanderson The i and l in recompile got flipped to recomplie. You should probably fix that, so that someone else doesn't try the command and report that it doesn't work.

dabro commented 7 years ago

None of these techniques work for me anymore. I've been through my spacemacs file multiple times looking for anything that could cause premature loading. The amount of time lost on this one bug is unbelievable.

Hellseher commented 7 years ago

Recompilation of Elpa did work for me as well, after update of packages. It's worth to include to main functionality of updates.

tekacs commented 6 years ago

spacemacs/recompile-elpa after updating packages worked for me too.

dabro commented 6 years ago

I've had a couple of successes since my last post deleting ob-core.elc and recompiling that one file.

what-the-functor commented 6 years ago

Let's get to the bottom of this and close it. @dabro, if the issue arises again, can you post specifics?

Fortunately spacemacs/recompile-elpa is documented under Troubleshoot in DOCUMENTATION.org. Perhaps it's worthwhile to call spacemacs/recompile-elpa from configuration-layer/update-packages. Another idea is to check the emacs version at startup, if it has changed, call spacemacs/recompile-elpa.

Final point, this is yet another upstream change that is biting us. It's a common pattern. There has been a lot of discussion around pinning specific package versions. Such functionality, either via melpa-stable or our own package mirror, would diminish this class of bug from affecting Spacemacs.

costrouc commented 6 years ago

I ran into this exact error and I was not using spacemacs. Strangely doing the refresh talked about in the comments worked... but only for that session. in my case this stemmed from ob-sh.el trying to call a function that no longer exists org-babel-get-header https://emacs.stackexchange.com/questions/37692/how-to-fix-symbols-function-definition-is-void-org-babel-get-header . Setting (sh . t) -> (shell . t) in my .emacs fixed my issue.

I am by no means an expert at emacs and lisp so this could be unrelated.

abondis commented 5 years ago

I don't know if that helps anybody, but I had this issue on develop. I removed ~/.emacs.d/elpa/25.2/develop/org-plus-contrib-* then restarted emacs and it works.

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!