Fork me on GitHub
#vim
<
2020-05-29
>
jeremyvdw11:05:42

Hi there, I’m seeing a strange behaviour on a very basic shadow-cljs app with vim, fireplace and cider-nrepl: I can eval s-expr with cpp, get doc with K and so on, but when I’m saving my file, the buffer is wiped out entirely. Has anyone already saw this behaviour?

noisesmith15:05:35

that's really weird - one way that would happen is if something called Eval! on the entire buffer on save

noisesmith15:05:47

perhaps getting it mixed up with Eval

jeremyvdw15:05:21

it only happens when connected to cljs nREPL, it’s ok with clj nREPL

jeremyvdw15:05:47

@U051SS2EU but you’re probably right on Eval! because, on syntax error, the buffer is replaced with the error output from cljs

jeremyvdw08:06:14

There I fixed it (kind of): I was using :FireplaceConnect and then :CljEval (shadow/repl :app). This is wrong, using :Piggieback app does the trick

noisesmith14:06:10

Awesome, glad to hear it's sorted

jeremyvdw14:06:27

Thanks anyway for giving it a though! 👍