Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
bschwehn opened this issue Oct 6, 2023 · 1 comment
Open
3 tasks done

Comments

@bschwehn
Copy link

bschwehn commented Oct 6, 2023

Checklist

  • I followed the troubleshooting guide and it did not address my issue

  • I've included a link to a Github Gist with the full contents of my troubleshooting.org buffer

  • Each section below is filled in and includes sufficient detail to reproduce the issue

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 #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

@przemarbor
Copy link

I'm dealing with the same problem (I'm on Emacs 29.4, org 9.6.15). After launching emacs --no-init-file executing consecutively the following blocks of code results in the same error.
@bschwehn Did you manage to solve problem? BTW. Is ob-async dead? The last commit was 4 yeas ago, the last issue - almost year and a half...

 #+begin_src elisp
   (package-initialize)
   (require 'ob-async)
 #+end_src
 
 #+RESULTS:
 : ob-async
 
 #+begin_src elisp
 "1"
 #+end_src
 
 #+RESULTS:
 : 1
 
 #+begin_src elisp :async
 "2"
 #+end_src
 
 #+RESULTS:
 : 2
 
 #+begin_src elisp :noweb yes
 "3"
 #+end_src
 
 #+RESULTS:
 : 3
 
 #+begin_src elisp
 "4"
 #+end_src
 
 #+RESULTS:
 : 4
 
 #+begin_src elisp :async
 "5"
 #+end_src
 
 #+RESULTS:
 : 5ceddc7ae65cb1b8736e0d29f105320d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants