This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-26
Channels
- # beginners (55)
- # bristol-clojurians (4)
- # calva (9)
- # clj-kondo (29)
- # cljsrn (1)
- # clojars (6)
- # clojure (57)
- # clojure-dev (4)
- # clojure-uk (22)
- # clojurescript (52)
- # code-reviews (1)
- # core-async (33)
- # cursive (12)
- # datomic (46)
- # docker (7)
- # figwheel-main (13)
- # fulcro (8)
- # graalvm (3)
- # instaparse (1)
- # kaocha (2)
- # perun (1)
- # portkey (5)
- # re-frame (3)
- # shadow-cljs (46)
- # spacemacs (7)
- # specter (3)
- # vim (1)
- # vscode (3)
Hey @cfleming, I am trying setup a project with a lot of submodules (for AWS Amplify). Whenever I try to rename the modules in Intellij and I reimport/update my deps it overwrites the name of the module with the name of the folder that contains the submodule. Is there a way to override this behavior or to tell Cursive that a specific dir should respect a specific name?
Unfortunately not at the moment. Deps philosophically avoids naming things where possible, and that causes problems with Cursive which needs names for things, in particular modules. Why do you need to rename the modules in IntelliJ, do you have various projects in directories with the same name?
I guess one possible option would be to use the directory name on project creation, but then not reset it later if someone has renamed the module manually.
Why do you need to rename the modules in IntelliJ, do you have various projects in directories with the same name?Yeah, its a bunch of lambda's here is a screenshot of the folder structure. All of the modules end up end src
or src-1
with some actually deleting other modules. It's not a huge deal but it is annoying.
I have asked in #shadow-cljs to see theller has a way to move the deps.edn
file up a level
That would "magically" fix this issue for me but it probably still stands for others
but it might get hairy if it isn't made obvious that renaming is not happening for a reason
For what its worth I have worked around the above by consolidating per Thomas' recommendation and now only have one Shadow-cljs and deps.edn file. That all being said I think this change still have merit and is more in line with expected behavior