xieyuheng/tangle-rs

Unable to tangle using org-tangle; no errors

Closed this issue · 3 comments

Hello,

I was able to install org-tangle using the nightly build of Rust.

I quickly tried it out on one of the test files for my Nim implementation ntangle, but nothing got tangled out of it.

> org-tangle ./tangle_no_yes.org
- tangle : "/home/kmodi/stow/pub_dotfiles/emacs/dot-emacs.d/misc/ntangle/tests/tangle_no_yes/./tangle_no_yes.org"

Expected tangled files (test dir):

What am I missing?


Test file

#+begin_src nim :tangle no
echo "this block won't get tangled"
#+end_src

#+begin_src nim :tangle yes
echo "this will be tangled to tangle_no_yes.nim"
#+end_src

#+begin_src nim :tangle specified_file.nim
echo "this will be tangled to specified_file.nim"
#+end_src

Currently only global tangle property-line is supported.
(because I only use global tangle property-line >_<)

This means only the following simple use case is covered :

#+property: tangle specified_file.nim

#+begin_src nim
echo "this will be tangled to specified_file.nim"
#+end_src

I add some notes in the readme :: https://github.com/parsing-tech/org-rs/tree/master/org-tangle#note-about-restriction

Maybe when I need to use
code block level tangle property-line
and headline level tangle property-line,
I will handle them in this program.

Hehe, I on the other hand need to add support (ntangle) for global property and subtree level property headers :P