Skip to content

Instantly share code, notes, and snippets.

@rgm
Created September 21, 2017 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgm/e4ad7607ce7eb426da0779286ceda004 to your computer and use it in GitHub Desktop.
Save rgm/e4ad7607ce7eb426da0779286ceda004 to your computer and use it in GitHub Desktop.
(figwheel-sidecar.repl-api/repl-env (:figwheel-system reloaded.repl/system) nil)
;; =>
;; clojure.lang.ArityException: Wrong number of args (2) passed to: repl-api/repl-env
;; clojure.lang.Compiler$CompilerException: clojure.lang.ArityException: Wrong number of args (2) passed to: repl-api/repl-env, compiling:(user.clj:49:3)
(:figwheel-system reloaded.repl/system)
;; => #figwheel_sidecar.system.FigwheelSystem{:system #atom[#<SystemMap> 0x49742821], :system-running true}
(-> reloaded.repl/system
(get-in [:figwheel-system :system])
(deref)
(keys)) ;; => (:figwheel-server "autobuild-app")
(figwheel-sidecar.repl-api/repl-env (:figwheel-system reloaded.repl/system))
;; =>
;; Figwheel System not initialized.
;; Please start it with figwheel-sidecar.repl-api/start-figwheel!
(figwheel-sidecar.repl-api/repl-env "autobuild-app")
;; =>
;; Figwheel System not initialized.
;; Please start it with figwheel-sidecar.repl-api/start-figwheel!
(-> reloaded.repl/system
(get-in [:figwheel-system :system])
(deref)
(get "autobuild-app"))
;; =>
;; #figwheel_sidecar.components.cljs_autobuild.CLJSAutobuild{:build-config {:id "app", ...
@rgm
Copy link
Author

rgm commented Sep 21, 2017

Derp, see https://github.com/SevereOverfl0w/Ymbryne/blob/master/fireplace-chestnut.adoc ... it's figwheel-sidecar.system/repl-env not figwheel-sidecar.repl-api/repl-env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment