Fork me on GitHub
#conjure
<
2020-10-12
>
uwo19:10:19

Has anyone experienced exception output interrupting print output in the log buffer?

; eval (current-form): (some-expression
; (err) Execution error (ClassCastException) at (REPL:1).
; (err) null
; (out) {:coll (
; --------------------------------------------------------------------------------
I am on an earlier version of conjure

Olical20:10:27

Hmm so you're seeing err output and then stdout?

Olical20:10:59

I'd love to see a minimal repro for this if you can find one :thinking_face: I appreciate that it might be super tricky though

uwo20:10:12

yeah, I'd love to provide a minimal repro -- though we're in a firedrill at the moment. was generally curious if this had come up. I"m able to work around it with the old core.async log channel trick

Olical20:10:11

Oh no! Definitely deal with that first. It does seem like it's a feature rather than a bug at first glance, but I could definitely be wrong. Like you have two chunks of code running and one is throwing an error while the other prints out. But I may be totally misunderstanding.

Olical20:10:32

Is it mashing together the two output strings? Because I didn't get that impression but that'd be BAD

uwo20:10:45

I may have seen mashing at one point when we were printing more than one thing, but in the case above it's just truncating the print output

uwo20:10:28

I suspect this isn't related to conjure at all, just wanted to check though if on the off chance it rang any bells

Olical20:10:38

Hmm well if it can be reproduced consistently then I'll take a deep dive to try and work out if it's Conjure

Olical20:10:51

The other way of checking is run the same code in a regular nREPL

Olical20:10:01

If it looks fine there, then Conjure is probably doing something weird

Olical20:10:22

And I guess not nREPL at the CLI as started by Lein, but a nREPL connected to the port to properly simulate it