Fork me on GitHub
#calva
<
2019-04-28
>
pez09:04:39

The previous build had some serious regression. This one tries to restore some of that, but still has two major problems: 1. A second jack-in in the same session will crash Calva. 2. Evaluations in the cljs repl that have side effects in stdout or stderr do not work. A workaround for #1 is to choose “Restart Extension Host” when the crash happens. When you see that the REPL has started in the jack-in terminal you can then use Calva connect. For #2. If the problematic evaluation is made in the CLJS REPL window, it will stop to function. Close it and open it up anew to wake it up again. Another problem, which this build shares with all previous ones, is that you can’t connect to a running Figwheel Main project. Not even one that you have started yourself with jack-in. (The first jack-in should work, though.) This one should be simple to fix, so I will concentrate on the two main issues mentioned above. The reasons I post this version are twofold. 1) There are some refactorings I’ve made that I’d like to know if they are as clean as I think they are. 2) Anyone having problems with the previous build, might like this one better (@dennisa, maybe?) Thank you all who test these builds for your help and patience. It is quite frustrating to be stuck like I am right now with these blocking bugs, but you have all been excellent in your waiting. ❤️

mattford21:04:59

I had a quick look at what Flycheck does in Emacs wrt to Joker.

mattford21:04:08

Basically it opens joker with --stdin so the buffer can be piped

mattford21:04:12

And then these rules apply

mattford21:04:19

By default Flycheck Mode automatically checks a buffer whenever
• it is enabled,
• the buffer is saved,
• a new line is inserted,
• or a short time after the last change was made in a buffer

mattford21:04:36

joker --lint -

mattford21:04:45

I guess it's fast enough so that it can be done repeatedly. It's limited to a single file.

mattford21:04:03

Can VSCode hook on new line?

mattford21:04:17

That sounds an easy integration if so.

mattford21:04:57

(and assuming you can pipe the buffer or whatever it's called in VSCode without saving it first)

pez21:04:29

We can pipe the contents of the buffer.