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

标签 intellij-idea-2018

我有两个模块的 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/

相关文章:

intellij-idea - 检查信息 : Verifies @ConfigurationProperties setup. IntelliJ 2018.3 新增

intellij-idea - 隐藏intellij idea 2018的tabs外观

java - 升级到 Intellij 2018.1,现在我收到 SQL 代码中引用的 public static final String 常量的错误

java - 智能 : Error: java: release version 10 not supported

spring-boot - Intellij IDEA 2018.2 缺少 Spring Boot 运行仪表板

java - 如何在Java代码中查找参数为复合表达式的方法的用法?

gradle - Intellij 2018.2:无法同步Gradle 1.9项目