This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-02
Channels
- # beginners (130)
- # calva (3)
- # cider (13)
- # circleci (1)
- # cljsrn (19)
- # clojure (106)
- # clojure-europe (10)
- # clojure-losangeles (1)
- # clojure-nl (9)
- # clojure-uk (33)
- # clojurescript (16)
- # code-reviews (24)
- # conjure (11)
- # cursive (41)
- # data-science (9)
- # datomic (63)
- # fulcro (19)
- # graphql (12)
- # helix (4)
- # kaocha (2)
- # leiningen (3)
- # malli (8)
- # meander (1)
- # off-topic (17)
- # re-frame (16)
- # reitit (12)
- # sci (32)
- # shadow-cljs (73)
- # spacemacs (31)
- # sql (38)
- # tools-deps (26)
- # xtdb (28)
@cfleming Hello, Colin! I have Idea 2020.1 Ultimate and Cursive 1.9.2 (latest stable version) When I edit deps.edn I have no lib version recommendation (no pop up). All maven repos are indexed (clojars, maven central). Some time ago version recommendation worked fine, Where I can check settings to enable it?
Hi, someone else reported this as well, I’ve filed https://github.com/cursive-ide/cursive/issues/2393 so it doesn’t get lost.
Thanks!
@cfleming hi, the symbols seems to be unrecognized when working with libraries whose namespace is made of just 1 part.
my project is deps
based, and the library is
clojure.java-time {:mvn/version "0.3.2"}
could stub generation be related? https://cursive-ide.com/userguide/macros.html#stub-generation
Super thx, it worked
Hi, is anyone aware of a way to trigger a download of ClojureDocs? I seem keep losing them. This time it might have happened when I updated Cursive, but there was no “download Clojuredocs” popup afterwards, or after the two IntelliJ restarts I’ve tried so far.
@mokr try Settings -> Languages & Frameworks -> Clojure . There's an 'update' button for ClojureDocs at the bottom of the preferences pane under 'Documentation Options'
Thanks, @cb.lists , I missed that one. Too bad it doesn’t turn up when I search settings for “ClojureDocs”. But, it now dawned on me that these only turn up in docs for clj-files, not cljs.
Yes, I need to fix that. At one point this worked but it seems to have broken. I’ve just filed this so I don’t forget about it again: https://github.com/cursive-ide/cursive/issues/2392
Great, then it will probably start working again at some point 🙂 BTW: I couldn’t find it in online docs either, so maybe you should make a small note there. Anyway, keep up the good work! I really enjoy Cursive.
The ClojureDocs support you mean? That’s described here: https://cursive-ide.com/userguide/documentation.html#clojuredocs-support
Based on the docs and the search in settings I got the impression that there was nothing I could do about the situation apart from hoping to see the pop-up at some point
I generally use ClojureDocs on the web without thinking about the clj<->cljs distinction
I'm sure this is covered somewhere but couldn't find it. Is there a way to get cursive to recognise symbols for clojurescript ns requires in the form
["@material-ui/core" :refer [AppBar]]
["@material-ui/icons/Info" :default info-icon]
etc? Thanks
Hello @cfleming! When I start a REPL with Run with IntelliJ project classpath
everything works perfectly. As soon as I switch to Run with Leiningen
checked, I receive this:
MacOS Catalina, Cursive 1.9.0-2019.3
IntelliJ has a built-in JDK, but Leiningen doesn't. I installed a JDK from http://adoptopenjdk.net on my Mac.
Executing lein repl
on the command line works perfectly though.
Hmm, might need to go under project settings and make sure your JDK is set as the project JDK
Bit of a headscratcher! :thinking_face:
Hmm, that is puzzling. Do you have the right Leiningen version listed in Preferences "Build, Execution, Deployment" -> Build Tools -> Leiningen?
Also, in my Run Configuration, under environment variables, if I click the Browse icon in the right-hand side of the Environment Variables field, I have "Include system environment variables" checked, which pulls in some java-related stuff, maybe that's important?
> Do you have the right Leiningen version listed in Preferences
Well look at that! That fixed it! I had 2.9.1
in my prefs, but my lein version
was 2.9.0
.
Thanks @U06CM8C3V!!
Very subtle and pernicious issue
:thumbsup:
i don't there is anything simple to do that, but i would recommend looking into either
https://github.com/cognitect-labs/test-runner
or
https://github.com/lambdaisland/kaocha
if you want to load all tests.
while it's a bit manual and hence also slightly error-prone, you can just create an all-tests
namespace, which simply requires all the test namespaces.
i think this approach can scale quite well until you only have 10-20 test-namespaces and saves you from introducing any of the test-related tools i just mentioned.