bhauman / figwheel-main

Figwheel Main provides tooling for developing ClojureScript applications
https://figwheel.org
Eclipse Public License 1.0
640 stars 93 forks source link

Problem in getting the repl up #65

Closed bkolobara closed 6 years ago

bkolobara commented 6 years ago

I'm following this tutorial to set up a figwheel environment.

But once I add the --compile flag the compilation just finishes without leaving me inside the repl. E.g.

~/Development/cljs-starter > clj -m figwheel.main --compile cljs-starter.core --repl
[Figwheel] Compiling build unknown to "target/public/cljs-out/main.js"
[Figwheel] Successfully compiled build unknown to "target/public/cljs-out/main.js" in 0.413 seconds.
~/Development/cljs-starter >

deps.edn:

{:deps {org.clojure/clojurescript {:mvn/version "1.10.339"}
        com.bhauman/figwheel-main {:mvn/version "0.1.8"}
        com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}}
 :paths ["src" "target"]}

cljs_starter/core.cljs:

(ns cljs-starter.core)

(defn what-kind? []
  "Cruel")

(js/console.log (what-kind?))

What am I missing?

bhauman commented 6 years ago

Thats a good question!

I'll do a walk through and see what's up.

bhauman commented 6 years ago

Yep there is a regression here thanks for pointing it out.

bhauman commented 6 years ago

You should be able to continue with the tutorial with com.bhauman/figwheel.main 0.1.7 while I fix this bug.

I just updated the tutorial document, and this reminds me how important it is to just have a set of tests that validate the behavior of the tutorial.

bkolobara commented 6 years ago

@bhauman Thanks a lot!