Fork me on GitHub
#figwheel-main
<
2021-12-16
>
magnars08:12:13

Do anyone else have the problem with [Figwheel] logs not showing up in the CIDER repl? Any help would be appreciated.

magnars09:12:23

Reverting back to figwheel-main 0.2.7 solves this issue, so there's something going on with the logging that doesn't suit CIDER.

magnars09:12:29

Or so I thought. Doesn't seem to be consistent now. 😞

magnars09:12:13

If anyone else is experiencing this, or have fixed it somehow, please @ me ❤️

magnars09:12:08

New theory: Seems to be a timing issue.

magnars09:12:08

After poking around for a while, it seems like CIDER is running (figwheel.main/start ...) too soon for its own liking. The result being that the Figwheel logger prints to somewhere CIDER isn't looking.

magnars10:12:20

In fact, it's the (require 'figwheel.main) that's the culprit. Being run too soon, the logging is set up in a way that CIDER does not pick up on.

magnars11:12:37

Turns out that doing (require 'figwheel.main) too soon, will have Figwheel set up a logger before CIDER has captured out - resulting in a Figwheel logger that is ignored. This means I can't have (:require [figwheel.main]) in my user.clj , but will need to manually require it once the REPL is operational. Would love some input on this. Should I create an issue on figwheel-main github? I'm not sure CIDER can do anything about requires with such bonus side-effects.