Fork me on GitHub
#cursive
<
2019-05-09
>
wilkerlucio00:05:01

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?

wilkerlucio00:05:51

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

dirklectisch10:05:17

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

claudiu11:05:30

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

misha21:05:01

@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.

cfleming00:05:26

@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: https://github.com/google/closure-compiler/tree/master/externs

parrot 4
misha06:05:15

Nice! Thanks!

misha21:05:45

(17307 lines)

henryw37421:05:20

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?

cfleming00:05:02

@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.

henryw37408:05:09

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

henryw37408:05:44

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

cfleming21:05:14

Thanks, I’ll try to reproduce that

henryw37412:05:56

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

flowthing13:05:38

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

henryw37415:05:54

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

flowthing17:05:31

I think test integration works, at least.

cfleming23:05:03

@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).

nwjsmith23:05:13

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

cfleming03:05:02

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