This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-12
Channels
- # aleph (11)
- # aws-lambda (1)
- # beginners (158)
- # boot (19)
- # cider (14)
- # clara (23)
- # cljs-dev (3)
- # clojars (4)
- # clojure (133)
- # clojure-dev (57)
- # clojure-dusseldorf (1)
- # clojure-finland (2)
- # clojure-gamedev (31)
- # clojure-greece (15)
- # clojure-ireland (1)
- # clojure-italy (3)
- # clojure-russia (8)
- # clojure-spec (149)
- # clojure-uk (51)
- # clojurescript (88)
- # community-development (1)
- # component (5)
- # cursive (17)
- # datomic (3)
- # emacs (6)
- # fulcro (142)
- # graphql (1)
- # juxt (15)
- # lein-figwheel (1)
- # luminus (3)
- # lumo (6)
- # off-topic (11)
- # om (8)
- # onyx (5)
- # portkey (6)
- # proton (2)
- # protorepl (3)
- # quil (6)
- # re-frame (14)
- # reagent (9)
- # shadow-cljs (226)
- # specter (11)
- # testing (96)
- # uncomplicate (5)
- # unrepl (8)
- # vim (11)
Is there any way to have a run configuration that evaluates an expression automatically once the REPL is up and running?
I usually create a clj file with the expressions I want to run and reference it on the parameters field for the run config. For instance, running Figwheel:
(use 'figwheel-sidecar.repl-api)
(start-figwheel! "dev")
(cljs-repl)
Since this is run when the REPL starts, then it automatically starts a cljs REPL with Figwheel.That will definitely work if you're just using clojure.main, but not if you're in an nREPL environment
That's true. No idea then, sorry
@U09A6U6GJ No, there isn’t an option like that. Can you use user.clj
?
@cfleming No. I can (and do) keep helper fns there, but because the nREPL session isn't set up when user.clj
is loaded, I can't just e.g. put a (cljs-repl)
call as a top-level.
@cfleming any chance you could add different highlighting for namespaced vs unnamespaced keywords? A couple of times I've had errors where I mix the two, and it's hard to spot
The errors can be pretty cryptic sometimes too, though this doesn't have anything to do with cursive 😄
Today I had (require [my.namespace ::as my-ns])
. Took a while to notice where the error was 😕