This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-04
Channels
- # aws (1)
- # beginners (163)
- # boot (1)
- # bristol-clojurians (1)
- # cider (7)
- # clara (1)
- # cljs-dev (22)
- # cljsjs (1)
- # clojure (43)
- # clojure-denver (1)
- # clojure-finland (6)
- # clojure-italy (1)
- # clojure-nl (3)
- # clojure-russia (1)
- # clojure-spec (1)
- # clojure-uk (6)
- # clojurescript (107)
- # cursive (4)
- # data-science (2)
- # datascript (2)
- # datomic (19)
- # duct (31)
- # emacs (1)
- # fulcro (50)
- # graphql (15)
- # hoplon (3)
- # lein-figwheel (2)
- # luminus (21)
- # off-topic (74)
- # onyx (3)
- # parinfer (15)
- # portkey (2)
- # precept (9)
- # proton (1)
- # re-frame (130)
- # reagent (73)
- # reitit (7)
- # ring-swagger (5)
- # shadow-cljs (61)
- # spacemacs (18)
- # specter (12)
- # uncomplicate (1)
- # vim (88)
- # yada (2)
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
@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
@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.
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
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.
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.
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
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.
OK - nevermind obviously I didn't invoke it correctly. boot dev [run|cljs|repl]
is how that's supposed to work. 🙂
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)
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
And actually boot dev repl
still fails to execute (start)
even though it's in the 'user' namespace.
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.
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.