Closed magomimmo closed 8 years ago
The cljs-repl
task needs to be before the cljs
task in the task pipeline. Moving the task fixes the problem. Also be aware that the (start-repl)
invocation blocks until a browser window is opened if none has been opened yet with automatic reloading enabled. If there is no reloading you need to refresh the page.
I will update the README to better reflect the requirements.
Here is a couple of repos demonstrating the issue:
The first one is a very minimal repo defining a
dev
task which implements a kind of immediate feedback principle.https://github.com/magomimmo/modern-cljs/tree/se-tutorial-03
You can call it with following
boot
command:Than, after visiting the localhost:3000 URL, if you run the nrepl-client everuthing works as exptexted
The second repo is the same as the first one with just one exception.
https://github.com/magomimmo/modern-cljs/tree/edn
I changed the name of the generated JS file from
main.js
tojs/main.js
. Obviously I changed thesrc
of thescript
tag as well and added themain.cljs.edn
file in thejs
directory.boot dev
still works as expected, but when I try to connect the nrepl-client, the connection never happens:Please use the above repos to test yourself.
Cheers