Fork me on GitHub
#cursive
<
2019-12-09
>
manutter5114:12:58

I’m having problems with the Leiningen setting. I have an old project that’s been using Leiningen 2.7.1, and I want to start using 2.9.1. I go under Settings -> Build, Execution, Deployment -> Build Tools -> Leiningen, change the Leiningen version to 2.9.1, and click OK. Then I open up the settings dialog again to confirm the change, and it’s back to 2.7.1. I tried Invalidate Caches / Restart in case that might help, but no luck.

manutter5114:12:45

Hmmm, maybe if I delete the idea stuff and re-import the project… :thinking_face:

manutter5115:12:00

That did it.

cfleming22:12:00

@potetm I haven’t seen the socket REPL swallowing exceptions, no - I’ll try your repro case and see what I can see.

cfleming23:12:27

@potetm I can’t reproduce what you’re seeing. I see:

Connecting to remote Socket REPL...
Clojure 1.10.1
(sequence (comp (take 10)
                (map (fn [i]
                       (when (= i 9)
                         (throw (RuntimeException.))))))
          (range))
Execution error at user/eval333$fn (REPL:2).
null
*e
=>
{:via [{:type java.lang.RuntimeException, :at [user$eval333$fn__334 invoke "NO_SOURCE_FILE" 2]}],
 :trace [[user$eval333$fn__334 invoke "NO_SOURCE_FILE" 2]
         [clojure.core$map$fn__5862$fn__5863 invoke "core.clj" 2742]
         [clojure.core$take$fn__5905$fn__5906 invoke "core.clj" 2877]
         [clojure.lang.TransformerIterator step "TransformerIterator.java" 79]
...etc etc...

cfleming23:12:03

If you run clj -J-Dclojure.server.repl="{:port,5555,:accept,clojure.core.server/repl}", then create a new empty project and connect to 5555 using a new remote run config, do you still see the same problem?