JetBrains / intellij-platform-plugin-template

Template repository for creating plugins for IntelliJ Platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't use Psi api

gongxuanzhang opened this issue · comments

i create project with current template

in my build.gradle.kts

plugins {
    id("java") // Java support
    alias(libs.plugins.kotlin) // Kotlin support
    alias(libs.plugins.gradleIntelliJPlugin) // Gradle IntelliJ Plugin
}

but in my code. i can't import org.jetbrains.kotlin.psi.*
image

i can run my plugins,but i want use kotlin psi.
what should i do.
Could you please provide me with some assistance

Please do not use bugtracker for questions, but Slack or Forum: https://plugins.jetbrains.com/docs/intellij/getting-help.html#problems-with-code-support-issues

See https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html on how to setup dependencies on other plugins.

I'm sorry for the trouble. thanks for your answer. I solved the problem