Fork me on GitHub
#cursive
<
2019-04-07
>
Ivan Koz05:04:24

Is there a way to extract form into a defn?

cfleming08:04:50

@nxtk No sorry, there isn’t, but there really should be.

👍 8
Jakub Holý (HolyJak)11:04:41

Problem #1: Hello, how to solve "Clojure command not configured"? Thank you! (Trying to start REPL in a deps.edn project, latest IntelliJ. clj works from the terminal and seems correctly configured at ... Build Tools - Clojure Deps. I have just switched from IntelliJ CE 2018.? where it worked to 2019.1)

4
Jakub Holý (HolyJak)11:04:26

Restarting IntelliJ and/or switching to using tools.deps directly and back to CLI fixed it.

Jakub Holý (HolyJak)11:04:33

Problem #3: I have followed https://github.com/danielcompton/defn-spec/blob/master/doc/cursive.md but (ds/defn myfn .. still complains that "myfn cannot be resolved". How can I troubleshoot? Thank you! (IntelliJ 2019.1, Cursive 1.8.1)

4
souenzzo01:04:30

@U0522TWDA you can let your cursor over the ds/defn then will appear a yellow lamp https://www.jetbrains.com/help/idea/intention-actions.html Then you set Resolve ds/defn ... to resolve as clojure.core/defn

Jakub Holý (HolyJak)05:04:59

I see the problem - the highlight is on the name of the function and thus symbol resolution is added but for the name of the function - myfn - and not for the macro ds/defn as needed. So I need to take care to click at the ds/defn itself and wait for the lightbulb, even though it is not highlighted.

Jakub Holý (HolyJak)05:04:59

I see the problem - the highlight is on the name of the function and thus symbol resolution is added but for the name of the function - myfn - and not for the macro ds/defn as needed. So I need to take care to click at the ds/defn itself and wait for the lightbulb, even though it is not highlighted.