CLion 说:“无法生成到 /the/project/dir,它已用于未知项目”
我已经在我的某个存储库中使用 CLion 一段时间了。突然(或者可能不是突然,但我无法找出原因),我在 CMake 控制台中收到此错误消息:
Cannot generate into /path/to/the/project/dir
It is already used for unknown project
Please either delete it manually or select another generation directory
我尝试了几件事:
- 删除构建目录
- 删除 .idea 并将目录作为新项目打开
- 确保那里后台没有其他 CLion 实例
- 正在检查文件所有权和权限
...但没有效果。但是,将存储库克隆到新文件夹中不会导致这种情况。
造成这个问题的原因可能是什么?
注意:
- CLion 2022.1 EAP 3
- Devuan GNU/Linux Chimaera (~= Debian Bullseye)
- 非 root 用户
I've been using CLion with a certain repository of mine for a while now. Suddenly (or maybe not suddenly, but I can't figure out the cause), I get this error message in the CMake console:
Cannot generate into /path/to/the/project/dir
It is already used for unknown project
Please either delete it manually or select another generation directory
I tried several things:
- Deleting the build directories
- Deleting .idea and opening the directory as a new project
- Ensuring there are no other instances of CLion in the background
- Checking the file ownership and permissions
... but to no effect. However, cloning the repository into a new folder does not result in this situation.
What could be the cause of this problem?
Notes:
- CLion 2022.1 EAP 3
- Devuan GNU/Linux Chimaera (~= Debian Bullseye)
- non-root user
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有同样的问题。删除项目(根)目录中的
CMakeCache.txt
对我来说已经成功了。Had the same problem. Deleting
CMakeCache.txt
in the project (root) directory did the trick for me.