figwheel

general discussion about figwheel, specific discussions in #figwheel-main and #lein-figwheel
2018-12-18T16:45:22.018800Z

Does anyone have good troubleshooting steps if figwheel gives you the “Figwheel Server: Resource not found” - “Keep on figwheelin’” page with no errors in console, no JS being served, no compilation errors found anywhere, and nothing be being written to figwheel.log?

2018-12-18T16:46:07.019800Z

there is no cljs changes between 2 branches, but this happens. I’ve ran across similar before, but now cannot remember any logical steps to follow rather than repl and prod around to see what figwheel is doing some more

2018-12-18T16:46:27.020200Z

all compiled js looks reasonably fine to me, don’t see things missing or problems

davem 2018-12-18T16:57:00.021300Z

When I've run into this, I've usually been hitting the wrong url.

2018-12-18T17:03:04.021500Z

definitely not wrong url

2018-12-18T17:03:13.021900Z

can just switch from one branch to another and hit same url

2018-12-18T17:03:16.022100Z

with no url tweaks

2018-12-18T17:03:33.022600Z

it just is very unclear where to even look

2018-12-18T17:03:37.022800Z

figwheel’s server isn’t using my ring-handler

2018-12-18T17:03:47.023100Z

so going into some default serving, but not sure why hah

bhauman 2018-12-18T17:04:34.023500Z

if you are switching branches, are you restarting figwheel?

bhauman 2018-12-18T17:05:02.024Z

because if figwheel reloads changed clojure code that could screw up your server

2018-12-18T17:06:44.024300Z

found the problem

2018-12-18T17:06:49.024500Z

there was a clj (server side) ns

2018-12-18T17:06:53.024800Z

had messed up file name

2018-12-18T17:07:12.025200Z

ns name was like my.nsthing, and file name had typo of my.nstihng

2018-12-18T17:07:17.025400Z

but had no errors anywhere to be found

2018-12-18T17:07:25.025700Z

how did nothing get thrown or put somewhere by figwheel?

2018-12-18T17:07:33.025900Z

a :require on the ns should have been failing

2018-12-18T17:07:54.026300Z

I’m surprised, thought I usually get clj-compilation problems made apparent during figwheel startup

bhauman 2018-12-18T17:09:29.027900Z

yes this is unfortunate behavior, figwheel-main is much much more exacting and careful about exceptions

bhauman 2018-12-18T17:10:26.028500Z

the ns porobably just wasn’t getting loaded

2018-12-18T17:10:27.028600Z

I need to switch projects over more

2018-12-18T17:10:46.029100Z

but yeah, I was overlooking this wrong file name in repl’s too

2018-12-18T17:10:57.029500Z

was using cider and loading form buffer and I think that was making it not care about file name

2018-12-18T17:11:03.029800Z

and then figwheel reported nothing at all hah

2018-12-18T17:11:08.030Z

tricky, tricky

2018-12-18T17:11:59.030500Z

thanks for the assistance/feedback though. I appreciate the effort.

👍 1