12.4.3 Project is Empty/Project Files Grayed Out
If you have loaded a corrupted project and answered a dialog question incorrectly, the Projects window could be grayed out and MPLAB X IDE will say the project cannot be built due to having no source files.
The problem occurs when the corrupted project is being loaded into MPLAB X IDE. A dialog will appear asking if C source files should be associated with header files. You can correct the issue at this point by clicking No (the default).
However, if you click Yes, the source files are now seen as header files and the project looks empty. To fix the project, you can use either of the following methods:
- Exit from MPLAB X IDE.
- Go to the MPLAB X IDE User Directory (specified in the dialog) and delete the directory for your version of MPLAB X IDE. That is, delete the folder vx.xx from C:\Users\UserName\AppData\Roaming\mplab_ide\dev\vx.xx, where x.xx is your version number.
- Launch the IDE again.
OR
- Go to Other tab. ,
- Remove ‘c’ from the header files association.
- Add ‘c’ to the source files association.
- Click OK.