IntelliJ IDE | .iml File lost or deleted

前端 未结 10 808
梦谈多话
梦谈多话 2021-02-06 20:07

Last week I was working on a Java EE project with IntelliJ IDE.

Today: As I started up my IntelliJ 2016.1 it gave me the error:

Error Loading Project

10条回答
  •  借酒劲吻你
    2021-02-06 21:05

    I am using phpstorm and project with multiple repos.

    My scenario was that, for reasons unspecified, i deleted "main" project directory (and cloned again). Which resulted next project directory to become main , i guess. And also old "main" to be removed from project view in phpstorm.

    After trying to open newly cloned project and attach, it failed. New .iml file in attached newly cloned project was fine (although it reported failure), so i went into next projects .idea directory and found .iml file looking like this:

    
    
      
        
        
        
        
        
        
        
    
    
    

    So i quit phpstorm, removed all Project1 entries from the second project iml file, restarted IDE, opened and attached newly cloned project1 again, and it was suddenly fine.

提交回复
热议问题