cursive icon indicating copy to clipboard operation
cursive copied to clipboard

When a project has multiple source or test resources, IDE unmarks them.

Open mahonb opened this issue 5 years ago • 6 comments

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.)

mahonb avatar Oct 21 '20 21:10 mahonb

How is your project created? Are these source roots added via profiles or aliases?

cursive-ghost avatar Oct 21 '20 22:10 cursive-ghost

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.

mahonb avatar Oct 21 '20 22:10 mahonb

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.

cguckes avatar Oct 31 '20 21:10 cguckes

I have been living with this bug here: https://github.com/cursive-ide/cursive/issues/2391 Might be related to your bug as well.

boschi avatar Nov 05 '20 11:11 boschi

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.

axelarge avatar Mar 08 '21 09:03 axelarge

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.

antonmos avatar Jun 24 '22 21:06 antonmos