Maybe it depends on the file location.
Starting from a couple of releases ago Pelle
confined the location of project's files to subdirectories of the one where the -prj file is located.
Honestly I think that nobody on this forum understand why. This simply limit the IDE flexibility and force the use of a custom project files layout that is not found in any IDE or sample code you can download around.
Try to move files inside the project directory.