figwheel

general discussion about figwheel, specific discussions in #figwheel-main and #lein-figwheel
genekim 2018-02-23T05:16:31.000101Z

@bhauman — took 20m to upgrade to 0.5.15-SNAPSHOT. Seems to work great from MacOS terminal. Also works inside of Cursive — having a little trouble with some REPL commands to print re-frame app-db… Rolling back to old version to see if it has anything to do with new figwheel…

genekim 2018-02-23T05:25:39.000077Z

0.5.14: REPL session looks like

(in-ns 'trello-workflow.events)
=> nil
(def x @re-frame.db/app-db)
=> #'trello-workflow.events/x
0.5.15-SNAPSHOT:
dev:cljs.user=> (in-ns 'trello-workflow.events)

dev:trello-workflow.events=> (def x @re-frame.db/app-db)
----  Compiler Warning on   <cljs form>   line:1  column:9  ----

  Use of undeclared Var re-frame.db/app-db

  1  (def x @re-frame.db/app-db)
             ^--- 

----  Compiler Warning  ----
#'trello-workflow.events/x
dev:trello-workflow.events=> x
{:board-lists [],
 :move-save-old-board-id nil,
 :current-card-comments [],
 :new-list-form "",
 :name "re-frame",
:
:
:

genekim 2018-02-23T05:26:43.000098Z

@bhauman — huh… 0.5.15 gives a warning that 0.5.14 doesn’t give, but I can still access the x… I guess it still “works”, but something seems amiss?

genekim 2018-02-23T05:27:29.000149Z

@bhauman — wow, color output is really awesome… I think I’m going to really miss color in the Cursive REPL!!!!

mathpunk 2018-02-23T07:11:18.000046Z

@bhauman Looks good (actually, great) on Arch 4.15.2-2, OpenJDK Java 8

bhauman 2018-02-23T14:35:24.000500Z

@mathpunk thanks!

bhauman 2018-02-23T14:36:46.000234Z

@genekim Thanks for the info. 🙂 What version of clojurescript were you using before you upgraded figwheel in your example?

bhauman 2018-02-23T15:33:48.000105Z

@genekim I have confirmed this behavior and I'm looking for the problem, thanks!

genekim 2018-02-23T16:49:59.000712Z

Realized after I went to bed that I should have specified ClojureScript versions. For your reference, here’s my project.clj dependencies.

genekim 2018-02-23T16:50:24.000233Z

@bhauman ^^^

👍 1
bhauman 2018-02-23T19:54:36.000005Z

@genekim can you confirm that you just need to do a lein clean to prevent the behavior you mentioned above? That's hat it took to fix mine

genekim 2018-02-23T20:03:04.000228Z

Alas, no. Lein clean and rebuild still resulted in warning. I tried numerous times (uh, I’m almost certain). :) Happened with lein figwheel and inside cursive REPL. I will try again tonight though! Hoping it’s that easy! @bhauman

genekim 2018-02-23T20:03:40.000457Z

Thx, btw!