bhauman / lein-figwheel

Figwheel builds your ClojureScript code and hot loads it into the browser as you are coding!
Eclipse Public License 1.0
2.88k stars 210 forks source link

Add ability to choose which build hosts repl when multiple builds are running #615

Closed nbardy closed 6 years ago

nbardy commented 6 years ago

Currently figwheel only connects the repl on one build when running multiple builds e.x. figwheel dev devcards Allow an option for selecting which build should host the repl.

API Idea: lein figwheel dev +devcards

bhauman commented 6 years ago

This is an interesting idea, but it is intended that the first one is the one that gets the REPL. It is possible that this doesn't work anymore?

sonwh98 commented 6 years ago

I have a need for this as well. currently i have a build for an admin and another for the client app. when i connect to the repl on two different browsers i only get the state of one browser. it would be nice if i can change which browser i'm connected to so i can debug both the admin and the client app

nbardy commented 6 years ago

The first one makes sense. Currently that is not working for me. I not sure how it selects the build. But I just tested and it's not the first build option.

bhauman commented 6 years ago

OK so I'm going to make it so that the first build gets the REPL. That was a regression.

bhauman commented 6 years ago

The first build on the command line will become the focused build for the REPL