This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-27
Channels
- # announcements (2)
- # beginners (69)
- # boot (2)
- # calva (15)
- # cider (4)
- # cljs-dev (8)
- # cljsrn (1)
- # clojure (38)
- # clojure-spec (2)
- # clojure-uk (6)
- # clojurescript (6)
- # cursive (12)
- # data-science (1)
- # datomic (6)
- # emacs (10)
- # figwheel-main (12)
- # fulcro (41)
- # nrepl (1)
- # re-frame (16)
- # reitit (1)
- # shadow-cljs (6)
- # spacemacs (2)
- # speculative (1)
- # test-check (9)
@joshkh Is that Clojure or CLJS? When you look at File->Project Structure->Modules->[your module] under the Dependencies tab, is Clojure (or CLJS if that’s what you’re using) there as a dependency?
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.
and indeed, deps in :extra-deps
do not appear in File->Project Structure->Modules->[your module]->Dependencies
@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.
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?
Can cursive be configured to insert a newline after (:require
in ns
declarations? Makes sorting requires easier and diffs clearer ^^.
What's stopping you from doing this? If you put your first require like that then the rest will follow suit
True, I’d like it to be by default tho
So I would prefer this:
(ns my-awesome-ns
(:require
[some-lesser-ns]
[some-other-lesser-ns]))