When any IntelliJ-family IDE calls out to external tools such as Gradle;
Why does it not log the actual command passed to that tool, in the console (so that it appears just above the tool output)?
This would be extremely useful both for learning what's going on under the hood, and for diagnosing problems. I'm currently facing an issue where a Gradle build succeeds from the command line but fails inside the IDE. It's hard to see what the underlying difference is.
c
Casey Brooks
06/04/2020, 1:17 PM
You can see the exact Gradle command used in the “Run/Debug Configurations” window (“Edit Configurations…” command in run task dropdown)
c
cristiangm
06/04/2020, 9:09 PM
Not for sync
m
Mike
06/04/2020, 9:37 PM
For sync, I don't think it's running a Gradle command. It's calling Gradle tooling built for better IDE support.
Don't quote me on that, but if you look in IDEA logs, you'll see references to 'parameters passed to Gradle Tooling'. Link to folder containing logs can be found under Help menu.
Mike
06/04/2020, 9:38 PM
If you're using the 2020.2 EAP, I'd also suggest updating. The previous one seemed to be having issues with Gradle projects, but it seems to be ok in the latest release.