I’m experiencing an issue where the main.c file shows “File does not belong to any project target,” but this only happens with 8051 projects (Arduino-ESP32 projects are unaffected). Compilation and uploading work fine, but there’s no code completion.
My toolchain is configured with MinGW, and I haven’t changed it. The issue started after updating CLion and PlatformIO; previous versions worked without any problems. I attempted to revert to the older versions but didn’t succeed. I’ve also tried various solutions, such as switching the toolchain to “System Default” and clearing caches, but nothing worked.
Could someone please help? Thanks!
My versions:
CLion: 2024.2.3
PlatformIO Core: 6.1.16
PlatformIO Home: 3.4.4


I’m experiencing an issue where the main.c file shows “File does not belong to any project target,” but this only happens with 8051 projects (Arduino-ESP32 projects are unaffected). Compilation and uploading work fine, but there’s no code completion.
My toolchain is configured with MinGW, and I haven’t changed it. The issue started after updating CLion and PlatformIO; previous versions worked without any problems. I attempted to revert to the older versions but didn’t succeed. I’ve also tried various solutions, such as switching the toolchain to “System Default” and clearing caches, but nothing worked.
Could someone please help? Thanks!
My versions:
CLion: 2024.2.3
PlatformIO Core: 6.1.16
PlatformIO Home: 3.4.4