简体   繁体   中英

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:

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. 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. You should see the error immediately as Idea builds it AST (Abstract Syntax Tree) and it should remain visible through all parent projects. 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. 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.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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