@cgrand @pesterhazy I had problems concatenating files to send over REPLs with servers running old Clojure versions. I can’t remember if 1.5.0 or 1.6.0 fixed a bug where you couldn’t have multiple ns
forms in a single file.
cfleming: with nrepl load-file
I assume, right?
@cgrand Yes, but it was a Clojure bug
Obviously unrepl is 1.5.0+ anyway because of EDN.
@plexus I didn't thought of it but yeah definitely
@cfleming, I would argue 1.8.0+ because of Socket Server
I was happy to find that concatenating the two files just worked for unravel
but eventually it might be easier/more manageable to put things into a single namespace
something to consider at least
Yeah I understand it was a Clojure bug. My point is just that when you have just a plain repl (socket or not) you don't trigger this bug.
I think you do - it was a problem in load-file
IIRC
I can’t find the JIRA right now.
@cfleming with a plain repl there’s no load-file
involved (you can’t assume a shared FS), you just feed it form by form (well char by char even).
@cgrand Tools will often use load-file
behind the scenes though, e.g. by creating a temporary file to do so. It’s the only way to get file/line info for loaded forms (for debugging/stack traces)
we were talking about sending concatenated files, in this case file/line info is already so-so