Opening a project does not open the import window when .idea/codeStyles is present

Answered

IntelliJ version:

IntelliJ IDEA 2019.1.2 (Ultimate Edition)
Build #IU-191.7141.44, built on May 7, 2019
Licensed to Quizlet / Shaobo Sun
Subscription is active until July 11, 2019
JRE: 1.8.0_202-release-1483-b49 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.4

 

Hi, we have a Gradle project hosted on Github. The folder ".idea/codeStyles" is under source control because the team wants to share the same style. The problem we're facing right now is that opening a project from IntelliJ won't open the import window (see the screenshot below) when this folder is present. It works as expected when this folder is removed. Is there a way we can have both features co-exist?

0
3 comments

You can open/import build.gradle file explicitly to avoid opening the existing empty project.

0
Avatar
Permanently deleted user

Thanks Serge. Now I'm seeing this prompt. Is there a way to make it work without overwrite .idea?

0

I'd keep the project files in the version control so that you open the existing project and then refresh the dependencies/modules from Gradle: https://intellij-support.jetbrains.com/hc/articles/206544839.

0

Please sign in to leave a comment.