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.
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.
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 .
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With