Did you create a new project by clicking File -&gt...
# getting-started
m
Did you create a new project by clicking File -> New -> Project, and choosing Kotlin in the window that popped up?
t
marstran: That I did and there it works well.
Just opening the Kotlin Koans project https://kotlinlang.org/docs/tutorials/koans.html has the problems I described.
m
Ah, so you cloned the repo?
t
Yes.
j
did you try refreshing the gradle project?
m
Was about to ask the same ๐Ÿ˜›
๐Ÿ˜„ 1
t
How exactly do I do that?
j
on the right hand side of the IDE there's a gradle tab, with a refresh icon
t
Hold on a sec then ...
OK, no luck.
It's as if IDEA didn't know about the Kotlin standard libraries.
When I create a new Kotlin file in that project, I have the same problems. But the file (if main is specified) can be executed just fine and also seems to be correctly identified as Kotlin syntax ... it's just the libraries ...
Trying to run Tools->Kotlin->Configure Kotlin in Project results in "There aren't configurators available"
j
does anything show in the gradle tab?
t
Nope, nothing (well, nothing that would indicate anything is not working.)
j
it should show a gradle project
t
Well, it does and all the tasks. But nothing that would indicate things not working.
j
You could try
File - Invalidate Cache
๐Ÿ‘ 1
t
Did that just now. Restarting ...
After the restart the project's being reindexed ...
Yup, that was it!
j
phew! ๐Ÿ˜„
t
Thank you ๐Ÿ™‚
OK, back to learning Kotlin now ๐Ÿ˜‰
j
i'm not sure how it'd get into that state, but it doesn't happen that often with IntelliJ
good luck with the learning!
๐Ÿ™‚ 1