Fork me on GitHub

Hi @cfleming I’m having some weird behaviour differences between file loading in a REPL and an interactive session


when I try to load this file into the REPL it barfs


if I script the same code into the REPL, it works fine (in both the CLI REPL and the Cursive REPL)


Maybe I have screwed up in some way ?

💀 4

if not, shall I open a bug?

Alex Miller (Clojure team)12:05:26

I think you’re using gen/fmap wrong

Alex Miller (Clojure team)12:05:29

The spec gen namespace differs from test.check gen in take generator thunks instead of generators

Alex Miller (Clojure team)12:05:53

Your first example used spec gen and second used test.check gen

😂 4
Alex Miller (Clojure team)12:05:36

If using spec gen, 2nd argument to fmap should be a no-arg function that returns a generator (so you can just add # at the front to make it an anonymous function)

Alex Miller (Clojure team)12:05:20

I don’t think this has anything to do with Cursive


In the “resolve macro as” dialog, there is a “Specify…” option. It asks for a var name. Is there documentation how it works?


When i stop at a breakpoint and press <alt>+<F8>, I can’t easily execute/evaluate functions from the current namespace, e.g. (my-function). If the function lives in another namespace, I can press <alt>+<enter>. My workaround for functions in current namespace is to wrap it with an ‘identity’ function, e.g.: (identity (my-function)). It worked before without having to import functions in earlier versions of Cursive. I run 1.6.3-2017.2 of Cursive and 2017.2 Community edition of IDEA.