Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example phonebook SPA app doesn't load #12

Closed
OliverM opened this issue Jul 8, 2016 · 4 comments
Closed

Example phonebook SPA app doesn't load #12

OliverM opened this issue Jul 8, 2016 · 4 comments

Comments

@OliverM
Copy link

OliverM commented Jul 8, 2016

I've just cloned the Edge repository, added a boot task to integrate with Emacs CIDER (as per the readme), and launched the sample app with boot cider dev.

The server launches successfully and the sass and clojurescript compilation steps report success to the console, but when I navigate to the SPA example from the front page, I only see some introductory text and a <p> tag saying Initialising...

In the browser console, two errors report they couldn't load the compiled app artifacts:

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (app.css, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (edge.js, line 0)

For info, after retrieving the various jars the boot task reports as follows:

Starting reload server on ws://localhost:62435
Writing adzerk/boot_reload/init28564.cljs to connect to ws://localhost:62435...
Writing boot_cljs_repl.cljs...
12:18:28.474 [clojure-agent-send-off-pool-0] INFO  edge.web-server - Started web-server on port 3000

Starting file watcher (CTRL-C to quit)...

Compiling {sass}... 8 changed files.
Adding :require adzerk.boot-reload.init28564 to edge.cljs.edn...
Retrieving cider-nrepl-0.12.0.pom from https://clojars.org/repo/
Retrieving refactor-nrepl-2.2.0.pom from https://clojars.org/repo/
Retrieving refactor-nrepl-2.2.0.jar from https://clojars.org/repo/ (11845k)
Retrieving cider-nrepl-0.12.0.jar from https://clojars.org/repo/ (322k)
nREPL server started on port 5600 on host 127.0.0.1 - nrepl://127.0.0.1:5600
Adding :require adzerk.boot-cljs-repl to edge.cljs.edn...
Compiling ClojureScript...
• edge.js
Writing target dir(s)...
2016-07-08 12:20:29.864 java[94827:8231576] 12:20:29.863 WARNING:  140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.
Elapsed time: 121.690 sec

Are there other initialisation steps I need to perform?

@malcolmsparks
Copy link
Contributor

You need to wait a little while for the js and css to compile. Could it be
that you browsed before the files had compiled?

Malcolm Sparks
Director

Email: malcolm@juxt.pro
Web: https://juxt.pro

JUXT LTD.
Software Consulting, Delivery, Training

On 8 July 2016 at 12:46, Oliver Mooney notifications@github.com wrote:

I've just cloned the Edge repository, added a boot task to integrate with
Emacs CIDER (as per the readme), and launched the sample app with boot
cider dev.

The server launches successfully and the sass and clojurescript
compilation steps report success to the console, but when I navigate to the
SPA example from the front page, I only see some introductory text and a

tag saying Initialising...

In the console, two errors report they couldn't load the compiled app
artifacts:

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (app.css, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (edge.js, line 0)

For info, after retrieving the various jars the boot task reports as
follows:

Starting reload server on ws://localhost:62435
Writing adzerk/boot_reload/init28564.cljs to connect to ws://localhost:62435...
Writing boot_cljs_repl.cljs...
12:18:28.474 [clojure-agent-send-off-pool-0] INFO edge.web-server - Started web-server on port 3000

Starting file watcher (CTRL-C to quit)...

Compiling {sass}... 8 changed files.
Adding :require adzerk.boot-reload.init28564 to edge.cljs.edn...
Retrieving cider-nrepl-0.12.0.pom from https://clojars.org/repo/
Retrieving refactor-nrepl-2.2.0.pom from https://clojars.org/repo/
Retrieving refactor-nrepl-2.2.0.jar from https://clojars.org/repo/ (11845k)
Retrieving cider-nrepl-0.12.0.jar from https://clojars.org/repo/ (322k)
nREPL server started on port 5600 on host 127.0.0.1 - nrepl://127.0.0.1:5600
Adding :require adzerk.boot-cljs-repl to edge.cljs.edn...
Compiling ClojureScript...
• edge.js
Writing target dir(s)...
2016-07-08 12:20:29.864 java[94827:8231576] 12:20:29.863 WARNING: 140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.
Elapsed time: 121.690 sec

Are there other initialisation steps I need to perform?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#12, or mute the thread
https://github.com/notifications/unsubscribe/AAJ9O4m9SvngcNtEm77UA6KcVOqqLXc6ks5qTjiggaJpZM4JH9ZF
.

@OliverM
Copy link
Author

OliverM commented Jul 8, 2016

Is the

Compiling ClojureScript...
• edge.js
Writing target dir(s)...

of the console output above not the final cljs compilation step? I browsed through the sample Swagger docs before trying the the SPA link.

In any event I've left it running over lunchtime & no change.

@dcj
Copy link

dcj commented Jul 8, 2016

FYI, the SPA hasn't been working for me the past couple of days. But I just tried again, this time connecting to the repl, did a (reset), brought up the regular gui, then brought up the SPA in another browser window, and now it works fine.

@OliverM
Copy link
Author

OliverM commented Jul 12, 2016

A (reset) at the repl resolves the missing CSS and JS files for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants