plexus / chestnut

Application template for Clojure + ClojureScript web apps
Eclipse Public License 1.0
1.32k stars 99 forks source link

Trouble setting up #231

Closed geometerJones closed 6 years ago

geometerJones commented 6 years ago

Hi, I've created a new Chestnut project.

I've been following the README, running (go) and (cljs-repl), but I've started to run into issues.

When I run (go), I get an error about the address already being used. I ran another instance, but I used (stop) so I'm not sure why this is happening.

Here are the logs:

2018-04-01 20:31:22.570:INFO:oejs.Server:nREPL-worker-3: jetty-9.2.21.v20170120 2018-04-01 20:31:22.572:WARN:oejuc.AbstractLifeCycle:nREPL-worker-3: FAILED ServerConnector@7deeff82{HTTP/1.1}{0.0.0.0:10555}: java.net.BindException: Address already in use

Thanks for your help!

Peter

featheredtoast commented 6 years ago

Hi Peter,

That's interesting - The stopped instance sounds like it's still listening on that port. Would it be possible to kill the other instance's repl before creating a second project? That should free up that port.

geometerJones commented 6 years ago

Thanks Jeff,

After restarting my computer, this error seems to have resolved itself.

I have the cljs-repl running.

However, when I use the (swap! app-state assoc :text "Hello World!") command, the content in my browser doesn't change from "Hello Chestnut!" to "Hello World!".

The app-state atom is correctly updated, but the change doesn't propagate to the browser.

Thanks again, Peter