[2018.03 regression] Symbolic link is not updated during compilation
I have this weird setup in my IDEA project because I need to generate some code via an external tool, and it will place the generated code to a particular path. So I decided to create a relative symbolic link inside `src` pointing to that folder with generated sources. This setup worked in 2018.02 but stopped working in 2018.03 after I upgraded today. I tried to rebuild the project in 2018.02 and it still works. So this looks like a regression.
Problem: If there is a symbolic link inside the source folder, IntelliJ's build won't pick up the files in that folder during compilation, but all other features still works. It still can index the code in that folder correctly.
I created a minimal reproducible project at here: https://github.com/fanzeyi/idea-symbolic-build
You will need to run `./generate.sh` first then build, you will see compilation errors saying the files in the symbolic folder are not found.
=========== UPDATE ============
When I was writing this post I noticed it worked somehow. It turns out IntellIJ will correctly pick up the files in the symbolic linked folder if the folder is not created when I open the project. However it still gives me compilation error if I re-open the project with the generated files in place.
2018.02 works in both cases.


Please sign in to leave a comment.
Does it looks like https://youtrack.jetbrains.com/issue/IDEA-65174 ?
https://youtrack.jetbrains.com/issue/IDEA-202240 may be also related.
@Serge Baranov I think IDEA-202240 might be related but I am not familiar with maven to make the call. It appears to me that files under symlink folders are not picked up by the build system, which could cause IntellIJ leaving an empty folder as described in IDEA-202240.
I don't think this is related to IDEA-65174 since IntellIJ still can show new file added to the symlink folder. However, I did notice the icon of an empty file is showed as symlink folder in 2018.03. Here are the screenshots:
IntellIJ itself does see the symbolic linked folder as well as the files in it. All the IDE features works properly. The files are only ignored during the building process.
Thanks, I've added your feedback to the similar issue, please follow it for updates: https://youtrack.jetbrains.com/issue/IDEA-202775.
See https://intellij-support.jetbrains.com/hc/articles/207241135 if you are not familiar with YouTrack.