How to make Intellij automatically show compiling errors like Eclipse and how to prevent unwanted callers in the call hierarchy?

Answered

The first question is how to see all the compiling errors in the problems window? In Eclipse, all the compiling errors can be found in the problems tool window and the compiling errors are automatically updated, but Intellij doesn't seem to support this. For example, when a method name is changed, which causes compiling errors in the caller classes, the problem tool window in Intellij doesn't show those errors. Even if I manually build the project, it just shows the first compiling error it encounters instead of all the compiling errors.

 

The seconds question is how to remove unwanted callers in the call hierarchy. For example, when I open the call hierarchy of a customized toString method in my class, I saw a lot of callers I have never seen before, as the following screenshot shows:

 

11 comments
Comment actions Permalink

Thanks for the answer to the first question. It worked. Just a follow-up question, how can I expand all in the problems tool window? I only see the option of Collapse all. I'm using the ultimate 2019.2 version fyi.

 

The second answer didn't completely solve the problem, like the following screenshot shows:

How come Example.main is the caller of Test1.toString? Is there a way to correct this behavior?

0
Comment actions Permalink

Hello Xiaobin,

 

Please follow the issue created for the "Expand all" problem:

https://youtrack.jetbrains.com/issue/IDEA-241444

And here is the issue already created for the "Call hierarchy" case:

https://youtrack.jetbrains.com/issue/IDEA-217825

 

Sorry for inconvenience!

0
Comment actions Permalink

Thank you! How can I check if the issue is resolved and how to bring the fix to my Intellij?

0
Comment actions Permalink

Xiaobin,

 

You may vote the issue so that to be notified about all the changes like state of the issue and fix version, for this please press "thumbs up":

 

0
Comment actions Permalink

Thanks Olga. So the fix, if to be implemented, will be put in some future version of Intellij and I need to upgrade my Intellij to that version to activate the fix, correct?

0
Comment actions Permalink

Xiaobin,

Yes, you are correct. The fix version will be specified in the fix versions field:

0
Comment actions Permalink

You should be looking for Fixed in builds field and when the build > than that is released, you can install it to get the fix.

0
Comment actions Permalink

I see. Thank you both.

0
Comment actions Permalink

Hi Xiaobin,

Please use `Cmd +` for Expand All and `Cmd -` for Collapse All.

0
Comment actions Permalink

Hi Arseniy, it doesn't seem to work on IntelliJ IDEA 2019.2.1 (Ultimate Edition)

0

Please sign in to leave a comment.