Closed fedreg-bn closed 11 months ago
UPDATE: I actually read through the code a bit (which I should have done before creating an issue :blush: ) and found echo-rewrite-fn
.
Adding this config seems to make it usable although not perfect.
(use-package repl-driven-development
:defer t
:config
(repl-driven-development [C-c r] "scala"
:echo-rewrite-fn
(lambda (echo)
(car (split-string echo "\n")))))
But perfectly workable for the time being and I can dig into the code a bit more to figure out the ansi-color-codes error
Hi, awesome package!!! Thank you for sharing it!
I was excited to try this out in scala, but ran into a couple issues. Maybe someone can point me in the right direction
The package seems to work and evaluate the code correctly, but immediately after evaluating the output, it is being overwritten by the command name,
scala
.For example, say I have a
.scala
file with the following code in it:I can evaluate the definition of
add2
and see it printed in the*messages*
buffer, but in the buffer the output is=> scala
Similarly, if I evaluate the call,
add2(1,2)
I see the correct value printed in*messages*
and the output also shows up in the buffer UI for a fraction of a second before being replaced by=> scala
Example output of in
*messages*
:oh, and when I first evaluate I get an error:
but it seems to go away after several evaluations... :shrug:
Hope that makes sense!! any ideas?
Seems like the scala interpreter itself always spits out a newline with
scala>
after every evaluation, which is likely the issue but not sure if there is a way to work around that with this package. (couldn't find a way in the repl itself)Debian linux Emacs 29.1 config: