in some cases, IntelliJ doesn't suggest the class ...
# intellij
p
in some cases, IntelliJ doesn't suggest the class to import - not sure how to investigate this problem or prepare a reproducer. Nothing interesting in
idea.log
. Have you ever encountered it?
3
for another class (from the project, not a lib), it works
e
OT: if you use latest version of the kotest plugin you can simply start writing
funspec
and use the live template, it will add the Kotest import ;]
p
good to know, thanks! although, the issue is still valid as it may be a symptom of some wider problem
👍 1
m
I've seen that lately as well. If you go back in your typing and start typing a few char again the suggestion is there but once you stop typing, Command + Enter won't do it
l
Did you enable K2? When that's enabled, the intention actions to create classes doesn't work anymore.
p
yes, it was with K2 mode enabled, but it's about adding an import - does it matter if it's for a base class?
do you know a related YouTrack ticket so that I can +1?
l
No, I don't. There is one ticket that is meant to track all the others that represent K2 regressions though. I can't find it now though.
👍 1
p
here's a case where it works in K2 mode, and @mbonnin does your comment relate to K2 mode as well?
m
Yep, using K2 here
I always thought it was a "state" thing and only happened "after a while" but I'm not sure. Will try different things and report
c
Could be a regression, I don't see the problem on 2024.2, maybe worth reporting?
p
3
thank you color 3
reproducer requested... it's gonna be hard to catch this bug
e
I'm having the issue without K2 enabled as well 😕
j
Same, I didn’t reported it because I don’t know how to reproduce it.