gorilla-repl
gorilla-repl copied to clipboard
Only last exception in a clojure block is shown
As my gorilla clojure blocks get bigger, I start refactoring code and get therefore sometimes exception in my code blocks. It seems to me that, even if several exception occurred during evaluation of a block, only the last is shown. I think as well that even after an exception, the reminder of the block gets further evaluated.
This makes seeing the real (first) exception very hard. I see myself constantly commenting code, only in order to see the first exception.
I think it would be better, if a block would stop executing, if there is any exception.
This is an interesting one. Originally, I was thinking that it would always be one top-level form per Gorilla segment. But then I, and others, found that it was useful to have more than one top-level form in a segment. I made a (pretty half-assed) tweak to the output code so that multiple outputs would be displayed (although they are not saved, see #170 ). It would be good to go back and improve the code so multiple outputs are saved and displayed, and show multiple exceptions.
I think the behaviour that the whole block is executed, even after an exception is probably right. That seems to correspond to my intuition that running a block sends all of the code to be evaluated. It also matches the way Mathematica does is, which is probably why it feels right to me.