hey, how can I access the files under the `resourc...
# intellij-plugins
j
hey, how can I access the files under the
resources
folder? I am running an intellij plugin demo. Its UI is built by Compose Desktop. Now I am trying to load a icon file under the
resources
folder into a Compose Image widget
Copy code
Image(
    painter = painterResource("chat.png"),
    contentDescription = null
)
but it reports error like below
Copy code
Resource chat.png not found
however, it works in the Compose Desktop project. I am so confused.
r
Maybe you need to use the slash previously? I have an
icons
folder under
resources
folder. And this is how it looks
j
is it an intellij plugin project?
r
Yes!
j
The root cause is ClassLoader…
😱 1