astahlman / ob-async

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

emacs 29.1 breaks async blocks #98

Open ramos opened 1 year ago

ramos commented 1 year ago

Checklist

The result of the troubleshooting.org guide is that all non async blocks work. All async blocks fail with message: (note: I had to change incf for cl-incf).

Expected Behavior

working async blocks

Actual Behavior

All async blocks fail with message:

error in process sentinel: async-handle-result: Recursive load: "/home/alberto/.emacs.d/straight/build/org/org.elc", "/home/alberto/.emacs.d/straight/build/org/org-element.elc", "/home/alberto/.emacs.d/straight/build/org/ox.elc", "/home/alberto/.emacs.d/straight/build/org/ox-ascii.elc", "/home/alberto/.emacs.d/straight/build/org/ob-gnuplot.elc", "/home/alberto/.emacs.d/straight/build/org/org.elc", "/home/alberto/.emacs.d/straight/build/org/org-element.elc", "/home/alberto/.emacs.d/straight/build/org/ox.elc", "/home/alberto/.emacs.d/straight/build/org/ox-ascii.elc", "/home/alberto/.emacs.d/straight/build/org/ob-gnuplot.elc", "/home/alberto/.emacs.d/straight/build/org/org.elc", "/home/alberto/.emacs.d/straight/build/org/org-element.elc", "/home/alberto/.emacs.d/straight/build/org/ox.elc", "/home/alberto/.emacs.d/straight/build/org/ox-ascii.elc", "/home/alberto/.emacs.d/straight/build/org/ob-gnuplot.elc", "/home/alberto/.emacs.d/straight/build/org/org.elc", "/home/alberto/.emacs.d/straight/build/org/org-element.elc", "/home/alberto/.emacs.d/straight/build/org/ox.elc", "/home/alberto/.emacs.d/straight/build/org/ox-ascii.elc", "/home/alberto/.emacs.d/straight/build/org/ob-gnuplot.elc", "/home/alberto/.emacs.d/straight/build/org/org.elc"

Steps to Reproduce

Troubleshooting Artifacts

(Copy-paste the contents of your troubleshooting.org buffer into a gist and add the link here)

Lenbok commented 1 year ago

See #93 and #96. It would be nice to have this fixed.

zarthross commented 1 year ago

I would also love to see this fixed!

ramos commented 1 year ago

I solved the issue forcing the org repo to be in sync with the last release. It seems that master (that is the development branch) suffers from this issue.

mhandugan commented 10 months ago

https://github.com/jwiegley/emacs-async/issues/165 points out the issue with async.el. Replacing utf-8-auto with utf-8 in async.el (used by ob-async.el) makes it work with emacs 29.1 again.

averter commented 4 months ago

Issue also happening in emacs 28.1, org 9.6.24 ob-async 20210428.2052. @mhandugan how would we replace the utf-8 in async.el? Do we then need to byte-compile it? Can someone suggest a step-by-step fix? Thanks.

averter commented 4 months ago

Actually I've just checked and am using async 1.9.8 which already has this change implemented, and so this is definitely not the root cause of the issue!

mirdono commented 4 months ago

It works fine for me in Emacs 29.3 and ob-async 20210428.20521, tested with both async 20231105.1713 (version installed as dependency) and 20240323.1912 (installed explicitly for the purpose of testing this).

averter commented 4 months ago

Thanks @astahlman . I've found that the issue is related to ob-julia-vterm. Whenever I activate it all blocks with async (of julia or any other language) output this error message. Bizarre