Fork me on GitHub
#cursive
<
2019-07-08
>
cjmurphy00:07:36

I'm using IDEA 2019.1.3 and Cursive 1.8.1-2019.1 and getting "Cannot execute: Clojure command not configured". My suspicion is that the attached file is of a format that is too old. clj works fine from the command line.

cjmurphy00:07:02

i.e. My deps.edn project is mis-configured. By the way this file comes from under the .idea directory.

cfleming06:07:52

@U0D5RN0S1 If you correct the deps settings at Preferences | Build, Execution, Deployment | Build Tools | Clojure Deps, does that help?

cjmurphy07:07:17

The settings there seem fine: /usr/local/bin/clojure exists and works fine when I run it from the command line, and /home/chris/.clojure exists and has a deps.edn with everything commented out. This just the default setup I presume. This is a machine I've got going recently, a temporary and under-powered machine. I'm guessing the error message occurs because /usr/local/bin/clojure can't be found?? Is there a timeout for instance? Perhaps from the command line I'm picking up a different version of Java and that's why it works there.

cfleming20:07:34

That’s weird, that error message should only happen if there’s no path entered in that box. If you edit that field (e.g. add and remove a character), then apply the change and try again, does that fix it?

cjmurphy20:07:35

Something indeed did fix it. I've got another project and soon a new machine to setup. So next time come across that error I'll try that trick and let you know if it doesn't work.

cjmurphy20:07:18

(I did 'Reset', the equivalent of changing a character).

Mark Addleman14:07:55

I find myself doing some core.logic. Any idea how I should I should configure cursive to resolve fresh ?

helios14:07:26

select it, and then resolve as defn ?

helios14:07:35

(clicking the light bulb)

Mark Addleman14:07:57

Thanks but fresh doesn't quite match defn syntax.

Mark Addleman14:07:20

But you gave me the idea to resolve it as fn which does match the syntax. Thanks!

helios14:07:09

you're totally right, I meant fn but somehow typed defn 😄

Mark Addleman14:07:48

I think defne is going to be harder 🙂