Fork me on GitHub
#cursive
<
2018-02-07
>
cfleming00:02:55

@tony.kay Not that I’m aware of, no.

cfleming00:02:19

Cursive doesn’t really deal with the profile stuff explicitly, just delegates to lein

tony.kay00:02:30

yeah, I figured…just can’t figure out why it works at CLI, but not from run configs. I knew you read from lein, so wondered if there was an issue there somehow. I’ve only seen it in one closed-source project so far, so if I can reproduce it more widely I’ll send you an issue.

cfleming00:02:43

Cool, thanks

genekim06:02:26

Oh, wow. I’m delighted that I have cursive working on my home machine now, using Settings Repository to sync all my keymaps, etc… I spent 90m getting Figwheel/CLJS repl running inside Cursive REPL, which blew me away — it was some unholy combination of https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl and https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-in-a-Cursive-Clojure-REPL …which ultimately enabled me to run (start-figwheel!) and (cljs-repl). It results in a CLJS REPL prompt, and I can do things like examine my CLJS program state, do things like (js/alert “abc”) But when I try to copy forms from the Cursive editor, I get an floating error box, very much like what was reported here: “Cannot load Clojure form into ClojureScript REPL” https://github.com/cursive-ide/cursive/issues/1285 Is there any guidance on getting CLJS/Figwheel REPLs configured correctly? Again, thanks so much in advance for the help!

cfleming06:02:40

@genekim Is the file you’re trying to load the form from a Clojure file, or CLJS?

genekim06:02:06

Oooh…. CLJ… @cfleming :thinking_face: Let me try from a CLJS file! 🙂

cfleming06:02:56

You can also turn your CLJ file into a CLJS one if that’s what you actually wanted to do.

cfleming06:02:08

Right click in the project view, Convert to…

genekim06:02:53

Holy cow… Wow! THANK YOU! (And sorry for my frequent questions here! But I’m elated beyond words for all the help!!!) @cfleming FWIW, I’m just blown away by how wonderful a real IDE is. Thanks for your amazing work — I’ll write up a more gushing and more lucid thank you soon!

cfleming06:02:20

Great, glad you’re enjoying it!

sooheon12:02:06

What’s the story for adding more refactorings to cursive, maybe taking advantage of work like clj-refactor?

sooheon12:02:54

There are many little things I miss from emacs, I wonder how difficult it would be to reimplement the most crucial features, maybe even writing the action/refactoring in clojure?

rarous14:02:58

@sooheon clj-refactor is REPL based, Cursive is not

danm15:02:25

How does Cursive expect multi-arity functions to be formatted? I keep trying to do it like this http://clojure-doc.org/articles/language/functions.html#multi-arity-functions and it tries to remove the trailing ] from the args list unless the content is inline with it (instead of being indented 2 chars)

danm15:02:21

This is specifically using parinfer mode

mattford15:02:15

In a new project, it unreasonably annoys me I have to setup Lein REPL every time. Here, we have hundreds of little projects.

mattford15:02:26

Can I do something about that?

mattford15:02:41

New, as in freshly checked out.

mattford15:02:52

Not new as in created from scratch.

manutter5115:02:44

IntelliJ provides a somewhat less-than-awesome method. If you bring up your Edit Configurations and click the Share checkbox, it will put an xml file in <project-dir>/.idea/runConfigurations, which you can copy to your new project to bring in the config from the other project.

manutter5115:02:27

I've never actually done that, but I hear it can be done.

mattford18:02:18

Does anyone else find space being injected when manipulating strings using slurp etc?

souenzzo19:02:37

@cfleming a have a custom defrule macro (with almost the same syntax) but i cant find that "yellow lamp" to switch the "macro binding"

cfleming19:02:43

@carr0t Yes, if you’re using parinfer, you’ll have to line the function bodies up with the argument vector. That’s a parinfer thing, not a Cursive thing.

cfleming19:02:19

@mattford Ugh, yes, I have a plan to set a run config up by default when importing a project, but I haven’t done that yet. I’ll see if I can do it for the next EAP.

cfleming19:02:52

Also, do you have an example of space being inserted with slurp?

cfleming19:02:36

@souenzzo It doesn’t come up when you have the caret over a usage of your macro?

mattford19:02:18

"foo" "bar"

mattford19:02:20

slurp forwards in foo

mattford19:02:31

turns it to

mattford19:02:44

"foo " bar ""

mattford19:02:38

When I push brackets out through strings that seems the biggest problem, the spaces appear in the strings and i have to clean up.

mattford20:02:33

can't make it happen now, so perhaps it's pebkac

cfleming20:02:14

@souenzzo Can you check your intention settings? Settings-&gt;Editor-&gt;Intentions-&gt;Clojure

souenzzo20:02:34

Now working! @cfleming there is some community wiki for cursive?

cfleming20:02:24

There’s a wiki on the github repo where I’ve put a few things, mostly just things I can point people too.

cfleming20:02:23

Make sure they’re enabled.

cfleming20:02:29

@mattford You’re right, that’s not right at all. I’ll fix that: https://github.com/cursive-ide/cursive/issues/1936