Closed nahuel closed 9 years ago
Just curious, do you get expected completions using the NodeJS REPL or Austin or something like that?
By the way, completion using something like CIDER or vim-fireplace should just work if you're using cider-nrepl
No, I'm not using NodeJS or Austin, just weasel and a bare lein repl
on a plain console with the cider-nrepl plugin. I expected to be able to get CLJS completions using TAB, my steps:
git clone https://github.com/tomjakubowski/weasel.git
cd weasel/weasel-example/
lein cljsbuild once
lein repl
(require 'weasel.repl.websocket)
(cemerick.piggieback/cljs-repl :repl-env (weasel.repl.websocket/repl-env))
;; cljs.user=> prompt is shown
;; Now open weasel/weasel-example/index.html in a browser
(def myvar 2)
myv<TAB> ;;=> nothing is completed
cljs<TAB> ;;=> but this completes ok
Now I realize the completions I'm getting are from the Clojure JVM environment, not from the CLJS browser one, even if the prompt shows "cljs.user=>" and the expressions I enter in that prompt are evaluated in the browser. Seems a little confusing.
I don't think there's anything actionable on Weasel's part here. Changes would need to be made somewhere lower in the stack to support hijacking reply's tab-completion.
Start the ws-repl on a bare
lein repl
using the included weasel-example (not a cider session or anything like that), connect the browser and then type:So it seems like there is something broken.