Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij Idea not showing errors in Message Tool Window after Gradle build

Intellij Idea 14.1.2, Gradle 2.3

I have a project with few java subprojects. Gradle builds works as expected but Intellij Idea does not capture the output of it and does not show the Messages Tool Window where you can click on the error and go to the source file.

Steps to reproduce:

  1. Create new gradle project
  2. Create new class with one method
  3. Introduce intentionally one error
  4. Build using Gradle tool window

Expected result: Message Tool window will show up showing the error.

Actual result: Output is shown in the Run tool window, but the Message window is not shown (it's menu item is not even active in View -> Tool windows)

I've tryed to reimport the project, to create it from scratch, searched Idea's settings, manipulated manually values in *.iml but with no success and I am running out of ideas.

Any idea where I can find a setting that tells the IDE to direct output to the Messages window?

like image 734
Ognyan Avatar asked May 04 '15 18:05

Ognyan


People also ask

How do I see build errors in IntelliJ?

Current fileClick the widget to open the list of problems on the Current File tab of the Problems tool window. You can also access the Problems tool window by selecting View | Tool Windows | Problems or by pressing Alt+6 .

How do I refresh the Gradle cache in IntelliJ?

Pressing on the Refresh Gradle icon in the top right, Using the keyboard shortcut ⇧⌘I (macOS), or Ctrl+Shift+O (Windows/Linux).


1 Answers

In Intelij 16.2 I had this problem as well. In the top left corner of the "Run" window there is an odd looking button that when you mouse over is labeled "Toggle tasks executions/text mode." Click it and it will show you the output from the Gradle build instead of the steps in the task execution.

like image 196
BrianC Avatar answered Oct 15 '22 10:10

BrianC