Fork me on GitHub
#cursive
<
2018-12-10
>
misha01:12:51

I already have it on opieop

shaun-mahood16:12:57

I'm getting an error message Error:Error resolving ... : Coordinate type :mvn not loaded for library org.clojure/clojure in coordinate {:mvn/version "1.10.0-RC4"} when I try to import a project using dep. My deps.edn file is {:deps {org.clojure/clojure {:mvn/version "1.10.0-RC4"}} :paths ["src/clj"]}. If I try to add a REPL, I see the error Run Configuration Error: No modules containing clojure.main found. Running IntelliJ Community 2017.2.7 with Cursive 1-8-0 on Ubuntu, and in the same project I'm able to run clj and it runs with Clojure 1.10.0-RC4 so I assume that part of things is working fine.

shaun-mahood16:12:26

It seems like the problem occurs with Use CLI Tools - the path is correct (I can run it directly from the terminal and it will start up a clojure repl), not sure how to troubleshoot it though.

cfleming00:12:24

@shaun-mahood That’s a really weird error, and I can’t reproduce it. But I think I see how to fix it.

cfleming00:12:54

Do you get a stacktrace in your logs?

shaun-mahood00:12:43

I don't think one came up in the log screen, all that is there from earlier is 10:39 AM Error running 'REPL': Error creating run parameters. - how do I find the cursive logs?

cfleming00:12:02

Help-&gt;Show log in…

cfleming00:12:38

Actually, I can’t see how to fix that, and I no longer have a theory why that wouldn’t work 😞

shaun-mahood00:12:20

I mean, it works fine as long as I use tools.deps directly - so I was able to get the work done that I wanted today.

cfleming00:12:29

In your original error, you pasted Error:Error resolving ... - did you redact something there or did it actually print ...?

shaun-mahood00:12:53

Heading home for the night, but if you have anything you want me to try I can do that tomorrow. The ... was just the path to the project on my machine

cfleming00:12:42

Ok, thanks - there is another mysterious problem where those paths are wrong, I thought it might be related.

cfleming00:12:02

Ok, I’ll investigate further.

solussd22:12:06

Is it possible to get Cursive to format other forms like it formats let? I.e., if I create a macro with a binding form like let.

cfleming22:12:03

@solussd Yes, if you resolve your macro form as let, it should work, see: https://cursive-ide.com/userguide/macros.html

solussd22:12:17

also, is it possible to apply let/map/etc alignment with a keystroke, but not automatically?

cfleming22:12:37

No, it’s not possible to do that at the moment.

👍 1
solussd22:12:38

@cfleming I tried the "resolve-as" functionality, but it didn't work. 😕

cfleming22:12:55

Could you file an issue for that? That should work.

cfleming22:12:26

@shaun-mahood I’ll try to reproduce that.

👍 1
solussd23:12:21

@cfleming false alarm– I had an arg before the binding vector, so it wasn't the same as let.

solussd23:12:36

it does work when it is shaped like a let.