Are there any news on the implementation of Type-M...
# k2-adopters
c
Are there any news on the implementation of Type-Matching completion? It's starting to be very frustrating not to have access to it. We have many enums that have the same name. At the moment the only reliable way to use an enum is to CTRL Click the parameter name, invoke "copy reference" to get the FQDN, go back and paste that. Any other way, IntelliJ imports the wrong enum.
a
@CLOVIS Thank you for the feedback. Could you please provide the IDE build you use? Right now enums are supposed to be suggested just as you type.
c
IntelliJ IDEA 2025.1.1.1 (Ultimate Edition) with K2 mode enabled I've never seen enums or constructors suggested since I enabled K2 mode ~a year ago
thank you color 1
I see now that they are actually suggested but way too low and not in a deterministic way
Looking in a real project, I see that the enum elements do appear as the 7th or 8th suggestion, the 1st suggestion is usually
null
, and the 2nd to 6th suggestions are things that don't have the correct type
Enum elements only appear after ~2–3 seconds though 🤔
a
Okay, now I get it. Yes, the sorting has been fixed (see KTIJ-32831), it is already available in the EAP builds. If you’re willing to check them out, please share the feedback.
c
I'll try it out tomorrow, thanks
🔝 1
Do you have any news on type-matching autocompletion for constructor calls?
a
Yes, it is planned for 2025.2 as well.
👍 2
👀 1
c
Is it in the EAP?
🚫 1
Shame. Thanks for the info
a
You’re welcome 🙂
c
It does appear in first now, thanks
Once again all my settings in 'File | Settings | Editor | General | Code Completion' got reset after the update 😐
🫣 1