astahlman / ob-async

Asynchronous src_block execution for org-babel
343 stars 32 forks source link

:noweb yes breaking ob-async with error in process sentinel: Invalid read syntax: "#" #99

Open bschwehn opened 10 months ago

bschwehn commented 10 months ago

Checklist

Expected Behavior

Async execution working or at least only failing once when using :noweb yes

Actual Behavior

After executing a code block with :async and :noweb yes, all subsequent executions with :async fail with error

error in process sentinel: async-when-done: Invalid read syntax: "#"
error in process sentinel: Invalid read syntax: "#"

Steps to Reproduce

execute

#+begin_src shell :async
echo ff
#+end_src

=> this should work asyncronously

execute

#+begin_src shell :async :noweb yes
echo ff
#+end_src

=> this fails with "Invalid read syntax: "#"

now

#+begin_src shell :async
echo ff
#+end_src

also fails and keeps failing until restarting emacs.

I have tried the workaround that was suggested in https://github.com/astahlman/ob-async/issues/75

(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)

but no difference

Troubleshooting Artifacts

https://gist.githubusercontent.com/bschwehn/0d36feaa9c0c681295eb4b955da90919/raw/9feca662ccdcb685c84bcd65a37be7b7b83b7b22/troubleshooting.org