简体   繁体   English

intellij-idea的父目录中是否有任何功能或设置可以显示编译错误

[英]Is there any feature or setting can show compile error in parent directory in intellij-idea

I have a multi-module maven project, like this: 我有一个多模块的Maven项目,如下所示:

project A
|-project B
  |-project C

If there is a compile error in module C, and I collapse module B, I can't see the error. 如果模块C中存在编译错误,并且我折叠了模块B,则看不到该错误。 Is there any feature or setting can show compile error in parent directory. 是否有任何功能或设置可以在父目录中显示编译错误。

Correct me if I am wrong, but in your situation I thought Idea would show a little red squiggly in the collapsed project B even before running a compile. 如果我错了,请纠正我,但是在您的情况下,我认为即使在运行编译之前,Idea也会在折叠的项目B中显示出一些红色的弯曲。 You should see the error immediately as Idea builds it AST (Abstract Syntax Tree) and it should remain visible through all parent projects. 当Idea将其构建为AST(抽象语法树)时,您应该立即看到该错误,并且该错误应在所有父项目中保持可见。 In my version (I'm running 12 ultimate but I believe the feature has been there since multi-modules were 1st introduced) If I have all projects collapsed I would see the squiggly on the main leaf. 在我的版本中(我正在运行12 Ultimate,但是我相信自从首次引入多模块以来该功能就一直存在)如果我所有项目都崩溃了,我会在主页面上看到弯曲的状态。 I then open the leaf and it will show the squiggly on the sub module that has the error. 然后,我打开叶子,它将在有错误的子模块上显示混乱。 (This assumes you use the module grouping feature which allows you to build and fold groups into one another. If you're not using grouping then your errant module will be visible at the root of the project module list.) (这假定您使用模块分组功能,该功能允许您将组建立并折叠在一起。如果不使用分组,则错误的模块将显示在项目模块列表的根目录。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM