Fork me on GitHub
#cursive
<
2019-10-11
>
Trevor14:10:25

FIX: Include clojurescript itself as a dependency in deps.edn I'm getting unresolved symbols (for stuff like defn) for a clojurescript shadow-cljs + deps project on Intellij versions 2019.2.3 and 2018.3.6 Cursive version is v1.8.2-2018.3 on the 2018.3.6 IntelliJ Cursive version is v1.8.2-2019.2 on the 2019.2.3 IntelliJ I'll post my deps.edn and shadow-cljs.edn in a thread Total noob here, I'm sure it's something simple I need to do.

Trevor14:10:50

deps.edn

{:paths ["src"]
 :deps  
 {
         reagent            {:mvn/version "0.9.0-rc1"}
         binaryage/devtools {:mvn/version "0.9.10"}
 }
 :aliases {
         :cljs {
                :extra-deps {
                             thheller/shadow-cljs {:mvn/version "2.8.62"}}}}

 }

Trevor14:10:16

shadow-cljs.edn

;; shadow-cljs configuration
{:source-paths
 ["src"]

 :deps {:aliases [:cljs]}

 ;; set an nrepl port for connection to a REPL.
 :nrepl        {:port 8777}

 :builds
 {:app {:target :browser
        :output-dir "public/js/compiled"
        :asset-path "/js/compiled"

        :modules
        {:main
         {:entries [minutes-clj.core]}}

        :devtools
        ;; before live-reloading any code call this function
        {:before-load minutes-clj.core/stop
         ;; after live-reloading finishes call this function
         :after-load minutes-clj.core/start
         ;; serve the public directory over http at port 8700
         :http-root    "public"
         :http-port    8700
         :preloads     [devtools.preload]}
        }}}

flowthing17:10:52

I might remember wrong, but it could be that you need to add an explicit dependency to ClojureScript.

Trevor17:10:45

AH, would that be in deps?

Trevor17:10:41

That did it @U4ZDX466T!

🎉 4
Trevor18:10:52

oh man I'm so excited

Milene22:10:54

Hi everybody, I am trying to get an existing project setup in InteliJ/Cursive. I created a Leiningen configuration, I am getting " Run Configuration Error: The Clojure jar is not attached to this module" . Does anybody have direction to help me out ? Any help is greatly appreciated.