关键字:
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