This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-08
Channels
- # aleph (4)
- # beginners (5)
- # cljs-dev (21)
- # clojure (155)
- # clojure-dev (3)
- # clojure-italy (10)
- # clojure-losangeles (3)
- # clojure-nl (2)
- # clojure-russia (5)
- # clojure-spec (42)
- # clojure-uk (11)
- # clojurescript (170)
- # code-art (1)
- # component (3)
- # core-async (28)
- # cursive (70)
- # data-science (3)
- # datascript (1)
- # datomic (28)
- # emacs (6)
- # gorilla (1)
- # graphql (2)
- # jobs (1)
- # lein-figwheel (4)
- # lumo (7)
- # off-topic (13)
- # om (63)
- # parinfer (66)
- # planck (1)
- # re-frame (22)
- # reagent (2)
- # ring-swagger (53)
- # rum (3)
- # sql (13)
- # test-check (2)
- # unrepl (48)
- # vim (8)
- # yada (33)
I just discovered 'Tools / REPL / Jump to REPL editor'. Can this command have a keybinding? I have tried to give it one by going to 'File / Settings / Keymap / Clojure keybindings'. When there I found that 'Jump to REPL editor' existed, but unfortunately didn't seem to be selectable/editable. And is there a standard keybinding for this command? (I'm going to use F12 is there is no standard).
@jeremys Yes, in your REPL run configuration you can specify the profiles it should use to build the classpath.
@cjmurphy Yes, you should be able to bind that, but for changing individual bindings you want File->Settings->Keymap. You can search for it there and assign it a key.
Hey @cfleming that’s the thing, figwheel’s wiki recommands the use of the third repl option “use clojure.main in normal jvm process”. When I use this repl the profiles selection textfield is disabled... https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-in-a-Cursive-Clojure-REPL
Has anyone else had trouble with Intellij/Cursive reformatting cljc conditionals incorrectly?
Yeah, I've definitely run into this as well. Only happens sometimes for me, haven't had enough time to tinker yet to narrow down when it's wrong
Hmm, ok. It seems very random about when it breaks.
It seems to be strongly dependent on the positioning of the conditional.
@U5JUDH2UE If you have example cases, I’d appreciate an issue with them.
That's actually exactly the issue I'm running into. Thanks!
I have a bunch of expanded keywords in a file. Is there a way to replace those with short alias? Or am I overthinking it, and find/replace would work just fine?
It seems to be strongly dependent on the positioning of the conditional.
Is it possible to get Parinfer w/ Cursive to re-indent subsequent forms when adding new forms before them? i.e., If I have a form that contains another form (e.g., a map) that is on multiple lines and I add a form before the map it’d be nice if it re-indented the map entries on subsequent lines, preferably while I type.
@jjfine the idea is not changing the structure of subsequent forms when adding a new form in front of it
e.g.:
(myfunc {:a 2
:b 3})
now if I add a symbol in front of that map, parinfer will do this:
(myfunc blah {:a 2}
:b 3)
yeah, hard to explain in words
@solussd @jjfine That’s actually handled by Parinfer v3's new smart mode, which we’re working on right now - I’m hoping to integrate that for testing this week.
@cfleming awesome! I can’t wait to try it.
@jeremys Oh right, sorry - there’s actually an issue out there to allow running that REPL via lein to allow profile selection.
@solussd You can try it out here: https://shaunlebron.github.io/parinfer/demo
yes, that is exactly what I want.
@jeremys When running the clojure.main REPL, it uses the classpath of your project as seen by IntelliJ. You can control how that is created by setting the profiles Cursive uses to create that.
There’s a profiles entry where you can select the profiles it should sync to the classpath. Adjust those, and then hit refresh (I can’t recall if that’s required or not, I think so)
Do you have ClojureScript as a dependency of the module? File->Project Structure->[your module]->Dependencies
That’ll give it to you in the editor but not in any artifacts you create - unless you have a good reason for it being there, I don’t think you need it, but obviously I don’t know your project.