Fork me on GitHub
#cursive
<
2020-07-02
>
mike_ananev06:07:08

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

cfleming10:07:17

Hi, someone else reported this as well, I’ve filed https://github.com/cursive-ide/cursive/issues/2393 so it doesn’t get lost.

Vincent Cantin07:07:04

@cfleming hi, the symbols seems to be unrecognized when working with libraries whose namespace is made of just 1 part.

Vincent Cantin07:07:47

my project is deps based, and the library is

clojure.java-time {:mvn/version "0.3.2"}

Vincent Cantin08:07:15

Super thx, it worked

cfleming09:07:23

In fact, that very library is the example in the stubs doc 🙂

mokr08:07:57

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.

Cris B09:07:13

@mokr try Settings -> Languages & Frameworks -> Clojure . There's an 'update' button for ClojureDocs at the bottom of the preferences pane under 'Documentation Options'

mokr09:07:53

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.

cfleming10:07:13

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

mokr10:07:49

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.

cfleming10:07:12

The ClojureDocs support you mean? That’s described here: https://cursive-ide.com/userguide/documentation.html#clojuredocs-support

mokr10:07:40

I was thinking about the “re-download” part.

mokr10:07:33

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

cfleming10:07:05

Ah, yes, good idea

cfleming10:07:19

I’ll check why the doc search isn’t working too

mokr10:07:30

I generally use ClojureDocs on the web without thinking about the clj<->cljs distinction

milelo15:07:20

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

cfleming21:07:47

Not yet unfortunately, but I’m hoping to fix that soon.

milelo15:07:53

Ok great, thanks for the response.

butterguns16:07:43

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:

butterguns16:07:39

MacOS Catalina, Cursive 1.9.0-2019.3

cfleming21:07:27

That is super weird.

cfleming21:07:04

I’m actually about to upgrade to Catalina, I’ll see if I can repro it then.

manutter5116:07:15

IntelliJ has a built-in JDK, but Leiningen doesn't. I installed a JDK from http://adoptopenjdk.net on my Mac.

butterguns16:07:57

Executing lein repl on the command line works perfectly though.

manutter5116:07:08

Hmm, might need to go under project settings and make sure your JDK is set as the project JDK

butterguns17:07:50

Bit of a headscratcher! :thinking_face:

manutter5117:07:22

Hmm, that is puzzling. Do you have the right Leiningen version listed in Preferences "Build, Execution, Deployment" -> Build Tools -> Leiningen?

manutter5117:07:21

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?

butterguns19:07:18

> 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!!

butterguns19:07:48

Very subtle and pernicious issue

benny16:07:04

is there a way to load all files to the repl (i.e. all tests)

onetom22:07:35

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.