Intellij IDEA 14: Error Loading Project: Cannot load module cars-service

The error has nothing to do with gems. Please try deleting the .idea directory and using "Open Directory" on the same directory again to recreate it.-- Dmitry Jemerov

↑an answer on intellij-support.jetbrains.com

This helped me. I just closed Pycharm, then delete .idea directory , then I open Pycharm again, and the error disappeared.


Finally, I imported my project via import project so the iml file was recreated.


Closing intelliJ. Deleting the .idea folder and re-opening intellij worked for me.


This happened to me this morning*, and fortunately there's a fairly straightforward solution.

  1. Press Ctrl+Alt+Shift+S (or go to File > Project Structure...) and click Modules on the left of the window.
  2. Click the green + above the list of modules then New Module. Select the type of module (Java, Android, Flash, what have you) and click Next.
  3. Enter the details of the lost module. Click the browse button to the right of Content Root and navigate to the directory that contains your lost module. The module name will be populated with the directory name by default, but you can rename it without issue.

(*I... got a bit gung-ho with the old git clean -fd. I don't recommend it.)