zwild / ob-ammonite

org-babel for scala evaluation in Ammonite
GNU General Public License v3.0
14 stars 2 forks source link

Autostart ammonite buffer #6

Open ccellado opened 3 years ago

ccellado commented 3 years ago

When executing code block emacs freezees if there is no ammonite REPL buffer started.

Is it a feature, or a bug?

I am using doom emacs, maybe this is the problem.

yaodong commented 3 years ago

Same issue here. Looks like if the REPL buffer is not started, the prompt string is missing so the loop never stops.

(while (not (s-ends-with? ob-ammonite-prompt-str (s-trim-right ob-ammonite-eval-result)))
    (sit-for 0.5))
  (sit-for 0.2)
Thrimbda commented 3 years ago

same here using spacemacs