Fork me on GitHub
#cursive
<
2021-10-06
>
royalaid04:10:11

hey @cfleming I am trying to use cursive inside a larger team repo. Because I am the only one using cursive we would like to keep the idea files out of the main repo. The problem I have is that everytime I update my deps.edn and sync it breaks the idea configuration

R.A. Porter04:10:13

Are you sharing disk space or using version control software? I would hope and assume the latter; in that case, just add your IJ project files to either your global ignore file (e.g. .gitignore if using git) or to local ignite files. If the former case, I strongly advise that you explain to your team the value of DVCS.

helios12:10:08

I know this is not what you asked, but we are also mostly .gitignoring the .idea folder BUT having a few files actually checked in for consistency: indentation settings and whatnot. But everybody has their own .idea folder

royalaid15:10:19

We are using DVCS, hence why I referred to a repo. Again my main problem is that syncing the deps.edn with intellij breaks the modules that have been added to the project.

R.A. Porter15:10:24

Perhaps I don't understand why you said, "we would like to keep the idea files out of the main repo", then.

royalaid15:10:16

Because I am the only one using intellij, it just adds noise the PRs and diffs

R.A. Porter15:10:09

Right. Which is why @U0AD3JSHL and I both suggested using .gitignore Then your IJ files would still be where they belong but not be in your PRs and shared repository.

royalaid15:10:24

Again, its not about where the project files live. That isn’t an issue. The issue is specifically if I right click my deps.edn and sync new dependencies the project loses modules

royalaid15:10:50

Do you have a solution to specifically, that?

R.A. Porter15:10:35

I do not. Good luck.

royalaid16:10:39

Found what I think is the problem, or part of it. The issue seems to be cursives assumption that the deps.edn files will live next to the intellij iml. We have frontend setup with two sub projects that use a parent directory to house their deps.edn

cfleming21:10:23

@U0S3YK6HK Can you share the directory structure of your project along with where the deps.edn files live? I’m not sure I understand how you have this set up. If you’d prefer to email to <mailto:[email protected]|[email protected]> and discuss offline that’s fine too.

👍 1
royalaid04:10:08

add to this that the project uses a monorepo with multiple modules that nested under other modules and it seems to run into a lot of cases that cursive assumes work but do not

royalaid04:10:55

I am sure a major part of this is me not understanding how to use intellij’s project config but I can’t imagine my modules should get nuked on refreshing deps

royalaid16:10:39

Found what I think is the problem, or part of it. The issue seems to be cursives assumption that the deps.edn files will live next to the intellij iml. We have frontend setup with two sub projects that use a parent directory to house their deps.edn