Fork me on GitHub
#cursive
<
2018-09-07
>
emilaasa06:09:44

Is there a way to convert a deeply nested form like: (clojure.walk/keywordize-keys (json/parse-string (:body (client/get "myurl")))) into a threading macro variant?

emilaasa06:09:56

like an editor action thingie

steveb8n07:09:07

loving the new deps.edn support. just one annoyance, the REPL output window that pops up when starting a run config. Can that popup be disabled? I don’t see any use for it

tbaldridge12:09:48

@cfleming I'm going to be "that guy" and make a bug report with a very limited amount of data. At work my REPLs only ever print one exception. I can submit forms and get results, but if there's any sort of error (compiler or runtime) I get a stacktrace for the first error, and after that, nothing. It doesn't hang the REPL, I simply get no response.

tbaldridge12:09:09

Same effect if the exception happens via run-tests command sent with a keybinding, loading a file, etc.

tbaldridge12:09:20

So I can get sessions like this:

tbaldridge13:09:42

Loading foo.bar....
=>(+ 1 2)
3
=>(run-tests)
Running tests....
=> (/ 1 0)
=> (let [foo/bar 34] x)
=> (+ 1 2)
3

tbaldridge13:09:27

The "...." lines being lines where we start to load a file, run a test, and then nothing.

basti17:09:10

I ran into the same issue 😢

richiardiandrea18:09:15

This is what I see

basti18:09:39

Yeah so it applies to local linked transitive dependencies. Sometimes only though .. I had a project where it worked fine :thinking_face:

richiardiandrea19:09:49

in my case above it is a monorepo - data point

cfleming03:09:56

That’s just coming back from deps - I’ve seen that error on the command line sometimes too.

cfleming03:09:25

I don’t know why it’s required sometimes and not others - might be a question for #tools-deps.

cfleming03:09:19

The workaround is to specify :deps/manifest :deps in the dependency alongside the `:local/root’

richiardiandrea03:09:32

Oh ok got it I had never seen that, thank you Colin!

sparkofreason19:09:35

Trying to implement a class using gen-class and use it in the REPL. Project is using deps.edn. What is the correct workflow in cursive? Currently getting IncompatibleClassChangeError when trying to import.