Fork me on GitHub
#cursive
<
2016-05-04
>
jumar06:05:14

hi, I have a question regarding Cursive + Figwheel + Reagent integration

jumar06:05:31

I followed the guide https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-in-a-Cursive-Clojure-REPL and for project generated by “lein new figwheel” it works basically ok

jumar06:05:09

however, for project generated by “lein new reagent” it doesn’t seem to work well - the figwheel repl is not able to connect to the browser - and I can’t figure why

jumar07:05:08

Oddly enough, I if run another figwheel repl via “lein figwheel” in console, the Cursive repl is able to connect - however, after I stop the figwheel running in console and restart Cursive REPL the browser keeps complaining:

ClojureScript has not been compiled!

please run lein figwheel in order to start the compiler

grav08:05:48

@jumar: The reagent template profile.clj contains a lot of stuff. Maybe start out with the figwheel template instead, and then add the stuff you need when you need?

jumar08:05:59

yeah, that’s definitely an option - however, I just want to try some reagent hello world and check how it works with figwheel

ndroock108:05:22

I required [cljsjs.reactable] in a clojurescript namespace. Subsequently hovering over Reactable.Table ( from the required library ) invokes the message "This object cannot be resolved." Otherwise the program works as expected. Is this expected behaviour because it is an external javascript library?

darwin23:05:44

@cfleming: I’m working on the Cursive REPL integration with Dirac: (teaser) https://dl.dropboxusercontent.com/u/559047/the-first-happy-joined-dirac-session-party.png my current problem is that after joining a Dirac session in Cursive (which effectively turns it into ClojureScript REPL), Cursive still thinks it is a normal Clojure REPL. What is the mechanism which determines/triggers Cursive to treat the REPL as CLSJ REPL?

cfleming23:05:26

@darwin: It’s done by pattern matching on the output. It’s hard-coded right now, but I had planned to expose that in config.

darwin23:05:17

good, I could probably trigger that pattern match for now

cfleming23:05:22

Looks great BTW simple_smile

cfleming23:05:28

Let me check the conditions, one sec

cfleming23:05:41

Currently it searches for "Type :cljs/quit to stop the ClojureScript REPL” or "To quit, type: :cljs/quit"

cfleming23:05:27

Ugh, I can’t escape the markdown in Slack - in the first message there are backticks

darwin23:05:09

thanks, will try to print those upon joining