Resource files missing from compiler output

Answered

I have an IntelliJ Idea project using Gradle auto-import.  The 'out/production/resources' directory is intermittently absent from the filesystem.  It appears to be getting cleaned by a rebuild but is not properly re-created.  

Everything looks correct in the Project Structure.  I have also checked the 'Resource Patterns' setting and it is using the default set of patterns.  I have changed it to '*.*' and still have the problem.  The only way to get that directory to appear again is to "Invalidate Caches and Restart"

1
7 comments

Please provide a sample project to reproduce the problem. Make sure you are using the latest IntelliJ IDEA version.

0

I am using the latest version.  I downgraded back to 2017.2.2 and the problem no longer occurs.  I suspect it may be a regression with 2017.2.3.

It may be related to dirty checking. If I touch one of the files in the resources directory it seems to fix the problem.

0

If you have a reproducible test case, please file a bug at https://youtrack.jetbrains.com/issues/IDEA.

0

I am unable to reproduce this on a trivial project.  However, I am fairly certain that this is a regression with IntelliJ.  I upgraded from 2017.2.2 to 2017.2.4 and I'm consistently hitting this problem again.  Something must have changed in 2017.2.3 on how resources are handled during rebuilds.

0
Avatar
Permanently deleted user

I am having a similar issue to this in 2017.3.3 Ultimate with an IntelliJ Idea project using Gradle auto-import. out/production/resources is never created. build/resources is present with all of the correct files. Following the issues it looks like this should have been resolved in the version I am using. 

0

Please file a new issue at https://youtrack.jetbrains.com/issues/IDEA with the sample project, thanks.

-1

Please sign in to leave a comment.