7

I have the spring-boot project with two modules But Idea does not generate ./idea/modules folders those when I am trying to run tests I got next error

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

Reimport or rebuild the whole project not solve the issue.

smaiakov
  • 470
  • 5
  • 20

1 Answers1

12

It seems to be a confirmed issue for Intellij IDEA 2018: see this thread. The recommended solution worked fine for me when I was stuck with running unit tests:

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.

Hope that helps you as well.

Vladimir Salin
  • 2,951
  • 2
  • 36
  • 49