This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-14
Channels
- # aws-lambda (5)
- # beginners (38)
- # boot (197)
- # carry (7)
- # clara (3)
- # cljs-dev (7)
- # cljsjs (6)
- # cljsrn (24)
- # clojure (39)
- # clojure-art (10)
- # clojure-austin (7)
- # clojure-dusseldorf (1)
- # clojure-italy (8)
- # clojure-russia (89)
- # clojure-spec (119)
- # clojure-taiwan (1)
- # clojure-uk (19)
- # clojurescript (104)
- # community-development (2)
- # conf-proposals (22)
- # copenhagen-clojurians (8)
- # cursive (2)
- # datomic (35)
- # devcards (4)
- # dirac (79)
- # euroclojure (2)
- # immutant (35)
- # om (138)
- # om-next (2)
- # onyx (172)
- # proton (4)
- # protorepl (1)
- # re-frame (36)
- # reagent (34)
- # spacemacs (1)
- # specter (7)
- # untangled (89)
- # yada (2)
i followed the instructions in https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-in-a-Cursive-Clojure-REPL to get figwheel+cursive to play together
but when i apply this diff to my project.clj: http://pastebin.com/NsF4RSR6
i get this error message when trying to start my app via cursive: http://pastebin.com/2AbcdtDU
"Could not locate org/httpkit/server__init.class or org/httpkit/server.clj on classpath., compiling:(figwheel_sidecar/components/figwheel_server.clj:1:1)" is probably the relevant bit
the rest of the project.clj is here, if that's helpful: https://github.com/jrheard/voke/blob/ai/project.clj
this looks to me that some dependencies clashed, we could investigate it via lein deps :tree
if i'm interpreting this right, i think cursive doesn't use leiningen here, and instead runs https://github.com/jrheard/voke/blob/ai/script/repl.clj directly
next step would be to run the script from command-line without cursive and reproducing the same error
I’m not sure how that script gets classpath setup, is it something cursive figures out from project.clj on its own?
if cursive does some classpath magic, we won’t be able to reproduce it easily from command-line
unclear - here's what the configuration UI for this looks like, again as per that wiki page: https://www.evernote.com/shard/s11/sh/c6f6f7bf-4b07-44fb-9751-231d3f8a7634/6edb409220d70bf2
maybe i should be asking this in #cursive instead? unclear if this is dirac's fault or not
try to add to print current classpath in the script: https://github.com/binaryage/cljs-oops/blob/master/test/src/tools/oops/tools.clj#L14-L15
it prints out http://pastebin.com/hPPtcCKP
try to add it to your deps: http://www.http-kit.org/
it is here: https://github.com/bhauman/lein-figwheel/blob/master/sidecar/project.clj#L16
it should have been picked by https://github.com/jrheard/voke/blob/ai/project.clj#L11
i think there's a chance my machine's in a bad state, dropbox got mad a few days ago and modified / rolled back a bunch of my files
maybe now we should ask question why you need this setup in the first place, if you wan to work with dirac under cursive, you should follow: https://github.com/binaryage/dirac/blob/master/docs/integration.md
yeah, that's what i want as well - do i not need the stuff from that figwheel wiki page any more?
at what point does figwheel's auto-reloading get set up, then? my mental model around all of these tools is extremely hazy
cool, i'll poke around and see what works / see if i can figure out how all this fits together
all the REPL stuff is just extra stuff, which can be disabled, you did that by :repl false
that integration.md looks very useful, and i'm not seeing a giant stacktrace any more, so i'm happy 😄
gotcha - so i'll start by just using lein repl
from the command-line, and will deal with cursive integration once i'm done with installation.md
not sure if cursive can see it and make sense of it, I don’t think so, you just configure cursive’s nREPL client via UI dialog
ok, so i've followed the instructions in installation.md, and lein repl
gives encouraging-looking output (connected to nrepl server, agent is accepting connections) - but when i load up my app via chrome canary and click on the dirac button, i see:
Dirac requires runtime support from your app. Please install Dirac Runtime into your app and enable the :repl feature. ReferenceError: dirac is not defined at <anonymous>:1:1
my project.clj looks like this - have i done something wrong? https://github.com/jrheard/voke/blob/ai/project.clj#L36