Fork me on GitHub
#cursive
<
2016-12-06
>
pradeepcheers13:12:16

New to clojure and I’m using cursive. I cannot found an option for inline compilation. I tried CMD + Enter but doesn’t seem to work!

gerrit14:12:48

@pradeepcheers you mean eval the selected form? then you can use the Send top form to REPL-action or Send form before caret to REPL

pradeepcheers14:12:11

I mean I want see the the output in line

pradeepcheers14:12:53

@gerrit the image is from the cursive website where the compilation is inline similar to lighttable but I can’t get it to work 😞

saeidscorp14:12:18

@pradeepcheers that's for demonstration purposes only. that specific functionality is unique to Light Table.

pradeepcheers14:12:48

looks like it is just a comment with expected output!

james14:12:23

Proto-repl (https://atom.io/packages/proto-repl), Nightcode (https://sekao.net/nightcode/), and Nightlight (https://sekao.net/nightlight/) all support inline REPL evaluation too.

james14:12:36

Well, technically Nightcode and Nightlight display the result of the eval in the gutter to the left of the line, rather than inline in the editor. But that feels pretty similar.

pradeepcheers15:12:13

Thanks James I switched to proto-repl. Much easier to understand when autoeval file is enabled.

cfleming16:12:12

@james That’s interesting, I didn’t realise Nightcode put the value in the gutter. Do you have a screenshot of that handy, by any chance?

james16:12:04

From the website

cfleming16:12:03

@james Thanks, I should definitely have checked the website.

james16:12:20

You're welcome, and no problem. 🙂

shaun-mahood18:12:45

@curlyfry: Macro works, I ended up using the keystrokes # _ <esc> <rightarrow> <leftarrow> <esc> which got rid of the auto complete, and bound that macro to what used to be the line comment mode. Thanks for the help!

curlyfry18:12:28

@shaun-mahood Cool! Come to think of it, I'll probably add that macro too :)

kenny19:12:14

@raymcdermott I have this problem as well and it is a known problem. You can follow & :thumbsup: the issue: https://github.com/cursive-ide/cursive/issues/1069

genRaiy19:12:58

ok, thanks @kenny good to know it’s on the backlog

kenny19:12:33

@raymcdermott You can work around the problem by doing alt+enter on defonce and selecting resolve as def

kenny19:12:45

I’ll add that to the issue