boot-clj / boot-cljs

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

Something wrong with log output in CIDER #138

Closed agzam closed 7 years ago

agzam commented 8 years ago

When I set :compiler-options {:verbose true} the log does not appear in cider-repl buffer.

to reproduce:

cider-jack-in in any project that uses boot-cljs, with verbose logging option on. Then try to run the task: boot.user> (boot (dev))

example of a task:

(task-options!
  cljs {:ids              #{"js/dev"}
    :compiler-options {:asset-path     "js/dev.out"
               :verbose        true}})

(deftask dev []
  (comp
(serve)
(watch)
(cljs-repl)
(reload :on-jsload 'sample-routing.core/init!)
(speak)
(cljs)
(sift :move {#"dev.js" "main.js"})
(target)))

observed behavior:

boot-cljs's output appears in *nrepl-server* buffer and not in the same cider-repl buffer.

expected behavior:

it should appear in cider-repl buffer. For comparison: lein project with cljs-build outputs log in the same buffer

env:

CIDER 0.14.0snapshot (package: 20161013.518)

GNU Emacs 25.1.1 (x86_64-apple-darwin15.6.0, NS appkit-1404.47 Version 10.11.6 (Build 15G1004)) of 2016-09-19

BOOT_CLOJURE_VERSION=1.8.0 BOOT_VERSION=2.6.0

[adzerk/boot-cljs "1.7.228-1"]

bhagany commented 7 years ago

This is fixed here: https://github.com/clojure-emacs/cider-nrepl/pull/387

Deraen commented 7 years ago

I guess the fix will be included in Cider-nrepl 0.15?

bhagany commented 7 years ago

Yes, that's correct.