ag91 / scala-cli-repl

Emacs REPL for scala-cli
11 stars 7 forks source link

fix(obs-scala-cli): prevent warinings after block evaluation #1

Closed JakDar closed 1 year ago

JakDar commented 1 year ago

Thanks for this package.

I've found that using ob-scala-cli you get warinings and |} in output. I think that's due to wrong format string in ob-scala-cli-expand-body. Two issues:

  1. Space before the code which triggers indent warinings for scala 3.
  2. ob-scala-cli-eval-needle being sent (formatted) before closing bracket which resulted in bracket being reflected in source block result.

Here is the before: image

And after: image

Hope it helps ;)

ag91 commented 1 year ago

Amazing, that makes it much better! Thank you for the contribution :)