It would be nice to have some command which might help to switch CLJS REPL's builds.
Here is simple project with 2 build profiles – "app1" & "app2" – basically this project has two applications that are available from index page: https://github.com/il-tmfv/test-lein-multi-build
Dependencies are copied from my project as is (may there are some conflicts, it will be good to know).
Open file clojure/src/test_lein_multi_build/app1/core.cljs, eval it and try to find definition for greet fn. It will success, coz it is in shared file. Try it for Info1 it this file and it will fail.
Now open clojure/src/test_lein_multi_build/app2/core.cljs. "Go to Definition" will be successful for both greet and Info2.
And this happens because of "app2" is a active build for REPL.
It would be nice to have some command which might help to switch CLJS REPL's builds.
Here is simple project with 2 build profiles – "app1" & "app2" – basically this project has two applications that are available from index page: https://github.com/il-tmfv/test-lein-multi-build Dependencies are copied from my project as is (may there are some conflicts, it will be good to know).
My
~/.lein/propfiles.clj
:Leiningen v2.7.1.
How I start this app:
cd
to project rootlein repl
(use 'figwheel-sidecar.repl-api)
(start-figwheel! "app1" "app2")
In embedded "ClojureScript REPL" I see
Open file
clojure/src/test_lein_multi_build/app1/core.cljs
, eval it and try to find definition forgreet
fn. It will success, coz it is in shared file. Try it forInfo1
it this file and it will fail.Now open
clojure/src/test_lein_multi_build/app2/core.cljs
. "Go to Definition" will be successful for bothgreet
andInfo2
.And this happens because of "app2" is a active build for REPL.