This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-18
Channels
- # 100-days-of-code (6)
- # announcements (4)
- # beginners (126)
- # cider (49)
- # cljdoc (28)
- # cljsrn (3)
- # clojure (89)
- # clojure-dev (19)
- # clojure-greece (2)
- # clojure-italy (13)
- # clojure-mexico (1)
- # clojure-nl (13)
- # clojure-spec (108)
- # clojure-sweden (1)
- # clojure-uk (48)
- # clojurescript (31)
- # cloverage (3)
- # core-async (16)
- # cursive (28)
- # data-science (3)
- # datascript (1)
- # datomic (60)
- # defnpodcast (1)
- # docker (17)
- # editors (18)
- # emacs (16)
- # events (1)
- # figwheel (22)
- # figwheel-main (4)
- # graphql (26)
- # jobs (2)
- # off-topic (9)
- # om-next (2)
- # overtone (4)
- # perun (1)
- # re-frame (2)
- # reagent (18)
- # reitit (1)
- # ring-swagger (2)
- # shadow-cljs (2)
- # tools-deps (49)
- # uncomplicate (1)
- # unrepl (1)
- # vim (2)
@cfleming (probably been asked before). But do you have any plans in regards to clojure.spec integration (in docs and stuff like that) ?
@royalaid I’m planning to add support for that - in the meantime someone suggested resolving it as for
but I don’t think that will work.
@kidpollo Definitely not removed, it should still be there. In the menu it will now have the name of the test, like “Run ‘test-name’ in REPL” (I think, I don’t have Cursive open here)
@parameme See “Cursive on IntelliJ EAP builds” here: https://cursive-ide.com/userguide/troubleshooting.html
- go to spec. keyboard shortcut if there's s/fdef
or if it's a namespaced keyword that has a spec
https://github.com/gnl/ghostwheel looks really promising but no clue if intellij has a way to figure it out
Asking because by design specs can be added pretty much anywhere in the project (as far as I can tell). So was thinking that it would be really awesome if cursive could track them down in the code for me 😄
Is there some trick to getting Cursive to correctly indent, e.g. defn
arguments in ClojureScript (like Clojure)?
it’s highlighting my clojurescript, but doesn’t recognize defn
@solussd what do you mean with "correctly indent"? how is it "wrongly indented" now?
(defn blah
[]
(println "This is \"wrongly\" indented"))
(defn blah
[]
(println "This is \"rightly\" indented"))
When it doesn’t recognize a symbol, it defaults to function indentation. In the case of my ClojureScript sourcecode, it can’t resolve defn
.
Cursive indents subsequent lines of calls to a Clojure macro with 2 spaces, and the character width of the function in the case of a function call, by default
yeah, something is different about my environment
@solussd The problem is the symbol resolution, not the indentation - that’s what you’ll have to fix.
Do you see ClojureScript as a dependency in your Project toolwindow under External Libraries?