Fork me on GitHub
#lein-figwheel
<
2016-11-27
>
Aron17:11:55

do i have to restart figwheel if i change the project.clj file?

Aron17:11:32

anyway, i don't get why I see Figwheel Server: Resource not found just doing what's in the quick start

Aron17:11:19

and when i google for it, there is nothing

kauko19:11:46

@ashnur is this your first clojurescript project? Could you try setting up a project using a leiningen template, and see if that starts up correctly?

Aron20:11:54

@kauko yes. first one, I am following this: https://github.com/bhauman/lein-figwheel/wiki/Quick-Start and it gives me errors from the start

Aron20:11:35

figwheel has to work because other stuff worked before, like https://github.com/phosphene/d3-figwheel-demo

bhauman20:11:36

The quick start says load from the file system right?

Aron20:11:38

I don't know what do you mean by that, I don't remember

bhauman20:11:38

The URL in your browser is file:// ...

Aron20:11:46

definitely is not

Aron20:11:33

right, i found the part you mention, i did miss this, i can't even do it, i am working through ssh, who thought this will be a good idea

bhauman20:11:42

Well that's how the quick start says to load index.html

Aron20:11:53

every time i try clojure, there are a gazzilion little things that just tell me no, no, no, no

Aron20:11:23

right, so the quick start is unusable for me

bhauman20:11:30

The quick start doesn't assume that you will be working through ssh

bhauman20:11:53

Why would the quick start assume that?

Aron20:11:12

so, pls don't think this as if i expect figwheel to fir my needs, i don't. what i am saying is that there are only reasonable difficulties both in number and in nature that i can be expected to get over with when i am trying to learn something

Aron20:11:34

if i were to do something i already know, configuration problems were ok. but having to deal with it from the start is hard

Aron20:11:29

i don't say it should assume that i work through ssh, it just shouldn't expect me to load the file through the file system, if it already has a live server in it. it makes no sense.

bhauman20:11:07

Let's solve the immediate problem

bhauman20:11:38

Launch a static server at the root of the project

bhauman20:11:07

Python -m SimpleHTTPServer 8000

Aron20:11:43

ok, that was python2, but it works 🙂

Aron20:11:47

socket.cljs?rel=1480268448829:63 WebSocket connection to '<ws://localhost:3449/figwheel-ws/dev>' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

Aron20:11:55

that's a very good gist, thanks

Aron20:11:36

that localhost has to be an ip

bhauman20:11:42

Ok now we have to edit the config

Aron20:11:52

project.clj?

Aron20:11:03

where is the reference for what i can use there?

bhauman20:11:09

Change :figwheel true

bhauman20:11:50

To :figwheel {:websocket-host your up}

bhauman20:11:22

It's in the readme under client config

Aron20:11:24

I believe you it's there 😄

Aron20:11:12

so, i had to restart figwheel after config change

Aron20:11:28

oh, actually, it's still not working

Aron20:11:48

still says localhost

bhauman20:11:34

Ok probably cached

bhauman20:11:12

Shift reload?

Aron20:11:45

I have disabled cache when I have developer tools open

Aron20:11:48

so i doubt

bhauman20:11:03

It can still happen and does

Aron20:11:11

yeah, of course you were right

Aron20:11:15

why does this happen?

Aron20:11:38

Figwheel: socket connection established

Aron20:11:07

are you typing from a phone?

bhauman20:11:11

Ok now here's the big lesson, you can run your own server and application anyway you like and can still connect to figwheel

bhauman20:11:16

Yeah no fun

Aron20:11:31

yeah, look, sorry to do this to you. it can totally wait

Aron20:11:54

it could wait, because my first question you of course solved now

Aron20:11:27

and yeah, i know that clojurescript is this dreamland where nothing is really set in stone unless basically there was no one yet to explore it

Aron20:11:31

just hard to get there 😄