Sam Crawford <s...@crawf.uk> writes:

> A MWE is:
>
> #+begin_src python :async yes :results value :session python
>   12
> #+end_src
> ...
> I believe the issue comes from the regexp used for
> org-babel-comint-async-indicator on line 540 of ob-ipython.el. It is
> currently "ob_comint_async_python_\\(.+\\)_\\(.+\\)", which means
> that, if the temp file's path contains underscores (this is the bit I
> believe is MacOS specific), the regex will greedily consume those
> underscores, and (match-string 1) will fail to identify what type of
> results we have.
>
> I'm not too familiar with the code but, given that the first group
> seems to only ever be a simple word, perhaps the replacing this regexp
> with "ob_comint_async_python_\\(\\w+\\)_\\(.+\\)" would be sufficient?

Thanks for reporting!
Fixed, on bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=498fd25d2

At least, I did make the regexp stricter. Please let me know if you are
still seeing problems.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to