Fork me on GitHub

hello, for some reason seems like my maven repositories just disappeared from the list in the maven options (so no dependency completion), does someone knows how can I get then back?


nevermind, after doing a refresh on the deps project they went back 🙂


Is there a guide somewhere on how to setup a new project with Cursive using Clojure’s CLI tools and Clojure Deps?


think just opening the deps.edn trigger cursive to ask if it's a project and do the right things


@cfleming hi! Colin, did you think about leveraging IDEA's javascript plugin to resolve (do not show as unresolved, etc,) js/dom related methods? this is the file I am talking about: /Applications/IntelliJ however, I think it might not be available in community edition of IDEA.


@U051HUZLD Not exactly, but I’m currently working on migrating the JS parsing to the Google Closure parser, and as part of that I’m going to use their equivalent:

parrot 4

Nice! Thanks!


(17307 lines)


trying to use cursive with a deps project to run an nrepl repl with middleware.... and failing . I have an alias with : :main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.piggieback/wrap-cljs-repl]" "-i"] which works ok running clj from the command line, but running with cursive the middleware is not getting picked up. I have tried various repl options, including nrepl with the the alias that includes the line above. anyone knows how to make this work?


@U051B9FU1 Do you have the alias specified in your run configuration? You need to have “Run with Deps” selected there and the alias in the Aliases box.


Hi, yes I just have the one alias in the run config, using 'run with deps' and 'nrepl' opt selected. the main-opts is being read, which I know because if i put some rubbish in there i get an error. for a minimal repo:

:dev  {
                  :main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.piggieback/wrap-cljs-repl]" "-i"]
                  :extra-deps  {
                                com.bhauman/figwheel-main {:mvn/version "0.2.0"}
                                nrepl/nrepl      {:mvn/version "0.6.0"}
                                cider/piggieback {:mvn/version "0.4.0"}
then in the repl: (require 'figwheel.main) (figwheel.main/bound-var? 'cider.piggieback/cljs-repl-env) => false but when starting a repl from`clj -Adev`, the above evaluates to true


I tried taking out nrepl as a dependency, but that makes no difference from cursive


Thanks, I’ll try to reproduce that


thanks. If we can get that going then moving our projects to deps becomes a possibility. The other way would be to run a headless repl and remote to it from cursive I guess, but then you'd miss out on the cursive repl goodies afaik


I don't think you miss out on anything by using a remote REPL. I can't think of anything, at least.


I was thinking test integration, macro expansion... but true you don't really need those in a process that's mostly there just to compile cljs


I think test integration works, at least.


@U051B9FU1 All of that will work fine with a remote REPL. Really the only difference is it’s mildly more annoying to start (i.e. you have to start the server and then run the REPL within Cursive).


In clojure.test there are thrown? and thrown-with-msg? “special assertions”. Is there any way to convince Cursive to resolve these?


Unfortunately not, these use some funky multi-method black magic that’s hard to resolve accurately.