And what happens if you type `lein figwheel` ?

On Thu, May 3, 2018 at 1:42 PM, Johannes <bra...@nordakademie.de> wrote:

>
>
> Am Donnerstag, 3. Mai 2018 22:28:29 UTC+2 schrieb Alan Thompson:
>>
>> That looks good.  Can you verify it matches what is in `project.clj`?
>>
> Yes, I think it does. That's the downloaded project.clj:
> (defproject flintstones "0.1.0-SNAPSHOT"
>   :min-lein-version "2.7.1"
>   :dependencies [[org.clojure/clojure "1.9.0"]
>                  [org.clojure/clojurescript "1.10.238"]
>                  [org.clojure/core.async "0.4.474"]
>                  [tupelo "0.9.76"]
>                 ]
>   :plugins [[lein-cljsbuild "1.1.7" :exclusions [[org.clojure/clojure]]]
>             [lein-figwheel "0.5.15"]
>             [lein-doo "0.1.10"]]
>
>   :doo {:karma {:config {"plugins"       ["karma-junit-reporter"]
>                          "reporters"     ["progress" "junit"]
>                          "junitReporter" {"outputDir"
> "target/test-results"}}}
>         :paths {:karma   "node_modules/karma/bin/karma"
>                 :phantom "node_modules/phantomjs/bin/phantomjs" }}
>   :source-paths ["src"]
>   :cljsbuild {:builds
>               [{:id           "dev"
>                 :source-paths ["src"]
>                 ;; The presence of a :figwheel configuration here will
> cause figwheel to inject the
>                 ;; figwheel client into your build
>                 :figwheel     {:on-jsload "flintstones.core/on-js-reload"
>                                ;; :open-urls will pop open your
> application in the default browser once
>                                ;; Figwheel has started and compiled your
> application.  Comment this out
>                                ;; once it no longer serves you.
>                                :open-urls ["http://localhost:3449/index.
> html"]}
>                 :compiler     {:main                 flintstones.core
>                                :optimizations        :none
>                                :libs
> ["resources/public/libs"] ; recursive includes all children
>
>                                :foreign-libs         [{:file     "dino.js"
>                                                        :provides
> ["dinoPhony"]}]
>                                :externs              ["dino-externs.js"]
>
>                                :output-to            "resources/public/js/
> compiled/flintstones.js"
>                                :output-dir
> "resources/public/js/compiled/flintstones-dev"
>                                :asset-path
> "js/compiled/flintstones-dev" ; rel to figwheel default of
> `resources/public`
>                                                         ; ^^^ must match
> :output-dir
>                                :source-map-timestamp true
>                                ;; To console.log CLJS data-structures make
> sure you enable devtools in Chrome
>                                ;; https://github.com/binaryage/
> cljs-devtools
>                                :preloads             [devtools.preload]}}
>
>                {:id           "test"
>                 :source-paths ["src" "test"]
>                 :compiler     {:main
> tst.flintstones.doorunner
>                                :optimizations        :none ; :advanced
>                                :libs
> ["resources/public/libs"] ; recursive includes all children
>
>                                :foreign-libs         [{:file     "dino.js"
>                                                        :provides
> ["dinoPhony"]}]
>                                :externs              ["dino-externs.js"]
>
>                                :output-to            "resources/public/js/
> compiled/bedrock.js"
>                                :output-dir
> "resources/public/js/compiled/bedrock-tst"
>                                ;:asset-path
> "js/compiled/bedrock-tst" ; rel to figwheel default of `resources/public`
>
>                                :source-map-timestamp true}}]}
>
>   :profiles {:dev {:dependencies  [[binaryage/devtools "0.9.9"]
>                                    [figwheel-sidecar "0.5.15"]
>                                    [com.cemerick/piggieback "0.2.2"]]
>                    ;; need to add dev source path here to get user.clj
> loaded
>                    :source-paths  ["src" "dev"]
>                    ;; for CIDER
>                    ;; :plugins [[cider/cider-nrepl "0.12.0"]]
>                    :repl-options  {:nrepl-middleware
> [cemerick.piggieback/wrap-cljs-repl]}
>                    ;; need to add the compliled assets to the
> :clean-targets
>                    :clean-targets ^{:protect false} ["resources/public/js/
> compiled"
>                                                      "out"
>                                                      :target-path]}}
>
>   :jvm-opts ["-Xmx1g"])
>
>
>
>> Also, try `lein --version` or type `lein repl` to verify the same stuff
>> is found.
>>
> JohMBAir:piggi johannes$ lein -version
>
> Leiningen 2.8.1 on Java 9.0.1 Java HotSpot(TM) 64-Bit Server VM
>
> JohMBAir:piggi johannes$ lein repl
>
> nREPL server started on port 57650 on host 127.0.0.1 - nrepl://
> 127.0.0.1:57650
>
> REPL-y 0.3.7, nREPL 0.2.13
>
> Clojure 1.9.0
>
> Java HotSpot(TM) 64-Bit Server VM 9.0.1+11
>
>     Docs: (doc function-name-here)
>
>           (find-doc "part-of-name-here")
>
>   Source: (source function-name-here)
>
>  Javadoc: (javadoc java-object-or-class-here)
>
>     Exit: Control+D or (exit) or (quit)
>
>  Results: Stored in vars *1, *2, *3, an exception in *e
>
>
> user=>
>
> Johannes
>
>
>> On Wed, May 2, 2018 at 3:00 PM, Johannes <bra...@nordakademie.de> wrote:
>>
>>> I am not sure if this is what you want to see:
>>>
>>> JohMBAir:hello-world johannes$ clj --main cljs.main --compile
>>> hello-world.core --repl
>>>
>>> ClojureScript 1.10.238
>>>
>>> cljs.user=> ^D
>>>
>>> JohMBAir:hello-world johannes$ clj
>>>
>>> Clojure 1.9.0
>>>
>>> user=> ^D
>>>
>>> JohMBAir:hello-world johannes$ java --version
>>>
>>> java 9.0.1
>>>
>>> Java(TM) SE Runtime Environment (build 9.0.1+11)
>>>
>>> Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
>>>
>>> Am Mittwoch, 2. Mai 2018 21:05:09 UTC+2 schrieb Alan Thompson:
>>>>
>>>> Can you verify versions for Java, Clojure, & ClojureScript?
>>>>
>>>> On Mon, Apr 30, 2018 at 6:34 AM, Johannes <bra...@nordakademie.de>
>>>> wrote:
>>>>
>>>>> Hm, I downloaded your profile.clj, and with
>>>>>
>>>>> lein figwheel
>>>>>
>>>>> I get the known error:
>>>>>
>>>>> Figwheel: Cutting some fruit, just a sec ...
>>>>>
>>>>> Retrieving tupelo/tupelo/0.9.76/tupelo-0.9.76.pom from clojars
>>>>>
>>>>> Retrieving clojure-csv/clojure-csv/2.0.2/clojure-csv-2.0.2.pom from
>>>>> clojars
>>>>>
>>>>> Retrieving criterium/criterium/0.4.4/criterium-0.4.4.pom from clojars
>>>>>
>>>>> Retrieving danlentz/clj-uuid/0.1.7/clj-uuid-0.1.7.pom from clojars
>>>>>
>>>>> Retrieving primitive-math/primitive-math/0.1.4/primitive-math-0.1.4.pom
>>>>> from clojars
>>>>>
>>>>> Retrieving enlive/enlive/1.1.6/enlive-1.1.6.pom from clojars
>>>>>
>>>>> Retrieving org/clojure/core.match/0.3.0-a
>>>>> lpha4/core.match-0.3.0-alpha4.pom from central
>>>>>
>>>>> Retrieving org/clojure/tools.analyzer.jvm
>>>>> /0.6.5/tools.analyzer.jvm-0.6.5.pom from central
>>>>>
>>>>> Retrieving org/clojure/tools.analyzer/0.6.4/tools.analyzer-0.6.4.pom
>>>>> from central
>>>>>
>>>>> Retrieving org/clojure/tools.reader/0.8.12/tools.reader-0.8.12.pom
>>>>> from central
>>>>>
>>>>> Retrieving org/clojure/math.combinatorics
>>>>> /0.1.4/math.combinatorics-0.1.4.pom from central
>>>>>
>>>>> Retrieving prismatic/schema/1.1.7/schema-1.1.7.pom from clojars
>>>>>
>>>>> Retrieving 
>>>>> com/fasterxml/jackson/core/jackson-core/2.9.0/jackson-core-2.9.0.jar
>>>>> from central
>>>>>
>>>>> Retrieving com/fasterxml/jackson/dataform
>>>>> at/jackson-dataformat-smile/2.9.0/jackson-dataformat-smile-2.9.0.jar
>>>>> from central
>>>>>
>>>>> Retrieving com/fasterxml/jackson/dataformat/jackson-dataformat-cbor/2.
>>>>> 9.0/jackson-dataformat-cbor-2.9.0.jar from central
>>>>>
>>>>> Retrieving org/clojure/math.combinatorics
>>>>> /0.1.4/math.combinatorics-0.1.4.jar from central
>>>>>
>>>>> Retrieving org/clojure/core.match/0.3.0-a
>>>>> lpha4/core.match-0.3.0-alpha4.jar from central
>>>>>
>>>>> Retrieving cheshire/cheshire/5.8.0/cheshire-5.8.0.jar from clojars
>>>>>
>>>>> Retrieving clojure-csv/clojure-csv/2.0.2/clojure-csv-2.0.2.jar from
>>>>> clojars
>>>>>
>>>>> Retrieving danlentz/clj-uuid/0.1.7/clj-uuid-0.1.7.jar from clojars
>>>>>
>>>>> Retrieving criterium/criterium/0.4.4/criterium-0.4.4.jar from clojars
>>>>>
>>>>> Retrieving tupelo/tupelo/0.9.76/tupelo-0.9.76.jar from clojars
>>>>>
>>>>> Retrieving enlive/enlive/1.1.6/enlive-1.1.6.jar from clojars
>>>>>
>>>>> Retrieving primitive-math/primitive-math/0.1.4/primitive-math-0.1.4.jar
>>>>> from clojars
>>>>>
>>>>> Retrieving prismatic/schema/1.1.7/schema-1.1.7.jar from clojars
>>>>>
>>>>> Exception in thread "main" java.lang.ClassNotFoundException:
>>>>> javax.xml.bind.DatatypeConverter, compiling:(org/httpkit/server.
>>>>> clj:1:1)
>>>>>
>>>>> at clojure.lang.Compiler.load(Compiler.java:7526)
>>>>>
>>>>> at clojure.lang.RT.loadResourceScript(RT.java:379)
>>>>>
>>>>> ...
>>>>>
>>>>>
>>>>> Am Montag, 30. April 2018 02:46:34 UTC+2 schrieb Alan Thompson:
>>>>>
>>>>>> I am not including `--add-modules` in my template project
>>>>>> <https://github.com/cloojure/cljs-template.git> and it works great:
>>>>>>
>>>>>>
>>>>>> (defproject flintstones "0.1.0-SNAPSHOT"
>>>>>>   :min-lein-version "2.7.1"
>>>>>>   :dependencies [[org.clojure/clojure "1.9.0"]
>>>>>>                  [org.clojure/clojurescript "1.10.238"]
>>>>>>                  [org.clojure/core.async "0.4.474"]
>>>>>>                  [tupelo "0.9.76"]
>>>>>>                 ]
>>>>>>   :plugins [[lein-cljsbuild "1.1.7" :exclusions
>>>>>> [[org.clojure/clojure]]]
>>>>>>             [lein-figwheel "0.5.15"]
>>>>>>             [lein-doo "0.1.10"]]
>>>>>>
>>>>>>
>>>>>> ---------------------------
>>>>>>
>>>>>> ~/expr/cljs-template > lein figwheel
>>>>>> Figwheel: Cutting some fruit, just a sec ...
>>>>>> Figwheel: Validating the configuration found in project.clj
>>>>>> Figwheel: Configuration Valid ;)
>>>>>> Figwheel: Starting server at http://0.0.0.0:3449
>>>>>> Figwheel: Watching build - dev
>>>>>> Compiling build :dev to "resources/public/js/compiled/flintstones.js"
>>>>>> from ["src"]...
>>>>>> Successfully compiled build :dev to 
>>>>>> "resources/public/js/compiled/flintstones.js"
>>>>>> in 0.908 seconds.
>>>>>> Launching ClojureScript REPL for build: dev
>>>>>> ...
>>>>>>     Exit: :cljs/quit
>>>>>>  Results: Stored in vars *1, *2, *3, *e holds last exception object
>>>>>> Prompt will show when Figwheel connects to your application
>>>>>> [Rebel readline] Type :repl/help for online help info
>>>>>> ClojureScript 1.10.238
>>>>>> dev:cljs.user!{:conn 2}=>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Apr 26, 2018 at 2:53 AM, Johannes <bra...@nordakademie.de>
>>>>>> wrote:
>>>>>>
>>>>>>> I've learned from several discussions (https://github.com/bhauman/le
>>>>>>> in-figwheel/issues/612) that the problem was ClojureScript 1.9 and
>>>>>>> that one should use the tag :jvm-opts ["--add-modules" "java.xml.bind"]
>>>>>>> until a new ClojureScript version is out.
>>>>>>>
>>>>>>>
>>>>>>> Am Donnerstag, 26. April 2018 01:04:37 UTC+2 schrieb Phill Wolf:
>>>>>>>>
>>>>>>>> The error message fingers org/httpkit/server.clj.
>>>>>>>>
>>>>>>>> Is this it? --> https://github.com/http-kit/http-kit/issues/356
>>>>>>>>
>>>>>>> --
>>>>>>> Note that posts from new members are moderated - please be patient
>>>>>>> with your first post.
>>>>>>> ---
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "ClojureScript" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to clojurescrip...@googlegroups.com.
>>>>>>> To post to this group, send email to clojur...@googlegroups.com.
>>>>>>> Visit this group at https://groups.google.com/group/clojurescript.
>>>>>>>
>>>>>>
>>>>>> --
>>>>> Note that posts from new members are moderated - please be patient
>>>>> with your first post.
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "ClojureScript" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to clojurescrip...@googlegroups.com.
>>>>> To post to this group, send email to clojur...@googlegroups.com.
>>>>> Visit this group at https://groups.google.com/group/clojurescript.
>>>>>
>>>>
>>>> --
>>> Note that posts from new members are moderated - please be patient with
>>> your first post.
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "ClojureScript" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to clojurescrip...@googlegroups.com.
>>> To post to this group, send email to clojur...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/clojurescript.
>>>
>>
>> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at https://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.

Reply via email to