ob-async icon indicating copy to clipboard operation
ob-async copied to clipboard

emacs 29.1 breaks async blocks

Open ramos opened this issue 2 years ago • 8 comments

Checklist

  • [ X] 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

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)

ramos avatar Aug 04 '23 10:08 ramos

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

Lenbok avatar Aug 09 '23 02:08 Lenbok

I would also love to see this fixed!

zarthross avatar Aug 15 '23 15:08 zarthross

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.

ramos avatar Aug 15 '23 16:08 ramos

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.

mhandugan avatar Oct 26 '23 02:10 mhandugan

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 avatar Apr 02 '24 18:04 averter

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!

averter avatar Apr 03 '24 12:04 averter

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

mirdono avatar Apr 06 '24 10:04 mirdono

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

averter avatar Apr 06 '24 14:04 averter