Gutter icons for groovy syntax errors?

Answered

How come there is no gutter icon for errors like the one in this screenshot with size? It's got the dashed underline and when you hover over it it says "No candidates found for method call entity.formLayout.size." But it would be better to have a gutter icon so when you refactor something you can easily scan files and see any errors.

This is a groovy file.

5 comments
Comment actions Permalink

The errors/warnings are displayed on the right gutter as lines.

You can also use the Problems view: https://www.jetbrains.com/help/idea/problems-tool-window.html.

0
Comment actions Permalink

There is nothing in the right gutter nor is there anything in Problems.

0
Comment actions Permalink

"No candidates found for method call" is not treated as an error or a warning since Groovy is a dynamic language. Not being able to find the candidate during the static analysis doesn't mean it's a problem at runtime. Therefore, IDE doesn't flag it as an issue, rather an informational notice.

0
Comment actions Permalink

But if you can put the dashed underline in couldn't you put a gutter icon? It would be very useful to find refactoring errors quickly.

0
Comment actions Permalink

Dashed underline is a special handling of Groovy dynamic nature. To make it display a gutter line or make it configurable, it has to be converted to the inspection which requires some noticeable code changes. A feature request can be submitted at https://youtrack.jetbrains.com/newIssue?project=IDEA.

0

Please sign in to leave a comment.