figwheel-main

2021-12-16T08:57:13.052400Z

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

2021-12-16T08:57:24.052500Z

Terminal:

2021-12-16T08:57:32.052900Z

CIDER:

2021-12-16T09:04:23.053300Z

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.

2021-12-16T09:17:29.054Z

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

2021-12-16T09:18:13.054200Z

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

2021-12-16T09:32:08.054400Z

New theory: Seems to be a timing issue.

2021-12-16T09:45:08.054600Z

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.

2021-12-16T10:48:20.054800Z

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.

2021-12-16T11:01:37.057400Z

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.