This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-07
Channels
- # aleph (1)
- # beginners (152)
- # cider (26)
- # clara (2)
- # cljs-dev (13)
- # cljsrn (5)
- # clojure (198)
- # clojure-greece (15)
- # clojure-italy (39)
- # clojure-sanfrancisco (3)
- # clojure-spec (28)
- # clojure-uk (16)
- # clojurescript (52)
- # community-development (15)
- # core-async (26)
- # cursive (42)
- # data-science (28)
- # datomic (19)
- # devops (7)
- # duct (11)
- # emacs (24)
- # fulcro (22)
- # garden (4)
- # leiningen (12)
- # luminus (1)
- # mount (5)
- # off-topic (106)
- # om (5)
- # onyx (10)
- # parinfer (37)
- # re-frame (17)
- # reagent (47)
- # shadow-cljs (36)
- # yada (2)
Cursive doesn’t really deal with the profile stuff explicitly, just delegates to lein
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.
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!
You can also turn your CLJ file into a CLJS one if that’s what you actually wanted to do.
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!
What’s the story for adding more refactorings to cursive, maybe taking advantage of work like clj-refactor?
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?
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)
In a new project, it unreasonably annoys me I have to setup Lein REPL every time. Here, we have hundreds of little projects.
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.
I've never actually done that, but I hear it can be done.
Does anyone else find space being injected when manipulating strings using slurp etc?
@cfleming a have a custom defrule
macro (with almost the same syntax) but i cant find that "yellow lamp" to switch the "macro binding"
@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.
@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.
When I push brackets out through strings that seems the biggest problem, the spaces appear in the strings and i have to clean up.
@souenzzo Can you check your intention settings? Settings->Editor->Intentions->Clojure
There’s a wiki on the github repo where I’ve put a few things, mostly just things I can point people too.
I’ll add an entry to https://cursive-ide.com/userguide/troubleshooting.html about this.
@mattford You’re right, that’s not right at all. I’ll fix that: https://github.com/cursive-ide/cursive/issues/1936