astahlman / ob-async

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

Async not working with CALL #11

Closed xinyifly closed 5 years ago

xinyifly commented 7 years ago
#+NAME: sleep
#+BEGIN_SRC shell :async
sleep 2 && pwd
#+END_SRC

#+RESULTS: sleep
: eae1247455e5d35b9eb36671b10a317a

#+CALL: sleep()

#+RESULTS:
: /root
astahlman commented 7 years ago

Thanks for reporting this. @stnutt proposed a fix in #10 which would address this behavior.

astahlman commented 7 years ago

@stnutt fixed this in #10

Confirmation:

#+NAME: sleep
#+BEGIN_SRC shell :async
sleep 2 && pwd
#+END_SRC

#+RESULTS: sleep
: /home/astahlman

#+CALL: sleep()

#+RESULTS:
: /home/astahlman
GregorySchwartz commented 6 years ago

Does not work when the call has a name, like:

#+NAME: test
#+CALL: sleep()
astahlman commented 6 years ago

Just confirming that I can reproduce.

astahlman commented 5 years ago

@GregorySchwartz @xinyifly https://github.com/astahlman/ob-async/pull/48 will fix this, I think. I've added a test case for this scenario here: https://github.com/astahlman/ob-async/pull/48/files#diff-e2f9b3446fa07abcd51922f95ce941bcR256

astahlman commented 5 years ago

Marked as fixed by #48 - feel free to reopen if you still see this issue after pulling the latest version.