all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug: ob-eshell session breaks with long running commands [9.3.1 (release_9.3.1-73-g93c11d @ /home/guraltsev/.emacs.d/straight/build/org/)]
@ 2020-01-08 12:53 Gennady Uraltsev
  0 siblings, 0 replies; only message in thread
From: Gennady Uraltsev @ 2020-01-08 12:53 UTC (permalink / raw)
  To: emacs-orgmode

Hello everyone,

Org babel eshell does not work well with the :session argument. In
particular if the the command does not exit immediately then the results
can be arbitrary and can vary from one call to the other. Also, the
results often include the actual calling line.

Notice that executing things with sh src code does not have this session
management problem. So it seems to really be bug. 

This code illustrates the problem.

#+BEGIN_SRC eshell :results output drawer
echo test
#+END_SRC

#+RESULTS:
:results:
test
:end:

#+BEGIN_SRC eshell :results output drawer :session test1
echo test
#+END_SRC

#+RESULTS:
:results:
test
:end:

#+BEGIN_SRC eshell :results output drawer
sleep 1 ; echo test
#+END_SRC

#+RESULTS:
:results:
test
:end:

#+BEGIN_SRC eshell :results output drawer :session test2
sleep 1 ; echo test
#+END_SRC

#+RESULTS:
:results:
~/Mail $ sleep 1 ; echo test
:end:

Best,

Gennady

Emacs  : GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.10)
 of 2019-08-29
Package: Org mode version 9.3.1 (release_9.3.1-73-g93c11d @ /home/guraltsev/.emacs.d/straight/build/org/)

current state:
==============
(setq
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
                     org-src-mode-configure-edit-buffer)
 org-link-shell-confirm-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
 org-edit-src-content-indentation 0
 org-src-tab-acts-natively t
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-special-ctrl-a/e t
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-reveal-start-hook '(org-decrypt-entry)
 org-modules '(ol-bbdb ol-bibtex ol-docview ol-eww ol-gnus org-id ol-info
               ol-irc ol-mhe org-mouse org-protocol ol-rmail ol-w3m
               ol-eshell ol-git-link ol-man org-toc)
 org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id
 org-mode-hook '(#[0
                   "\b\205.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-08 12:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-08 12:53 Bug: ob-eshell session breaks with long running commands [9.3.1 (release_9.3.1-73-g93c11d @ /home/guraltsev/.emacs.d/straight/build/org/)] Gennady Uraltsev

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.