Fork me on GitHub
#figwheel-main
<
2019-02-19
>
urzds10:02:25

Hello! Does anyone have experience getting figwheel-main to work in a sane way with timbre? I get tons of debug output "DEBUG [org.eclipse.jetty..." when I load timbre and the *->slf4j->timbre redirectors.

urzds10:02:53

Is there some Clojure code that figwheel-main will execute on startup (where I could configure Timbre)? A special namespace or so?

Jan K10:02:33

@urzds I am starting figwheel with the API https://figwheel.org/docs/scripting_api.html#starting-figwheel-from-the-repl-or-script and do (taoensso.timbre/merge-config! {:ns-blacklist ["org.eclipse.jetty.*"]}) before that. Maybe there's an easier way that I don't know.

urzds12:02:10

@jkr.sw Thanks! I created a custom -main function in a figwheel-dev namespace, which I use instead of figwheel.main now. (It just calls timbre/set-level! followed by figwheel.main.)

misha17:02:20

greetings! please help:

$ clojure -m figwheel.main -w src -co foo.cljs.edn -c
2019-02-19 19:52:38.818:INFO::main: Logging initialized @4770ms
[Figwheel] Compiling build foo to "main.js"
[Figwheel] Failed to compile build gains in 0.12 seconds.
[Figwheel:WARNING] Compile Exception: error=2, No such file or directory  
[Figwheel:SEVERE] java.io.IOException: error=2, No such file or directory
I can't even figure out which such file

misha17:02:39

{:main          foo.bar
 :optimizations :none
 :output-to     "main.js"
 :install-deps  true
 :npm-deps      {...}
 :figwheel      {:verbose       true
                 :log-file "figwheel-main.log"}}

misha18:02:28

$ clj -m figwheel.main -co "{... :install-deps true :npm-deps {...}}" -c foo.bar
...
[Figwheel:SEVERE] java.io.IOException: error=2, No such file or directory
Exception in thread "main" java.io.IOException: Cannot run program "npm": error=2, No such file or directory
...
opieop