Fork me on GitHub
#cursive
<
2020-01-26
>
royalaid02:01:44

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?

cfleming06:01:41

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?

cfleming06:01:18

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.

royalaid21:01:56

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.

royalaid21:01:59

I have asked in #shadow-cljs to see theller has a way to move the deps.edn file up a level

royalaid21:01:21

That would "magically" fix this issue for me but it probably still stands for others

royalaid21:01:40

I think not overwriting changes to module names would work for me

royalaid21:01:03

but it might get hairy if it isn't made obvious that renaming is not happening for a reason

cfleming09:01:51

Ok, I’ll try to get that fix into the next EAP.

royalaid22:01:13

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

cfleming23:01:02

Yes, definitely. I’d hoped to get this in the next EAP but updating to support 2020.1 is taking way longer than expected so this might not happen until the following one.

👍 4
royalaid02:01:20

I would like to avoid renaming the the folders because Amplify's lambda deploy mechanism assume the shape of the code directory