Fork me on GitHub
#figwheel
<
2018-12-18
>
mikerod16:12:22

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?

mikerod16:12:07

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

mikerod16:12:27

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

davem16:12:00

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

mikerod17:12:04

definitely not wrong url

mikerod17:12:13

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

mikerod17:12:16

with no url tweaks

mikerod17:12:33

it just is very unclear where to even look

mikerod17:12:37

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

mikerod17:12:47

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

bhauman17:12:34

if you are switching branches, are you restarting figwheel?

bhauman17:12:02

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

mikerod17:12:44

found the problem

mikerod17:12:49

there was a clj (server side) ns

mikerod17:12:53

had messed up file name

mikerod17:12:12

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

mikerod17:12:17

but had no errors anywhere to be found

mikerod17:12:25

how did nothing get thrown or put somewhere by figwheel?

mikerod17:12:33

a :require on the ns should have been failing

mikerod17:12:54

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

bhauman17:12:29

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

bhauman17:12:26

the ns porobably just wasn’t getting loaded

mikerod17:12:27

I need to switch projects over more

mikerod17:12:46

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

mikerod17:12:57

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

mikerod17:12:03

and then figwheel reported nothing at all hah

mikerod17:12:08

tricky, tricky

mikerod17:12:59

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

👍 4