在Gradle构建后,Intellij Idea在消息工具窗口中不显示错误 [英] Intellij Idea not showing errors in Message Tool Window after Gradle build

查看:1103
本文介绍了在Gradle构建后,Intellij Idea在消息工具窗口中不显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Intellij Idea 14.1.2,Gradle 2.3



我有一个java子项目很少的项目。 Gradle按预期构建,但Intellij Idea不会捕获它的输出,也不会显示消息工具窗口,您可以在其中单击错误并转到源文件。



重现步骤:


  1. 创建新的gradle项目

  2. 使用一种方法创建新类



  3. $ b 使用Gradle工具窗口构建



    实际结果:输出显示在运行工具窗口中,但消息窗口未显示(它的菜单项在视图 - >工具窗口中没有被激活)

    我尝试重新导入项目,从头开始创建它,搜索Idea的设置,操作手动在* .iml中的值,但没有成功,我没有想法。



    任何想法,我可以找到一个设置,告诉IDE将输出指向消息风在Intelij 16.2中,我也遇到了这个问题。在运行窗口的左上角有一个奇怪的按钮,当您将鼠标移到上面时,按钮标记为切换任务执行/文本模式。点击它,它会显示Gradle构建的输出,而不是任务执行中的步骤。


    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?

    解决方案

    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.

    这篇关于在Gradle构建后,Intellij Idea在消息工具窗口中不显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆