Fork me on GitHub
#luminus
<
2018-04-04
>
v3ga08:04:50

Can someone point me in the right direction for figuring this error out? No implementation of method: :render of protocol: #’compojure.response/Renderable found for class: java.lang.Integer https://github.com/electricoctopi/d-c/tree/auth

ikitommi12:04:18

@decim I think your register code returns the number of rows updated. You should return a http-response map. e.g. wrap the return into response/ok. https://github.com/electricoctopi/d-c/blob/auth/src/clj/d_c/routes/services/auth.clj#L42-L45

v3ga14:04:53

@ikitommi ok thanks, i’ll take a look at that. I’m still rather new to clojure/luminus. I’ve sort of been off and on with my studying. I assumed that would work since it worked creating users via the REPL.

ikitommi14:04:40

It works on the repl, I guess it returns 1, but you need to return valid ring response (map) from routes. See https://github.com/ring-clojure/ring/wiki/Concepts

v3ga14:04:40

i see, i see. Ok I’ll work this out after work. Good to know =P Thanks…but i’m sure i’ll be back.

v3ga03:04:23

You wouldn’t happen to know of any full projects using luminus and re-frame would you? I think I may have resolved the issue but now my submit button’s disappeared. I did have a few warnings that I was able to clear up. I just seem to be running into minute issue after issue.

v3ga05:04:19

i look over memory hole a good bit and it’s been helpful. One interesting bit is though I see login code I’ve yet to find registration code. I could be wrong but it seems as if you manually add a user to the DB and it provides a interface to log in. I need to take a step back and find a way to really dive in to ring

bobcalco17:04:14

I'm having a few issues getting a luminus project to run properly out of the box. I created it using boot/new, and included +re-frame +datomic +sassc +boot +oath +cider flags. The issues are: 1. Running boot repl pulls me into the boot.user namespace but I can't run the (start) and (stop) methods defined in env/dev/clj/<app_name>/user.clj nREPL server started on port 43601 on host 127.0.0.1 - <nrepl://127.0.0.1:43601> REPL-y 0.3.7, nREPL 0.2.13 Clojure 1.9.0 OpenJDK 64-Bit Server VM 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12 Exit: Control+D or (exit) or (quit) Commands: (user/help) Docs: (doc function-name-here) (find-doc "part-of-name-here") Find by Name: (find-name "part-of-name-here") Source: (source function-name-here) Javadoc: (javadoc java-object-or-class-here) Examples from http://clojuredocs.org: [clojuredocs or cdoc] (user/clojuredocs name-here) (user/clojuredocs "ns-here" "name-here") boot.user=> (start) boot.user=> java.lang.RuntimeException: Unable to resolve symbol: start in this context clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: start in this context, compiling:(null:1:1) 2. Running boot run dies with: java.io.FileNotFoundException: Could not locate <app_name>/env__init.class or apex_agora/env.clj on classpath. Please check that namespaces with dashes use underscores in the Clojure file name. clojure.lang.ExceptionInfo: Could not locate <app_name>/env__init.class or <app_name>/env.clj on classpath. Please check that namespaces with dashes use underscores in the Clojure file name. line: 1 3. Running boot cljs dies with: java.lang.ClassCastException: clojure.lang.Symbol cannot be cast to java.lang.String clojure.lang.ExceptionInfo: clojure.lang.Symbol cannot be cast to java.lang.String line: 154 Any help appreciated.

bobcalco17:04:33

OK - nevermind obviously I didn't invoke it correctly. boot dev [run|cljs|repl] is how that's supposed to work. 🙂

bobcalco17:04:59

I am however still having some CLJS issues

bobcalco17:04:25

(3) above still happens with boot dev cljs

bobcalco17:04:16

boot figwheel dies with

java.lang.RuntimeException: Unable to resolve var: figwheel-sidecar.build-middleware.injection/figwheel-connect-ns-name in this context
clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve var: figwheel-sidecar.build-middleware.injection/figwheel-connect-ns-name in this context, compiling:(powerlaces/boot_figreload/figwheel.clj:25:3)
             clojure.lang.ExceptionInfo: java.lang.RuntimeException: Unable to resolve var: figwheel-sidecar.build-middleware.injection/figwheel-connect-ns-name in this context, compiling:(powerlaces/boot_figreload/figwheel.clj:25:3)

bobcalco17:04:48

Also getting this when trying to compile CLJS: Classpath conflict: org.clojure/tools.nrepl version 0.2.13 already loaded, ALSO loading version 0.2.12

bobcalco17:04:57

And actually boot dev repl still fails to execute (start) even though it's in the 'user' namespace.

donyorm18:04:02

Please don't use boot/new. I don't have it working yet. Use lein new, and use the +boot flag if you want the project to build with boot.

bobcalco18:04:18

ok will try again using lein

bobcalco18:04:51

OK same results on all counts

bobcalco18:04:08

boot dev run seems to work but going to localhost:3000 informs you the CLJS app hasn't been compiled. Attempting to compile it yields the same error as above, running boot figwheel fails with error above. boot dev repl dumps you in the user namespace but doesn't recognize any of the (start), (stop) or (restart) forms.

bobcalco18:04:43

This was how I invoked it: lein new luminus apex-agora +boot +re-frame +datomic +oauth +cider +sassc

bobcalco20:04:16

OK, I regenerated using lein without +boot and was able to get everything running.