HI in my Kotlin gradle project I'm getting no 'src...
# gradle
t
HI in my Kotlin gradle project I'm getting no 'src' folder even though Kotlin is configured. An old solution was to go to Build Tools --> select gradle and you will get the option 'create directories for empty content root automatically'; but this was removed in 2019 - here is my current project:
v
Just create it? Either in the file system directly, or via
New -> Directory
while focusing the root folder. The latter will give you a selection of all source and resource directories IJ knows from the Gradle import.
n
Do you have a java plugin applied? Or another plugin that works on source code?
t
@Vampire I tried that... But still it would not show up with 'kotlin class/file':
v
That doesn't look like what I said
That looks like you opened
New
on the
modules
folder which is not a Kotlin source directory.
t
@Vampire I tried it on the '.idea' folder (not on the modules) and still nothing 😕
v
That doesn't make it any better and is still not close to what I told you
t
@Vampire oh ok you mean one folder up
@Vampire I will try this..
@Vampire OK seems to be working 👍
👌 1
@Vampire is it a cause for concern if some folders are highlighted in red? (Image below.)
v
No, this red means they are excluded, for example from searches, indexing, ...