Fork me on GitHub
#cursive
<
2018-10-18
>
parameme00:10:20

Should I be able to see Cursive plugin here?

claudiu07:10:44

@cfleming (probably been asked before). But do you have any plans in regards to clojure.spec integration (in docs and stuff like that) ?

cfleming07:10:03

@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.

royalaid17:10:13

Can confirm, does not work

cfleming07:10:57

@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)

cfleming07:10:04

The doc is out of date there.

cfleming07:10:07

@claudiu Yes, I’d like to add more support, suggestions are welcome!

claudiu07:10:53

@cfleming Was just thinking that would be nice to:

claudiu07:10:07

- show spec at the bottom in the docs

claudiu07:10:37

- go to spec. keyboard shortcut if there's s/fdef or if it's a namespaced keyword that has a spec

claudiu07:10:17

https://github.com/gnl/ghostwheel looks really promising but no clue if intellij has a way to figure it out

claudiu08:10:26

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 😄

solussd16:10:43

Is there some trick to getting Cursive to correctly indent, e.g. defn arguments in ClojureScript (like Clojure)?

solussd16:10:05

it’s highlighting my clojurescript, but doesn’t recognize defn

Azzurite19:10:25

@solussd what do you mean with "correctly indent"? how is it "wrongly indented" now?

solussd19:10:03

@azzurite

(defn blah
      []
      (println "This is \"wrongly\" indented"))


(defn blah
  []
  (println "This is \"rightly\" indented"))

solussd19:10:58

When it doesn’t recognize a symbol, it defaults to function indentation. In the case of my ClojureScript sourcecode, it can’t resolve defn.

solussd19:10:01

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

Azzurite19:10:23

hm weird for me it always automatically does the correct one

solussd19:10:14

yeah, something is different about my environment

isak19:10:43

@solussd do you have anything listed here? I think this is where it is customized:

cfleming21:10:26

@solussd The problem is the symbol resolution, not the indentation - that’s what you’ll have to fix.

cfleming21:10:36

So Clojure is indented correctly, but not CLJS?

cfleming21:10:26

Do you see ClojureScript as a dependency in your Project toolwindow under External Libraries?

cfleming21:10:08

If that all looks ok, there’s always File-&gt;Invalidate Caches and Restart… which sometimes helps cases like this.

cfleming21:10:35

It’s the IntelliJ version of restarting something when it goes bad.