Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run tests .idea/modules' does not exist

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.

like image 482
smaiakov Avatar asked Apr 12 '18 11:04

smaiakov


People also ask

How do I get the run option in intelliJ?

From the main menu, select Run | Edit Configurations. Alternatively, press Alt+Shift+F10 , then 0 . on the toolbar or press Alt+Insert . The list shows the run/debug configuration templates.

How do I fix run configuration in intelliJ?

Open the Run/Debug Configuration dialog in one of the following ways: Select Run | Edit Configurations from the main menu. With the Navigation bar visible (View | Appearance | Navigation Bar), choose Edit Configurations from the run/debug configuration selector. Press Alt+Shift+F10 and then press 0 .

Why Run button is disabled in intelliJ?

One possible problem is that the program is still running in the background and hasn't exited completely. Check your running processes for java applications and see if it exists. Or a variation - close Intellij window and reopen.


1 Answers

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.

like image 195
Vladimir Salin Avatar answered Sep 29 '22 18:09

Vladimir Salin