Fork me on GitHub
#cursive
<
2018-07-30
>
tbaldridge15:07:33

I have a project.clj file that contains a :certificates entry. I can't start the project because Cursive errors out saying that the file does not exist. However it does exist, and seems to work fine if I comment out the :certificates line, or if I run the project through lein. Any ideas?

tbaldridge15:07:57

:certificates ["dev/resources/server-nexus-01.pem"] is what the line looks like

joelsanchez16:07:41

when I change the source folders in Project structure it's not saved for the next session...should I give up and change the project.clj?

alexpashkov17:07:01

@cfleming I opened File-&gt;Project Structure and there was a bunch of stuff under Problems. It was late and I remember there was something about clojaras and maven (something wasn’t indexed). I had to press update and warnings went away. Thanks everybody!

emccue18:07:10

Is there a way to trick cursive into ignoring an undefined symbol in a macro I made?

emccue18:07:20

I have a macro that lets me write

emccue18:07:34

(m+ a b c | :custom d)

emccue18:07:39

and have that expand to

emccue18:07:53

{:a a, :b b, :c c, :custom d}

emccue18:07:16

and the vertical line is seen as an undefined symbol

emccue18:07:12

I can (declare |) but I don't know how to make that declaration "follow" the importing of the macro

kenny18:07:42

Can you refresh the Deps every time you start a REPL? I find myself forgetting to hit the refresh button after a deps change and getting an old classpath.

danielcompton19:07:13

@kenny you can turn on a warning when your project.clj is out of date

kenny19:07:32

For the Deps integration?

danielcompton19:07:40

But I find it gets a bit annoying

danielcompton19:07:53

Ah, are you talking about deps.edn?

danielcompton19:07:31

Oh, I’m not sure. I’d imagine that feature would come eventually

cfleming23:07:28

@tbaldridge So Cursive has a problem in that it runs lein in-process and thus can’t change the CWD. I do a bunch of black magic with the http://c.j.io protocols to support what I can, but if something uses (File.) there’s not much I can do. I’ll try that and see if I can fix it.

cfleming23:07:53

As a workaround, you can run lein headless and then connect a remote REPL to it from within Cursive.

cfleming23:07:14

@joelsanchez Yes, you should 🙂

cfleming23:07:57

@kenny I haven’t implemented that for deps yet, I’ll try to get that in there soon.

4
cfleming23:07:45

@kenny You asked about being shown whether aliases are system, user or project aliases the other day. Unfortunately there’s no way at the moment to distinguish the system deps.edn from the user one (`-Sdescribe` returns a list of files and no info about which is which).

cfleming23:07:02

I can show which come from your actual project, is that still useful?