This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-21
Channels
- # aws (2)
- # bangalore-clj (1)
- # beginners (25)
- # boot (2)
- # cider (176)
- # clara (73)
- # cljs-dev (6)
- # cljsrn (31)
- # clojure (40)
- # clojure-greece (9)
- # clojure-india (1)
- # clojure-italy (14)
- # clojure-nl (9)
- # clojure-russia (4)
- # clojure-uk (156)
- # clojurescript (124)
- # core-async (37)
- # cursive (2)
- # data-science (2)
- # datomic (22)
- # emacs (3)
- # fulcro (32)
- # graphql (6)
- # java (3)
- # lein-figwheel (19)
- # lumo (29)
- # nyc (1)
- # off-topic (9)
- # onyx (15)
- # portkey (12)
- # precept (2)
- # re-frame (15)
- # reagent (10)
- # rum (7)
- # schema (2)
- # shadow-cljs (48)
- # tools-deps (35)
- # yada (1)
(somewhat crossposted from #lein-figwheel) : I have a new job where they don't think it's crazy if I use Clojure, and I am psyched. I want to do a thing that sounds complicated but maybe isn't? I'm doing QA on a new app with a Java back end and an AngularJS front end. It's pretty big --- not enterprise/legacy big but bigger than projects I've made for sure. I want to get some visibility into what is happening, so I want to open and connect to a repl. I think this means I need to find the file closest to the root of our app, and figure out how to add a little bit of code that runs the clojure repl function? If anyone has done this crazy thing I would love to hear how it went and get advice on how to start
@mathpunk Yes, the simplest would be to add Clojure as a dependency, and just have code that uses https://clojure.github.io/clojure/javadoc/clojure/java/api/package-summary.html to ensure Clojure is loaded, then add -Dclojure.server.repl=...
to the Java app's startup options and -- voila! -- you'll have a bare bones Socket REPL running inside your Java app.
(importing that clojure.java.api.Clojure
class may be sufficient to cause Clojure to load and start a Socket REPL -- I'm not certain)