关键字:
clion target no found
问题描述:
自己新建的项目,写了一大半,运行调试都挺正常。别的某些原因重启了一次电脑,就直接跑不了了,目录内文件显示
This file does not belong to any project Code insight might not work
然后右上角显示:
Clion: Target “[NAME]” not found
检查后可以确定我别的配置都是正确的。
问题原因:
目前原发原因未知,我是在deepin上的clion跑的。
但应该是项目找不到cmakelists.txt导致的。
解决:
重载clion项目
file ->invalidate caches --> invalidate and restart
在Deepin系统中使用Clion开发时遇到项目无法运行的问题,表现为文件提示不属于任何项目,Clion显示Target未找到。这可能是由于项目找不到CMakeLists.txt导致的。解决方法是通过File -> Invalidate Caches -> Invalidate and Restart重载项目,从而修复Clion的配置问题。
1395





