Fork me on GitHub
#cursive
<
2019-04-04
>
cfleming00:04:48

If anyone is annoyed by the change in brace handling behaviour in IntelliJ 2019.1, please go and vote for https://youtrack.jetbrains.com/issue/IDEA-210104 (see https://github.com/cursive-ide/cursive/issues/2143 for Cursive specific details).

đź‘Ť 8
gmercer01:04:17

Hi (mac/linux user here), trying to show Clojure using Cursive on Windows, the Refresh/Download open is not intuitive ... what do I need in the users home directory deps.edn ...

gmercer02:04:43

.. in order to use tools.dep directly - see Settings/Build, Execution, Deployment/Build Tools/Clojure Deps

cfleming02:04:02

@gmercer Sorry, I’m not understanding your question.

cfleming02:04:03

The user’s home directory deps.edn is just the file that you want to use as the user deps - on mac/linux that’s in a standard location, on Windows it isn’t (yet) so I allow you to choose where you want to put it.

gmercer02:04:55

What are the contents of that file in order for the version drop down list to become populated ?

cfleming02:04:24

The version drop down list isn’t populated based on that file, that’s queried from the Maven repository.

cfleming02:04:37

When you press “Refresh”, that list will be populated. Then you choose a version and press “Download” to fetch it.

gmercer02:04:38

Excellent ... and our local repo does not contain a tools.dep.alpha hence the issue .. I will get it loaded and we will be on our way

gmercer02:04:14

Thanks heaps Colin ..

cfleming02:04:12

@gmercer No worries! One thing is that if you’re going to fetch that from a local repo, artifactory or something, then it will need Maven indexes built for the version querying to work.

gmercer02:04:50

Thanks - note taken

gmercer02:04:23

Actually during one wrestle we got it installed locally but that would alos need the indexing

kdhoward02:04:16

I installed IntelliJ Community 2019.1 and Cursive. I am using Leiningen. I created a project and then imported it into IntelliJ. I then tried to run nRepl but I am getting the following exceptions. Any help on what I'm doing wrong would be greatly appreciated.

cfleming02:04:36

@kdhoward You don’t need the cider middleware to work with Cursive, so you should remove that.

đź‘Ť 4
cfleming02:04:46

Hopefully that will fix your problem.

kdhoward02:04:52

@cfleming I removed all plugins that I had downloaded except for Cursive and I'm still seeing the problem. How would I go about removing cider? I don't believe I installed it (at least not knowingly)

henryw37405:04:45

@cfleming Re: You can use the “Use tools.deps directly” option at Preferences | Build, Execution, Deployment | Build Tools | Clojure Deps, that was added so that Windows users can use deps. Thanks, but unfortunately that doesnt work for me, even though Intellij has a proxy set up. Similarly Cursive cannot download lein itself, but if I have lein installed already, cursive will work. Is there somewhere I can unzip the clojure.tools jar that Cursive will be able to use it?

cfleming06:04:05

@kdhoward You probably have it in ~/.lein/profiles.clj

cfleming09:04:56

@henryw374 There’s some info here on how to get deps to use a proxy, see https://clojure.org/reference/deps_and_cli under “Maven proxies”. Unfortunately it doesn’t look like I can automatically use the IntelliJ one when calling deps.

henryw37409:04:11

@cfleming - What I mean is that I cannot get intellij to download tool.deps in the first place. when I click 'refresh' it just sits there with a spinner. I guess my intellij cannot access github (firewall... although I can access github from my browser), even though I have the intellij proxy set up. Since I can download tools.deps from a browser, if I could unzip it somewhere that Cursive would recognise, that would be fine as a workaround

cfleming09:04:28

@henryw374 Yes, I just had a shower moment and was coming to say that of course deps doesn’t download itself. I’ll look tomorrow at how to make that code use the IntelliJ proxy. I can’t think of a good workaround unfortunately, since getting the version list depends on repo access.

henryw37409:04:15

đź‘Ť that'd be great, cheers

kdhoward22:04:08

Thanks @cfleming That did the trick!