I haven't tried IntelliJ yet but I found this while going through Gradle's
manual [1]

https://docs.gradle.org/current/userguide/troubleshooting.html#sec:troubleshooting_ide_integration



On Tue, Nov 26, 2019 at 10:22 AM Vladimir Sitnikov <
[email protected]> wrote:

> >IntelliJ frequently fails to correctly load a project
>
> It never happens to me.
> I've been working recently on Gradle itself, Apache JMeter, Calcite
> Avatica, Calcite, and it works.
>
> Julian, is the issue reproducible?
> Can you provide the exact steps?
>
> Are there errors in IDEA logs? (
>
> https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files
>  )
>
> Is it caused by Maven's leftovers in your IDEA project?
> If both Maven and Gradle fight for the project model, then it won't work
> well.
>
> There are class issues when different branches have different dependencies.
> For instance, PR#1591 adds Redis adapter, and the project needs re-import
> so IDEA recognizes new dependencies.
> It is documented at
>
> https://www.jetbrains.com/help/idea/work-with-gradle-projects.html#gradle_refresh_project
> An alternative option is to use ctrl+shift+a / cmd+shift+a (see
> https://blog.jetbrains.com/idea/2009/06/find-action-saves-time/ ), type
> "reimport",
> and execute "Reimport All Gradle Projects" from there.
>
>
> Note: there's "Automatically import this project on changes in build script
> files" option, however, I suggest to keep it **disabled**.
> The import takes time (e.g. 10-20 seconds), and it seems to re-import the
> project on each keystroke when editing the build script which is insane.
>
> Vladimir
>

Reply via email to