Why can't I print from background threads in Clojure Cider REPL in emacs?

前端 未结 4 905
执笔经年
执笔经年 2020-12-03 04:10

If I try to evaluate the following code in my emacs cider-repl, nil is returned, as expected, but none of the printing takes place in the repl buffer or console. How can I m

4条回答
  •  一生所求
    2020-12-03 04:24

    If you are using Figwheel, then doing prn/println in ring handlers (which are actually similar to the Threads example shown above) can also be swallowed by Fighweel itself. Check your project's project.clj (look for the key :server-logfile inside the :figwheel map), where you can control if out should go to the repl or to a logfile. Please note, this only applies if you are using figwheel, otherwise the printing to the REPL of course works fine.

    See my answer on this question for more details: Output compojure server print statements into figwheel terminal?

提交回复
热议问题