reddit / emacs

org-babel, problems with ob-async

Clear_Ad_491 · 2022-06-01 19:27
Hi Im trying to get ob-async to work on my emacs26 and emacs28, but keeps running in to problems.. Is the module still relevant ? or is there a better way of running code async in org-mode/org-babel? ​ Thanks :)
Clear_Ad_491 · 2022-06-02 14:58
I did a quite a bit of trial and error and fixed the problems that I keep running into. Just for reference and if other have the problems: ​ 1) If you use org babel and load "go" as an language via "ob-go" then you get an error of recursive include when running a snippet. 2) There is an error when a #RESULTS draw is collapsed you get an error error in process sentinel: async-handle-result: Invalid read syntax: "#" error in process sentinel: Invalid read syntax: "#" Just add this to your init.el fil (defun no-hide-overlays (orig-fun &rest args) (setq org-babel-hide-result-overlays nil)) (advice-add 'ob-async-org-babel-execute-src-block :before #'no-hide-overlays) See this for more info [https://github.com/astahlman/ob-async/issues/75](https://github.com/astahlman/ob-async/issues/75) ​ Hope that helps someone :)