Skip to content

[BUG]: Evaluating src block via SSH hop no output returned #29

Description

@jaidetree

When evaluating a src block with a remote hop over ssh no results are captured\returned.

Reproduction

  1. Install docker on a remote computer
  2. On your editor\host computer set DOCKER_HOST
export DOCKER_HOST="ssh://user@my-remote"
  1. Create a Dockerfile with a database (I'm using postgres but may not matter)
  2. Create an org file
  3. Add a src block with a simple command to test
#+BEGIN_SRC sql :dir /sshx:user@my-remote:/|docker:my-container:/
SELECT * FROM my_table;
#+END_SRC
  1. Evaluate the source block

Expected

  • Upon evaluation emacs first ssh's into my-remote
  • Runs docker exec my container psql ...
  • Query runs and results collected into org-mode results block

Actual

  • Command seems to run, or at least not break
  • No results are collected

Additional Information

  • If I use bash and use something simpler like "ps ax" it works
  • I know there's a chance this might have to do with docker-tramp but anything that can help me debug or where to look next would be highly appreciated.

Environment

Details
emacs   version    27.1
        features   NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER GMP
        build      Aug 20, 2020
        buildopts  (--enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-mac/HEAD-493abe4/share/info/emacs --prefix=/usr/local/Cellar/emacs-mac/HEAD-493abe4 --with-mac --enable-mac-app=/usr/local/Cellar/emacs-mac/HEAD-493abe4 --with-gnutls --with-modules)
        windowsys  mac
        daemonp    server-running
doom    version    2.0.9
        build      HEAD -> develop f6f90c97 2020-08-20 03:54:44 -0400
        dir        ~/dotfiles/client/doom.d/
system  type       darwin
        config     x86_64-apple-darwin18.7.0
        shell      /usr/local/bin/fish
        uname      Darwin 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 18 20:50:10 PDT 2020; root:xnu-4903.278.43~1/RELEASE_X86_64 x86_64
        path       (~/.emacs.d/bin/ ~/.luarocks/bin /usr/local/bin ~/.emacs.d/bin ~/.npm-global/bin ~/bin ~/.yarn/bin ~/.config/yarn/global/node_modules/.bin /usr/local/bin /usr/bin /bin /usr/sbin /sbin /usr/local/share/dotnet ~/.dotnet/tools /usr/local/MacGPG2/bin /Library/TeX/texbin ~/.luarocks/bin ~/.emacs.d/bin ~/.npm-global/bin ~/bin ~/.yarn/bin ~/.config/yarn/global/node_modules/.bin /usr/local/Cellar/emacs-mac/HEAD-493abe4/libexec/emacs/27.1/x86_64-apple-darwin18.7.0/)
config  envfile    envvar-file
        elc-files  0
        modules    (:completion (company +childframe) (ivy +childframe) :ui doom doom-dashboard doom-quit fill-column hl-todo hydra indent-guides modeline ophints (popup +defaults) tabs treemacs vc-gutter vi-tilde-fringe workspaces :editor (evil +everywhere) file-templates fold lispy multiple-cursors snippets :emacs dired electric undo vc :term vterm :checkers (syntax +childframe) :tools direnv docker editorconfig (eval +overlay) gist lookup lsp :os macos :tools magit rgb tmux :lang clojure emacs-lisp fennel json (javascript +lsp) markdown (org +journal) (python +lsp) racket sh (web +lsp) yaml :email (wanderlust +gmail) :config (default +bindings +smartparens))
        packages   ((anakondo) (evil-lisp-state) (fish-mode) (inf-clojure) (sql-indent))
        unpin      (n/a)
        elpa       (n/a)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions