Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

I just created a new re-frame project with:

lein new re-frame mywebapp

This makes a shadow-cljs based project with shadow-cljs.edn (no deps or project.clj)

I have IntelliJ Community edition + Cursive installed and I try: File -> New -> Project from existing sources -> Project from existing sources -> "No frameworks detected"

I Add SRC folder as source-root.

In the current state of the project the problem is that many basic clojure-symbols like DEFN and LEF "cannot be resolved" by cursive

2 Answers

0 votes
by

I was able to make the intellisense in Cursive working my making a minimal standalone Leiningen project.clj :

(defproject verto-gui "1.0"
  :dependencies [[org.clojure/clojure "1.10.1"]
                 [org.clojure/clojurescript "1.10.773"
                  :exclusions [com.google.javascript/closure-compiler-unshaded
                               org.clojure/google-closure-library
                               org.clojure/google-closure-library-third-party]]
                 [re-frame "1.2.0"]])

This solution is somewhat annoying because I need to duplicate here the references to libraries that are already defined in the shadow-cljs.edn. So better answers to the program are still appreciated.

0 votes
by

I use cursive and made this Example of using shadow with deps e.g. https://github.com/henryw374/firebase-clojurescript-todo-list.

...