fpiper / not-ob-spice

Unofficial rewrite of ob-spice
5 stars 1 forks source link

org-babel-get-header function definition is void #1

Open balbirthomas opened 2 months ago

balbirthomas commented 2 months ago

Trying to execute a Spice code block (C-c C-c) results in the error

executing Spice code block...
org-babel-expand-body:spice: Symbol’s function definition is void: org-babel-get-header

Emacs version: 28 Org-mode version: 9.8 Platform: Debian 12

fpiper commented 1 month ago

Sorry for the confusion. This is not the ob-spice repository available on Melpa, which appears to be causing you issues. The main repository for that version can be found here: https://repo.or.cz/ob-spice.git

This repository contains a rewrite of ob-spice that I created years ago due to not knowing any better at the time… It is currently stuck in a works-for-me state, where I never bothered to merge it with the original ob-spice. If there is any interest it I may try to get both merged.. In the meantime I will rename this repo to avoid further confusion.

balbirthomas commented 1 month ago

Hi @fpiper ,

Thank you for your response. I can confirm the same problem is reproducible with ob-spice from both this repository and repo.or.cz/ob-spice.git .

I fully understand you may be busy with many other things. There is no expectation from my side. However when ever you should work on this project again if you like me to test a fix I will be happy to do so.

fpiper commented 1 month ago

If you are loading this version (and make sure not to eval the original version afterwards) this should not happen. There is no call to org-babel-get-header in the code. You can get a detailed backtrace by running M-x toggle-debug-on-error before evaluating the spice block to make sure org-babel-get-header is called directly from org-babel-expand-body:spice and check the actual function definition that is being run by evaluating (find-function 'org-babel-expand-body:spice).