boot-clj / boot-cljs

Boot task to compile ClojureScript programs.
Eclipse Public License 1.0
176 stars 40 forks source link

enable-console-print! doesn't work on browser refresh #126

Open ftravers opened 8 years ago

ftravers commented 8 years ago

(enable-console-print!) doesn't work on browser refresh, all subsequent (println "blah") statements dont print. On file edit/refresh everything works fine...just clicking reload in the browser doesnt?

martinklepsch commented 8 years ago

This seems to be a strange interaction with boot-cljs-repl as the issue only occurs if the repl is used. Repro case can be found here: https://github.com/martinklepsch/println-bug

Deraen commented 8 years ago

I thought this might have been fixed by: https://github.com/adzerk-oss/boot-cljs-repl/commit/883a397cdcb1ad04fc50298bb1bfdc49c1ce7db3 but report in Slack says otherwise.

This needs more investigation to find the cause.

Meanwhile using cljs-devtools and js/console.log should work.