gpt4 book ai didi

intellij-idea-2018 - 无法运行测试 .idea/modules' 不存在

转载 作者:行者123 更新时间:2023-12-04 07:59:49 25 4
gpt4 key购买 nike

我有两个模块的 spring-boot 项目
但是当我尝试运行测试时,Idea 不会生成 ./idea/modules 文件夹,我得到了下一个错误

' Cannot start process, the working directory /home/../my_project_name/.idea/modules' does not exist



重新导入或重建整个项目并不能解决问题。

最佳答案

这似乎是 Intellij IDEA 2018 的已确认问题:see this thread .当我坚持运行单元测试时,推荐的解决方案对我来说效果很好:

As a workaround please manually change the value from $MODULE_DIR$ to %MODULE_WORKING_DIR% for 'Working Directory' in Run/Debug configuration. To change it for all new projects please update Default Run/Debug Configuration.



希望对您也有帮助。

关于intellij-idea-2018 - 无法运行测试 .idea/modules' 不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49795452/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com