Skip to content

Commit

Permalink
Check load-languages in troubleshooting guide (#28)
Browse files Browse the repository at this point in the history
* Check load-languages in troubleshooting guide

See #21, in which the
subprocess was not able to find the function `org-babel-execute:sql`
because `sql` had never been added to `org-babel-load-languages` (in the
parent process).

I've added a new checklist entry in troubleshooting.org to help diagnose
this type of problem by printing the list of languages defined in
`org-babel-load-languages`.
  • Loading branch information
astahlman authored May 5, 2018
1 parent 4bd85c9 commit 5984d61
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions troubleshooting.org
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,16 @@ processes? Compare the output of this block the output of the previous block.
(message "PID: %s\nEmacs version: %s\norg version: %s\nPath to org: %s" (emacs-pid) (emacs-version) (org-version) (symbol-file 'org-version))
#+END_SRC

If you're using a consistent version and still facing problems, turn
on async debugging.
The Emacs subprocess inherits the value of =org-babel-load-languages=
from its parent. Here are the languages which are loaded in the
subprocess. If you don't see your desired language here, it means you
never added it to =org-babel-load-languages= (in the parent process).

#+BEGIN_SRC emacs-lisp :async
org-babel-load-languages
#+END_SRC

If you're still facing problems, turn on async debugging.

#+BEGIN_SRC emacs-lisp
(setq async-debug t)
Expand Down

0 comments on commit 5984d61

Please sign in to comment.