This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-19
Channels
- # beginners (240)
- # boot (9)
- # braveandtrue (2)
- # bristol-clojurians (2)
- # cider (2)
- # cljsrn (84)
- # clojars (1)
- # clojure (195)
- # clojure-belgium (9)
- # clojure-china (5)
- # clojure-denmark (4)
- # clojure-italy (7)
- # clojure-mke (1)
- # clojure-norway (1)
- # clojure-russia (16)
- # clojure-spec (74)
- # clojure-uk (15)
- # clojurescript (78)
- # clr (3)
- # code-reviews (4)
- # datascript (8)
- # datomic (71)
- # emacs (9)
- # hoplon (18)
- # jobs (3)
- # kekkonen (32)
- # klipse (19)
- # lambdaisland (2)
- # luminus (15)
- # off-topic (6)
- # om (35)
- # om-next (62)
- # onyx (17)
- # overtone (5)
- # pedestal (1)
- # perun (1)
- # planck (31)
- # protorepl (1)
- # re-frame (135)
- # reagent (34)
- # ring-swagger (6)
- # rum (54)
- # specter (3)
- # untangled (14)
- # yada (14)
So eager to jump right into my first toy re-frame full-stack application i did some searching and thought that using this would be the best way to get started:
lein new luminus vending_machine +re-frame +datomic
sadly i hit an unexpected error right away:
‘lien uberjar`…
Compiling "target/cljsbuild/public/js/app.js" failed.
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.CharMatcher.javaUpperCase()Lcom/google/common/base/CharMatcher;, compiling:(/private/var/folders/qx/mn5d4sjn7w5b4fxs2l15lzk80000gn/T/form-init612906228494054095.clj:1:124)
So someone is looking for a method and it isn’t defined. But i’m not sure who and why.I did some searching and all i could find was people talking about dependency problems. So i tried to track that down..
lein deps :tree
and i get about 50 lines of "Possibly confusing dependencies found:” with recommendations on how to do exclusions, none of which i’m sure will help. Any suggestions on maybe a better course of action in general or for tackling this specific problem? I assume it should be easy to get something off the shelve working with two popular tools like re-frame and datomic.
I dont work in clojure so i’m not sure where or who to ask these types of questions to. Any help apperciated.@drewverlee I'm experimenting with each of the profiles and I think it might be the re-frame profile that is causing the issue
@gdeer81 Thanks! This is my first try at a lot of things. Datomic, re-frame, luminus, so im not sure what to expect.
it looks like it might be the combination of the two. that's the only way I can reproduce the issue
@drewverlee You might want to try different version of datomic / re-frame
That said, it will be tough to put together different new technologies and try to make them work. Demands a lot of discipline and focus.
@drewverlee: I’m not sure how difficult it would be to add datomic manually, but re-frame is really easy to add on top of an existing base if you want to start with Datomic and the server-side part of your application. Happy to help if that’s the way you want to get started.
@sveri @shaun-mahood Gotcha. I got pulled into something. Ill check back on this tonight. 🙂
@drewverlee datomic free is using Guava 18 and the clojurescript deps are using Guava 19. since cljsbuild includes them both in the classpath it causes issues
@drewverlee so to fix it you could exclude guava from datomic free. in your project.clj make the dependency for datomic look like this [com.datomic/datomic-free "0.9.5394" :exclusions [com.google.guava/guava org.slf4j/log4j-over-slf4j org.slf4j/slf4j-nop]]
if that doesn't work you might have to do lein clean
before you uberjar. if cleaning doesn't work then deleting the entire folder, regenerating, updating the exclusion, and then uberjaring it will
I am working through the book Web Dev with Clojure 2nd Ed, and I am having trouble seeing the "Hello, World!" output on LocalHost:3000 when I run the code on pages 69-70. The cljs file is:
(ns guestbook.core)
(-> (.getElementById js/document "content")
(.-innertHTML)
(set! "Hello, World!"))
I've also updated the home.html and base.html files accordingly.
When I run lein cljsbuild once
and then lein run
, I see the guestbook Home and About tabs but no "Hello, World!" message. I am also not seeing it using the Reagent version on page 71. Any help would definitely be appreciated.