This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-09
Channels
- # announcements (12)
- # beginners (159)
- # boot (3)
- # calva (41)
- # cider (48)
- # clara (2)
- # clj-kondo (8)
- # cljdoc (8)
- # clojure (70)
- # clojure-dev (10)
- # clojure-europe (2)
- # clojure-losangeles (1)
- # clojure-nl (12)
- # clojure-spec (7)
- # clojure-uk (63)
- # clojurescript (24)
- # cursive (24)
- # datomic (22)
- # expound (17)
- # figwheel (1)
- # fulcro (176)
- # graphql (23)
- # jobs (9)
- # jobs-discuss (56)
- # kaocha (1)
- # mount (3)
- # nyc (1)
- # off-topic (91)
- # onyx (3)
- # overtone (4)
- # pathom (3)
- # pedestal (1)
- # re-frame (11)
- # reitit (19)
- # ring (8)
- # shadow-cljs (16)
- # test-check (5)
- # testing (2)
- # tools-deps (20)
- # vim (9)
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
@U0520QSJJ This is the closest thing until I get the doc up to date: https://groups.google.com/d/msg/cursive/NQIJzhGjfEY/hdNXUco8CgAJ
@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: https://github.com/google/closure-compiler/tree/master/externs
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 trueI tried taking out nrepl as a dependency, but that makes no difference from cursive
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
@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?
I don't think so: https://github.com/cursive-ide/cursive/issues/238
Unfortunately not, these use some funky multi-method black magic that’s hard to resolve accurately.