Hello, I recently had the chance to try the new building system and I wanted to provide a quick feedback.
At first I forgot to scratch and re-import the project when I switched from maven to gradle: the errors where not super clear but I had memories of this thread so it did not take much to figure it out (probably worth mentioning in the instructions on the Calcite webpage). Importing from scratch the gradle project with Intellij 2019.2 (Ubuntu 16.04) worked just fine. I found particularly useful the "check" command (all check at the same time) and the auto-formatting feature. On top of that is just great to have test details and failures as an html page you can explore from your browser. Thank you Vladimir specifically for gradle and to the whole community for the continuous improvements of the project and the dev experience. Best regards, Alessandro On Fri, 29 Nov 2019 at 07:13, Muhammad Gelbana <[email protected]> wrote: > 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 > > >
