CLion not recognizing changes between files on single compilation unit project
So I am aware that my particular setup is definitely an edge case, but I would still like to be able to fix the issues I am having. So I have a project that I am working on that uses the meson build system, and it uses a single compilation unit style setup where instead of compiling all of the source files separately and then linking them and including headers everywhere, all of the cpp source files are included directly in one main cpp file which then gets compiled. CLion was able to recognize this setup just fine and gives me proper syntax highlighting, auto-complete, and reference links between different files. However, if I rename something, change a signature, delete something, or add something new, that change is not reflected in the other files. The error checking and auto complete still recognize the old name/signature as correct, and does not recognize the new one. No amount of touching the changed file, the file that I am trying to edit, or the main compiled file will get it to update. The only way to get it to recognize the change is to restart the IDE. Is there anything I can do to fix this or is my setup just too exotic.
Please sign in to leave a comment.
I actually just discovered an important detail which is that this issue only seems to occur when on the Nova engine. When using the classic engine this issue is not present, so I will just stick with that for now but it is just worth noting.
I'm having the same issue with Nova. Otherwise, it's a much better experience than the classic engine, so I wish this was fixed.
Hello!
Please create an issue in our tracker https://youtrack.jetbrains.com/issues/CPP, and provide there a simple sample project and the exact steps to reproduce the issue. Please add a link to the created issue here, just for the record. Thank you in advance!