Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Src Block Output not captured in Org 9+? #30

Open
Gastove opened this issue Jan 31, 2017 · 8 comments
Open

Src Block Output not captured in Org 9+? #30

Gastove opened this issue Jan 31, 2017 · 8 comments

Comments

@Gastove
Copy link

@Gastove Gastove commented Jan 31, 2017

This exporter is working flawlessly for me, with one exception: src block output isn't captured in the final output.

For instance, if I have this subtree in org:

* Export file + pandoc
:PROPERTIES:
:EXPORT_FILE_NAME: hoodleboo.md
:END:

This document -- which has several characters that... usually fail to typeset well -- should export nicely, I hope.

#+BEGIN_SRC sh :dir ~/ :exports both
ls -la | grep rc
#+END_SRC

#+RESULTS:
| lrwxr-xr-x | 1 | rossdonaldson | staff |   42 | Nov | 19 | 19:34 | .ackrc       | -> | /Users/rossdonaldson/.dotfiles/extra/ackrc  |
| -rw------- | 1 | rossdonaldson | staff |  127 | Oct | 17 | 14:16 | .arcrc       |    |                                           |
| lrwxr-xr-x | 1 | rossdonaldson | staff |   42 | Nov | 19 | 19:34 | .bashrc      | -> | /Users/rossdonaldson/.dotfiles/bash/bashrc  |
| drwxr-xr-x | 3 | rossdonaldson | staff |  102 | Oct | 18 | 09:04 | .erc         |    |                                           |
| -rw-r--r-- | 1 | rossdonaldson | staff |  187 | Dec | 20 | 16:18 | .floorc      |    |                                           |
| -rw-r--r-- | 1 | rossdonaldson | staff |  232 | Dec | 21 | 13:13 | .floorc.json |    |                                           |
| lrwxr-xr-x | 1 | rossdonaldson | staff |   43 | Nov | 19 | 19:34 | .inputrc     | -> | /Users/rossdonaldson/.dotfiles/bash/inputrc |
| -rw-r--r-- | 1 | rossdonaldson | staff | 4200 | Nov |  3 | 16:36 | .mbsyncrc    |    |                                           |

When I export to GFM, I get:

This document -- which has several characters that... usually fail to typeset well -- should export nicely, I hope.
ls -la | grep rc

And yet: in my *Messages*, I can see that src evaluation is happening:

org-babel-exp process sh at position 76418...
executing Sh code block...
Wrote /var/folders/6r/hqwhk3k96hvdw41vn_9r853c0000gn/T/babel-96382h2A/ob-input-96382gQv
Word wrapping enabled
Code block evaluation complete.

I've tried five or six different pandoc formats, all the with the same results; other, non-pandoc exporters don't seem to have this issue for me. Any suggestions?

@tarleb

This comment has been minimized.

Copy link

@tarleb tarleb commented Jan 31, 2017

This seems to be a bug in pandoc's org reader. Plesse re-raise this at pandoc's issue tracker.

@Gastove

This comment has been minimized.

Copy link
Author

@Gastove Gastove commented Jan 31, 2017

AH. Very good. Will do, thanks.

Do y'all prefer this issue here open (for tracking + others affected), or closed?

@tarleb

This comment has been minimized.

Copy link

@tarleb tarleb commented Jan 31, 2017

I'd say leave it open and reference it in the pandoc issue. All the relevant info is here, no need to replicate it. Once we have confirmed that it's a problem with pandoc, this could be closed.

@Gastove

This comment has been minimized.

Copy link
Author

@Gastove Gastove commented Feb 1, 2017

Hrm. Perhaps this could be avoided by, instead of org->org->pandoc, org->html->pandoc? My understanding is that the Org HTML exporter is quite good.

@Gastove

This comment has been minimized.

Copy link
Author

@Gastove Gastove commented Feb 1, 2017

Ah blast, just tried that and it has problems too. In particular, src blocks all come out with "src" as their language, the indentation is all messed up, and there's always an extra space at the end. Fiddle dee dee.

There isn't anyone watching this thread who knows why ox-pandoc goes through the org exporter first, is there?

@mrpurplecloud

This comment has been minimized.

Copy link

@mrpurplecloud mrpurplecloud commented Mar 12, 2017

@Gastove Thanks for your message. I don't have answer to ur question but it made me realize that the issue I met is probably also caused by this org->org->pandoc flow. When there's a bug in org->org export it'll be picked up by downstream conversions too. In my case it's the footnotes part, for which I've submitted an issue here.

@htc502

This comment has been minimized.

Copy link

@htc502 htc502 commented Jun 1, 2018

Same problem. any solution for this?

@Yevgnen

This comment has been minimized.

Copy link

@Yevgnen Yevgnen commented Sep 21, 2019

Any news of this?

I notice that a temp file is created before exporting, and the header arguments of the source code blocks in that file are missing, :exports both is not being respected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.