Fork me on GitHub
#cursive
<
2019-01-27
>
cfleming04:01:08

@joshkh Is that Clojure or CLJS? When you look at File-&gt;Project Structure-&gt;Modules-&gt;[your module] under the Dependencies tab, is Clojure (or CLJS if that’s what you’re using) there as a dependency?

cfleming04:01:24

What is the error you get when reimporting?

joshkh06:01:21

so clojure core functions started working again after another reimport, however third party clojurescript functions were still undefined. i think i figured it out though: the cljs libraries are :extra-deps in a clojure alias. moving them to the main :deps key makes intellij happy again.

joshkh07:01:52

and indeed, deps in :extra-deps do not appear in File->Project Structure->Modules->[your module]->Dependencies

cfleming08:01:26

@joshkh Go to the deps toolwindow and open the Aliases tree, check the aliases that those deps are under and then they’ll be used when syncing with Cursive.

joshkh08:01:50

perfect. thanks so much for the help.

joshkh08:01:42

i must have scanned over that toolbar a million times without even noticing it 🙂

joshkh08:01:40

while i'm here, another (unrelated) question! sometimes i change my mind about a package name. when i right click say src/clj/package1, select Refactor > Rename, and do the refactor, none of the namespaces are updated -- only the package (folder) name. is that the expected behaviour?

Lennart Buit20:01:50

Can cursive be configured to insert a newline after (:require in ns declarations? Makes sorting requires easier and diffs clearer ^^.

WhoNeedszZz20:01:27

What's stopping you from doing this? If you put your first require like that then the rest will follow suit

Lennart Buit20:01:01

True, I’d like it to be by default tho

Lennart Buit20:01:52

So I would prefer this:

(ns my-awesome-ns
  (:require
    [some-lesser-ns]
    [some-other-lesser-ns]))