cursive
cursive copied to clipboard
When a project has multiple source or test resources, IDE unmarks them.
When a project has multiple source or test folders the directories keep losing their status as source or test folders.
This bug has been a bug for a while when you pull from git or open a closed project, but now it's mutated into a much more annoying bug it basically happens all the time (refresh dependencies, mark another folder, etc.)
How is your project created? Are these source roots added via profiles or aliases?
I created the project by going to File > New Project from Existing Sources. They are normal directories, not added via profiles and they aren't aliases.
I have the same issue. Every time cursive reimports project.clj changes, the whole setup blows up and I have to reconfigure my entire project (remove several content roots, mark source/test/resources-folders). This is especially annoying when starting new projects, since the project.clj file changes quite often in the beginning. IMHO this should only happen when importing the project for the first time or if any of the resource, test or source directories change in the project file.
I have been living with this bug here: https://github.com/cursive-ide/cursive/issues/2391 Might be related to your bug as well.
Perhaps related to https://github.com/cursive-ide/cursive/issues/1741 ? My team has been experiencing this for a number of months now and it is extremely annoying having to reconfigure the project settings every day.
Happened to me, when using Leiningen checkouts feature.
The dependency symlinked in the checkouts folder got added as a module, but its source folder did not get marked as "Sources". If i mark it manually and then "Refresh Leiningen Projects", it gets unmarked.