This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (2)
- # beginners (130)
- # calva (72)
- # cider (4)
- # cljdoc (15)
- # cljs-dev (3)
- # cljsrn (2)
- # clojars (4)
- # clojure (55)
- # clojure-nl (1)
- # clojure-uk (19)
- # clojurescript (46)
- # cursive (95)
- # datomic (6)
- # figwheel (40)
- # fulcro (12)
- # hyperfiddle (3)
- # off-topic (11)
- # onyx (3)
- # parinfer (6)
- # pathom (15)
- # protorepl (38)
- # re-frame (67)
- # reitit (18)
- # shadow-cljs (45)
- # tools-deps (2)
anyone feel like giving me a hand setting up cursive. i am able to run a project, but i just can't seem to set up using the repl and i feel like a clod because i can't do much else
mmm .. i wish i could screen share on this because when you see what i have you will know why i am kinda stranded in no mans land
Ok. I'm running Cursive REPL all the time, it should be easy to configure, maybe you just miss some simple thing there...
gosh darn .. that is what is so frustrating .. i know it is possible .. i just can't figure it out
Ok. I have latest IDEA Ultimate and latest Cursive, I'm running REPL all the time, so let's compare...
they have this idea of run configurations, but i not sure what i am tying to configure .. i just randomly type stuff
the name though it seems to extract from the module i selected ?? or something > i have no idea
Now in IDEA you should see the combo-box with your repl name (if you gave it e.g. name "my-REPL")
Ok. You should see the REPL window with two compartments, the upper part is the REPL output, the lower part is where you can interact with the REPL.
Next you can try to interact with your system using REPL. Lisp REPL is by far the most productive development tool I have ever used, so learn to use it.
E.g. I have the following hot keys in my IDEA/Cursive to make working with REPL fluent: ;; Kari's Cursive settings that makes integration with editor and REPL more fluent: ;; <shift><ctrl><N> => Switch REPL namespace to current file (which is in editor when command given) ;; <shift><ctrl><M> => Load current namespace to REPL ;; <shift><ctrl><Å> => Send S-expression to REPL input ;; <caps><alt><U> => Focus to Editor (choose dialog window) ;; <esc><esc> => Focus to Editor last edit. ;; <caps><alt><I> => Focus to REPL output ;; <caps><alt><O> => Focus to REPL input ;; <caps><ctrl><I/K> => (In REPL): Browser REPL history ;; <ctrl><enter> => (In REPL): Send REPL input to REPL. ;; <caps><alt><J/L> => (In editor) => Switch tabs in editor ;; <ctrl><X>-<ctrl><O> (In editor) => Switch to next editor window (as in Emacs)
You can configure those hot keys as you like in IDEA (see File -> Settings -> Keymap -> then search "REPL"...
i don't have to type in that little window below the REPL and it will use current file instead
Then using that hotkey in the editor you can switch the REPL to use that namespace (file) and call directly the functions in that namespace in your REPL.
Since my wife is calling me downstairs ... it's Saturday evening and our traditional movie evening is about to begin... 🙂
No problem. I was pretty sure it was just some minor detail that you missed. If you have any further questions about Cursive, ping here or in the beginners channel...