micanzhang / ob-rust

28 stars 10 forks source link

No org-babel-execute function for rust! #10

Open exiled-scot opened 1 year ago

exiled-scot commented 1 year ago

I installed ob-rust in doom emacs.

Attempting to execute the following fails with "No org-babel-execute function for rust!".

#+begin_src rust
println!("hello");
#+end_src

I have installed rust with rustup, as per the README and attempted to set an org-babel-execute:rust variable manually but had no success.

rust-script runs in the shell and .cargo/bin is in the exec-path and used successfull in term, shell, and eshell.

BreezeConfirmingWms commented 6 months ago

Hi,I once have a trouble when I get touch with doomemacs.Finally I solve by typing M-x package-install ob-rust

It's owing to that I found check through SPC h f org-babel-excute and check my function org-babel-load-languages is called in $EMACSDIR/init.el and ob-go should depend on melpa but not straight.el!

So I think it's necessary to give a preference to check your configuration on $EMACSDIR then $DOOMDIR