Fork me on GitHub
#protorepl
<
2018-03-31
>
danp19:03:29

Hi folks, I've had a bit of a break from Clojure and seem to remember autocomplete working in the proto-repl window as well as in files. Doesn't seem to be doing it now. Should autocomplete work there or did I just remember it wrong?

seancorfield19:03:23

It requires a running REPL with your code eval'd into it @danp

danp19:03:37

Thanks, how do I actually do that? :-s

seancorfield19:03:22

What O/S are you on?

seancorfield19:03:07

Hmm, I don't know the key chords for Linux. Do you know how to start a REPL in Atom?

danp19:03:25

Yep, ctrl+, then l

seancorfield19:03:10

OK, so it's the same as Windows then! So, once you have your REPL running, load the current file ctl+, f and then you should have autocompletion in that file.

seancorfield19:03:06

As I'm writing each new top-level form, I evaluate it into the REPL with ctl+, B (if you use ctl+, b it evals just the current form, not the top-level form).

seancorfield19:03:57

(I pretty much never type into the REPL -- like Stu Halloway's REPL-driven development talk describes -- putting it in a file or a (comment ...) form and eval each form from there)

danp19:03:19

Oh, the ctl+, B tip is handy, cheers!

danp19:03:54

It's still not working though 😞

danp19:03:31

I don't tend to type much in the REPL myself though, was just curious as I could have sworn I'd had the autocompletion previously

danp19:03:59

All works in the file itself though - thanks for the help @seancorfield 🙂

seancorfield19:03:40

Hmm, no, I don't think autocomplete ever worked in the REPL in ProtoREPL... but I don't type there so... 🙂

danp19:03:06

I'm not ruling out a false memory, especially on a Saturday evening!

seancorfield19:03:30

8pm? UK/Europe?

seancorfield19:03:11

I'm originally from there. Now in the San Francisco Bay Area.

seancorfield19:03:30

Have you watched Stu's talk BTW?

danp19:03:10

Oxfordshire here...

danp19:03:11

Yep, I think that's one I've seen

danp19:03:15

I've tried to maintain all my commented experiments in files I'm working with, not so much at work, but when I've been playing around at home.

4