Inlay hints now shown for loops and streams since ver. 2024.x

Answered

Hello!


Let’s say I have a Groovy code in a Java project:

List<String> exampleList = ["Test 123", "Test 234", "Test 345"]

exampleList.each { item ->
    println(item)
}

If I hover mouse over “item” variable, IntelliJ IDEA 2024.x will show a hint with types: Object item; [inferred type] String, but it won’t show inferred type as an inline (inlay) hint. Other inlay hints are shown.

As far as I remember IntelliJ IDEA 2023.x had such functionality, i.e., it showed inlay hints for inferred types in loops and streams.

It is very convenient and helps a lot while working with complex streams. I’d like to bring these inlay hints back. Is it somehow possible?

I have tried turning all inlay hints options; invalidate caches and it didn’t help.

0
3 comments

Hello,

I've created an issue for this: https://youtrack.jetbrains.com/issue/IDEA-351784/Inlay-hints-not-shown-for-Groovy-loops-and-streams-since-ver.-2024.x

Feel free to vote and watch the YouTrack item in order to be notified once it has updates. See this article if you are not familiar with YouTrack.

0

Didn't expect this to be a bug (thought that something wrong with the settings).

Thank you for creating the issue!

0

I was under the impression that there was a problem with the settings, thus I was surprised to find out that this was a defect. https://youtrack.jetbrains.com/issue/IDEA-351784/Inlay-hints-not-shown-for-Groovy-loops-and-streams-since-ver.-2024.x geometry dash

0

Please sign in to leave a comment.