Fork me on GitHub
#cursive
<
2017-06-28
>
pupeno06:06:04

When I add a java-agent to my project, the REPL stops working. I added :java-agents [[com.newrelic.agent.java/newrelic-agent "3.40.0"]] and when I try to start the REPL I get: Error running REPL: resources\jars\com.newrelic.agent.java\newrelic-agent.jar (The system cannot find the path specified). The jar is there. Any ideas what's going on?

cfleming10:06:12

@pupeno No, I’ve not seen that but I’ve never tried to use third-party agents either. Can you file an issue for that and I’ll look at it?

pupeno10:06:42

How did you get the cursive icon next to your name?

cfleming10:06:06

It’s in the status message - I just chose an icon with no actual message.

pupeno10:06:26

Ah! Cool 🙂

jkouros11:06:41

Hello everyone! Is there an equivalent to the change signature refactoring for functions in cursive? Change signature does not work for me.

sparkofreason19:06:05

On the topic of "resolve as" for macros - I don't suppose we could get an option that follows the defmethod template? Or maybe I should just wait for the general solution?

zylox19:06:37

you can do some manual overrides in the xml file it stores its stuff off at

zylox19:06:54

the path on mac is /Users/<userid>/Library/Preferences/IdeaIC<intjversion>/options/ClojureResolveSettings.xml

zylox19:06:01

and add an entry like <item key="your.namespace/custom-defmethod" resolves-as="clojure.core/defmethod" />

zylox19:06:12

and restart intellij

zylox19:06:48

now this is assuming clojure.core/defmethod is wired up right, i assume it is but i dont touch it much

zylox19:06:02

i have a number of things set up like this and it works pretty well for me

sgerguri19:06:11

G’day, I’m having issues creating a project from existing sources the first time it loads up. I go through the dialog, then get an IDE error about project “not being initialized”, SDK is not set up (despite being set through the creation window), and root directories are not marked as such. When I set the JDK manually and restart things are loaded properly but first time is like this for pretty much any project that I choose to create from an existing Leiningen repo in this way. Is this a known issue? I’m on the latest Ultimate 2017.1 version, running the latest stable Cursive plugin.

jumar21:06:06

@U067BPAB1: how do you import an existing project? I used "Import project" The first time it suffered from "SDK not set up" issue and missing sources but everything was easily fixed by "Refresh Leiningen Projects"

sgerguri21:06:29

File->New->Project from existing sources… That gives you a “wizard”-like dialog window where you actually get to pick an SDK as well, it just ends up being ignored it seems. I remember this working correctly in earlier versions of Idea/Cursive so maybe it just got broken later on. Nice to see a familiar face in here!

cfleming22:06:04

@U067BPAB1 Could you send a screenshot of the error you’re seeing?

sparkofreason19:06:52

@zylox That pretty much works. Only minor annoyance is that Cursive doesn't recognize the "method name" symbol, probably as it expects a declaration like defmulti somewhere else. Anyway, better that than having the args unresolved. Thanks for the tip.

zylox19:06:39

no problem

cfleming22:06:57

@jkouros No, there isn’t yet, unfortunately