protorepl

daiyi 2017-07-06T13:47:47.561630Z

so now I'm trying to start proto-repl with my project, then start figwheel from within proto-repl. I've got it almost nearly working! If I send code blocks into proto-repl to evaluate, it works excellently, it can talk to the browser and everything. but when I start typing directly into the console, I get this error on almost every keystroke:

java.lang.RuntimeException: Unable to resolve symbol: require in this context
clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: require in this context, compiling:(/tmp/form-init6143176508571391097.clj:1:5)

daiyi 2017-07-06T13:50:58.669751Z

oh it's not actually every keystroke. when I type (map #(+ % 2) [1 2 3]) into the console, it gives me java.lang.NullPointerException: for every keystroke of the word "map"

rgdelato 2017-07-06T17:26:21.423692Z

hmm. that sounds like maybe it's having an issue with the auto-complete? does it still happen if you turn off completion?

rgdelato 2017-07-06T17:38:48.839824Z

@seancorfield I know you already posted this earlier, but would you mind re-posting your list of Paredit indentation forms?

seancorfield 2017-07-06T17:40:29.894131Z

@rgdelato It may have changed since last time...

try, catch, finally, let, are, /^def.*/, fn, /^cond-.*/, if, if-let, for, /when.*/, testing, do, doseq, dotimes, loop, ns, /with/, proxy, reify

seancorfield 2017-07-06T17:41:35.929791Z

I tend to keep updating it as I find forms that don't indent the way I'd like...

rgdelato 2017-07-06T17:54:44.370800Z

awesome, thank you 😄